samhain: also accept changes in etc/apache2/conf-available
authorPeter Palfrader <peter@palfrader.org>
Mon, 26 Sep 2016 20:08:54 +0000 (22:08 +0200)
committerPeter Palfrader <peter@palfrader.org>
Mon, 26 Sep 2016 20:08:54 +0000 (22:08 +0200)
modules/samhain/templates/samhainrc.erb

index f9e76c0..39e91d5 100644 (file)
@@ -129,9 +129,11 @@ file=/etc/init.d/.depend.start
 file=/etc/init.d/.depend.stop
 
 # These are the directories for the files we handle with puppet
-file=/etc/apache2/conf.d
+<% if classes.include?("apache2") -%>
+file=/etc/apache2/conf-available
 files=/etc/apache2/mods-enabled
 files=/etc/apache2/sites-available
+<% end -%>
 file=/etc/bacula
 file=/etc/samhain
 file=/etc/munin