Mercurial > repos > other > Puppet
diff modules/website/manifests/php.pp @ 69:565b788f7ac1
Allow for specifying extra PHP packages (e.g. to enable Posix)
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 17 Oct 2015 15:03:45 +0000 |
parents | 5ba2ddf53c29 |
children | 33682e5b34fc |
line wrap: on
line diff
--- a/modules/website/manifests/php.pp Sun Oct 11 19:03:30 2015 +0000 +++ b/modules/website/manifests/php.pp Sat Oct 17 15:03:45 2015 +0000 @@ -1,6 +1,7 @@ class website::php( $suffix = '', $opcache = undef, + $extras = [], ) { File { notify => Service['httpd'], @@ -8,6 +9,15 @@ Package { notify => Service['httpd'], } + + define website::php::extra_php ($pkg = $title) { + package { "php${website::php::suffix}-${pkg}": + ensure => latest, + } + } + + website::php::extra_php { $extras: } + $packages = [ "php${suffix}", "php${suffix}-mcrypt", "php${suffix}-mbstring", "php${suffix}-xml", "php${suffix}-gd" ] package { $packages: ensure => latest,