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 |
# 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 |
|
45 |
include websites::svn |
46 |
|
47 |
subversion::snapshot { "/etc/puppet": |
48 |
source => "svn://svn.mageia.org/svn/adm/puppet/" |
49 |
} |
50 |
} |
51 |
|
52 |
# web apps |
53 |
node alamut { |
54 |
# Location: IELO datacenter (marseille) |
55 |
# |
56 |
# TODO: |
57 |
# - Review board |
58 |
# - nagios |
59 |
# - api |
60 |
# - mail server |
61 |
# - mailing list server |
62 |
# - wiki |
63 |
# - pastebin |
64 |
# - LDAP slave |
65 |
# |
66 |
include common::default_mageia_server_no_smtp |
67 |
include postgresql::server |
68 |
postgresql::tagged { "default": } |
69 |
|
70 |
timezone::timezone { "Europe/Paris": } |
71 |
|
72 |
include catdap |
73 |
include mga-mirrors |
74 |
include epoll |
75 |
include transifex |
76 |
include bugzilla |
77 |
include sympa::server |
78 |
include postfix::primary_smtp |
79 |
|
80 |
# temporary, just the time the vm is running there |
81 |
host { 'friteuse': |
82 |
ip => '192.168.122.131', |
83 |
host_aliases => [ "friteuse.$domain", "forums.$domain" ], |
84 |
ensure => 'present', |
85 |
} |
86 |
|
87 |
# to create all phpbb database on alamut |
88 |
phpbb::databases { $fqdn: } |
89 |
|
90 |
apache::vhost_redirect_ssl { "forums.$domain": } |
91 |
apache::vhost_redirect { "forum.$domain": |
92 |
url => "https://forums.$domain/", |
93 |
} |
94 |
apache::vhost_redirect { "ssl_forum.$domain": |
95 |
url => "https://forums.$domain/", |
96 |
vhost => "forum.$domain", |
97 |
use_ssl => true, |
98 |
} |
99 |
|
100 |
# connect to ssl so the proxy do not shoke if trying to |
101 |
# enforce ssl ( note that this has not been tested, maybe this |
102 |
# is uneeded ) |
103 |
apache::vhost_reverse_proxy { "ssl_forums.$domain": |
104 |
url => "https://forums.$domain/", |
105 |
vhost => "forums.$domain", |
106 |
use_ssl => true, |
107 |
} |
108 |
|
109 |
include tld_redirections |
110 |
|
111 |
include libvirtd::kvm |
112 |
include lists |
113 |
include dns::server |
114 |
include repositories::mirror |
115 |
include viewvc |
116 |
include xymon::server |
117 |
apache::vhost_simple { "xymon.$domain": |
118 |
location => "/var/lib/xymon/www", |
119 |
} |
120 |
include youri-check::report |
121 |
} |
122 |
|
123 |
# buildnode |
124 |
node jonund { |
125 |
# Location: IELO datacenter (marseille) |
126 |
# |
127 |
include common::default_mageia_server |
128 |
include buildsystem::buildnode |
129 |
include buildsystem::iurt20101 |
130 |
timezone::timezone { "Europe/Paris": } |
131 |
include shorewall |
132 |
include shorewall::default_firewall |
133 |
include testvm |
134 |
} |
135 |
|
136 |
node ecosse { |
137 |
# Location: IELO datacenter (marseille) |
138 |
# |
139 |
include common::default_mageia_server |
140 |
include buildsystem::buildnode |
141 |
timezone::timezone { "Europe/Paris": } |
142 |
} |
143 |
|
144 |
# backup server |
145 |
node fiona { |
146 |
# Location: IELO datacenter (marseille) |
147 |
# |
148 |
# TODO: |
149 |
# - buy the server |
150 |
# - install the server in datacenter |
151 |
# - install a backup system |
152 |
include common::default_mageia_server |
153 |
} |
154 |
|
155 |
# gandi-vm |
156 |
node krampouezh { |
157 |
# Location: gandi VM |
158 |
# |
159 |
# TODO: |
160 |
# - secondary MX |
161 |
# - LDAP slave (for external traffic maybe) |
162 |
# |
163 |
#include common::default_mageia_server |
164 |
include common::default_mageia_server_no_smtp |
165 |
include postfix::secondary_smtp |
166 |
include blog::base |
167 |
include blog::db_backup |
168 |
include mysql::server |
169 |
include dns::server |
170 |
timezone::timezone { "Europe/Paris": } |
171 |
|
172 |
openldap::slave_instance { "1": |
173 |
rid => 1, |
174 |
} |
175 |
|
176 |
# Other services running on this server : |
177 |
# - meetbot |
178 |
} |
179 |
|
180 |
node champagne { |
181 |
# Location: gandi VM |
182 |
# |
183 |
# TODO: |
184 |
# - setup mageia.org web site |
185 |
# - setup blog |
186 |
# - setup planet |
187 |
# |
188 |
include common::default_mageia_server |
189 |
timezone::timezone { "Europe/Paris": } |
190 |
include blog::files-bots |
191 |
include blog::files_backup |
192 |
include planet |
193 |
include websites::static |
194 |
include websites::hugs |
195 |
include websites::releases |
196 |
include dashboard::base |
197 |
include access_classes::web |
198 |
include openssh::ssh_keys_from_ldap |
199 |
} |
200 |
|
201 |
node friteuse { |
202 |
# Location: VM hosted by nfrance (toulouse) |
203 |
# |
204 |
# TODO: |
205 |
# - setup forum |
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 |
} |