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

Contents of /puppet/manifests/nodes.pp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2133 - (show annotations) (download)
Sat Jan 7 22:17:48 2012 UTC (9 years, 8 months ago) by misc
File size: 6732 byte(s)
split defaults setting in a dedicated file ( to add more of them,
and prepare to split nodes.pp )
1 # svn, big important server
2 node valstar {
3 # Location: IELO datacenter (marseille)
4 #
5 # TODO:
6 # - GIT server
7 # - setup maintainers database (with web interface)
8 #
9 include common::default_mageia_server
10 timezone::timezone { "Europe/Paris": }
11 include main_mirror
12 include openldap::master
13 include subversion::client
14 include subversion::server
15 include puppet::master
16 include ssh::auth
17 include ssh::auth::keymaster
18 include buildsystem::mainnode
19 include buildsystem::mgacreatehome
20 include buildsystem::sync20101
21 include buildsystem::release
22 include buildsystem::maintdb
23 include buildsystem::binrepo
24 include softwarekey::base
25
26 include access_classes::committers
27 include restrictshell::allow_git
28 include restrictshell::allow_svn
29 include restrictshell::allow_pkgsubmit
30 include restrictshell::allow_maintdb
31 include restrictshell::allow_upload_bin
32 # disabled the ldap key here instead of disabling for the
33 # whole module ( see r698 )
34 class { "openssh::ssh_keys_from_ldap":
35 symlink_users => ['schedbot', 'iurt']
36 }
37
38 include mirror::mdv2010spring
39
40 include repositories::subversion
41 include repositories::git
42 include repositories::sparkleshare
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 include wikis
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 websites::www
200 include dashboard::base
201 include access_classes::web
202 include openssh::ssh_keys_from_ldap
203 }
204
205 node friteuse {
206 # Location: VM hosted by nfrance (toulouse)
207 #
208
209 include common::default_mageia_server
210 timezone::timezone { "Europe/Paris": }
211 include forums
212 }
213
214 node rabbit {
215 # Location: Server offered by Dedibox (paris)
216 #
217 # - used to create isos ( and live, and so on )
218 #
219 include common::default_mageia_server
220 timezone::timezone { "Europe/Paris": }
221 include bcd::base
222 include bcd::web
223 include bcd::rsync
224 include draklive::base
225 include access_classes::iso_makers
226 include openssh::ssh_keys_from_ldap
227 include mirror::mageia
228 include mirror::newrelease
229 include releasekey::base
230 include youri-check::check
231
232 # for testing iso quickly
233 include libvirtd::kvm
234 libvirtd::group_access { "mga-iso_makers": }
235
236 # to ease the creation of test iso
237 $netinst_iso_path = "/var/lib/libvirt/netboot"
238
239 file { $netinst_iso_path:
240 ensure => directory,
241 }
242
243 libvirtd::storage { "netinst_iso":
244 path => $netinst_iso_path,
245 require => File[$netinst_iso_path],
246 }
247
248 include auto_installation::download
249 auto_installation::download::netboot_images { "mandriva":
250 path => $netinst_iso_path,
251 versions => ["2010.0","2010.1"],
252 archs => ['i586','x86_64'],
253 mirror_path => "ftp://ftp.free.fr/pub/Distributions_Linux/MandrivaLinux/official/%{version}/%{arch}/install/images/",
254 files => ['boot.iso'],
255 require => File[$netinst_iso_path],
256 }
257
258 # for testing pxe support of libvirt
259 libvirtd::network {"pxe_network":
260 network => "192.168.123.0/24",
261 tftp_root => $auto_installation::variables::pxe_dir,
262 bridge_name => "virbr1",
263 }
264
265 include auto_installation::pxe_menu
266 auto_installation::mandriva_installation_entry { "pxe_test":
267 version => "2010.1",
268 arch => "i586",
269 }
270 }

  ViewVC Help
Powered by ViewVC 1.1.28