diff options
author | Michael Scherer <misc@mageia.org> | 2011-07-04 22:20:34 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2011-07-04 22:20:34 +0000 |
commit | 0b49d1f4ee5d1ee591bb4399e52a05bfc1130e71 (patch) | |
tree | 920359d41ae65e67e066e13f7271beb24455d98d /deployment/tld_redirections | |
parent | a110a8db3b7c7c303275857249bf5ae2929a7e08 (diff) | |
download | puppet-0b49d1f4ee5d1ee591bb4399e52a05bfc1130e71.tar puppet-0b49d1f4ee5d1ee591bb4399e52a05bfc1130e71.tar.gz puppet-0b49d1f4ee5d1ee591bb4399e52a05bfc1130e71.tar.bz2 puppet-0b49d1f4ee5d1ee591bb4399e52a05bfc1130e71.tar.xz puppet-0b49d1f4ee5d1ee591bb4399e52a05bfc1130e71.zip |
declare tld zone on server, if needed
Diffstat (limited to 'deployment/tld_redirections')
-rw-r--r-- | deployment/tld_redirections/manifests/init.pp | 12 |
1 files changed, 11 insertions, 1 deletions
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" } |