]> gitweb.fluxo.info Git - puppet-php.git/commitdiff
Ensure /etc/php5/apache2
authorSilvio Rhatto <rhatto@riseup.net>
Wed, 8 Jun 2016 19:07:06 +0000 (16:07 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Wed, 8 Jun 2016 19:07:06 +0000 (16:07 -0300)
manifests/init.pp

index 0cf39ed99bc776ae8fdbce750ef5c95ebefdc85e..6c392f3b7aca5e44bf14d0f3c0bb91cd47b0166f 100644 (file)
@@ -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'] ],
   }
 }