Open grimaz opened 5 years ago
This works for me, but in my journey to get it to work, I think I may have had the same initial confusion.
Are you making sure to include apache.modules
somewhere in your state tree? As far as I've seen, simply adding the apache:modules
pillar config doesn't affect anything without also including apache.modules
to instruct the formula to actually do something with it.
include:
- apache
- apache.config
- apache.modules
You might think simply doing this:
include:
- apache
Would install apache, look at the pillar to see what else has been configured, and then include that as well. I'm just guessing, but I don't think most formulas do that because then providing 'default' values is more complex and forces assumptions about which pieces the developer wants to use.
In other words, the developer wouldn't be able to pick and choose which states to use without further complicating configuration. For example, someone might want to use this formula to install apache and enable certain modules, but then manage their config files outside the formula. What you choose to include is how you as the developer controls such decisions.
SSH minion: Ubuntu 16.04.5 LTS