1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
class site_config::x509::cert_key { $x509 = hiera('x509') $key = $x509['key'] $cert = $x509['cert'] x509::key { $site_config::params::cert_name: content => $key } x509::cert { $site_config::params::cert_name: content => $cert } }