aboutsummaryrefslogtreecommitdiffstats
path: root/modules/phpbb/manifests/init.pp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/phpbb/manifests/init.pp')
-rw-r--r--modules/phpbb/manifests/init.pp11
1 files changed, 11 insertions, 0 deletions
diff --git a/modules/phpbb/manifests/init.pp b/modules/phpbb/manifests/init.pp
index b039a660..fdc49d64 100644
--- a/modules/phpbb/manifests/init.pp
+++ b/modules/phpbb/manifests/init.pp
@@ -69,6 +69,17 @@ class phpbb {
}
}
+ define redirection_instance($url) {
+ $lang = $name
+ file { "/etc/httpd/conf/vhosts.d/forums.d/redirect_$name.conf":
+ ensure => present,
+ owner => root,
+ group => root,
+ mode => 644,
+ content => template("phpbb/forums_redirect.conf"),
+ }
+ }
+
# TODO find a way to avoid all the phpbb::base prefix
define instance() {
include phpbb::base