aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-07-05 15:57:46 -0300
committerSilvio Rhatto <rhatto@riseup.net>2016-07-05 15:57:46 -0300
commitc51d63620a67dc6bba6d3249499d025e15ce8b37 (patch)
tree183198f883cedf9e04c29d6c48108c31a6401a58
parent35c7fd43602d7f5e4882246cb8a9d4b03cdf8c00 (diff)
downloadpuppet-php-c51d63620a67dc6bba6d3249499d025e15ce8b37.tar.gz
puppet-php-c51d63620a67dc6bba6d3249499d025e15ce8b37.tar.bz2
Adds order param into php::config
-rw-r--r--manifests/config.pp6
1 files changed, 3 insertions, 3 deletions
diff --git a/manifests/config.pp b/manifests/config.pp
index d63821b..287cd0c 100644
--- a/manifests/config.pp
+++ b/manifests/config.pp
@@ -1,10 +1,10 @@
-define php::config($key, $value, $ensure = 'present', $sapi = 'apache2') {
- file { "${::php::folder}/${sapi}/conf.d/${name}.ini":
+define php::config($order, $value, $ensure = 'present', $sapi = 'apache2') {
+ file { "${::php::folder}/${sapi}/conf.d/${order}-${name}.ini":
ensure => $ensure,
owner => root,
group => root,
mode => 0644,
- content => "${key}=${value}\n",
+ content => "${name}=${value}\n",
require => File["${::php::folder}/${sapi}"],
notify => $sapi ? {
'apache2' => Service['apache2'],