aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Lécureuil <neoclust@mageia.org>2017-04-25 10:40:08 +0200
committerNicolas Lécureuil <neoclust@mageia.org>2017-04-25 10:40:08 +0200
commitafe4ab9187356f6ed94fea29b85b6fbe2dc0d39f (patch)
tree13ef7b78f2121073fd164520631c20fb344898bd
parent11d4964b609cf583d87b266d148d65bc72a483cd (diff)
downloadpuppet-afe4ab9187356f6ed94fea29b85b6fbe2dc0d39f.tar
puppet-afe4ab9187356f6ed94fea29b85b6fbe2dc0d39f.tar.gz
puppet-afe4ab9187356f6ed94fea29b85b6fbe2dc0d39f.tar.bz2
puppet-afe4ab9187356f6ed94fea29b85b6fbe2dc0d39f.tar.xz
puppet-afe4ab9187356f6ed94fea29b85b6fbe2dc0d39f.zip
sucuk: add forum support
-rwxr-xr-xmanifests/nodes/sucuk.pp36
1 files changed, 36 insertions, 0 deletions
diff --git a/manifests/nodes/sucuk.pp b/manifests/nodes/sucuk.pp
index 8dafae3b..3686c1ed 100755
--- a/manifests/nodes/sucuk.pp
+++ b/manifests/nodes/sucuk.pp
@@ -93,5 +93,41 @@ node sucuk {
include tld_redirections
+ # temporary, just the time the vm is running there
+ host { 'friteuse':
+ ensure => 'present',
+ ip => '192.168.122.131',
+ host_aliases => [ "friteuse.${::domain}", "forums.${::domain}" ],
+ }
+
+ # to create all phpbb database on alamut
+ phpbb::databases { $fqdn: }
+
+ apache::vhost::redirect_ssl { "forums.${::domain}": }
+ apache::vhost_redirect { "forum.${::domain}":
+ url => "https://forums.${::domain}/",
+ }
+ apache::vhost_redirect { "ssl_forum.${::domain}":
+ url => "https://forums.${::domain}/",
+ vhost => "forum.${::domain}",
+ use_ssl => true,
+ }
+
+ # connect to ssl so the proxy do not shoke if trying to
+ # enforce ssl ( note that this has not been tested, maybe this
+ # is uneeded )
+ apache::vhost::reverse_proxy { "ssl_forums.${::domain}":
+ url => "https://forums.${::domain}/",
+ vhost => "forums.${::domain}",
+ use_ssl => true,
+ content => '
+ RewriteEngine On
+ RewriteCond %{QUERY_STRING} mode=register
+ RewriteRule .*ucp.php - [forbidden]
+ ',
+ }
+
+ include libvirtd::kvm
+
}