Monitor configfiles of a package

27 views
Skip to first unread message

Marco Schröder

unread,
Jan 22, 2014, 12:08:50 PM1/22/14
to puppet...@googlegroups.com
Hi all,

I would like to monitor a configuration directory (a bunch of apache vhost config files) with puppet.
For several reasons it would be neccessary to deploy the configs with a RPM package which is built by a Jenkins CI server.

Using a package ressource and just ensure => latest would be easy of course, but what I want to make sure is that puppet recognizes when somebody or something changes the config files on the filesystem and then forces the contents of my RPM package.

I believe that RPM isn't designed to force overwrite of configs which it owns.

Is it possible to monitor a directory recursively with puppet and trigger a RPM reinstall or something like that?

Or am I completely on the wrong track?

Thanks,
Marco

Jose Luis Ledesma

unread,
Jan 22, 2014, 12:38:58 PM1/22/14
to puppet...@googlegroups.com
You can exec a rpm verify against the package, it should display which files has changed and then reinstall it to if needed but i think this is not a "puppet solution"

Another option would be install the rpm in the puppet master, and create a module that deploy the files of the rpm( so no rpm installed on the servers)...

Regards

Reply all
Reply to author
Forward
0 new messages