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

Contents of /puppet/manifests/nodes.pp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1889 - (show annotations) (download)
Thu Jul 21 01:46:56 2011 UTC (10 years, 6 months ago) by misc
File size: 6613 byte(s)
clean old comments
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 softwarekey::base
27
28 include access_classes::committers
29 include restrictshell::allow_git
30 include restrictshell::allow_svn
31 include restrictshell::allow_pkgsubmit
32 include restrictshell::allow_maintdb
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 # - api
58 # - wiki
59 # - pastebin
60 # - LDAP slave
61 #
62 include common::default_mageia_server_no_smtp
63 include postgresql::server
64 postgresql::tagged { "default": }
65
66 timezone::timezone { "Europe/Paris": }
67
68 include catdap
69 include mga-mirrors
70 include epoll
71 include transifex
72 include bugzilla
73 include sympa::server
74 include postfix::primary_smtp
75
76 # temporary, just the time the vm is running there
77 host { 'friteuse':
78 ip => '192.168.122.131',
79 host_aliases => [ "friteuse.$domain", "forums.$domain" ],
80 ensure => 'present',
81 }
82
83 # to create all phpbb database on alamut
84 phpbb::databases { $fqdn: }
85
86 apache::vhost_redirect_ssl { "forums.$domain": }
87 apache::vhost_redirect { "forum.$domain":
88 url => "https://forums.$domain/",
89 }
90 apache::vhost_redirect { "ssl_forum.$domain":
91 url => "https://forums.$domain/",
92 vhost => "forum.$domain",
93 use_ssl => true,
94 }
95
96 # connect to ssl so the proxy do not shoke if trying to
97 # enforce ssl ( note that this has not been tested, maybe this
98 # is uneeded )
99 apache::vhost_reverse_proxy { "ssl_forums.$domain":
100 url => "https://forums.$domain/",
101 vhost => "forums.$domain",
102 use_ssl => true,
103 }
104
105 include tld_redirections
106
107 include libvirtd::kvm
108 include lists
109 include dns::server
110 include repositories::svn_mirror
111 include viewvc
112
113 # disabled until fixed
114 #include repositories::git_mirror
115 include gitweb
116
117 include xymon::server
118 apache::vhost_simple { "xymon.$domain":
119 location => "/var/lib/xymon/www",
120 }
121 include youri-check::report
122 }
123
124 # buildnode
125 node jonund {
126 # Location: IELO datacenter (marseille)
127 #
128 include common::default_mageia_server
129 include buildsystem::buildnode
130 include buildsystem::iurt20101
131 timezone::timezone { "Europe/Paris": }
132 include shorewall
133 include shorewall::default_firewall
134 include testvm
135 }
136
137 node ecosse {
138 # Location: IELO datacenter (marseille)
139 #
140 include common::default_mageia_server
141 include buildsystem::buildnode
142 timezone::timezone { "Europe/Paris": }
143 }
144
145 # backup server
146 node fiona {
147 # Location: IELO datacenter (marseille)
148 #
149 # TODO:
150 # - buy the server
151 # - install the server in datacenter
152 # - install a backup system
153 include common::default_mageia_server
154 timezone::timezone { "Europe/Paris": }
155 }
156
157 # gandi-vm
158 node krampouezh {
159 # Location: gandi VM
160 #
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 #
185 include common::default_mageia_server
186 timezone::timezone { "Europe/Paris": }
187 include blog::files-bots
188 include blog::files_backup
189 include planet
190 include websites::static
191 include websites::hugs
192 include websites::releases
193 include dashboard::base
194 include access_classes::web
195 include openssh::ssh_keys_from_ldap
196 }
197
198 node friteuse {
199 # Location: VM hosted by nfrance (toulouse)
200 #
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