summaryrefslogtreecommitdiff
path: root/sitemodules/profiles/manifests/icinga2_master.pp
diff options
context:
space:
mode:
Diffstat (limited to 'sitemodules/profiles/manifests/icinga2_master.pp')
-rw-r--r--sitemodules/profiles/manifests/icinga2_master.pp19
1 files changed, 1 insertions, 18 deletions
diff --git a/sitemodules/profiles/manifests/icinga2_master.pp b/sitemodules/profiles/manifests/icinga2_master.pp
index d1c26e7..f1764e0 100644
--- a/sitemodules/profiles/manifests/icinga2_master.pp
+++ b/sitemodules/profiles/manifests/icinga2_master.pp
@@ -17,7 +17,6 @@
# Icinga2 node authentication
# @param api_users Icinga2 API users
# @param ca_key Icinga2 CA private key content
-# @param ca_certificate Icinga2 CA certificate content
# @param host_key Icinga2 host private key content
# @param host_certificate Icinga2 host certificate content
# @param host_csr Icinga2 host certificate signing request
@@ -50,7 +49,6 @@ class profiles::icinga2_master (
String $icinga2_ticket_salt,
Array[Hash[String, Variant[String, Tuple[String, 1]]]] $api_users,
String $ca_key,
- String $ca_certificate,
String $host_key,
String $host_certificate,
String $host_csr,
@@ -243,27 +241,12 @@ class profiles::icinga2_master (
}
file { '/var/lib/icinga2/ca/ca.crt':
ensure => file,
- content => $ca_certificate,
+ content => $::profiles::icinga2_common::ca_certificate,
owner => 'nagios',
group => 'nagios',
mode => '0644',
require => File['/var/lib/icinga2/ca'],
}
- file { '/etc/icinga2/pki':
- ensure => directory,
- owner => 'nagios',
- group => 'nagios',
- mode => '0700',
- require => Package['icinga2'],
- }
- file { '/etc/icinga2/pki/ca.crt':
- ensure => file,
- content => $ca_certificate,
- owner => 'nagios',
- group => 'nagios',
- mode => '0644',
- require => File['/etc/icinga2/pki'],
- }
file { "/etc/icinga2/pki/${facts['fqdn']}.key":
ensure => file,
content => $host_key,