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

Fix for issues with ini file on Ubuntu

Open loren-osborn opened this issue 11 years ago • 5 comments

This is a first pass work around. I'm new to Puppet and really don't know what I'm doing, so please give feedback about what I missed. This is really a case of "this [seems to] work for me".

-Thanks

@loren-osborn

loren-osborn avatar Nov 24 '13 11:11 loren-osborn

Well congratulations for the code, but to be honest it looks a bit too much: to manage particular cases it's enough to set a custom value for the config_file path, so I assume that can be enough for the not common cases.

alvagante avatar Nov 24 '13 12:11 alvagante

I'm fine with manual configuration parameters, but the real problem I think I was having was that $php:: web_config_dir and $php:: config_dir weren't independent of each other, and weren't externally settable. Maybe drop the custom fact for a settable parameter, and go with the rest of the PR? (The custom fact turned out to only work AFTER php got installed after all, anyway.) Can you suggest a better strategy?

loren-osborn avatar Nov 24 '13 17:11 loren-osborn

Ok, now I understand... and yes, I'd prefer an approach based on sane defaults which can be overridden by users.

alvagante avatar Nov 25 '13 17:11 alvagante

Does this naive approach sound reasonable for you? https://github.com/example42/puppet-php/commit/70a89b0884024b94bb4f74850ac83b5f7a04fca5 Surely less sophisticated than the solution you propose but definitively simpler, and possible less error proof and maintainable.

alvagante avatar Dec 05 '13 11:12 alvagante

I'm still rather green on Puppet's syntax, and don't really have time to test this now, but it looks good in theory.

-Thanks

loren-osborn avatar Dec 07 '13 00:12 loren-osborn