Skip to content

Commit

Permalink
Merge pull request #143 from lbetz/enhancement/add-param-apache-mods
Browse files Browse the repository at this point in the history
Add new param to load additonal Apache modules
  • Loading branch information
lbetz authored Aug 5, 2024
2 parents 7dc3ead + 69b63c0 commit f984345
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
9 changes: 9 additions & 0 deletions REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -799,6 +799,7 @@ The following parameters are available in the `icinga::web` class:
* [`default_admin_pass`](#-icinga--web--default_admin_pass)
* [`db_pass`](#-icinga--web--db_pass)
* [`apache_cgi_pass_auth`](#-icinga--web--apache_cgi_pass_auth)
* [`apache_extra_mods`](#-icinga--web--apache_extra_mods)
* [`apache_config`](#-icinga--web--apache_config)
* [`db_type`](#-icinga--web--db_type)
* [`db_host`](#-icinga--web--db_host)
Expand Down Expand Up @@ -839,6 +840,14 @@ Data type: `Boolean`
Either turn on or off the apache cgi pass thru auth.
An option available since Apache v2.4.15 and required for authenticated access to the Icinga Web Api.

##### <a name="-icinga--web--apache_extra_mods"></a>`apache_extra_mods`

Data type: `Array[String[1]]`

List of addational Apache modules to load.

Default value: `[]`

##### <a name="-icinga--web--apache_config"></a>`apache_config`

Data type: `Boolean`
Expand Down
7 changes: 7 additions & 0 deletions manifests/web.pp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
# Either turn on or off the apache cgi pass thru auth.
# An option available since Apache v2.4.15 and required for authenticated access to the Icinga Web Api.
#
# @param apache_extra_mods
# List of addational Apache modules to load.
#
# @param apache_config
# Wether or not install an default Apache config for Icinga Web 2. If set to `true` Icinga is
# reachable via `/icingaweb2`.
Expand Down Expand Up @@ -60,6 +63,7 @@
Boolean $manage_database = false,
Variant[Stdlib::Host, Array[Stdlib::Host]] $api_host = 'localhost',
String $api_user = 'icingaweb2',
Array[String[1]] $apache_extra_mods = [],
Boolean $apache_config = true,
) {
# install all required php extentions
Expand Down Expand Up @@ -157,6 +161,9 @@
include apache::mod::proxy_http
include apache::mod::ssl

# Load additional modules
include prefix($apache_extra_mods, 'apache::mod::')

if $apache_config {
apache::custom_config { 'icingaweb2':
ensure => present,
Expand Down

0 comments on commit f984345

Please sign in to comment.