puppet-php
puppet-php copied to clipboard
all .ini files are empty
I am having a problem similar to this issue. Here's my config:
php::module { [ 'mysql', 'memcached' ]:
notify => Service['apache2']
}
But when I look at the actual .ini files...
$ ls /etc/php5/conf.d/
-rw-r--r-- 1 root root 0 May 24 14:10 memcached.ini
-rw-r--r-- 1 root root 0 May 24 14:10 mysql.ini
they're empty :/ Here are some relevant log entries from provisioning:
Notice: /File[/etc/php5/conf.d/xdebug.ini]/ensure: removed
Notice: /File[/etc/php5/conf.d/apc.ini]/ensure: removed
Notice: /Stage[main]/Wix::Php/Php::Module[mysql]/File[mysql.ini]/ensure: created
Notice: /Stage[main]/Wix::Php/Php::Module[memcached]/File[memcached.ini]/ensure: created
What am I doing wrong? Thanks!
I'm having the same problem. The modules defined using php::module are not enabled.
The module removes all unmanaged files and since default source is not looking for the actual ini file, i'm passing the source myself
php::module { 'mysql':
require => Package['php5-fpm'],
notify => Class['php::fpm::service'],
source => '/etc/php5/mods-available/mysql.ini'
}
Same problem here. @Tombar : Is this the way we must follow ? It will be a pain to do this for all our php modules. :/