X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=modules%2Fsamhain%2Ftemplates%2Fsamhainrc.erb;h=6a2517f11a39b2cd434444a807799e7b8ccdf411;hb=23b709cd5502305b328e3487c1a48042bf7d98fa;hp=1757345b6612a85e61331c73f21adb65dce6a7e7;hpb=c76fc3f47458065f4e3aeaa018a58bee01b23222;p=dsa-puppet.git diff --git a/modules/samhain/templates/samhainrc.erb b/modules/samhain/templates/samhainrc.erb index 1757345b..6a2517f1 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 -%> @@ -78,6 +78,7 @@ IgnoreMissing=/etc/lvm/archive/.*.vg file=/etc/mtab file=/etc/ssh_random_seed file=/etc/asound.conf +file=/etc/bacula/bacula-fd.conf file=/etc/localtime file=/etc/ioctl.save file=/etc/passwd.backup @@ -91,6 +92,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 @@ -102,6 +104,12 @@ file=/etc/bind/geodns/recvconf.files file=/etc/bind/named.conf.options <% end -%> file=/etc/apache2/conf.d/puppet-builddlist +<% if classes.include?("roles::static_base") -%> +file=/etc/static-components.conf +<% end -%> +<% if classes.include?("roles::static_mirror") -%> +file=/etc/apache2/sites-available/static-vhosts-simple +<% end -%> # # There are files in /etc that might change, thus changing the directory @@ -116,26 +124,30 @@ file=/etc/spamassassin/sa-update-keys # These are the directories for the files we handle with puppet file=/etc/apache2/conf.d files=/etc/apache2/mods-enabled +file=/etc/bacula file=/etc/samhain file=/etc/munin file=/etc/munin/plugins file=/etc/munin/plugin-conf.d +file=/etc/munin/munin-conf.d file=/etc/exim4 file=/etc/exim4/ssl file=/etc/apt file=/etc/apt/apt.conf.d file=/etc/apt/sources.list.d +file=/etc/apt/preferences.d file=/etc/default file=/etc/logrotate.d 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 file=/etc/cron.d +file=/etc/cron.weekly file=/usr/lib/nagios/plugins file=/usr/sbin file=/etc/monit @@ -143,22 +155,26 @@ file=/etc/monit/monit.d file=/etc/pam.d file=/etc/sysctl.d file=/etc/syslog-ng +file=/etc/stunnel file=/etc/ferm/ file=/etc/ferm/conf.d file=/etc/ferm/dsa.d file=/etc/rc.local -<% if nodeinfo.has_key?('squeeze') and nodeinfo['squeeze'] %> file=/etc/unbound -<% end -%> file=/etc/dsa +<% if scope.lookupvar('site::nodeinfo')['static_mirror'] or scope.lookupvar('site::nodeinfo')['static_source'] or scope.lookupvar('site::nodeinfo')['static_master'] -%> +file=/etc/ssh/userkeys +file=/etc/ssh/userkeys/staticsync +<% end -%> [LogFiles] ## ## 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 ##################################################################### @@ -213,7 +229,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 @@ -233,10 +249,13 @@ file=/etc/resolv.conf.dhclient-new # We handle these files with puppet - please to not be bothering us file=/etc/timezone file=/etc/motd.tail +file=/etc/update-motd.d/ +file=/etc/update-motd.d/puppet-motd file=/etc/ntp.conf file=/etc/samhain/samhainrc file=/etc/munin/munin-node.conf file=/etc/munin/plugin-conf.d/munin-node +dir=2/etc/munin/munin-conf.d file=/etc/userdir-ldap.confc file=/etc/exim4/blacklist file=/etc/exim4/host_blacklist @@ -260,9 +279,10 @@ file=/etc/exim4/ssl/thishost.key file=/etc/ssh/ssh_config file=/etc/ssh/sshd_config file=/etc/dsa/cron.ignore.dsa-puppet-stuff +file=/etc/vsftpd.conf <%= 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 @@ -319,15 +339,24 @@ file=/etc/apt/preferences file=/etc/apt/sources.list.d/volatile.list file=/etc/apt/sources.list.d/security.list file=/etc/apt/sources.list.d/buildd.list +file=/etc/apt/sources.list.d/buildd.debian.org.list +file=/etc/apt/sources.list.d/buildd.debian.org-proposed.list +file=/etc/apt/sources.list.d/buildd.debian.org-experimental.list +file=/etc/apt/sources.list.d/geoip.list +file=/etc/apt/sources.list.d/backports.debian.org.list file=/etc/apt/sources.list.d/debian.org.list +file=/etc/apt/sources.list.d/db.debian.org.list file=/etc/apt/sources.list.d/debian.restricted.list file=/etc/apt/sources.list.d/debian.list file=/etc/apt/sources.list.d/backports.org.list +file=/etc/apt/apt.conf.d/local-compression file=/etc/apt/apt.conf.d/local-recommends file=/etc/apt/apt.conf.d/local-pdiffs +file=/etc/apt/preferences.d/buildd file=/etc/puppet/puppet.conf file=/etc/default/puppet file=/etc/default/postgrey +file=/etc/default/schroot file=/etc/default/syslog-ng file=/etc/logrotate.d/exim4-paniclog file=/etc/logrotate.d/exim4-base @@ -358,6 +387,8 @@ file=/usr/lib/nagios/plugins/dsa-check-raid-areca file=/usr/lib/nagios/plugins/dsa-check-raid-sw file=/usr/lib/nagios/plugins/dsa-update-samhain-status file=/etc/sudoers +file=/etc/stunnel/puppet-ekeyd-peer.pem +file=/etc/stunnel/puppet-ekeyd.conf file=/etc/sysctl.d/mmap_min_addr.conf file=/etc/pam.d/sudo file=/etc/monit/monitrc @@ -365,7 +396,8 @@ 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'] -%> +file=/etc/cron.weekly/stunnel-ekey-restart +<% 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 @@ -373,11 +405,12 @@ file=/etc/nagios3/puppetconf.d/auto-dependencies.cfg file=/etc/nagios3/puppetconf.d/auto-hostextinfo.cfg 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') -%> @@ -387,19 +420,29 @@ dir=1/etc/bind/geodns dir=1/etc/bind file=/etc/bind/named.conf.debian-zones <% end -%> -<% if 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 +dir=1/etc/ferm/conf.d +dir=3/etc/facter file=/etc/ferm/conf.d/me.conf file=/etc/ferm/conf.d/defs.conf file=/etc/ferm/ferm.conf dir=2/etc/ssl/debian -<% if nodeinfo.has_key?('squeeze') and nodeinfo['squeeze'] %> file=/etc/unbound/unbound.conf +<% if scope.lookupvar('::fqdn') == "draghi.debian.org" -%> +file=/etc/openvpn/deb-mgmt-clients.pool +<% end -%> + + +<% if scope.lookupvar('site::nodeinfo')['puppetmaster'] %> + +# Damn you rails apps and your shoddy packaging +file=/usr/share/puppet-dashboard/public/stylesheets +file=/usr/share/puppet-dashboard/public/javascripts +file=/usr/share/puppet-dashboard/public/stylesheets/all.css +file=/usr/share/puppet-dashboard/public/javascripts/all.js <% end -%> [IgnoreNone] @@ -843,14 +886,9 @@ SetMailNum = 10 ## Recipient (max. 8) # -SetMailAddress=samhain-reports@debian.org +SetMailAddress=samhain-reports@<%= fqdn -%> -## Mail relay (IP address) -<% if nodeinfo['smarthost'].empty? -%> -SetMailRelay = master.debian.org -<% else -%> SetMailRelay = localhost -<% end -%> ## Custom subject format #