diff options
Diffstat (limited to 'deployment/websites/manifests/forum_proxy.pp')
-rw-r--r-- | deployment/websites/manifests/forum_proxy.pp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/deployment/websites/manifests/forum_proxy.pp b/deployment/websites/manifests/forum_proxy.pp new file mode 100644 index 00000000..38075893 --- /dev/null +++ b/deployment/websites/manifests/forum_proxy.pp @@ -0,0 +1,20 @@ +class buildsystem { + class forum_proxy { + $web_domain = "forums.$domain" + + host { "$web_domain": + ip => '192.168.122.131', + ensure => 'present', + } + + apache::vhost_reverse_proxy { "$web_domain": + url => "http://$web_domain/", + } + + apache::vhost_reverse_proxy { "ssl_$web_domain": + vhost => $web_domain, + use_ssl => true, + url => "http://$web_domain/", + } + } +} |