aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-06-08 16:07:06 -0300
committerSilvio Rhatto <rhatto@riseup.net>2016-06-08 16:07:06 -0300
commitf433258eaab82107b383c8428a736461d528df80 (patch)
treeca728e88e5c752b5b5bc4c876ad66b83afb57912 /manifests
parentaf85616761968bf865cf5018e7a76a17e77cdd64 (diff)
downloadpuppet-php-f433258eaab82107b383c8428a736461d528df80.tar.gz
puppet-php-f433258eaab82107b383c8428a736461d528df80.tar.bz2
Ensure /etc/php5/apache2
Diffstat (limited to 'manifests')
-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'] ],
}
}