summaryrefslogtreecommitdiff
path: root/sitemodules/profiles/manifests/icinga2_agent.pp
diff options
context:
space:
mode:
Diffstat (limited to 'sitemodules/profiles/manifests/icinga2_agent.pp')
-rw-r--r--sitemodules/profiles/manifests/icinga2_agent.pp14
1 files changed, 6 insertions, 8 deletions
diff --git a/sitemodules/profiles/manifests/icinga2_agent.pp b/sitemodules/profiles/manifests/icinga2_agent.pp
index e3402ce..dd7ef8c 100644
--- a/sitemodules/profiles/manifests/icinga2_agent.pp
+++ b/sitemodules/profiles/manifests/icinga2_agent.pp
@@ -6,12 +6,10 @@
# Parameters
# ----------
#
-# @param pki_api_user Icinga2 API user name for retrieving a
-# ticket for a certificate signing request
-# @param pki_api_password Icinga2 API password for retrieving a ticket
-# for a certificate signing request
-# @param master_host Icinga2 master hostname
-# @param master_ip Icinga2 master IP address
+# @param pki_api_user Icinga2 API user name for retrieving a
+# ticket for a certificate signing request
+# @param pki_api_password Icinga2 API password for retrieving a ticket
+# for a certificate signing request
#
# Examples
# --------
@@ -33,15 +31,15 @@
class profiles::icinga2_agent (
String $pki_api_user,
String $pki_api_password,
- String $master_host,
) {
include 'profiles::icinga2_common'
+
file { '/var/lib/icinga2/setup_agent.sh':
ensure => file,
content => epp('profiles/icinga2_agent/setup_agent.sh.epp', {
pki_api_user => $pki_api_user,
pki_api_password => $pki_api_password,
- master_host => $master_host,
+ master_host => $::profiles::icinga2_common::master_host,
}),
owner => 'nagios',
group => 'nagios',