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

Contents of /puppet/manifests/nodes.pp

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.30