blob: 92215e863c12d0df7f82470bc64dbc810bc30ee7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
class tld_redirections {
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"
}
}
# domaine owned by Florin Catalin Russen
redirection { "ro": }
# domain owned by the association
redirection { "fr": }
}
|