thias / puppet-php

Puppet module to manage PHP
Other
49 stars 67 forks source link

php::mod_php5 doesn't work with debian conf-available and a2enconf #38

Open sebastianwagner opened 10 years ago

sebastianwagner commented 10 years ago

Debian now seems to use a similar technique for configuration files as it already does for modules and sites: a2enconf allows to enable(speak: symlink) config files residing in /etc/apache2/conf-available/. So it is not ensured that the directory conf.d exists anymore. This makes puppet fail:

Error: /Stage[main]/Php::Mod_php5/File[/etc/apache2/conf.d/php.conf]/ensure: change from absent to file failed: Could not set 'file' on ensure: No such file or directory - /etc/apache2/conf.d/php.conf20140617-9548-e4ko7 at 26:/tmp/vagrant-puppet-1/modules-0/php/manifests/mod_php5.pp

A workaround would be to create this directory manually.