aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/init.pp9
1 files changed, 8 insertions, 1 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 0cf39ed..6c392f3 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -39,6 +39,13 @@ class php {
require => Package['php5-cli'],
}
+ file { [ '/etc/php5', '/etc/php5/apache2' ]:
+ ensure => directory,
+ owner => root,
+ group => root,
+ mode => 0755,
+ }
+
file { "/etc/php5/apache2/php.ini":
ensure => present,
owner => root,
@@ -50,6 +57,6 @@ class php {
"puppet:///modules/php/apache2/php.${::operatingsystem}.ini",
"puppet:///modules/php/apache2/php.ini" ],
notify => Service['apache2'],
- require => Package['php5'],
+ require => [ Package['php5'], File['/etc/php5/apache2'] ],
}
}