aboutsummaryrefslogtreecommitdiff
path: root/manifests/series5/packages/default.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-11-02 13:01:00 -0200
committerSilvio Rhatto <rhatto@riseup.net>2017-11-02 13:01:00 -0200
commit5f3ed06fc85c3c9cb8d80c03d157bcc29bf75798 (patch)
tree6e89619ec894e6649d31cfd6743211e5e2498d17 /manifests/series5/packages/default.pp
parent94fb97c148af076ea4c0e3ec710847b335761f30 (diff)
downloadpuppet-php-5f3ed06fc85c3c9cb8d80c03d157bcc29bf75798.tar.gz
puppet-php-5f3ed06fc85c3c9cb8d80c03d157bcc29bf75798.tar.bz2
Support both PHP 5 and 7, defaults to 5
Diffstat (limited to 'manifests/series5/packages/default.pp')
-rw-r--r--manifests/series5/packages/default.pp22
1 files changed, 22 insertions, 0 deletions
diff --git a/manifests/series5/packages/default.pp b/manifests/series5/packages/default.pp
new file mode 100644
index 0000000..f16e03e
--- /dev/null
+++ b/manifests/series5/packages/default.pp
@@ -0,0 +1,22 @@
+class php::series5::packages::default {
+ # The needed packages: we could also try libapache2-mod-php5filter
+ package { [ 'php5', 'php5-mysql', 'php5-sqlite', 'php5-cli', 'php5-curl', 'php5-gmp', 'libapache2-mod-php5' ]:
+ ensure => installed,
+ }
+
+ # Optional packages
+ package { [ "php5-gd", "php5-imagick" ]:
+ ensure => installed,
+ }
+
+ # Not available anymore
+ package { 'php5-suhosin':
+ ensure => absent,
+ }
+
+ # The needed apache modules
+ apache::module { 'php5':
+ ensure => present,
+ require => Package['libapache2-mod-php5'],
+ }
+}