-
Notifications
You must be signed in to change notification settings - Fork 87
Update mongo.pp #74
Update mongo.pp #74
Conversation
By default, Mongo extension is not installed in "conf.d" with PHP 5.4. The "mongo.ini" is only "mods-availaible"
Have you tested this against master without the patch ? There should be a fix for the default config directory detection there |
I tested the latest version (0.9.0). With "PHP 5.4" all extensions are installed in "mods-available" and a symlink is made in "conf.d". Only extensions in "conf.d" are loaded. It seems that "pecl install mongo" did not create this symlink :( |
For information I also found that "php::dev" should be set "require" by "php::extension::mongo" |
Have you tested my patch ? |
If this is a bug with mongo, then chances are that other pecl extensions have the same problem - I wonder if it should be solved in a more generic way. What i've done in my own setup is to declare something like this define php_support::ensure_module($ensure = 'present') {
if $ensure == 'present' {
exec { "php5enmod -s cli $name":
creates => "/etc/php5/cli/conf.d/20-$name.ini",
notify => Service['supervisor']
}
if defined(Service['php5-fpm']) {
exec { "php5enmod -s fpm $name":
creates => "/etc/php5/fpm/conf.d/20-$name.ini",
notify => Service['php5-fpm']
}
}
}
if $ensure == 'absent' {
exec { "php5dismod -s cli $name":
onlyif => "test -e '/etc/php5/cli/conf.d/20-$name.ini'",
notify => Service['supervisor']
}
if defined(Service['php5-fpm']) {
exec { "php5dismod -s fpm $name":
onlyif => "test -e '/etc/php5/fpm/conf.d/20-$name.ini'",
notify => Service['php5-fpm']
}
}
}
} Wonder if it can be made more generic so it can solve the mongo issue, and other pecl installs |
Oh yes ! |
When can you push your feature ? |
Hello, I need it too for the same extension (mongo) |
@leopoiroux I'm super swamped with a huge project at work, so not sure when I will have time to dig into it :( Also I'm not sure if php5dismod and friends exist on RHEL and other platform either :) |
None of the above is going to work case priority other than 20 is needed until bug 1273225 in php5enmod is fixed. For example Solr extension is dependant on Json extension and has to be loaded after Json e.g. priority has to be set to 30. |
I ended up hacking a file { content => "; amazing inline stuff" } } to work around it - which is terrible but functional |
anyone looked at #116 recently :P |
@schkovich can you PR it for review? :) |
is this still true for 7.x ? |
@jippi most likely yes since those two enable/disable commands are debian specific. anyway, i will check it and revert. |
seems like it's stalled :) |
This reverts commit 090434d86eb7d041544fdd1278eee59334a0dea6. This fixes jippi#74.
This reverts commit db7e5db917fa3eda274bf687ad9211135a1eafb0. This fixes jippi#74.
By default, Mongo extension is not installed in "conf.d" with PHP 5.4.
The "mongo.ini" is only in "mods-availaible"