Skip to content

Commit

Permalink
fix #622 Managing CA directory with known certificates
Browse files Browse the repository at this point in the history
  • Loading branch information
lbetz committed Jul 6, 2020
1 parent 8703776 commit 3e3f8a7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 68 deletions.
12 changes: 8 additions & 4 deletions manifests/pki/ca.pp
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@
$group = $::icinga2::globals::group
$node_name = $::icinga2::_constants['NodeName']

$_ssl_key_path = "${::icinga2::globals::cert_dir}/${node_name}.key"
$_ssl_csr_path = "${::icinga2::globals::cert_dir}/${node_name}.csr"
$_ssl_cert_path = "${::icinga2::globals::cert_dir}/${node_name}.crt"
$_ssl_cacert_path = "${::icinga2::globals::cert_dir}/ca.crt"
$_ssl_key_path = "${cert_dir}/${node_name}.key"
$_ssl_csr_path = "${cert_dir}/${node_name}.csr"
$_ssl_cert_path = "${cert_dir}/${node_name}.crt"
$_ssl_cacert_path = "${cert_dir}/ca.crt"

File {
owner => $user,
Expand Down Expand Up @@ -68,6 +68,10 @@
$_ca_key = $ca_key
}

file { $ca_dir:
ensure => directory,
}

file { "${ca_dir}/ca.crt":
ensure => file,
content => $_ca_cert,
Expand Down
64 changes: 0 additions & 64 deletions manifests/repo.pp

This file was deleted.

0 comments on commit 3e3f8a7

Please sign in to comment.