Ask Your Question
0

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 -0500

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?

Thanks,

Ian

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

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

DarylW gravatar image

Two different ideas...

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

https://ask.puppet.com/question/26682...

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 https://bbs.archlinux.org/viewtopic.p... and here's an example of monitoring systemd's log for arbitrary events to kick off a systemd unit https://jjacky.com/2013-10-06-run-tri...

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

Stats

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

Seen: 23 times

Last updated: Jan 07