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

Contents of /puppet/manifests/nodes.pp

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.30