Use environment instead of instance
This commit is contained in:
parent
c09f81afbf
commit
8f8c360c69
|
@ -36,8 +36,8 @@ class cdn::ca_trust(
|
||||||
$dot_split = split($my_fqdn, '[.]')
|
$dot_split = split($my_fqdn, '[.]')
|
||||||
$my_hostname = $dot_split[0]
|
$my_hostname = $dot_split[0]
|
||||||
$dash_split = split($my_hostname,'[-]')
|
$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']}":
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue