diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2018-06-14 17:37:24 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2018-06-14 17:37:24 -0300 |
commit | c8318aff07147665f1f5887fe17c4a4a8c631124 (patch) | |
tree | 14dbf186d26881f910ea296407b12d1de26e1503 /manifests | |
parent | eeb56ded22ba8c6f2bcbac60d30ad6aae5f5db44 (diff) | |
download | puppet-php-c8318aff07147665f1f5887fe17c4a4a8c631124.tar.gz puppet-php-c8318aff07147665f1f5887fe17c4a4a8c631124.tar.bz2 |
Convert php::fpm from class to resource
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/fpm.pp | 5 | ||||
-rw-r--r-- | manifests/init.pp | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/manifests/fpm.pp b/manifests/fpm.pp index 1fb3d0c..054b27f 100644 --- a/manifests/fpm.pp +++ b/manifests/fpm.pp @@ -1,4 +1,5 @@ -class php::fpm( +define php::fpm( + $series, $ensure = 'present', ) { $series = $::php::series @@ -12,7 +13,7 @@ class php::fpm( $folder = $::php::series7::folder } - package { 'php-fpm': + package { "php${version}-fpm": ensure => $ensure, } diff --git a/manifests/init.pp b/manifests/init.pp index 7d07c87..3f8e075 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -30,7 +30,8 @@ class php( ensure => $apc, } - class { 'php::fpm': + php::fpm { $series: + series => $series, ensure => $fpm, } } |