From 281f7799a534cfd152ddc655f7c409b99f3bb0ba Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Thu, 17 Oct 2013 16:30:43 -0700 Subject: [PATCH] Touch site.pp after git updates. * modules/openstack_project/manifests/puppetmaster.pp: Ryan_Lane indicates the puppet master maintains a cache which can be invalidated by touching the site.pp file. Do so in order to have puppet runs after a puppet update use the new content rather than the old. Change-Id: I5422e7eecfd1d82a6a4416951dda6afbc855de3e --- modules/openstack_project/manifests/puppetmaster.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/openstack_project/manifests/puppetmaster.pp b/modules/openstack_project/manifests/puppetmaster.pp index b957e020ab..60ec9c9d81 100644 --- a/modules/openstack_project/manifests/puppetmaster.pp +++ b/modules/openstack_project/manifests/puppetmaster.pp @@ -16,7 +16,7 @@ class openstack_project::puppetmaster ( cron { 'updatepuppetmaster': user => 'root', minute => '*/15', - command => 'sleep $((RANDOM\%600)) && cd /opt/config/production && git fetch -q && git reset -q --hard @{u} && ./install_modules.sh', + command => 'sleep $((RANDOM\%600)) && cd /opt/config/production && git fetch -q && git reset -q --hard @{u} && ./install_modules.sh && touch manifests/site.pp', environment => 'PATH=/var/lib/gems/1.8/bin:/usr/bin:/bin:/usr/sbin:/sbin', }