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

Contents of /puppet/manifests/nodes.pp

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.30