diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-01-05 17:27:21 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-01-05 17:52:02 +0100 |
commit | 05a8b4d64a4d3f4711b25f2888aaa4b6e7d0f2c3 (patch) | |
tree | c875971a2504967b09c06e1723849787eb33ab7d /manifests/puppetboard.pp | |
parent | puppetboard use ssl. (diff) | |
download | profiles-05a8b4d64a4d3f4711b25f2888aaa4b6e7d0f2c3.tar.gz profiles-05a8b4d64a4d3f4711b25f2888aaa4b6e7d0f2c3.tar.xz |
puppetboard http redirect.
Diffstat (limited to 'manifests/puppetboard.pp')
-rw-r--r-- | manifests/puppetboard.pp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/manifests/puppetboard.pp b/manifests/puppetboard.pp index 7b436c2..b5f6b1f 100644 --- a/manifests/puppetboard.pp +++ b/manifests/puppetboard.pp @@ -54,4 +54,13 @@ class profiles::puppetboard { ssl_key => "/etc/letsencrypt/live/${certname}/privkey.pem", ssl_chain => "/etc/letsencrypt/live/${certname}/fullchain.pem", } + + apache::vhost { "http-redirect": + servername => $::fqdn, + port => 80, + redirect_source => ['/'], + redirect_dest => ["https://${::fqdn}/"], + redirect_status => ['permanent'], + docroot => false, + } } |