aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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"
+ }
+ }
+}