aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/apache/manifests/init.pp9
-rw-r--r--modules/apache/templates/mod_php.conf4
2 files changed, 13 insertions, 0 deletions
diff --git a/modules/apache/manifests/init.pp b/modules/apache/manifests/init.pp
index d4038afe..3ee7b91d 100644
--- a/modules/apache/manifests/init.pp
+++ b/modules/apache/manifests/init.pp
@@ -43,6 +43,15 @@ class apache {
package { "apache-mod_php":
ensure => installed
}
+
+ file { "/etc/httpd/conf.d/mod_php.conf":
+ ensure => present,
+ owner => root,
+ group => root,
+ mode => 644,
+ require => Package['apache-conf'],
+ content => template('apache/mod_php.conf')
+ }
}
class mod_perl inherits base {
diff --git a/modules/apache/templates/mod_php.conf b/modules/apache/templates/mod_php.conf
new file mode 100644
index 00000000..492d4bba
--- /dev/null
+++ b/modules/apache/templates/mod_php.conf
@@ -0,0 +1,4 @@
+# as php insist to have this value set, let's
+# look on the system for him
+php_value date.timezone "<%= timezone %>"
+