X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fsamhain%2Ftemplates%2Fsamhainrc.erb;h=92ccea10a0d4005345ee4c9728b16ce86eee60f0;hb=5c3ced682c222d6dca1882b1c07eefc08f2d249b;hp=4408077889f385c7c1c7b223e840d43456c373fa;hpb=3817334616fc4370c954be504023014709fe38da;p=mirror%2Fdsa-puppet.git diff --git a/modules/samhain/templates/samhainrc.erb b/modules/samhain/templates/samhainrc.erb index 440807788..92ccea10a 100644 --- a/modules/samhain/templates/samhainrc.erb +++ b/modules/samhain/templates/samhainrc.erb @@ -67,7 +67,7 @@ # RedefIgnoreNone=(no default) # RedefUser0=(no default) # RedefUser1=(no default) -<% if nodeinfo['buildd'] -%> +<% if scope.lookupvar('site::nodeinfo')['buildd'] -%> IgnoreMissing=/etc/lvm/archive/.*.vg <% end -%> @@ -91,6 +91,7 @@ file=/etc/network/run/ifstate file=/var/state/samhain/samhain_file file=/etc/bind/zones/db.debian.net file=/etc/exim4/bsmtp +file=/etc/fake-hwclock.data <% if classes.include?("named::geodns") -%> file=/etc/bind file=/etc/bind/named.conf.acl @@ -132,7 +133,7 @@ file=/etc/nagios file=/etc/nagios/nrpe.d file=/etc/nagios/obsolete-packages-ignore.d file=/etc/bind/geodns -<% if nodeinfo['nagiosmaster'] -%> +<% if scope.lookupvar('site::nodeinfo')['nagiosmaster'] -%> file=/etc/nagios3/puppetconf.d <% end -%> file=/etc/puppet @@ -149,7 +150,7 @@ file=/etc/ferm/ file=/etc/ferm/conf.d file=/etc/ferm/dsa.d file=/etc/rc.local -<% unless lsbdistcodename == 'lenny' %> +<% unless scope.lookupvar('::lsbdistcodename') == 'lenny' %> file=/etc/unbound <% end -%> file=/etc/dsa @@ -158,9 +159,10 @@ file=/etc/dsa ## ## for these files, changes in signature, timestamps, and size are ignored ## -file=/var/run/utmp file=/etc/motd +# is on tmpfs, ignore. +#file=/var/run/utmp ##################################################################### @@ -215,7 +217,7 @@ file=/var/log/syslog ## This file might be created or removed by the system sometimes. ## file=/etc/resolv.conf -<% if nodeinfo['buildd'] -%> +<% if scope.lookupvar('site::nodeinfo')['buildd'] -%> file=/etc/dupload.conf <% end -%> file=/etc/resolv.conf.pcmcia.save @@ -264,7 +266,7 @@ file=/etc/ssh/sshd_config file=/etc/dsa/cron.ignore.dsa-puppet-stuff <%= out="" -if nodeinfo['heavy_exim'] +if scope.lookupvar('site::nodeinfo')['heavy_exim'] out = ' file=/etc/exim4/surbl_whitelist.txt file=/etc/exim4/exim_surbl.pl @@ -371,7 +373,7 @@ file=/etc/monit/monit.d/01puppet file=/etc/monit/monit.d/00debian.org file=/etc/cron.d/dsa-puppet-stuff file=/etc/cron.d/dsa-buildd -<% if nodeinfo['nagiosmaster'] -%> +<% if scope.lookupvar('site::nodeinfo')['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 @@ -381,10 +383,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 nodeinfo['muninmaster'] -%> +<% if scope.lookupvar('site::nodeinfo')['muninmaster'] -%> file=/etc/munin/munin.conf <% end -%> -<% if nodeinfo['puppetmaster'] -%> +<% if scope.lookupvar('site::nodeinfo')['puppetmaster'] -%> dir=8/etc/puppet <% end -%> <% if classes.include?('named::geodns') -%> @@ -394,10 +396,10 @@ dir=1/etc/bind/geodns dir=1/etc/bind file=/etc/bind/named.conf.debian-zones <% end -%> -<% if fqdn == "dijkstra.debian.org" -%> +<% if scope.lookupvar('::fqdn') == "dijkstra.debian.org" -%> dir=4/etc/dsa-kvm <% end -%> -<% if nodeinfo['buildd'] -%> +<% if scope.lookupvar('site::nodeinfo')['buildd'] -%> dir=3/etc/lvm <% end -%> dir=1/etc/ferm/dsa.d @@ -405,7 +407,7 @@ file=/etc/ferm/conf.d/me.conf file=/etc/ferm/conf.d/defs.conf file=/etc/ferm/ferm.conf dir=2/etc/ssl/debian -<% unless lsbdistcodename == 'lenny' %> +<% unless scope.lookupvar('::lsbdistcodename') == 'lenny' %> file=/etc/unbound/unbound.conf <% end -%>