From 0b65e11a7d0d76d7eed8dfb24d1fb98c599e27ba Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Wed, 18 Sep 2024 11:11:06 +0200 Subject: [PATCH] drop web::stats we never fully deployed stats.tfm.o --- puppet/modules/web/manifests/stats.pp | 64 --------------------------- 1 file changed, 64 deletions(-) delete mode 100644 puppet/modules/web/manifests/stats.pp diff --git a/puppet/modules/web/manifests/stats.pp b/puppet/modules/web/manifests/stats.pp deleted file mode 100644 index ae4e3c8bc..000000000 --- a/puppet/modules/web/manifests/stats.pp +++ /dev/null @@ -1,64 +0,0 @@ -# Class for configuring the Apache proxy in front of Shiny Server -# -# === Parameters: -# -# $hostname:: FQDN for LetsEncrypt -# -# $webroot:: Location of the DocumentRoot (htdocs etc) folder -# -# $https:: Whether to enable the https vhost. Also redirects traffic from http -# -class web::stats( - String $hostname = 'stats.theforeman.org', - Stdlib::Absolutepath $webroot = '/var/www/vhosts/shiny/htdocs', - Boolean $https = false, -) { - include web::base - - $proxy_pass = { - 'path' => '/', - 'url' => 'http://localhost:3838/', - 'keywords' => ['nocanon'], - 'no_proxy_uris' => ['/.well-known'], - } - - letsencrypt::certonly { $hostname: - plugin => 'webroot', - domains => [$hostname], - webroot_paths => [$webroot], - } - - if $https { - apache::vhost { 'shiny-server': - port => '80', - servername => $hostname, - docroot => $webroot, - docroot_owner => $apache::user, - docroot_group => $apache::group, - redirect_dest => "https://${hostname}/", - } - apache::vhost { 'shiny_server-https': - port => 443, - servername => $hostname, - docroot => $webroot, - docroot_owner => $apache::user, - docroot_group => $apache::group, - proxy_pass => $proxy_pass, - ssl => true, - ssl_cert => "/etc/letsencrypt/live/${hostname}/fullchain.pem", - ssl_chain => "/etc/letsencrypt/live/${hostname}/chain.pem", - ssl_key => "/etc/letsencrypt/live/${hostname}/privkey.pem", - require => Letsencrypt::Certonly[$hostname], - } - } else { - apache::vhost { 'shiny_server': - port => '80', - servername => $hostname, - docroot => $webroot, - docroot_owner => $apache::user, - docroot_group => $apache::group, - proxy_pass => $proxy_pass, - } - } - -}