X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fsamhain%2Ftemplates%2Fsamhainrc.erb;h=0bbd965c697e82fb0cd2746e5604a626b3cfb925;hb=8fc2f013fa1510bcb2e53f7b307d371ae99cfebb;hp=66a39c62a9d8af01c6071f7b6daf689815b3bac3;hpb=bec629e9a4027ecd47a92aa70e768c7b569dc97e;p=mirror%2Fdsa-puppet.git diff --git a/modules/samhain/templates/samhainrc.erb b/modules/samhain/templates/samhainrc.erb index 66a39c62a..0bbd965c6 100644 --- a/modules/samhain/templates/samhainrc.erb +++ b/modules/samhain/templates/samhainrc.erb @@ -103,12 +103,9 @@ 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") -%> +<% if classes.include?("roles::static_mirror_web") -%> 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") -%> +<% elsif classes.include?("staticsync::static_master") -%> file=/etc/static-clients.conf <% end -%> <% if classes.include?("apache2") -%> @@ -160,7 +157,7 @@ file=/etc/nagios file=/etc/nagios/nrpe.d file=/etc/nagios/obsolete-packages-ignore.d file=/etc/bind/geodns -<% if scope.function_has_role(['nagiosmaster']) -%> +<% if classes.include?("nagios::server") -%> file=/etc/nagios3/puppetconf.d <% end -%> file=/etc/puppet @@ -185,14 +182,7 @@ file=/etc/rc.local file=/etc/unbound file=/etc/dsa 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']) -%> +<% if classes.include?('roles::buildd_master') -%> file=/etc/ssh/userkeys/wb-buildd.more <% end -%> file=/etc/rsyncd @@ -266,7 +256,7 @@ dir=-1/srv ## This file might be created or removed by the system sometimes. ## file=/etc/resolv.conf -<% if scope.lookupvar('site::nodeinfo')['buildd'] -%> +<% if classes.include?('roles::buildd') -%> file=/etc/dupload.conf file=/etc/buildd/buildd.conf file=/etc/sbuild/sbuild.conf @@ -278,7 +268,6 @@ file=/etc/postfix/debian file=/etc/ssh/ssh_known_hosts file=/etc/ssh/ssh-rsa-shadow file=/var/lib/misc/ssh-rsa-shadow -file=/etc/.da-backup.trace file=/etc/postfix/debianhosts file=/etc/postfix/debianhosts.db file=/etc/blkid.tab @@ -321,7 +310,7 @@ 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/dsa/cron.ignore.puppet-crontab file=/etc/vsftpd.conf file=/etc/aliases file=/etc/multipath.conf @@ -331,19 +320,6 @@ 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'] - out = ' -file=/etc/exim4/surbl_whitelist.txt -file=/etc/exim4/exim_surbl.pl -file=/etc/exim4/ccTLD.txt -file=/etc/clamav-unofficial-sigs.conf -file=/etc/clamav-unofficial-sigs.dsa.conf -' -end -out -%> file=/etc/munin/plugins/bind file=/etc/munin/plugins/bind_views file=/etc/munin/plugins/cpu @@ -441,7 +417,7 @@ 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/puppet-crontab file=/etc/cron.weekly/stunnel-ekey-restart file=/etc/default/schroot file=/etc/schroot/default/nssdatabases @@ -450,7 +426,7 @@ 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']) -%> +<% if classes.include?("nagios::server") -%> file=/etc/nagios3/puppetconf.d/auto-hostgroups.cfg file=/etc/nagios3/puppetconf.d/auto-hosts.cfg file=/etc/nagios3/puppetconf.d/auto-services.cfg @@ -460,10 +436,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.function_has_role(['muninmaster']) -%> +<% if classes.include?('roles::munin_master') -%> file=/etc/munin/munin.conf <% end -%> -<% if scope.function_has_role(['puppetmaster']) -%> +<% if classes.include?('roles::puppetmaster') -%> dir=8/etc/puppet <% end -%> <% if classes.include?('named::geodns') -%> @@ -497,7 +473,7 @@ file=/etc/openvpn/deb-mgmt-clients.pool file=/etc/rsyncd/debian.secrets -<% if scope.function_has_role(['puppetmaster']) %> +<% if classes.include?('roles::puppetmaster') -%> # Damn you rails apps and your shoddy packaging file=/usr/share/puppet-dashboard/public/stylesheets @@ -507,9 +483,6 @@ 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