From 0f96b07aa650108bf5fc46a3182d324a391e5a0f Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Fri, 29 Jul 2016 20:05:06 +0000 Subject: [PATCH] rebuild onion website if things change --- modules/roles/manifests/static_master.pp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/roles/manifests/static_master.pp b/modules/roles/manifests/static_master.pp index 457c558e1..c2aec647b 100644 --- a/modules/roles/manifests/static_master.pp +++ b/modules/roles/manifests/static_master.pp @@ -23,7 +23,13 @@ class roles::static_master { ensure => directory } concat { '/srv/puppet.debian.org/puppet-facts/onionbalance-services.yaml': + notify => Exec["rebuild-onion-website"], } Concat::Fragment <<| tag == "onionbalance-services.yaml" |>> + + exec { 'rebuild-onion-website': + command => '/bin/su - staticsync -c \'make -C /srv/onion-master.debian.org\'', + refreshonly => true, + } } } -- 2.20.1