/[adm]/puppet/deployment/tld_redirections/manifests/init.pp
ViewVC logotype

Contents of /puppet/deployment/tld_redirections/manifests/init.pp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1807 - (show annotations) (download)
Mon Jul 4 22:20:34 2011 UTC (12 years, 9 months ago) by misc
File size: 612 byte(s)
declare tld zone on server, if needed
1 class tld_redirections {
2 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":
13 url => "http://www.mageia.org/?fromtld=$name"
14 }
15
16 apache::vhost_redirect { "www.mageia.$name":
17 url => "http://www.mageia.org/?fromtld=$name"
18 }
19 }
20
21 # domaine owned by Florin Catalin Russen
22 redirection { "ro": }
23
24 # domain owned by the association
25 redirection { "fr": }
26 }

  ViewVC Help
Powered by ViewVC 1.1.30