Better to condition on HSM use than envrironment, SC-2670

This commit is contained in:
Patrik Holmqvist 2025-02-26 15:12:17 +01:00
parent 62c2614b43
commit bcc9ec7833
Signed by: pahol
GPG key ID: 5D5B0D4E93F77273

View file

@ -41,7 +41,8 @@ class eid::connector (
content => template("eid/connector/application-${environment}.yml.erb")
}
if ($environment == 'qa') {
# If we dont use HSM, we need the keys on disk
if (unless $use_hsm) {
sunet::snippets::secret_file {"${connector_directory}/credentials/metadata.key":
hiera_key => 'eidas_metadata_key',
base64 => true