diff options
Diffstat (limited to '')
-rw-r--r-- | manifests/init.pp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp new file mode 100644 index 0000000..0fedb85 --- /dev/null +++ b/manifests/init.pp @@ -0,0 +1,28 @@ +class letsencrypt ( + String $email, + String $default_cert_name = $::fqdn, + Stdlib::Unixpath $config_dir = '/etc/letsencrypt', + Boolean $default_cert = true, + # TODO renewal provider here? +) { + + if $default_cert { + letsencrypt::cert { $default_cert_name: + ensure => present, + } + } + + + file { $config_dir: + ensure => directory, + } + + file { "${config_dir}/cli.ini": + content = @("EOF") + email = $email + | EOF + } + + + include letsencrypt::renew::setup +} |