diff --git a/manifests/hitch/ssl_cert.pp b/manifests/hitch/ssl_cert.pp index d498894..0f33404 100644 --- a/manifests/hitch/ssl_cert.pp +++ b/manifests/hitch/ssl_cert.pp @@ -1,16 +1,16 @@ # Configure hitch to support a given TLS cert -class profile::hitch::ssl_cert ( - $ssl_cert_name = $title, +define profile::hitch::ssl_cert ( + String $ssl_cert_name = $title, ){ include ::profile::ssl $ssl_cert = $::profile::ssl::certificate_paths[$ssl_cert_name] $ssl_ca = $::profile::ssl::ca_paths[$ssl_cert_name] $ssl_key = $::profile::ssl::private_key_paths[$ssl_cert_name] ::hitch::domain {$ssl_cert_name: key_source => $ssl_key, cert_source => $ssl_cert, cacert_source => $ssl_ca, } }