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

Contents of /puppet/manifests/nodes.pp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1899 - (show annotations) (download)
Thu Jul 21 21:37:00 2011 UTC (10 years ago) by misc
File size: 6711 byte(s)
enable cleaning of the mirror
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 maintainers database (with web interface)
11 #
12 include common::default_mageia_server
13 timezone::timezone { "Europe/Paris": }
14 include main_mirror
15 include openldap::master
16 include subversion::client
17 include subversion::server
18 include puppet::master
19 include ssh::auth
20 include ssh::auth::keymaster
21 include buildsystem::mainnode
22 include buildsystem::mgacreatehome
23 include buildsystem::sync20101
24 include buildsystem::release
25 include buildsystem::maintdb
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 # disabled the ldap key here instead of disabling for the
34 # whole module ( see r698 )
35 class { "openssh::ssh_keys_from_ldap":
36 symlink_users => ['schedbot', 'iurt']
37 }
38
39 include mirror::mdv2010spring
40
41 include repositories::subversion
42 include repositories::git
43
44 include websites::svn
45
46 subversion::snapshot { "/etc/puppet":
47 source => "svn://svn.mageia.org/svn/adm/puppet/"
48 }
49
50 mirror_cleaner::orphans { "cauldron":
51 base => "/distrib/bootstrap/distrib/",
52 }
53
54 }
55
56 # web apps
57 node alamut {
58 # Location: IELO datacenter (marseille)
59 #
60 # TODO:
61 # - Review board
62 # - api
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 #
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 #
190 include common::default_mageia_server
191 timezone::timezone { "Europe/Paris": }
192 include blog::files-bots
193 include blog::files_backup
194 include planet
195 include websites::static
196 include websites::hugs
197 include websites::releases
198 include dashboard::base
199 include access_classes::web
200 include openssh::ssh_keys_from_ldap
201 }
202
203 node friteuse {
204 # Location: VM hosted by nfrance (toulouse)
205 #
206
207 include common::default_mageia_server
208 timezone::timezone { "Europe/Paris": }
209 include forums
210 }
211
212 node rabbit {
213 # Location: Server offered by Dedibox (paris)
214 #
215 # - used to create isos ( and live, and so on )
216 #
217 include common::default_mageia_server
218 timezone::timezone { "Europe/Paris": }
219 include bcd::base
220 include bcd::web
221 include bcd::rsync
222 include draklive::base
223 include access_classes::iso_makers
224 include openssh::ssh_keys_from_ldap
225 include mirror::mageia
226 include mirror::newrelease
227 include releasekey::base
228 include youri-check::check
229
230 # for testing iso quickly
231 include libvirtd::kvm
232 libvirtd::group_access { "mga-iso_makers": }
233
234 # to ease the creation of test iso
235 $netinst_iso_path = "/var/lib/libvirt/netboot"
236
237 file { $netinst_iso_path:
238 ensure => directory,
239 }
240
241 libvirtd::storage { "netinst_iso":
242 path => $netinst_iso_path,
243 require => File[$netinst_iso_path],
244 }
245
246 include auto_installation::download
247 auto_installation::download::netboot_images { "mandriva":
248 path => $netinst_iso_path,
249 versions => ["2010.0","2010.1"],
250 archs => ['i586','x86_64'],
251 mirror_path => "ftp://ftp.free.fr/pub/Distributions_Linux/MandrivaLinux/official/%{version}/%{arch}/install/images/",
252 files => ['boot.iso'],
253 require => File[$netinst_iso_path],
254 }
255
256 # for testing pxe support of libvirt
257 libvirtd::network {"pxe_network":
258 network => "192.168.123.0/24",
259 tftp_root => $auto_installation::variables::pxe_dir,
260 bridge_name => "virbr1",
261 }
262
263 include auto_installation::pxe_menu
264 auto_installation::mandriva_installation_entry { "pxe_test":
265 version => "2010.1",
266 arch => "i586",
267 }
268 }

  ViewVC Help
Powered by ViewVC 1.1.28