Ask Your Question
0

Run Command when Kernel RPM Changes

asked 2016-01-26 18:14:30 -0600

ter012016 gravatar image

Hello all,

I'm fairly new to puppet and have a quick question. I need to run a command whenever a new kernel is installed via a "yum update" on a CentOS 7 box. In particular I'm using enhanced networking drivers on AWS instances that require an argument be passed to the kernel line in grub, and then the grub.cfg rebuilt.

So, each time the kernel RPM changes, I need to run the command. Is there a simple way (or forge module) to do that?

Thanks, TR

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-01-27 16:43:20 -0600

I think Puppet is not the right tool for this particular problem.

If you're using Puppet Enterprise, then this is exactly why Live Management is there. If you're not using Puppet Enterprise, you could look at the open source MCollective. That will be easy enough if you're using Puppet 4 and can benefit from the all-in-one package that contains MCollective.

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

1 follower

Stats

Asked: 2016-01-26 18:14:30 -0600

Seen: 93 times

Last updated: Jan 27 '16