X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=modules%2Fapache2%2Fmanifests%2Finit.pp;h=9975b54606e6b2bb12837aed63161cc7ff1cec3e;hb=12c125eacc345b91fb22182272665cf22f00f5e7;hp=dc8c66c8d2fa6d27f6a95f72198a8d80aaa983a9;hpb=09f53cc3299c6699be7959e6aff131d0034d97f8;p=dsa-puppet.git diff --git a/modules/apache2/manifests/init.pp b/modules/apache2/manifests/init.pp index dc8c66c8..9975b546 100644 --- a/modules/apache2/manifests/init.pp +++ b/modules/apache2/manifests/init.pp @@ -6,6 +6,20 @@ class apache2 { "logrotate": ensure => installed; } + case $php5 { + "true": { package { + "php5-suhosin": ensure => installed; + } + file { "/etc/php5/conf.d/suhosin.ini": + source => [ "puppet:///apache2/per-host/$fqdn/etc/php5/conf.d/suhosin.ini", + "puppet:///apache2/common/etc/php5/conf.d/suhosin.ini" ], + require => Package["apache2", "php5-suhosin"], + notify => Exec["force-reload-apache2"]; + } + } + } + + define activate_apache_site($ensure=present, $site=$name) { case $site { "": { $base = $name } @@ -115,4 +129,8 @@ class apache2 { command => "/etc/init.d/apache2 force-reload", refreshonly => true, } + ferm::rule { "dsa-apache": + description => "Allow web access", + rule => "proto tcp mod state state (NEW) dport (80) ACCEPT" + } }