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