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

Contents of /puppet/manifests/nodes.pp

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.30