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

Contents of /puppet/manifests/nodes.pp

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.30