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

Contents of /puppet/manifests/nodes.pp

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.30