From 701a193cfecbe96b10e075ba172f68193917b799 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Tue, 19 Apr 2011 10:15:18 +0000 Subject: - add redirection_instance type , to handle forums redirection --- modules/phpbb/manifests/init.pp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'modules/phpbb/manifests/init.pp') 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 -- cgit v1.2.1