diff options
author | Michael Scherer <misc@mageia.org> | 2011-04-19 10:15:18 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2011-04-19 10:15:18 +0000 |
commit | 701a193cfecbe96b10e075ba172f68193917b799 (patch) | |
tree | 521cb40ef953c51577ca273f228684caeeaa2ad0 /modules | |
parent | b61e721415636f336c2afe31f6e1008fb2e7dea6 (diff) | |
download | puppet-701a193cfecbe96b10e075ba172f68193917b799.tar puppet-701a193cfecbe96b10e075ba172f68193917b799.tar.gz puppet-701a193cfecbe96b10e075ba172f68193917b799.tar.bz2 puppet-701a193cfecbe96b10e075ba172f68193917b799.tar.xz puppet-701a193cfecbe96b10e075ba172f68193917b799.zip |
- add redirection_instance type , to handle forums redirection
Diffstat (limited to 'modules')
-rw-r--r-- | modules/phpbb/manifests/init.pp | 11 |
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 |