/[adm]/puppet/manifests/nodes.pp
ViewVC logotype

Contents of /puppet/manifests/nodes.pp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2257 - (show annotations) (download)
Sun Jan 15 10:12:01 2012 UTC (9 years, 8 months ago) by misc
File size: 6798 byte(s)
deploy reports by irc on valstar
1 # svn, big important server
2 node valstar {
3 # Location: IELO datacenter (marseille)
4 #
5 # TODO:
6 # - GIT server
7 # - setup maintainers database (with web interface)
8 #
9 include common::default_mageia_server
10 timezone::timezone { "Europe/Paris": }
11 include main_mirror
12 include openldap::master
13 include subversion::client
14 include subversion::server
15 include puppet::master
16 include reports::ii
17
18 include ssh::auth
19 include ssh::auth::keymaster
20 include buildsystem::mainnode
21 include buildsystem::mgacreatehome
22 include buildsystem::sync20101
23 include buildsystem::release
24 include buildsystem::maintdb
25 include buildsystem::binrepo
26 include softwarekey::base
27
28 include access_classes::committers
29 include restrictshell::allow_git
30 include restrictshell::allow_svn
31 include restrictshell::allow_pkgsubmit
32 include restrictshell::allow_maintdb
33 include restrictshell::allow_upload_bin
34 # disabled the ldap key here instead of disabling for the
35 # whole module ( see r698 )
36 class { "openssh::ssh_keys_from_ldap":
37 symlink_users => ['schedbot', 'iurt']
38 }
39
40 include mirror::mdv2010spring
41
42 include repositories::subversion
43 include repositories::git
44 include repositories::sparkleshare
45
46 include websites::svn
47
48 subversion::snapshot { "/etc/puppet":
49 source => "svn://svn.mageia.org/svn/adm/puppet/"
50 }
51
52 mirror_cleaner::orphans { "cauldron":
53 base => "/distrib/bootstrap/distrib/",
54 }
55
56 }
57
58 # web apps
59 node alamut {
60 # Location: IELO datacenter (marseille)
61 #
62 # TODO:
63 # - Review board
64 # - api
65 # - wiki
66 # - pastebin
67 # - LDAP slave
68 #
69 include common::default_mageia_server_no_smtp
70 include postgresql::server
71 postgresql::tagged { "default": }
72
73 timezone::timezone { "Europe/Paris": }
74
75 include catdap
76 include mga-mirrors
77 include epoll
78 include transifex
79 include bugzilla
80 include sympa::server
81 include postfix::primary_smtp
82
83 # temporary, just the time the vm is running there
84 host { 'friteuse':
85 ip => '192.168.122.131',
86 host_aliases => [ "friteuse.$domain", "forums.$domain" ],
87 ensure => 'present',
88 }
89
90 # to create all phpbb database on alamut
91 phpbb::databases { $fqdn: }
92
93 apache::vhost_redirect_ssl { "forums.$domain": }
94 apache::vhost_redirect { "forum.$domain":
95 url => "https://forums.$domain/",
96 }
97 apache::vhost_redirect { "ssl_forum.$domain":
98 url => "https://forums.$domain/",
99 vhost => "forum.$domain",
100 use_ssl => true,
101 }
102
103 # connect to ssl so the proxy do not shoke if trying to
104 # enforce ssl ( note that this has not been tested, maybe this
105 # is uneeded )
106 apache::vhost_reverse_proxy { "ssl_forums.$domain":
107 url => "https://forums.$domain/",
108 vhost => "forums.$domain",
109 use_ssl => true,
110 }
111
112 include tld_redirections
113
114 include libvirtd::kvm
115 include lists
116 include dns::server
117 include repositories::svn_mirror
118 include viewvc
119
120 # disabled until fixed
121 #include repositories::git_mirror
122 include gitweb
123
124 include xymon::server
125 apache::vhost_simple { "xymon.$domain":
126 location => "/var/lib/xymon/www",
127 }
128 include youri-check::report
129
130 include wikis
131 }
132
133 # buildnode
134 node jonund {
135 # Location: IELO datacenter (marseille)
136 #
137 include common::default_mageia_server
138 include buildsystem::buildnode
139 include buildsystem::iurt20101
140 timezone::timezone { "Europe/Paris": }
141 include shorewall
142 include shorewall::default_firewall
143 }
144
145 node ecosse {
146 # Location: IELO datacenter (marseille)
147 #
148 include common::default_mageia_server
149 include buildsystem::buildnode
150 timezone::timezone { "Europe/Paris": }
151 }
152
153 # backup server
154 node fiona {
155 # Location: IELO datacenter (marseille)
156 #
157 # TODO:
158 # - buy the server
159 # - install the server in datacenter
160 # - install a backup system
161 include common::default_mageia_server
162 timezone::timezone { "Europe/Paris": }
163 }
164
165 # gandi-vm
166 node krampouezh {
167 # Location: gandi VM
168 #
169 #
170 #include common::default_mageia_server
171 include common::default_mageia_server_no_smtp
172 include postfix::secondary_smtp
173 include blog::base
174 include blog::db_backup
175 include mysql::server
176 include dns::server
177 timezone::timezone { "Europe/Paris": }
178
179 openldap::slave_instance { "1":
180 rid => 1,
181 }
182
183 # Other services running on this server :
184 # - meetbot
185 }
186
187 node champagne {
188 # Location: gandi VM
189 #
190 # TODO:
191 # - setup mageia.org web site
192 #
193 include common::default_mageia_server
194 timezone::timezone { "Europe/Paris": }
195 include blog::files-bots
196 include blog::files_backup
197 include planet
198 include websites::static
199 include websites::hugs
200 include websites::releases
201 include websites::www
202 include dashboard::base
203 include access_classes::web
204 include openssh::ssh_keys_from_ldap
205 }
206
207 node friteuse {
208 # Location: VM hosted by nfrance (toulouse)
209 #
210
211 include common::default_mageia_server
212 timezone::timezone { "Europe/Paris": }
213 include forums
214 }
215
216 node rabbit {
217 # Location: Server offered by Dedibox (paris)
218 #
219 # - used to create isos ( and live, and so on )
220 #
221 include common::default_mageia_server
222 timezone::timezone { "Europe/Paris": }
223 include bcd::base
224 include bcd::web
225 include bcd::rsync
226 include draklive::base
227 include access_classes::iso_makers
228 include openssh::ssh_keys_from_ldap
229 include mirror::mageia
230 include mirror::newrelease
231 include releasekey::base
232 include youri-check::check
233
234 # for testing iso quickly
235 include libvirtd::kvm
236 libvirtd::group_access { "mga-iso_makers": }
237
238 # to ease the creation of test iso
239 $netinst_iso_path = "/var/lib/libvirt/netboot"
240
241 file { $netinst_iso_path:
242 ensure => directory,
243 }
244
245 libvirtd::storage { "netinst_iso":
246 path => $netinst_iso_path,
247 require => File[$netinst_iso_path],
248 }
249
250 include auto_installation::download
251 auto_installation::download::netboot_images { "mandriva":
252 path => $netinst_iso_path,
253 versions => ["2010.0","2010.1"],
254 archs => ['i586','x86_64'],
255 mirror_path => "ftp://ftp.free.fr/pub/Distributions_Linux/MandrivaLinux/official/%{version}/%{arch}/install/images/",
256 files => ['boot.iso'],
257 require => File[$netinst_iso_path],
258 }
259
260 # for testing pxe support of libvirt
261 include auto_installation::variables
262 libvirtd::network {"pxe_network":
263 network => "192.168.123.0/24",
264 tftp_root => $auto_installation::variables::pxe_dir,
265 bridge_name => "virbr1",
266 }
267
268 include auto_installation::pxe_menu
269 auto_installation::mandriva_installation_entry { "pxe_test":
270 version => "2010.1",
271 arch => "i586",
272 }
273 }

  ViewVC Help
Powered by ViewVC 1.1.28