X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fsamhain%2Ftemplates%2Fsamhainrc.erb;h=72ee42a806aad7e8be4298e5a32870fbacea5f50;hb=224f642657a03826ba09e9430901d101a21aae25;hp=461f4874bc0b1ffa9bfe59f13391b42b0120e969;hpb=4bcee88105b9c9feaebbb118589f85a010d4b672;p=mirror%2Fdsa-puppet.git diff --git a/modules/samhain/templates/samhainrc.erb b/modules/samhain/templates/samhainrc.erb index 461f4874b..72ee42a80 100644 --- a/modules/samhain/templates/samhainrc.erb +++ b/modules/samhain/templates/samhainrc.erb @@ -110,6 +110,10 @@ 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 # # There are files in /etc that might change, thus changing the directory @@ -120,11 +124,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 @@ -143,7 +152,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 @@ -155,6 +164,7 @@ file=/etc/monit file=/etc/monit/monit.d file=/etc/pam.d file=/etc/schroot/default +file=/etc/schroot/setup.d file=/etc/sysctl.d file=/etc/syslog-ng file=/etc/stunnel @@ -165,10 +175,17 @@ 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 -%> +file=/etc/rsyncd +<%- if hostname == "sibelius" then -%> +file=/etc/tsm +file=/etc/tsm/TSM.PWD +<% end -%> +file=/etc/ssl/private + [LogFiles] ## @@ -234,6 +251,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 @@ -250,6 +269,7 @@ 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 @@ -290,7 +310,9 @@ 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="" @@ -364,6 +386,7 @@ 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 @@ -379,6 +402,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 @@ -400,7 +424,6 @@ 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 file=/etc/monit/monit.d/01puppet @@ -410,8 +433,11 @@ file=/etc/cron.d/dsa-buildd file=/etc/cron.weekly/stunnel-ekey-restart file=/etc/default/schroot file=/etc/schroot/default/nssdatabases +file=/etc/schroot/setup.d/99porterbox-extra-sources +file=/etc/schroot/setup.d/99porterbox-extra-apt-options +file=/etc/openvswitch/conf.db -<% 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 +447,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') -%> @@ -442,24 +468,37 @@ 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/servicecerts +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.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 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 + [IgnoreNone] ## ## for these files, all modifications (even access time) are reported @@ -796,6 +835,11 @@ SyslogSeverity=alert # # SetDefault = no +<% if @lsbmajdistrelease >= '9' -%> +[PortCheck] +PortCheckActive=0 +<% end -%> + ##################################################### #