summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-01-05 17:09:26 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2022-01-05 17:09:55 +0100
commit76900c28ba63444817544b8ad8b0472424845090 (patch)
tree38a8fca60d79c1c72130d647decd7fe306918959
parentMove remaining out of site.pp. (diff)
downloadwebdav_server-76900c28ba63444817544b8ad8b0472424845090.tar.gz
webdav_server-76900c28ba63444817544b8ad8b0472424845090.tar.xz
puppetboard letsencrypt.
-rw-r--r--modules/profiles/manifests/puppetboard.pp14
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,