1 |
class tld_redirections { |
class tld_redirections { |
2 |
define redirection { |
define domain { |
3 |
|
dns::zone { "mageia.$name": } |
4 |
|
} |
5 |
|
|
6 |
|
define redirection($managed_dns = false) { |
7 |
|
|
8 |
|
if ($managed_dns) { |
9 |
|
@@tld_redirections::domain { $name: } |
10 |
|
} |
11 |
|
|
12 |
apache::vhost_redirect { "mageia.$name": |
apache::vhost_redirect { "mageia.$name": |
13 |
url => "http://www.mageia.org/?fromtld=$name" |
url => "http://www.mageia.org/?fromtld=$name" |
14 |
} |
} |
15 |
|
|
16 |
apache::vhost_redirect { "www.mageia.$name": |
apache::vhost_redirect { "www.mageia.$name": |
17 |
url => "http://www.mageia.org/?fromtld=$name" |
url => "http://www.mageia.org/?fromtld=$name" |
18 |
} |
} |