Skip to content

Commit

Permalink
Introduce $default_ca_path variable in certs::ca
Browse files Browse the repository at this point in the history
This is reused a few times and makes it easier to follow what's related.
  • Loading branch information
ekohl committed Sep 12, 2024
1 parent ec68db9 commit 56f8921
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions manifests/ca.pp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
String $ca_key_password = $certs::ca_key_password,
Stdlib::Absolutepath $ca_key_password_file = $certs::ca_key_password_file,
) {
$default_ca_path = "${certs::ssl_build_dir}/${default_ca_name}.crt"
$server_ca_path = "${certs::ssl_build_dir}/${server_ca_name}.crt"

file { $ca_key_password_file:
Expand Down Expand Up @@ -56,7 +57,7 @@
} else {
file { $server_ca_path:
ensure => file,
source => "${certs::ssl_build_dir}/${default_ca_name}.crt",
source => $default_ca_path,
owner => 'root',
group => 'root',
mode => '0644',
Expand All @@ -74,7 +75,7 @@
if $deploy {
file { $certs::katello_default_ca_cert:
ensure => file,
source => "${certs::ssl_build_dir}/${default_ca_name}.crt",
source => $default_ca_path,
owner => 'root',
group => 'root',
mode => '0644',
Expand Down

0 comments on commit 56f8921

Please sign in to comment.