From: Silvio Rhatto Date: Wed, 8 Jun 2016 19:07:06 +0000 (-0300) Subject: Ensure /etc/php5/apache2 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=f433258eaab82107b383c8428a736461d528df80;p=puppet-php.git Ensure /etc/php5/apache2 --- 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'] ], } }