Created
July 10, 2013 09:59
-
-
Save mathie/5965096 to your computer and use it in GitHub Desktop.
I've had this workaround in my puppet master module for ages. If any of the manifests change, then the puppet run will touch site.pp so the puppet master knows that the manifests need to be re-evaluated. This was to work around the puppet master not noticing that included manifests were changed. Question is: do I still need to do this with recen…
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exec { | |
'touch-site-pp': | |
command => '/usr/bin/touch /etc/puppet/manifests/site.pp', | |
unless => '/usr/bin/test -z $(/usr/bin/find /etc/puppet/manifests/ -follow -newer /etc/puppet/manifests/site.pp)', | |
require => File['/etc/puppet/manifests']; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment