X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fapache2%2Fmanifests%2Finit.pp;h=fc2de44f5ab93baf4d7d2d434836e96d829ead2c;hb=560def7d3ac0c917c2d299a112a43a942434cc85;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..fc2de44f5 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"),