diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2015-11-03 18:15:57 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2015-11-03 18:15:57 -0200 |
commit | c931a8cb339bf931733c7632a0827496b3751935 (patch) | |
tree | 061a8e6e174a01cde79724c9e0cddbb297e129ce | |
parent | 4d4f55998d43a2cf177d0d5e200a1757a4839034 (diff) | |
download | puppet-php-c931a8cb339bf931733c7632a0827496b3751935.tar.gz puppet-php-c931a8cb339bf931733c7632a0827496b3751935.tar.bz2 |
Adds php::config
-rw-r--r-- | manifests/config.pp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/manifests/config.pp b/manifests/config.pp new file mode 100644 index 0000000..08b80fb --- /dev/null +++ b/manifests/config.pp @@ -0,0 +1,13 @@ +define php::config($value, $ensure = 'present', $sapi = '') { + file { "/etc/php5/${sapi}/conf.d/${name}.ini": + ensure => $ensure, + owner => root, + group => root, + mode => 0644, + content => "${name}=${value}\n", + notify => $sapi ? { + 'apache2' => Service['apache2'], + default => undef, + }, + } +} |