diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-01-05 17:09:26 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-01-05 17:09:55 +0100 |
commit | 76900c28ba63444817544b8ad8b0472424845090 (patch) | |
tree | 38a8fca60d79c1c72130d647decd7fe306918959 /modules/profiles/manifests/puppetboard.pp | |
parent | Move remaining out of site.pp. (diff) | |
download | webdav_server-76900c28ba63444817544b8ad8b0472424845090.tar.gz webdav_server-76900c28ba63444817544b8ad8b0472424845090.tar.xz |
puppetboard letsencrypt.
Diffstat (limited to 'modules/profiles/manifests/puppetboard.pp')
-rw-r--r-- | modules/profiles/manifests/puppetboard.pp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/modules/profiles/manifests/puppetboard.pp b/modules/profiles/manifests/puppetboard.pp index 6262d65..a4cef20 100644 --- a/modules/profiles/manifests/puppetboard.pp +++ b/modules/profiles/manifests/puppetboard.pp @@ -32,6 +32,20 @@ class profiles::puppetboard { offline_mode => true, } + include ::letsencrypt + + ensure_packages(['python3-certbot-apache']) + + $certname = lookup('certname') + letsencrypt::certonly { $certname: + ensure => present, + domains => [ $::fqdn, ], + manage_cron => true, + plugin => 'apache', + additional_args => ['--quiet'], + post_hook_commands => ['systemctl restart apache2'], + } + class { 'puppetboard::apache::vhost': vhost_name => $::fqdn, port => 80, |