]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
why do you try to hurt me, oh puppet?
authorStephen Gran <steve@lobefin.net>
Sat, 20 Feb 2010 12:45:57 +0000 (12:45 +0000)
committerStephen Gran <steve@lobefin.net>
Sat, 20 Feb 2010 12:45:57 +0000 (12:45 +0000)
Signed-off-by: Stephen Gran <steve@lobefin.net>
modules/apache2/manifests/init.pp

index bccbd916c53cb9cde36fa6c2b11e44508001a694..f58b71052f40bdefc35c45c73f222738f47bfb7a 100644 (file)
@@ -10,6 +10,12 @@ class apache2 {
                 "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"];
+                       }
                }
        }
 
@@ -66,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"),