]> gitweb.fluxo.info Git - puppet-php.git/commitdiff
Package php5-suhosin not available on wheezy
authorSilvio Rhatto <rhatto@riseup.net>
Mon, 7 Jan 2013 17:48:52 +0000 (15:48 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Mon, 7 Jan 2013 17:48:52 +0000 (15:48 -0200)
manifests/init.pp

index fe383ed2fc0600700e2d9dc2e68c7ce9cddf2017..b776ffb2724aa3b5db98abf2aa066ebcbf43a2b1 100644 (file)
@@ -20,10 +20,18 @@ class php {
   include pear
 
   # The needed packages
-  package { [ "php5", "php5-mysql", "php5-cli", "php5-ffmpeg", "php5-curl", "php5-suhosin", "php5-gmp" ]:
+  package { [ "php5", "php5-mysql", "php5-cli", "php5-ffmpeg", "php5-curl", "php5-gmp" ]:
     ensure => installed,
   }
 
+  # Not available on wheezy
+  package { "php5-suhosin":
+    ensure => $lsbdistcodename ? {
+      'wheezy' => absent,
+      default  => present,
+    },
+  }
+
   # The needed apache modules
   apache::module { "php5":
     ensure  => present,