voxpupuli / voxpupuli/puppet-php
Disable extension if "absent"
Nobody has claimed this yet.
- Dominant language
- Puppet
- Stars
- 86
- Forks
- 264
- Avg merge
- 29m
- Merged PRs (30d)
- 1
Description
Currently one can set a php::extension to be absent, however this does not run the PHP CLI tool to actually disable the extension (e.g. phpdismod). This results in messages like this on every PHP invocation:
Failed loading /usr/lib/php/20131226/xdebug.so: /usr/lib/php/20131226/xdebug.so: cannot open shared object file: No such file or directory
(This is due to xdebug.ini still being active and thus pointing to this file.)
Thus I'd suggest to run phpdismod if an extension should be absent similarly to the current invocation of phpenmod.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Locate the php::extension implementation and its existing phpenmod invocation. Read how the absent state is handled, then verify that the absent path invokes the corresponding disable command and no longer leaves the extension active.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- devops
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 50/100