blob: 9815367ce2cf12bfb46a96bd6c555319c1821c8d (
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 => "https://www.${::domain}/?fromtld=${name}"
}
apache::vhost_redirect { "www.mageia.${name}":
url => "https://www.${::domain}/?fromtld=${name}"
}
}
# domaine owned by Florin Catalin Russen
redirection { "ro": }
# domain owned by the association
redirection { "fr": }
}
|