aboutsummaryrefslogtreecommitdiffstats
path: root/deployment/websites/manifests
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2011-02-16 17:30:03 +0000
committerMichael Scherer <misc@mageia.org>2011-02-16 17:30:03 +0000
commit2ec5ebb691f35e164b23da02cc760b11ef60155a (patch)
tree670d6e5adda9a8d130dbf8df1b768ed95fe7866d /deployment/websites/manifests
parent89d9dc25e57849ad7d0b9be7d17c0e45b2edf00b (diff)
downloadpuppet-2ec5ebb691f35e164b23da02cc760b11ef60155a.tar
puppet-2ec5ebb691f35e164b23da02cc760b11ef60155a.tar.gz
puppet-2ec5ebb691f35e164b23da02cc760b11ef60155a.tar.bz2
puppet-2ec5ebb691f35e164b23da02cc760b11ef60155a.tar.xz
puppet-2ec5ebb691f35e164b23da02cc760b11ef60155a.zip
- add a class for proxying the forum from alamut to friteuse ( while friteuse is on our
server )
Diffstat (limited to 'deployment/websites/manifests')
-rw-r--r--deployment/websites/manifests/init.pp19
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/",
+ }
+ }
}