X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;ds=sidebyside;f=modules%2Fapache2%2Fmanifests%2Finit.pp;h=cd2a4e40add703b7b7b5c0957fe19c558970357e;hb=78ceca7ca6540a83d24a89016263235c923543db;hp=777560d305266445f5c6cdef14e6e3868d4e7c1c;hpb=4a03736cf418f4cd1c5e02e3ab59400cb1810231;p=mirror%2Fdsa-puppet.git diff --git a/modules/apache2/manifests/init.pp b/modules/apache2/manifests/init.pp index 777560d30..cd2a4e40a 100644 --- a/modules/apache2/manifests/init.pp +++ b/modules/apache2/manifests/init.pp @@ -6,9 +6,16 @@ class apache2 { "logrotate": ensure => installed; } - case $php { - package { - "php5-suhosin": 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"]; + } } } @@ -65,16 +72,6 @@ class apache2 { "000-default": ensure => absent; } - case $php5suhosin { - "true": { 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"]; - } - } - } - file { "/etc/apache2/conf.d/ressource-limits": content => template("apache2/ressource-limits.erb"), @@ -132,4 +129,9 @@ class apache2 { command => "/etc/init.d/apache2 force-reload", refreshonly => true, } + @ferm::rule { "dsa-apache": + domain => "(ip ip6)", + description => "Allow web access", + rule => "proto tcp mod state state (NEW) dport (80) ACCEPT" + } }