summaryrefslogtreecommitdiff
path: root/manifests/puppetboard.pp
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-01-05 18:02:30 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2022-01-05 18:05:06 +0100
commite7ff6c8ec6cba5fbad0ca557da2871cd192649e0 (patch)
tree065b4912be0a9f4c82c3fe444371184c7def729a /manifests/puppetboard.pp
parentpuppetboard http redirect. (diff)
downloadprofiles-e7ff6c8ec6cba5fbad0ca557da2871cd192649e0.tar.gz
profiles-e7ff6c8ec6cba5fbad0ca557da2871cd192649e0.tar.xz
Letsencrypt improvements
Diffstat (limited to '')
-rw-r--r--manifests/puppetboard.pp15
1 files changed, 3 insertions, 12 deletions
diff --git a/manifests/puppetboard.pp b/manifests/puppetboard.pp
index b5f6b1f..d477632 100644
--- a/manifests/puppetboard.pp
+++ b/manifests/puppetboard.pp
@@ -32,20 +32,11 @@ 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 { '::profiles::letsencrypt':
+ provider => apache,
}
+ $certname = lookup('certname')
class { 'puppetboard::apache::vhost':
vhost_name => $::fqdn,
port => 443,