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 softwarekey::base |
26 |
|
27 |
include access_classes::committers |
28 |
include restrictshell::allow_git |
29 |
include restrictshell::allow_svn |
30 |
include restrictshell::allow_pkgsubmit |
31 |
# disabled the ldap key here instead of disabling for the |
32 |
# whole module ( see r698 ) |
33 |
#include openssh::ssh_keys_from_ldap |
34 |
|
35 |
include mirror::mirrormdv2010spring |
36 |
|
37 |
include repositories::subversion |
38 |
include repositories::git |
39 |
|
40 |
include websites::svn |
41 |
|
42 |
subversion::snapshot { "/etc/puppet": |
43 |
source => "svn://svn.mageia.org/svn/adm/puppet/" |
44 |
} |
45 |
} |
46 |
|
47 |
# web apps |
48 |
node alamut { |
49 |
# Location: IELO datacenter (marseille) |
50 |
# |
51 |
# TODO: |
52 |
# - Review board |
53 |
# - nagios |
54 |
# - api |
55 |
# - mail server |
56 |
# - mailing list server |
57 |
# - wiki |
58 |
# - pastebin |
59 |
# - LDAP slave |
60 |
# |
61 |
include common::default_mageia_server_no_smtp |
62 |
include postgresql::server |
63 |
timezone::timezone { "Europe/Paris": } |
64 |
|
65 |
include catdap |
66 |
include websites::donate |
67 |
include mga-mirrors |
68 |
include epoll |
69 |
include transifex |
70 |
include bugzilla |
71 |
include sympa::server |
72 |
include postfix::primary_smtp |
73 |
|
74 |
# temporary, just the time the vm is running there |
75 |
host { 'friteuse': |
76 |
ip => '192.168.122.131', |
77 |
host_aliases => [ "friteuse.$domain", "forums.$domain" ], |
78 |
ensure => 'present', |
79 |
} |
80 |
|
81 |
# to create all phpbb database on alamut |
82 |
phpbb::databases { $fqdn: } |
83 |
|
84 |
apache::vhost_redirect_ssl { "forums.$domain": } |
85 |
apache::vhost_redirect { "forum.$domain": |
86 |
url => "https://forums.$domain/", |
87 |
} |
88 |
apache::vhost_redirect { "ssl_forum.$domain": |
89 |
url => "https://forums.$domain/", |
90 |
vhost => "forum.$domain", |
91 |
use_ssl => true, |
92 |
} |
93 |
|
94 |
# connect to ssl so the proxy do not shoke if trying to |
95 |
# enforce ssl ( note that this has not been tested, maybe this |
96 |
# is uneeded ) |
97 |
apache::vhost_reverse_proxy { "ssl_forums.$domain": |
98 |
url => "https://forums.$domain/", |
99 |
vhost => "forums.$domain", |
100 |
use_ssl => true, |
101 |
} |
102 |
|
103 |
|
104 |
include libvirtd::kvm |
105 |
include lists |
106 |
include dns::server |
107 |
include repositories::mirror |
108 |
include viewvc |
109 |
include xymon::server |
110 |
apache::vhost_simple { "xymon.$domain": |
111 |
location => "/var/lib/xymon/www", |
112 |
} |
113 |
include youri-check::report |
114 |
} |
115 |
|
116 |
# buildnode |
117 |
node jonund { |
118 |
# Location: IELO datacenter (marseille) |
119 |
# |
120 |
include common::default_mageia_server |
121 |
include buildsystem::buildnode |
122 |
include buildsystem::iurt20101 |
123 |
timezone::timezone { "Europe/Paris": } |
124 |
include shorewall |
125 |
include shorewall::default_firewall |
126 |
include testvm |
127 |
} |
128 |
|
129 |
node ecosse { |
130 |
# Location: IELO datacenter (marseille) |
131 |
# |
132 |
include common::default_mageia_server |
133 |
include buildsystem::buildnode |
134 |
timezone::timezone { "Europe/Paris": } |
135 |
} |
136 |
|
137 |
# backup server |
138 |
node fiona { |
139 |
# Location: IELO datacenter (marseille) |
140 |
# |
141 |
# TODO: |
142 |
# - buy the server |
143 |
# - install the server in datacenter |
144 |
# - install a backup system |
145 |
include common::default_mageia_server |
146 |
} |
147 |
|
148 |
# gandi-vm |
149 |
node krampouezh { |
150 |
# Location: gandi VM |
151 |
# |
152 |
# TODO: |
153 |
# - secondary MX |
154 |
# - LDAP slave (for external traffic maybe) |
155 |
# |
156 |
#include common::default_mageia_server |
157 |
include common::default_mageia_server_no_smtp |
158 |
include postfix::secondary_smtp |
159 |
include blog::base |
160 |
include blog::db_backup |
161 |
include mysql::server |
162 |
include dns::server |
163 |
timezone::timezone { "Europe/Paris": } |
164 |
# Other services running on this server : |
165 |
# - meetbot |
166 |
} |
167 |
|
168 |
node champagne { |
169 |
# Location: gandi VM |
170 |
# |
171 |
# TODO: |
172 |
# - setup mageia.org web site |
173 |
# - setup blog |
174 |
# - setup planet |
175 |
# |
176 |
include common::default_mageia_server |
177 |
timezone::timezone { "Europe/Paris": } |
178 |
include blog::files-bots |
179 |
include blog::files_backup |
180 |
include planet |
181 |
include websites::static |
182 |
} |
183 |
|
184 |
node friteuse { |
185 |
# Location: VM hosted by nfrance (toulouse) |
186 |
# |
187 |
# TODO: |
188 |
# - setup forum |
189 |
|
190 |
include common::default_mageia_server |
191 |
timezone::timezone { "Europe/Paris": } |
192 |
include forums |
193 |
} |
194 |
|
195 |
node rabbit { |
196 |
# Location: Server offered by Dedibox (paris) |
197 |
# |
198 |
# - used to create isos ( and live, and so on ) |
199 |
# |
200 |
include common::default_mageia_server |
201 |
timezone::timezone { "Europe/Paris": } |
202 |
include bcd::base |
203 |
include bcd::web |
204 |
include draklive::base |
205 |
include access_classes::iso_makers |
206 |
include openssh::ssh_keys_from_ldap |
207 |
include mirror::mirrormageia |
208 |
include releasekey::base |
209 |
include youri-check::check |
210 |
|
211 |
# for testing iso quickly |
212 |
include libvirtd::kvm |
213 |
libvirtd::group_access { "mga-iso_makers": } |
214 |
|
215 |
# to ease the creation of test iso |
216 |
$netinst_iso_path = "/var/lib/libvirt/netboot" |
217 |
|
218 |
file { $netinst_iso_path: |
219 |
ensure => directory, |
220 |
} |
221 |
|
222 |
libvirtd::storage { "netinst_iso": |
223 |
path => $netinst_iso_path, |
224 |
require => File[$netinst_iso_path], |
225 |
} |
226 |
|
227 |
include auto_installation::download |
228 |
auto_installation::download::netboot_images { "mandriva": |
229 |
path => $netinst_iso_path, |
230 |
versions => ["2010.0","2010.1"], |
231 |
archs => ['i586','x86_64'], |
232 |
mirror_path => "ftp://ftp.free.fr/pub/Distributions_Linux/MandrivaLinux/official/%{version}/%{arch}/install/images/", |
233 |
files => ['boot.iso'], |
234 |
require => File[$netinst_iso_path], |
235 |
} |
236 |
|
237 |
# for testing pxe support of libvirt |
238 |
libvirtd::network {"pxe_network": |
239 |
network => "192.168.123.0/24", |
240 |
tftp_root => $auto_installation::variables::pxe_dir, |
241 |
bridge_name => "virbr1", |
242 |
} |
243 |
|
244 |
include auto_installation::pxe_menu |
245 |
auto_installation::mandriva_installation_entry { "pxe_test": |
246 |
version => "2010.1", |
247 |
arch => "i586", |
248 |
} |
249 |
} |