puppetlabs-apache icon indicating copy to clipboard operation
puppetlabs-apache copied to clipboard

Declare modules apache with Hiera

Open Jerem59 opened this issue 2 years ago • 2 comments

Hello i don't find how to declare a list of apache module in hiera I want to add remoteip, xml2enc by example but with hiera In puppet it's ok with

apache::mod { 'proxy_ajp': }
apache::mod { 'proxy_html': }
apache::mod { 'alias': }
apache::mod { 'xml2enc': }
apache::mod { 'remoteip': }

but how do it with hiera

Thx

Jerem59 avatar Oct 25 '23 07:10 Jerem59

I've been moving to automatically include the needed modules if you pass parameters to apache::vhost, but it's not complete.

You can also override apache::default_mods, but note that you then disable all default mods.

ekohl avatar Oct 25 '23 10:10 ekohl

How do you override the default_mods in hiera ? possibility to give an example with a few modules, please

With apache::vhost, you say it's possible to pass modules ? it is published ? how do ?

Thank in advance

Jerem59 avatar Oct 26 '23 07:10 Jerem59