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
Problem when installing the same package with PECL and APT #473
Conversation
If you want to install a package with PECL and APT on the same node (ex: memcached), an error appears because Package["memcached"] is already defined. By prefixing the class name and specifying the "name" key, this problem is solved.
Hi @leopoiroux , thanks for the fix. Can you please write a unit or acceptance test for this change? |
Yes !!! All checks have passed ;) |
Can you please add an acceptance test that installs a package via APT + one via PECL? The current tests are located at https://github.com/voxpupuli/puppet-php/tree/master/spec/acceptance. You can ping us always in our IRC channel #voxpupuli on freenode or at https://puppetcommunity.slack.com if you have any questions. |
I don't know how to do that. I'm sorry. |
Do you have an example for the |
Hey @leopoiroux, any update on this? |
Hello, My example is the installation of the "memcached" extension via PECL and the installation of the "memcached" package via APT. Without my patch the class Package['memcached'] is already used by your class. Currently, I had to trick my APT installation like this. But I shouldn't have to bypass this conflict.
Thank you for your help. |
Duplicate of #320 |
Hi @leopoiroux , to be able to produce acceptance tests, the first step is to consider your are writing puppet code with your PR embedded in used module. And so, what is the working puppet code to use when we want to install a same php extension by apt and PERC ? Can you provide this peace of puppet code ? Fill free to join us on IRC or Slack #voxpupuli channel. We can provide some guidance. |
Dear @leopoiroux, thanks for the PR! This is pccibot, your friendly Vox Pupuli GitHub Bot. I noticed that your pull request contains merge conflict. Can you please rebase? You can find my sourcecode at voxpupuli/vox-pupuli-tasks |
Dear @leopoiroux, thanks for the PR! This is pccibot, your friendly Vox Pupuli GitHub Bot. I noticed that your pull request contains merge conflict. Can you please rebase? You can find my sourcecode at voxpupuli/vox-pupuli-tasks |
@leopoiroux @jonhattan this PR is not a duplicate. Feel free to reopen the PR to be able to continue the fix of issue. |
Pull Request (PR) description
If you want to install a package with PECL and APT on the same node (ex: memcached), an error appears because Package["memcached"] is already defined. By prefixing the class name and specifying the "name" key, this problem is solved.
This Pull Request (PR) fixes the following issues
Fixes #320