]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/roles/manifests/init.pp
Use fqdn, not hostname
[dsa-puppet.git] / modules / roles / manifests / init.pp
1 class roles {
2
3         $roles = hiera('roles')
4
5         if $::fqdn in $roles['puppetmaster'] {
6                 include puppetmaster
7         }
8
9         if getfromhash($site::nodeinfo, 'muninmaster') {
10                 include munin::master
11         }
12
13         #if getfromhash($site::nodeinfo, 'nagiosmaster') {
14         #       include nagios::server
15         #}
16
17         if getfromhash($site::nodeinfo, 'buildd') {
18                 include buildd
19         }
20
21         if getfromhash($site::nodeinfo, 'porterbox') {
22                 include porterbox
23         }
24
25         if getfromhash($site::nodeinfo, 'bugs_mirror') {
26                 include roles::bugs_mirror
27         }
28
29         if getfromhash($site::nodeinfo, 'ftp_master') {
30                 include roles::ftp_master
31                 include roles::dakmaster
32         }
33
34         if getfromhash($site::nodeinfo, 'apache2_security_mirror') {
35                 include roles::security_mirror
36         }
37
38         if getfromhash($site::nodeinfo, 'apache2_www_mirror') {
39                 include roles::www_mirror
40         }
41
42         if getfromhash($site::nodeinfo, 'ftp.d.o') {
43                 include roles::ftp
44         }
45
46         if getfromhash($site::nodeinfo, 'ftp.upload.d.o') {
47                 include roles::ftp_upload
48         }
49
50         if getfromhash($site::nodeinfo, 'security_master') {
51                 include roles::security_master
52                 include roles::dakmaster
53         }
54
55         if getfromhash($site::nodeinfo, 'www_master') {
56                 include roles::www_master
57         }
58
59         if getfromhash($site::nodeinfo, 'keyring') {
60                 include roles::keyring
61         }
62
63         if getfromhash($site::nodeinfo, 'wiki') {
64                 include roles::wiki
65         }
66
67         if getfromhash($site::nodeinfo, 'syncproxy') {
68                 include roles::syncproxy
69         }
70
71         if getfromhash($site::nodeinfo, 'static_master') {
72                 include roles::static_master
73         }
74
75         if getfromhash($site::nodeinfo, 'static_mirror') {
76                 include roles::static_mirror
77         } elsif getfromhash($site::nodeinfo, 'static_source') {
78                 include roles::static_source
79         }
80
81         if getfromhash($site::nodeinfo, 'weblog_provider') {
82                 include roles::weblog_provider
83         }
84
85         if getfromhash($site::nodeinfo, 'mailrelay') {
86                 include roles::mailrelay
87         }
88
89         if getfromhash($site::nodeinfo, 'pubsub') {
90                 include roles::pubsub
91         }
92
93         if $::hostname in [ravel] {
94                 include roles::weblog_destination
95         }
96
97         if $::hostname in [vento] {
98                 ssl::service { 'vote.debian.org':
99                         notify => Service['apache2'],
100                 }
101         }
102
103         if $::hostname in [soler] {
104                 ssl::service { 'security-tracker.debian.org':
105                         notify => Service['apache2'],
106                 }
107         }
108
109         if $::hostname in [bendel] {
110                 ssl::service { 'lists.debian.org':
111                         notify => Service['apache2'],
112                 }
113         }
114
115         if $::hostname in [reger] {
116                 ssl::service { 'rt.debian.org':
117                         notify => Service['apache2'],
118                 }
119         }
120
121         if $::hostname in [diabelli] {
122                 ssl::service { 'sso.debian.org':
123                         notify => Service['apache2'],
124                 }
125         }
126
127         if $::hostname in [ullmann] {
128                 ssl::service { 'udd.debian.org':
129                         notify => Service['apache2'],
130                 }
131         }
132         
133         if $::hostname in [wuiet] {
134                 ssl::service { 'buildd.debian.org':
135                         notify => Service['apache2'],
136                 }
137         }
138
139         if $::hostname in [pejacevic] {
140                 ssl::service { 'piuparts.debian.org':
141                         notify => Service['apache2'],
142                 }
143         }
144
145         if $::hostname in [nono] {
146                 ssl::service { 'nm.debian.org':
147                         notify => Service['apache2'],
148                 }
149                 ssl::service { 'contributors.debian.org':
150                         notify => Service['apache2'],
151                 }
152         }
153 }