-
-
Notifications
You must be signed in to change notification settings - Fork 268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
php extensions priority gets written into ini file with every puppet run which results into a service restart #713
Comments
can anybody help? we still have the problem :( |
I haven't looked at your question in too much detail yet, but Puppet 6 is no longer supported, so it is unlikely anyone could help if that is why it isn't working. |
Thanks for your answer @yakatz ! It was Puppet 6 back in April, but now we are using puppet7, so it's not a Puppet version-related problem. The problem is that the module code writes the correct configuration on the first run:
but then on the next run, it doesn't recognise that there is already a line with After some runs the files look like that and today I deleted the files with 10000 lines each
If I knew how to fix it in the code, I would contribute, but I need help finding the problem. It only happens when we use the priority as a setting for the PHP module:
|
I looked into it: |
Hi everyone and thanks for the great work on the PHP module!
we have a strange problem with priorities and PHP extensions, For example, I would like to install the pdo extension and it needs to have a prefix 10 instead of the standard 20. It seems fairly easy, to use the "; priority' setting. But now with every puppet run the module adds a new line "; priority = 10" to my .ini file ( /etc/php/8.1/mods-available/pdo.ini ) as a result, puppet restarts the php-fpm every 30 minutes while running, which causes Problems for the application. Does anybody know how to avoid that?
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
Our configuration in Hiera:
What are you seeing
every puppet run the module adds another line:
and restarts the php-fpm which causes unavailability for the application
What behaviour did you expect instead
puppet runs once and writes the .ini file, the next time puppets is running it will not change the .ini file and also not restart php-fpm
The text was updated successfully, but these errors were encountered: