diff options
-rw-r--r-- | deployment/websites/manifests/init.pp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/deployment/websites/manifests/init.pp b/deployment/websites/manifests/init.pp index b104b85c..83bb88b7 100644 --- a/deployment/websites/manifests/init.pp +++ b/deployment/websites/manifests/init.pp @@ -41,4 +41,23 @@ class websites { url => "http://svnweb.$domain/", } } + + 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/", + } + } } |