diff options
Diffstat (limited to 'manifests/fpm.pp')
-rw-r--r-- | manifests/fpm.pp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/manifests/fpm.pp b/manifests/fpm.pp index 4009360..daa8066 100644 --- a/manifests/fpm.pp +++ b/manifests/fpm.pp @@ -15,12 +15,11 @@ define php::fpm( ensure => $ensure, } - service { "php${version}-fpm": - ensure => $ensure ? { - 'present' => running, - default => undef, - }, - require => Package["php${version}-fpm"], + if $ensure == 'present' { + service { "php${version}-fpm": + ensure => present, + require => Package["php${version}-fpm"], + } } #apache::module { [ "proxy_fcgi", "setenvif" ]: |