summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMicah <micah@leap.se>2015-09-24 11:25:48 -0400
committerMicah <micah@leap.se>2015-09-30 12:46:48 +0200
commit5cc27111151083d0a8e5098505a0024c2d2ea201 (patch)
tree4e99cdb40f15d9075c9662ecb7738ea45d1613a8
parent8b0910f1caf19884b6b46976b72536ee1f570ed5 (diff)
fix missing service dependency error
this tidy should only happen on webapp nodes Change-Id: I56faac4fa28fde9dcad7ce9a6ed0d684630a556e
-rw-r--r--puppet/modules/site_config/manifests/remove_files.pp7
1 files changed, 7 insertions, 0 deletions
diff --git a/puppet/modules/site_config/manifests/remove_files.pp b/puppet/modules/site_config/manifests/remove_files.pp
index 776c3731..8b2f9541 100644
--- a/puppet/modules/site_config/manifests/remove_files.pp
+++ b/puppet/modules/site_config/manifests/remove_files.pp
@@ -43,6 +43,13 @@ class site_config::remove_files {
rmdirs => true;
}
+ if member($::services, 'webapp') {
+ tidy {
+ '/etc/apache/sites-enabled/leap_webapp.conf':
+ notify => Service['apache'];
+ }
+ }
+
# leax-mx logged to /var/log/leap_mx.log in the past
# we need to use a dumb exec here because file_line doesn't
# allow removing lines that match a regex in the current version