Ask Your Question

Is it possible to have a syslog or snmp event trigger puppet to log into a network device and execute a config change?

asked 2017-01-06 13:41:35 -0600

Ian gravatar image

case in point, if I have a nexus switch with two paths for default gateways and one goes down. Can I have some sort of event sent to puppet in order to trigger it to automatically log into the switch and change the default gateway?



edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-01-07 05:52:38 -0600

DarylW gravatar image

Two different ideas...

Idea one - there was a question that was asked about having a consul watch trigger a puppet run

Idea two - either use the system built into systemd or something like keepalived to trigger your puppet run. Here is a post about network events triggering a runonce systemd unit and here's an example of monitoring systemd's log for arbitrary events to kick off a systemd unit

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2017-01-06 13:41:35 -0600

Seen: 27 times

Last updated: Jan 07 '17