aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2015-11-03 18:16:18 -0200
committerSilvio Rhatto <rhatto@riseup.net>2015-11-03 18:16:18 -0200
commit9593e616a6b6f998e24b1b8d5dd0f4fad3de617d (patch)
tree0640a68c76f57ece3d37bf6913acefd2198b319d
parentc931a8cb339bf931733c7632a0827496b3751935 (diff)
downloadpuppet-php-9593e616a6b6f998e24b1b8d5dd0f4fad3de617d.tar.gz
puppet-php-9593e616a6b6f998e24b1b8d5dd0f4fad3de617d.tar.bz2
Adds php::config (2)
-rw-r--r--manifests/config.pp4
1 files changed, 2 insertions, 2 deletions
diff --git a/manifests/config.pp b/manifests/config.pp
index 08b80fb..b09a68b 100644
--- a/manifests/config.pp
+++ b/manifests/config.pp
@@ -1,10 +1,10 @@
-define php::config($value, $ensure = 'present', $sapi = '') {
+define php::config($key, $value, $ensure = 'present', $sapi = '') {
file { "/etc/php5/${sapi}/conf.d/${name}.ini":
ensure => $ensure,
owner => root,
group => root,
mode => 0644,
- content => "${name}=${value}\n",
+ content => "${key}=${value}\n",
notify => $sapi ? {
'apache2' => Service['apache2'],
default => undef,