X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fsamhain%2Ftemplates%2Fsamhainrc.erb;h=c76164cc0ce5f094e30da3f6632e5fc7c60d6cf5;hb=f833a1c122597f80da4d4095cae8d7d5bd852a7a;hp=7cf2709d6a65e7fe40c32cfc14d5c237408eb3d1;hpb=471af36728deb747a65afdba3c717d25ee9e57c5;p=mirror%2Fdsa-puppet.git diff --git a/modules/samhain/templates/samhainrc.erb b/modules/samhain/templates/samhainrc.erb index 7cf2709d6..c76164cc0 100644 --- a/modules/samhain/templates/samhainrc.erb +++ b/modules/samhain/templates/samhainrc.erb @@ -143,7 +143,7 @@ file=/etc/nagios file=/etc/nagios/nrpe.d file=/etc/nagios/obsolete-packages-ignore.d file=/etc/bind/geodns -<% if scope.lookupvar('site::nodeinfo')['nagiosmaster'] -%> +<% if scope.function_has_role('nagiosmaster') -%> file=/etc/nagios3/puppetconf.d <% end -%> file=/etc/puppet @@ -165,7 +165,7 @@ file=/etc/rc.local file=/etc/unbound file=/etc/dsa file=/etc/rabbitmq -<% if scope.lookupvar('site::nodeinfo')['static_mirror'] or scope.lookupvar('site::nodeinfo')['static_source'] or scope.lookupvar('site::nodeinfo')['static_master'] -%> +<% if scope.function_has_role('static_mirror') or scope.function_has_role('static_source') or scope.function_has_role('static_master') -%> file=/etc/ssh/userkeys file=/etc/ssh/userkeys/staticsync <% end -%> @@ -232,7 +232,7 @@ file=/var/log/syslog ## This file might be created or removed by the system sometimes. ## file=/etc/resolv.conf -<% if scope.lookupvar('site::nodeinfo')['buildd'] -%> +<% if scope.function_has_role('buildd') -%> file=/etc/dupload.conf <% end -%> file=/etc/resolv.conf.pcmcia.save @@ -411,7 +411,7 @@ file=/etc/cron.weekly/stunnel-ekey-restart file=/etc/default/schroot file=/etc/schroot/default/nssdatabases -<% if scope.lookupvar('site::nodeinfo')['nagiosmaster'] -%> +<% if scope.function_has_role('nagiosmaster') -%> file=/etc/nagios3/puppetconf.d/auto-hostgroups.cfg file=/etc/nagios3/puppetconf.d/auto-hosts.cfg file=/etc/nagios3/puppetconf.d/auto-services.cfg @@ -421,10 +421,10 @@ 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.lookupvar('site::nodeinfo')['muninmaster'] -%> +<% if scope.function_has_role('muninmaster') -%> file=/etc/munin/munin.conf <% end -%> -<% if scope.lookupvar('site::nodeinfo')['puppetmaster'] -%> +<% if scope.function_has_role('puppetmaster') -%> dir=8/etc/puppet <% end -%> <% if classes.include?('named::geodns') -%> @@ -451,7 +451,7 @@ file=/etc/openvpn/deb-mgmt-clients.pool <% end -%> -<% if scope.lookupvar('site::nodeinfo')['puppetmaster'] %> +<% if scope.function_has_role('puppetmaster') %> # Damn you rails apps and your shoddy packaging file=/usr/share/puppet-dashboard/public/stylesheets