diff options
Diffstat (limited to 'manifests/packages/xenial.pp')
-rw-r--r-- | manifests/packages/xenial.pp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/manifests/packages/xenial.pp b/manifests/packages/xenial.pp new file mode 100644 index 0000000..41f4420 --- /dev/null +++ b/manifests/packages/xenial.pp @@ -0,0 +1,22 @@ +class php::packages::xenial { + # The needed packages: we could also try libapache2-mod-php5.6filter + package { [ 'php5.6', 'php5.6-mysql', 'php5.6-sqlite', 'php5.6-cli', 'php5.6-curl', 'php5.6-gmp', 'libapache2-mod-php5.6' ]: + ensure => installed, + } + + # Optional packages + package { [ "php5.6-gd", "php5.6-imagick" ]: + ensure => installed, + } + + # Not available anymore + package { 'php5.6-suhosin': + ensure => absent, + } + + # The needed apache modules + apache::module { 'php5.6': + ensure => present, + require => Package['libapache2-mod-php5.6'], + } +} |