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

Contents of /puppet/manifests/nodes.pp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1863 - (show annotations) (download)
Tue Jul 19 23:19:43 2011 UTC (12 years, 8 months ago) by misc
File size: 6737 byte(s)
mirror git on alamut
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 include repositories::git_mirror
119
120 include xymon::server
121 apache::vhost_simple { "xymon.$domain":
122 location => "/var/lib/xymon/www",
123 }
124 include youri-check::report
125 }
126
127 # buildnode
128 node jonund {
129 # Location: IELO datacenter (marseille)
130 #
131 include common::default_mageia_server
132 include buildsystem::buildnode
133 include buildsystem::iurt20101
134 timezone::timezone { "Europe/Paris": }
135 include shorewall
136 include shorewall::default_firewall
137 include testvm
138 }
139
140 node ecosse {
141 # Location: IELO datacenter (marseille)
142 #
143 include common::default_mageia_server
144 include buildsystem::buildnode
145 timezone::timezone { "Europe/Paris": }
146 }
147
148 # backup server
149 node fiona {
150 # Location: IELO datacenter (marseille)
151 #
152 # TODO:
153 # - buy the server
154 # - install the server in datacenter
155 # - install a backup system
156 include common::default_mageia_server
157 }
158
159 # gandi-vm
160 node krampouezh {
161 # Location: gandi VM
162 #
163 # TODO:
164 # - secondary MX
165 # - LDAP slave (for external traffic maybe)
166 #
167 #include common::default_mageia_server
168 include common::default_mageia_server_no_smtp
169 include postfix::secondary_smtp
170 include blog::base
171 include blog::db_backup
172 include mysql::server
173 include dns::server
174 timezone::timezone { "Europe/Paris": }
175
176 openldap::slave_instance { "1":
177 rid => 1,
178 }
179
180 # Other services running on this server :
181 # - meetbot
182 }
183
184 node champagne {
185 # Location: gandi VM
186 #
187 # TODO:
188 # - setup mageia.org web site
189 # - setup blog
190 # - setup planet
191 #
192 include common::default_mageia_server
193 timezone::timezone { "Europe/Paris": }
194 include blog::files-bots
195 include blog::files_backup
196 include planet
197 include websites::static
198 include websites::hugs
199 include websites::releases
200 include dashboard::base
201 include access_classes::web
202 include openssh::ssh_keys_from_ldap
203 }
204
205 node friteuse {
206 # Location: VM hosted by nfrance (toulouse)
207 #
208 # TODO:
209 # - setup forum
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 libvirtd::network {"pxe_network":
262 network => "192.168.123.0/24",
263 tftp_root => $auto_installation::variables::pxe_dir,
264 bridge_name => "virbr1",
265 }
266
267 include auto_installation::pxe_menu
268 auto_installation::mandriva_installation_entry { "pxe_test":
269 version => "2010.1",
270 arch => "i586",
271 }
272 }

  ViewVC Help
Powered by ViewVC 1.1.30