Skip to content

Instantly share code, notes, and snippets.

@mathie
Created July 10, 2013 09:59
Show Gist options
  • Save mathie/5965096 to your computer and use it in GitHub Desktop.
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…
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