aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2015-11-03 18:15:57 -0200
committerSilvio Rhatto <rhatto@riseup.net>2015-11-03 18:15:57 -0200
commitc931a8cb339bf931733c7632a0827496b3751935 (patch)
tree061a8e6e174a01cde79724c9e0cddbb297e129ce
parent4d4f55998d43a2cf177d0d5e200a1757a4839034 (diff)
downloadpuppet-php-c931a8cb339bf931733c7632a0827496b3751935.tar.gz
puppet-php-c931a8cb339bf931733c7632a0827496b3751935.tar.bz2
Adds php::config
-rw-r--r--manifests/config.pp13
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,
+ },
+ }
+}