aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2011-07-04 22:20:25 +0000
committerMichael Scherer <misc@mageia.org>2011-07-04 22:20:25 +0000
commit74e54fcc0d2e9d9ef70c084e00df6f5f9b39fbfd (patch)
tree0681d412043af35877bc421bc9b8634ef9dac6f6
parent58ab6a69c300c3d87ea212bd33a72460e4689462 (diff)
downloadpuppet-74e54fcc0d2e9d9ef70c084e00df6f5f9b39fbfd.tar
puppet-74e54fcc0d2e9d9ef70c084e00df6f5f9b39fbfd.tar.gz
puppet-74e54fcc0d2e9d9ef70c084e00df6f5f9b39fbfd.tar.bz2
puppet-74e54fcc0d2e9d9ef70c084e00df6f5f9b39fbfd.tar.xz
puppet-74e54fcc0d2e9d9ef70c084e00df6f5f9b39fbfd.zip
add a module for tld redirection ( see https://bugs.mageia.org/show_bug.cgi?id=1964 )
-rw-r--r--deployment/tld_redirections/manifests/init.pp10
1 files changed, 10 insertions, 0 deletions
diff --git a/deployment/tld_redirections/manifests/init.pp b/deployment/tld_redirections/manifests/init.pp
new file mode 100644
index 00000000..15020cf4
--- /dev/null
+++ b/deployment/tld_redirections/manifests/init.pp
@@ -0,0 +1,10 @@
+class tld_redirections {
+ define redirection {
+ apache::vhost_redirect { "mageia.$name":
+ url => "http://www.mageia.org/?fromtld=$name"
+ }
+ apache::vhost_redirect { "www.mageia.$name":
+ url => "http://www.mageia.org/?fromtld=$name"
+ }
+ }
+}