X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fapache2%2Fmanifests%2Finit.pp;h=1775bb2946d72aab0fda5a546d6997f45cdc8244;hb=10b48b1a0f7c8906cbfeb7f77adb0c3ddd25bd98;hp=b61b89a5142603ea5fcadb7defbf85a9e11380bd;hpb=5ac06970309d659aaff62b003c05ebb4ea3d5700;p=mirror%2Fdsa-puppet.git diff --git a/modules/apache2/manifests/init.pp b/modules/apache2/manifests/init.pp index b61b89a51..1775bb294 100644 --- a/modules/apache2/manifests/init.pp +++ b/modules/apache2/manifests/init.pp @@ -136,16 +136,25 @@ class apache2 { command => "/etc/init.d/apache2 force-reload", refreshonly => true; } - case $hostname { - sibelius,stabile: { - @ferm::rule { "dsa-http": - prio => "23", - description => "Allow web access", - rule => "&SERVICE(tcp, (http https))" + chopin,franck,morricone: { + package { + "libapache2-mod-macro": ensure => installed; + } + enable_module { + "macro":; + } + file { + "/etc/apache2/conf.d/puppet-builddlist": + content => template("apache2/conf-builddlist.erb"), + require => Package["apache2"], + notify => Exec["reload-apache2"]; } } - default: { + } + + case $hostname { + busoni,duarte,holter,lindberg,master,merkel,powell,rore: { @ferm::rule { "dsa-http-limit": prio => "20", description => "limit HTTP DOS", @@ -212,6 +221,13 @@ class apache2 { rule => "proto tcp dport (http https) jump http;" } } + default: { + @ferm::rule { "dsa-http": + prio => "23", + description => "Allow web access", + rule => "&SERVICE(tcp, (http https))" + } + } } @ferm::rule { "dsa-http-v6": domain => "(ip6)",