Skip to content

Commit

Permalink
Use the correct ssl_build_dir variable
Browse files Browse the repository at this point in the history
It's a class variable, so that should be used consistently.
  • Loading branch information
ekohl committed Nov 7, 2023
1 parent 61e81f1 commit a2845bb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions manifests/ca.pp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
generate => $generate,
deploy => false,
password_file => $ca_key_password_file,
build_dir => $certs::ssl_build_dir,
build_dir => $ssl_build_dir,
}
$default_ca = Ca[$default_ca_name]

Expand All @@ -57,15 +57,15 @@
generate => $generate,
deploy => false,
custom_pubkey => $certs::server_ca_cert,
build_dir => $certs::ssl_build_dir,
build_dir => $ssl_build_dir,
}
} else {
ca { $server_ca_name:
ensure => present,
generate => $generate,
deploy => false,
custom_pubkey => "${certs::ssl_build_dir}/${default_ca_name}.crt",
build_dir => $certs::ssl_build_dir,
custom_pubkey => "${ssl_build_dir}/${default_ca_name}.crt",
build_dir => $ssl_build_dir,
}
}

Expand All @@ -86,15 +86,15 @@

file { $certs::katello_default_ca_cert:
ensure => file,
source => "${certs::ssl_build_dir}/${default_ca_name}.crt",
source => "${ssl_build_dir}/${default_ca_name}.crt",
owner => 'root',
group => 'root',
mode => '0644',
}

file { $katello_server_ca_cert:
ensure => file,
source => "${certs::ssl_build_dir}/${server_ca_name}.crt",
source => "${ssl_build_dir}/${server_ca_name}.crt",
owner => $owner,
group => $group,
mode => '0644',
Expand Down

0 comments on commit a2845bb

Please sign in to comment.