puppetlabs / puppetlabs-apache

Puppet module for the Apache httpd server, maintained by Puppet, Inc.
https://forge.puppet.com/modules/puppetlabs/apache
Apache License 2.0
364 stars 1.08k forks source link

Declare modules apache with Hiera #2489

Open Jerem59 opened 1 year ago

Jerem59 commented 1 year ago

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

ekohl commented 1 year ago

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.

Jerem59 commented 1 year ago

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