saz / puppet-php

Puppet module to manage php (Apache, CLI, FPM)
Other
64 stars 38 forks source link

.ini files are removed after each reload #13

Open lunika opened 11 years ago

lunika commented 11 years ago

Hello,

when I reload vagrant, all .ini symlinks are removed :

notice: /File[/etc/php5/conf.d/20-mcrypt.ini]/ensure: removed
notice: /File[/etc/php5/conf.d/20-mysql.ini]/ensure: removed
notice: /File[/etc/php5/conf.d/20-mysqli.ini]/ensure: removed
notice: /File[/etc/php5/conf.d/20-pdo_mysql.ini]/ensure: removed
notice: /File[/etc/php5/conf.d/10-pdo.ini]/ensure: removed
notice: /File[/etc/php5/conf.d/20-xdebug.ini]/ensure: removed
notice: /File[/etc/php5/conf.d/20-curl.ini]/ensure: removed
notice: /File[/etc/php5/conf.d/20-gd.ini]/ensure: removed

I don't understand why, I need this files.

my conf is here : https://github.com/lunika/thelia-vagrant-config

thx

saz commented 11 years ago

All unmanaged files will be removed by default. Those files are unmanaged due to the file name starting with a number. This module isn't aware of such conf.d files.

Which version of php are you running?

lunika commented 11 years ago

php 5.4

skitoo commented 11 years ago

I have the same problem. What is the solution to resolve this problem ?

thx

lunika commented 11 years ago

I don't know if it's a good solution but I put all my ini files in the configuration : https://github.com/lunika/vm-php/tree/master/conf and when I want a module I specify the source :

php::module { ["curl"]:
        notify => Service['apache'],
        source => "/vagrant/conf/curl.ini"
    }

This VM works fine for me if you want to try : https://github.com/lunika/vm-php

skitoo commented 11 years ago

Thank you ! It works for me :)