1 2 3 4 5 6 7 8 9 10
class site_openvpn::dh_key { $x509_config = hiera('x509') file { '/etc/openvpn/keys/dh.pem': content => $x509_config['dh'], mode => '0644', } }