diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2015-11-03 18:16:18 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2015-11-03 18:16:18 -0200 |
commit | 9593e616a6b6f998e24b1b8d5dd0f4fad3de617d (patch) | |
tree | 0640a68c76f57ece3d37bf6913acefd2198b319d | |
parent | c931a8cb339bf931733c7632a0827496b3751935 (diff) | |
download | puppet-php-9593e616a6b6f998e24b1b8d5dd0f4fad3de617d.tar.gz puppet-php-9593e616a6b6f998e24b1b8d5dd0f4fad3de617d.tar.bz2 |
Adds php::config (2)
-rw-r--r-- | manifests/config.pp | 4 |
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, |