X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fsamhain%2Ftemplates%2Fsamhainrc.erb;h=0bbd965c697e82fb0cd2746e5604a626b3cfb925;hb=019eefed08e38a14827ba6f1cffa6bdc8b972a13;hp=d870253dafc3992b6097454b3ad7b21f8268a20f;hpb=acedb9e4e2990168c5e7f05ae870f49fba1dd0b5;p=mirror%2Fdsa-puppet.git diff --git a/modules/samhain/templates/samhainrc.erb b/modules/samhain/templates/samhainrc.erb index d870253da..0bbd965c6 100644 --- a/modules/samhain/templates/samhainrc.erb +++ b/modules/samhain/templates/samhainrc.erb @@ -157,7 +157,7 @@ file=/etc/nagios file=/etc/nagios/nrpe.d file=/etc/nagios/obsolete-packages-ignore.d file=/etc/bind/geodns -<% if scope.function_has_role(['nagiosmaster']) -%> +<% if classes.include?("nagios::server") -%> file=/etc/nagios3/puppetconf.d <% end -%> file=/etc/puppet @@ -268,7 +268,6 @@ file=/etc/postfix/debian file=/etc/ssh/ssh_known_hosts file=/etc/ssh/ssh-rsa-shadow file=/var/lib/misc/ssh-rsa-shadow -file=/etc/.da-backup.trace file=/etc/postfix/debianhosts file=/etc/postfix/debianhosts.db file=/etc/blkid.tab @@ -321,19 +320,6 @@ file=/etc/rabbitmq/enabled_plugins dir=/etc/bacula/storages-list.d dir=/etc/bacula/storage-conf.d dir=/etc/bacula/conf.d -<%= -out="" -if scope.lookupvar('deprecated::nodeinfo')['heavy_exim'] - out = ' -file=/etc/exim4/surbl_whitelist.txt -file=/etc/exim4/exim_surbl.pl -file=/etc/exim4/ccTLD.txt -file=/etc/clamav-unofficial-sigs.conf -file=/etc/clamav-unofficial-sigs.dsa.conf -' -end -out -%> file=/etc/munin/plugins/bind file=/etc/munin/plugins/bind_views file=/etc/munin/plugins/cpu @@ -440,7 +426,7 @@ file=/etc/schroot/setup.d/99porterbox-extra-sources file=/etc/schroot/setup.d/99porterbox-extra-apt-options file=/etc/openvswitch/conf.db -<% if scope.function_has_role(['nagiosmaster']) -%> +<% if classes.include?("nagios::server") -%> file=/etc/nagios3/puppetconf.d/auto-hostgroups.cfg file=/etc/nagios3/puppetconf.d/auto-hosts.cfg file=/etc/nagios3/puppetconf.d/auto-services.cfg @@ -450,7 +436,7 @@ file=/etc/nagios3/puppetconf.d/auto-serviceextinfo.cfg file=/etc/nagios3/puppetconf.d/auto-servicegroups.cfg file=/etc/nagios3/puppetconf.d/contacts.cfg <% end -%> -<% if scope.function_has_role(['muninmaster']) -%> +<% if classes.include?('roles::munin_master') -%> file=/etc/munin/munin.conf <% end -%> <% if classes.include?('roles::puppetmaster') -%>