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

Contents of /puppet/manifests/nodes.pp

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.28