> 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,
}
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---