On Aug 26, 2009, at 10:30 AM, Darrell Fuhriman wrote:

>
>> particular cisco switches and routers.  Since I don't know of any
>> way to run the puppet client on a switch or router I have started
>> building and intermediary daemon which would receive configuration
>> files from puppet and then push those configurations out to the
>> devices and retain any fluctuating data in the router's
>> configuration(like time modifications).
>
> I take advantage of the fact that you can tell the routers/switches
> via SNMP to reload.
>
>           remotefile { '/tftpboot/router-confg':
>                 source => 'routers/router-confg',
>                 mode => 0444,
>                 notify => Exec[router-load-config],
>             }
>             exec { 'router-load-config':
>                 refreshonly => true,
>                 command => '/usr/bin/snmpset  -t60 -v 1 -c private
> router.example.com  .1.3.6.1.4.1.9.2.1.53.192.168.0.14 s router- 
> confg',
>                 logoutput => on_failure,
>                 notify => Exec[router-save-config],
>             }
>             exec { 'router-save-config':
>                 refreshonly => true,
>                 command => '/usr/bin/snmpset  -t60 -v 1 -c private
> router.example.com .1.3.6.1.4.1.9.2.1.54.0 i 1',
>                 logoutput => on_failure,
>             }

Very cool.

I'd be willing to help point someone in the right direction on how do  
actually do some native types that did something very similar.

That is, you could have a type that provided this model of what  
attributes existed and what the values were, and then you could have a  
provider on the backend that knew how to talk to the router via  
snmpset and snmpget, etc.  That should actually be pretty simple and  
would be a great start.

-- 
You can't have everything. Where would you put it?
     -- Stephen Wright
---------------------------------------------------------------------
Luke Kanies | http://reductivelabs.com | http://madstop.com


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to