Use environment instead of instance

This commit is contained in:
Patrik Lundin 2024-10-09 11:59:51 +02:00
parent c09f81afbf
commit 8f8c360c69
Signed by: patlu
GPG key ID: A0A812BA2249F294

View file

@ -36,8 +36,8 @@ class cdn::ca_trust(
$dot_split = split($my_fqdn, '[.]')
$my_hostname = $dot_split[0]
$dash_split = split($my_hostname,'[-]')
$instance = $dash_split[0]
$environment = $dash_split[2]
exec { "/opt/cdn-ca-trust/scripts/trust-step-ca ${ca_root[$instance]['url']} ${ca_root[$instance]['fp']}":
exec { "/opt/cdn-ca-trust/scripts/trust-step-ca ${ca_root[$environment]['url']} ${ca_root[$environment]['fp']}":
}
}