diff options
-rw-r--r-- | hieradata/common.yaml | 15 | ||||
-rw-r--r-- | sitemodules/profiles/manifests/icinga2_agent.pp | 40 | ||||
-rw-r--r-- | sitemodules/roles/manifests/puppetmaster.pp | 1 |
3 files changed, 56 insertions, 0 deletions
diff --git a/hieradata/common.yaml b/hieradata/common.yaml index 48943b9..b020b14 100644 --- a/hieradata/common.yaml +++ b/hieradata/common.yaml @@ -128,3 +128,18 @@ profiles::base::users: profiles::nrpe_agent::allowed_hosts: - 172.16.2.18 - 10.0.0.18 + +profiles::icinga2_agent::pki_api_user: client-pki-ticket +profiles::icinga2_agent::pki_api_password: > + ENC[PKCS7,MIIBmQYJKoZIhvcNAQcDoIIBijCCAYYCAQAxggEhMIIBHQIBADAFMAACAQEw + DQYJKoZIhvcNAQEBBQAEggEAjrore6zK7GJXbP9FZ6ORUWvpt7FS2fXHiwB+ + ocTcmP7F8SnyCjYZ/a6S7eXPJVffZ6pZazozfUmW6HXOVFcSrZZdccEcZbFt + ZnQb9tp63BCHHGwqI/oj0jVdInaTXE1i4yQTjev/twzblmHIrEndfZnZzyAd + 61cnYuv8og5p5pccGYYoXBcPcguB9KtspfYL/eEwD4xNvqF/QlkAEXKZ5o39 + p9j24ao57Iwzy4o/dgI+MOr9NIMEtmXoIb3Ake3J7CaN26IuP22MTivFWf5p + 1vlMA69snYOifTKIw76eNACYCz+KA87dWDNEsR2OtCCbQ2EA1nrAXTdlYWdE + RmIpGTBcBgkqhkiG9w0BBwEwHQYJYIZIAWUDBAEqBBAAs0An2QOnxac51GTU + gCG3gDAX0FOzW/oWi8c1PDIFb+0B4cTQRi9gP2fzugKu0bp0FBB7akZV6Zx0 + T5GP0WQAzU0=] +profiles::icinga2_agent::master_host: monitor.cacert.org +profiles::icinga2_agent::master_ip: 10.0.0.18 diff --git a/sitemodules/profiles/manifests/icinga2_agent.pp b/sitemodules/profiles/manifests/icinga2_agent.pp new file mode 100644 index 0000000..436cb76 --- /dev/null +++ b/sitemodules/profiles/manifests/icinga2_agent.pp @@ -0,0 +1,40 @@ +# Class: profiles::icinga2_agent +# ============================== +# +# This class installs and configures an Icinga2 agent. +# +# 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 +# +# Examples +# -------- +# +# @example +# class roles::myhost { +# include profiles::icinga2_agent +# } +# +# Authors +# ------- +# +# Jan Dittberner <jandd@cacert.org> +# +# Copyright +# --------- +# +# Copyright 2019 Jan Dittberner +class profiles::icinga2_agent ( + String $pki_api_user, + String $pki_api_password, + String $master_host, + String $master_ip, +) { + include 'profiles::icinga2_common' +} diff --git a/sitemodules/roles/manifests/puppetmaster.pp b/sitemodules/roles/manifests/puppetmaster.pp index db57744..b839cdb 100644 --- a/sitemodules/roles/manifests/puppetmaster.pp +++ b/sitemodules/roles/manifests/puppetmaster.pp @@ -24,5 +24,6 @@ class roles::puppetmaster { include profiles::base include profiles::rsyslog include profiles::nrpe_agent + include profiles::icinga2_agent include profiles::puppet_server } |