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