X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fsamhain%2Ftemplates%2Fsamhainrc.erb;h=80a1dc144b793e10de74d2c2ca7d1348dbd18d2e;hb=a1b5a1c81f41292d5a21f4e8762aa0ae9d360679;hp=1a4308d0cc8f25eafd7fc48d56a38fcf3b3cbeaa;hpb=41cd43895c7e7eb2008aab7615fa5923fc81e651;p=mirror%2Fdsa-puppet.git diff --git a/modules/samhain/templates/samhainrc.erb b/modules/samhain/templates/samhainrc.erb index 1a4308d0c..80a1dc144 100644 --- a/modules/samhain/templates/samhainrc.erb +++ b/modules/samhain/templates/samhainrc.erb @@ -67,9 +67,8 @@ # RedefIgnoreNone=(no default) # RedefUser0=(no default) # RedefUser1=(no default) -<% if scope.lookupvar('site::nodeinfo')['buildd'] -%> IgnoreMissing=/etc/lvm/archive/.*.vg -<% end -%> +IgnoreMissing=/var/lib/puppet/clientbucket/.* [Attributes] ## @@ -104,6 +103,24 @@ 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_mirror") -%> +file=/etc/apache2/sites-available/static-vhosts-simple +file=/etc/static-clients.conf +<% elsif classes.include?("roles::static_master") -%> +file=/etc/static-clients.conf +<% elsif classes.include?("roles::static_source") -%> +file=/etc/static-clients.conf +<% end -%> +<% if classes.include?("apache2") -%> +file=/etc/apache2/conf-available/puppet-ssl-key-pins.conf +<% end -%> +file=/etc/multipath/wwids +<%- if has_variable?("bgpd") && @bgpd -%> +file=/etc/quagga/bgpd.conf +<% end -%> +<%- if has_variable?("zebra") && @zebra -%> +file=/etc/quagga/zebra.conf +<% end -%> # # There are files in /etc that might change, thus changing the directory @@ -114,10 +131,16 @@ file=/etc/ssh file=/etc/network/run file=/etc/bind/zones file=/etc/spamassassin/sa-update-keys +file=/etc/init.d/.depend.boot +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 @@ -126,6 +149,7 @@ file=/etc/munin/plugin-conf.d file=/etc/munin/munin-conf.d file=/etc/exim4 file=/etc/exim4/ssl +file=/etc/exim4/conf.d file=/etc/apt file=/etc/apt/apt.conf.d file=/etc/apt/sources.list.d @@ -136,7 +160,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 @@ -147,6 +171,10 @@ file=/usr/sbin file=/etc/monit file=/etc/monit/monit.d file=/etc/pam.d +file=/etc/schroot/default +file=/etc/schroot/dsa +file=/etc/schroot/dsa/default-mirror +file=/etc/schroot/setup.d file=/etc/sysctl.d file=/etc/syslog-ng file=/etc/stunnel @@ -156,14 +184,24 @@ file=/etc/ferm/dsa.d file=/etc/rc.local file=/etc/unbound file=/etc/dsa -<% 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 +file=/etc/rabbitmq +<% 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 -%> +<% if scope.function_has_role(['ssh.upload.d.o']) -%> +file=/etc/ssh/userkeys/buildd-uploader +<% end -%> +<% if scope.function_has_role(['buildd_master']) -%> +file=/etc/ssh/userkeys/wb-buildd.more +<% end -%> +file=/etc/rsyncd +<%- if @hostname == "sibelius" then -%> +file=/etc/tsm +file=/etc/tsm/TSM.PWD <% end -%> +file=/etc/ssl/private + [LogFiles] ## @@ -221,6 +259,7 @@ file=/var/log/syslog [IgnoreAll] +dir=-1/srv ## ## for these files, no modifications are reported ## @@ -229,6 +268,8 @@ file=/var/log/syslog file=/etc/resolv.conf <% if scope.lookupvar('site::nodeinfo')['buildd'] -%> file=/etc/dupload.conf +file=/etc/buildd/buildd.conf +file=/etc/sbuild/sbuild.conf <% end -%> file=/etc/resolv.conf.pcmcia.save file=/etc/nologin @@ -245,8 +286,12 @@ file=/etc/blkid.tab.old file=/etc/resolv.conf.dhclient-new # We handle these files with puppet - please to not be bothering us +file=/etc/dsa/pubsub.conf +file=/etc/nsswitch.conf 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 @@ -266,16 +311,26 @@ file=/etc/exim4/rbllist file=/etc/exim4/rhsbllist file=/etc/exim4/submission-domains file=/etc/exim4/virtualdomains +file=/etc/exim4/email-virtualdomains file=/etc/exim4/whitelist file=/etc/exim4/local-settings.conf file=/etc/exim4/ssl/ca.crt file=/etc/exim4/ssl/ca.crl file=/etc/exim4/ssl/thishost.crt file=/etc/exim4/ssl/thishost.key +dir=3/etc/exim4/email-virtualdomains file=/etc/ssh/ssh_config file=/etc/ssh/sshd_config file=/etc/dsa/cron.ignore.dsa-puppet-stuff file=/etc/vsftpd.conf +file=/etc/aliases +file=/etc/multipath.conf +file=/etc/static-components.conf +file=/etc/rabbitmq/rabbitmq.config +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('site::nodeinfo')['heavy_exim'] @@ -323,7 +378,7 @@ file=/etc/munin/plugins/exim_mailqueue file=/etc/munin/plugins/exim_mailstats file=/etc/munin/plugins/postfix_mailqueue file=/etc/munin/plugins/postfix_mailvolume -file=/etc/apache2/conf.d/ressource-limits +file=/etc/apache2/conf.d/resource-limits file=/etc/apache2/mods-enabled/info.conf file=/etc/apache2/mods-enabled/info.load file=/etc/apache2/mods-enabled/server.conf @@ -334,25 +389,21 @@ file=/etc/apache2/sites-available/www.debian.org 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/db.debian.org.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/apt.conf.d/local-ssl-ca-global 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 @@ -364,6 +415,7 @@ file=/etc/nagios/nrpe.d/nrpe_dsa.cfg file=/etc/nagios/nrpe.d/debianorg.cfg file=/etc/nagios/obsolete-packages-ignore file=/etc/nagios/obsolete-packages-ignore.d/hostspecific +file=/etc/nagios/check-libs.conf file=/usr/lib/nagios/plugins/dsa-check-packages file=/usr/lib/nagios/plugins/dsa-check-soas file=/usr/lib/nagios/plugins/dsa-check-mirrorsync @@ -384,15 +436,21 @@ 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/sysctl.d/mmap_min_addr.conf +file=/etc/stunnel/puppet-ekeyd.conf file=/etc/pam.d/sudo file=/etc/monit/monitrc 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 file=/etc/cron.weekly/stunnel-ekey-restart -<% if scope.lookupvar('site::nodeinfo')['nagiosmaster'] -%> +file=/etc/default/schroot +file=/etc/schroot/default/nssdatabases +file=/etc/schroot/setup.d/99builddsourceslist +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']) -%> file=/etc/nagios3/puppetconf.d/auto-hostgroups.cfg file=/etc/nagios3/puppetconf.d/auto-hosts.cfg file=/etc/nagios3/puppetconf.d/auto-services.cfg @@ -402,10 +460,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') -%> @@ -415,20 +473,45 @@ dir=1/etc/bind/geodns dir=1/etc/bind file=/etc/bind/named.conf.debian-zones <% end -%> -<% if scope.lookupvar('::fqdn') == "dijkstra.debian.org" -%> -dir=4/etc/dsa-kvm -<% end -%> -<% if scope.lookupvar('site::nodeinfo')['buildd'] -%> -dir=3/etc/lvm -<% end -%> +dir=3/etc/lvm/archive +dir=3/etc/lvm/backup 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 +file=/etc/ssl/README dir=2/etc/ssl/debian +dir=1/etc/ssl/certs +dir=1/etc/ssl/ca-debian +dir=1/etc/ssl/ca-global +file=/etc/ca-certificates.conf +file=/etc/ca-certificates-debian.conf +file=/etc/ca-certificates-global.conf +file=/etc/ssl/private/ssl-cert-snakeoil.key file=/etc/unbound/unbound.conf +<% if scope.lookupvar('::fqdn') == "draghi.debian.org" -%> +file=/etc/openvpn/deb-mgmt-clients.pool +<% end -%> +file=/etc/rsyncd/debian.secrets + + +<% if scope.function_has_role(['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 +dir=1/usr/share/puppet-dashboard/tmp/pids +<% end -%> + +<% if classes.include?("porterbox") %> +file=/etc/cron.weekly/puppet-mail-big-homedirs +<% end -%> +file=/etc/ssl/private/*.key-certchain +dir=10/var/lib/puppet/clientbucket [IgnoreNone] ## @@ -448,15 +531,24 @@ file=/etc/unbound/unbound.conf ## for these files, only access time is ignored ## dir=/usr/bin +<%- if has_variable?("merged_usr") && @merged_user -%> +file=/bin +<% else -%> dir=/bin +<% end -%> dir=/boot # # SuSE (old) has the boot init scripts in /sbin/init.d/*, # so we go 3 levels deep # +<%- if has_variable?("merged_usr") && @merged_user -%> +file=/lib +file=/sbin +<% else -%> dir=3/sbin -dir=/usr/sbin dir=/lib +<% end -%> +dir=/usr/sbin dir=3/usr/lib dir=3/usr/share # @@ -594,14 +686,14 @@ SyslogSeverity=alert # ##################################################### -# [SuidCheck] +[SuidCheck] ## ## --- Check the filesystem for SUID/SGID binaries ## -## Switch on +## Switch off # -# SuidCheckActive = yes +SuidCheckActive = 0 ## Interval for check (seconds) # @@ -766,6 +858,11 @@ SyslogSeverity=alert # # SetDefault = no +<% if scope.call_function('versioncmp', [@lsbmajdistrelease, '9']) >= 0 -%> +[PortCheck] +PortCheckActive=0 +<% end -%> + ##################################################### # @@ -871,7 +968,7 @@ SetMailNum = 10 ## Recipient (max. 8) # -SetMailAddress=samhain-reports@<%= fqdn -%> +SetMailAddress=samhain-reports@<%= @fqdn -%> SetMailRelay = localhost