From 0b49d1f4ee5d1ee591bb4399e52a05bfc1130e71 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Mon, 4 Jul 2011 22:20:34 +0000 Subject: declare tld zone on server, if needed --- deployment/tld_redirections/manifests/init.pp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'deployment/tld_redirections') diff --git a/deployment/tld_redirections/manifests/init.pp b/deployment/tld_redirections/manifests/init.pp index b44e8bfd..92215e86 100644 --- a/deployment/tld_redirections/manifests/init.pp +++ b/deployment/tld_redirections/manifests/init.pp @@ -1,8 +1,18 @@ class tld_redirections { - define redirection { + define domain { + dns::zone { "mageia.$name": } + } + + define redirection($managed_dns = false) { + + if ($managed_dns) { + @@tld_redirections::domain { $name: } + } + 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" } -- cgit v1.2.1