puppet-php icon indicating copy to clipboard operation
puppet-php copied to clipboard

all .ini files are empty

Open ehough opened this issue 11 years ago • 3 comments

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!

ehough avatar May 24 '13 18:05 ehough

I'm having the same problem. The modules defined using php::module are not enabled.

xiaoruoruo avatar Jul 08 '13 10:07 xiaoruoruo

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'
}

Tombar avatar Jul 29 '13 21:07 Tombar

Same problem here. @Tombar : Is this the way we must follow ? It will be a pain to do this for all our php modules. :/

Cethy avatar Aug 02 '13 15:08 Cethy