1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
class site_stunnel::setup ($cert_name, $key, $cert, $ca_name, $ca) { include site_stunnel x509::key { $cert_name: content => $key, notify => Service['stunnel']; } x509::cert { $cert_name: content => $cert, notify => Service['stunnel']; } x509::ca { $ca_name: content => $ca, notify => Service['stunnel']; } }