X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fsamhain%2Ftemplates%2Fsamhainrc.erb;h=e88a9ba1516df1566fe04c9cb026e97cc62346ec;hb=2c62001610ba34a92b56c5abcc0145eee7d355be;hp=6178cf5b0a4b3a09438c62fe3f8253deb76b9fb7;hpb=0381e53e8aa9da983a167439d3cc4a7621031ab5;p=mirror%2Fdsa-puppet.git diff --git a/modules/samhain/templates/samhainrc.erb b/modules/samhain/templates/samhainrc.erb index 6178cf5b0..e88a9ba15 100644 --- a/modules/samhain/templates/samhainrc.erb +++ b/modules/samhain/templates/samhainrc.erb @@ -102,11 +102,13 @@ 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 +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 -%> # @@ -114,6 +116,7 @@ file=/etc/apache2/sites-available/static-vhosts-simple # timestamps. Put it here as 'file', and in the ReadOnly section as 'dir'. # file=/etc +file=/etc/dsa file=/etc/ssh file=/etc/network/run file=/etc/bind/zones @@ -122,6 +125,7 @@ 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 +files=/etc/apache2/sites-available file=/etc/bacula file=/etc/samhain file=/etc/munin @@ -140,7 +144,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 @@ -151,6 +155,7 @@ file=/usr/sbin file=/etc/monit file=/etc/monit/monit.d file=/etc/pam.d +file=/etc/schroot/default file=/etc/sysctl.d file=/etc/syslog-ng file=/etc/stunnel @@ -160,7 +165,8 @@ file=/etc/ferm/dsa.d file=/etc/rc.local file=/etc/unbound 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/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 -%> @@ -245,6 +251,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 @@ -276,11 +283,19 @@ 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'] @@ -328,7 +343,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 @@ -357,7 +372,6 @@ 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 @@ -398,7 +412,10 @@ 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 + +<% 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 @@ -408,10 +425,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') -%> @@ -430,13 +447,15 @@ file=/etc/ferm/conf.d/me.conf file=/etc/ferm/conf.d/defs.conf file=/etc/ferm/ferm.conf dir=2/etc/ssl/debian +dir=1/etc/ssl/certs +dir=1/etc/ssl/servicecerts 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'] %> +<% if scope.function_has_role(['puppetmaster']) %> # Damn you rails apps and your shoddy packaging file=/usr/share/puppet-dashboard/public/stylesheets @@ -445,6 +464,10 @@ file=/usr/share/puppet-dashboard/public/stylesheets/all.css file=/usr/share/puppet-dashboard/public/javascripts/all.js <% end -%> +<% if classes.include?("porterbox") %> +file=/etc/cron.weekly/puppet-mail-big-homedirs +<% end -%> + [IgnoreNone] ## ## for these files, all modifications (even access time) are reported