aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-01-07 15:48:52 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-01-07 15:48:52 -0200
commit27c8944ccae9a36652aa8f4fd4cc6e99e29c4783 (patch)
treeacccef91956336d953e66b7f0d4957f79222d505
parent2bac93263ecda54d916e5b4a8c0eb24b3dd27237 (diff)
downloadpuppet-php-27c8944ccae9a36652aa8f4fd4cc6e99e29c4783.tar.gz
puppet-php-27c8944ccae9a36652aa8f4fd4cc6e99e29c4783.tar.bz2
Package php5-suhosin not available on wheezy
-rw-r--r--manifests/init.pp10
1 files changed, 9 insertions, 1 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index fe383ed..b776ffb 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -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,