Skip to content

Commit

Permalink
Merge pull request #94 from Icinga/enhancement/confd
Browse files Browse the repository at this point in the history
Add new parameter to mange a additional config dir like conf.d
  • Loading branch information
lbetz committed Nov 23, 2023
2 parents 795d349 + 3ffb61d commit 34d5c70
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@
# Prepare to run Icinga Web 2 on the same machine. Manage a group `icingaweb2`
# and add the Icinga user to this group.
#
# @param confd
# `conf.d` is the directory where Icinga 2 stores its object configuration by default. To enable it,
# set this parameter to `true`. It's also possible to assign your own directory. This directory must be
# managed outside of this module as file resource with tag icinga2::config::file.
#
class icinga (
Boolean $ca,
String $this_zone,
Expand All @@ -55,6 +60,7 @@
Optional[Icinga::LogLevel] $logging_level = undef,
String $cert_name = $facts['networking']['fqdn'],
Boolean $prepare_web = false,
Variant[Boolean, String] $confd = false,
) {
assert_private()

Expand All @@ -78,7 +84,7 @@
}

class { 'icinga2':
confd => false,
confd => $confd,
manage_packages => $manage_packages,
constants => lookup('icinga2::constants', undef, undef, {}) + $_constants,
features => [],
Expand Down

0 comments on commit 34d5c70

Please sign in to comment.