X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;ds=sidebyside;f=modules%2Fapache2%2Fmanifests%2Finit.pp;h=cd4f1f7bdcb7099cff15c4367627e398331f42a1;hb=d5860b0cc2d81d2332b8035b1a279a7fafda4890;hp=d8a5e4f8da97b5ef2639b5b8996df7ce469727fc;hpb=c72c72247ac93fed63f777ddfb37fe2b5a3303ba;p=mirror%2Fdsa-puppet.git diff --git a/modules/apache2/manifests/init.pp b/modules/apache2/manifests/init.pp index d8a5e4f8d..cd4f1f7bd 100644 --- a/modules/apache2/manifests/init.pp +++ b/modules/apache2/manifests/init.pp @@ -19,14 +19,7 @@ class apache2 { apache2::module { 'info': } apache2::module { 'status': } apache2::module { 'headers': } - - package { 'libapache2-mod-macro': - ensure => installed - } - - apache2::module { 'macro': - require => Package['libapache2-mod-macro'] - } + apache2::module { 'macro': } apache2::site { '00-default': site => 'default-debian.org', @@ -139,7 +132,7 @@ class apache2 { script => 'ps_', } - if $::hostname in [beach,buxtehude,picconi,pkgmirror-1and1,pkgmirror-csail] { + if $::hostname in [beach,buxtehude,picconi,pkgmirror-csail] { include apache2::dynamic } else { @ferm::rule { 'dsa-http': @@ -163,19 +156,8 @@ class apache2 { require => Package['apache2'], } - concat { '/etc/apache2/conf-available/puppet-ssl-key-pins.conf': - owner => root, - group => root, - mode => '0644', - require => Package['apache2'], - } - concat::fragment { 'puppet-ssl-key-pins-header': - target => '/etc/apache2/conf-available/puppet-ssl-key-pins.conf', - content => '', - order => 00, - notify => Exec['service apache2 reload'], - } apache2::config { 'puppet-ssl-key-pins': - nocontentok => true, + content => template('apache2/ssl-key-pins.erb'), + notify => Exec['service apache2 reload'], } }