Unable to set some private class parameters via resource-like declaration
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
Research direction
Start by tracing how the main php class declares php::fpm::config and how parameters such as settings and pool_purge are currently supplied through Hiera. Define how a resource-like declaration should set those parameters directly, then verify that the profile can override them without relying on Hiera data.
Written by the indexing model from the issue text.
Description
One of the key tenets of the roles and profiles design pattern is that profile classes (which folks like me write for our various environments) should set all parameters on all the component modules they make use of (such as this one), and that component modules should not get any of their data through Hiera lookup.
Here's an excerpt from the "rules" for profile classes (bold added by me for emphasis):
Profiles own all the class parameters for their component classes. If the profile omits one, that means you definitely want the default value; the component class shouldn't use a value from Hiera data. If you need to set a class parameter that was omitted previously, refactor the profile.
In some instances this simply isn't possible, for example php::fpm::config contains a number of parameters which cannot be set except via Hiera data, e.g. $settings, $pool_purge, etc.
There should be a way to set these when using the main php class via a resource-like declaration, as one would do in a profile class.
- Dominant language
- Puppet
- Stars
- 86
- Forks
- 264
- Avg merge
- 29m
- Merged PRs (30d)
- 1
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.
More from voxpupuli/puppet-php
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
voxpupuli/puppet-php#769 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 58/100
voxpupuli/puppet-php#763 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 52/100
voxpupuli/puppet-php#758 ·
-
docs good first issue
Difficulty 3/5 1-2 days Newbie friendliness 35/100
voxpupuli/puppet-php#741 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
voxpupuli/puppet-php#737 · 2 comments ·
All issues in voxpupuli/puppet-php
Similar issues
-
kind/bug Ubuntu 24
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
kubernetes-sigs/kubespray#13532 ·
-
Needs Design Priority: Wishlist
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
elementary/flatpak-platform#253 ·
-
tagbot-manual
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100