aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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,
+ },
+ }
+}