Puppet Function: classification::parse_cert_info
- Defined in:
- functions/parse_cert_info.pp
- Function type:
- Puppet Language
Summary
Parse the cert name to determine what values to compare against.Overview
Parse the cert name to determine what values to compare against.
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'functions/parse_cert_info.pp', line 10
function classification::parse_cert_info(String $trusted_cert_name) >> Hash {
if $trusted_cert_name =~ /\Ai-[a-z0-9]+\Z/ {
# Temporary work around for unmigrated EC2 nodes (OPS-10034)
$values = {
'certname' => $facts['networking']['fqdn'],
'cert_hostname' => $facts['networking']['hostname'],
'cert_domain' => $facts['networking']['domain'],
}
} else {
$values = {
'certname' => $trusted['certname'],
'cert_hostname' => $trusted['hostname'],
'cert_domain' => $trusted['domain'],
}
}
$values
}
|