aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/config.pp7
-rw-r--r--manifests/fpm/pool.pp2
2 files changed, 6 insertions, 3 deletions
diff --git a/manifests/config.pp b/manifests/config.pp
index 93c0e5b..ca307e3 100644
--- a/manifests/config.pp
+++ b/manifests/config.pp
@@ -1,9 +1,11 @@
define php::config($series = '5', $order = '20', $value, $ensure = 'present', $sapi = 'apache2') {
if $series == '5' {
- $folder = $::php::series5::folder
+ $version = $::php::series5::version
+ $folder = $::php::series5::folder
}
else {
- $folder = $::php::series7::folder
+ $version = $::php::series7::version
+ $folder = $::php::series7::folder
}
file { "${folder}/${sapi}/conf.d/${order}-${name}.ini":
@@ -15,6 +17,7 @@ define php::config($series = '5', $order = '20', $value, $ensure = 'present', $s
require => File["${folder}/${sapi}/conf.d"],
notify => $sapi ? {
'apache2' => Service['apache2'],
+ 'fpm' => Service["php${version}-fpm"],
default => undef,
},
}
diff --git a/manifests/fpm/pool.pp b/manifests/fpm/pool.pp
index 75560db..d587dff 100644
--- a/manifests/fpm/pool.pp
+++ b/manifests/fpm/pool.pp
@@ -17,6 +17,6 @@ define php::fpm::pool(
ensure => $ensure,
source => $source,
require => Package['php-fpm'],
- notify => Service["php-${version}-fpm"],
+ notify => Service["php${version}-fpm"],
}
}