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

Contents of /puppet/manifests/nodes.pp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1646 - (show annotations) (download)
Fri May 27 13:42:06 2011 UTC (12 years, 10 months ago) by boklm
File size: 6421 byte(s)
add release scripts in /root/release
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 #include openssh::ssh_keys_from_ldap
36
37 include mirror::mirrormdv2010spring
38
39 include repositories::subversion
40 include repositories::git
41
42 include websites::svn
43
44 subversion::snapshot { "/etc/puppet":
45 source => "svn://svn.mageia.org/svn/adm/puppet/"
46 }
47 }
48
49 # web apps
50 node alamut {
51 # Location: IELO datacenter (marseille)
52 #
53 # TODO:
54 # - Review board
55 # - nagios
56 # - api
57 # - mail server
58 # - mailing list server
59 # - wiki
60 # - pastebin
61 # - LDAP slave
62 #
63 include common::default_mageia_server_no_smtp
64 include postgresql::server
65 timezone::timezone { "Europe/Paris": }
66
67 include catdap
68 include websites::donate
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
106 include libvirtd::kvm
107 include lists
108 include dns::server
109 include repositories::mirror
110 include viewvc
111 include xymon::server
112 apache::vhost_simple { "xymon.$domain":
113 location => "/var/lib/xymon/www",
114 }
115 include youri-check::report
116 }
117
118 # buildnode
119 node jonund {
120 # Location: IELO datacenter (marseille)
121 #
122 include common::default_mageia_server
123 include buildsystem::buildnode
124 include buildsystem::iurt20101
125 timezone::timezone { "Europe/Paris": }
126 include shorewall
127 include shorewall::default_firewall
128 include testvm
129 }
130
131 node ecosse {
132 # Location: IELO datacenter (marseille)
133 #
134 include common::default_mageia_server
135 include buildsystem::buildnode
136 timezone::timezone { "Europe/Paris": }
137 }
138
139 # backup server
140 node fiona {
141 # Location: IELO datacenter (marseille)
142 #
143 # TODO:
144 # - buy the server
145 # - install the server in datacenter
146 # - install a backup system
147 include common::default_mageia_server
148 }
149
150 # gandi-vm
151 node krampouezh {
152 # Location: gandi VM
153 #
154 # TODO:
155 # - secondary MX
156 # - LDAP slave (for external traffic maybe)
157 #
158 #include common::default_mageia_server
159 include common::default_mageia_server_no_smtp
160 include postfix::secondary_smtp
161 include blog::base
162 include blog::db_backup
163 include mysql::server
164 include dns::server
165 timezone::timezone { "Europe/Paris": }
166 # Other services running on this server :
167 # - meetbot
168 }
169
170 node champagne {
171 # Location: gandi VM
172 #
173 # TODO:
174 # - setup mageia.org web site
175 # - setup blog
176 # - setup planet
177 #
178 include common::default_mageia_server
179 timezone::timezone { "Europe/Paris": }
180 include blog::files-bots
181 include blog::files_backup
182 include planet
183 include websites::static
184 include websites::hugs
185 include websites::releases
186 include access_classes::web
187 include openssh::ssh_keys_from_ldap
188 }
189
190 node friteuse {
191 # Location: VM hosted by nfrance (toulouse)
192 #
193 # TODO:
194 # - setup forum
195
196 include common::default_mageia_server
197 timezone::timezone { "Europe/Paris": }
198 include forums
199 }
200
201 node rabbit {
202 # Location: Server offered by Dedibox (paris)
203 #
204 # - used to create isos ( and live, and so on )
205 #
206 include common::default_mageia_server
207 timezone::timezone { "Europe/Paris": }
208 include bcd::base
209 include bcd::web
210 include bcd::rsync
211 include draklive::base
212 include access_classes::iso_makers
213 include openssh::ssh_keys_from_ldap
214 include mirror::mirrormageia
215 include releasekey::base
216 include youri-check::check
217
218 # for testing iso quickly
219 include libvirtd::kvm
220 libvirtd::group_access { "mga-iso_makers": }
221
222 # to ease the creation of test iso
223 $netinst_iso_path = "/var/lib/libvirt/netboot"
224
225 file { $netinst_iso_path:
226 ensure => directory,
227 }
228
229 libvirtd::storage { "netinst_iso":
230 path => $netinst_iso_path,
231 require => File[$netinst_iso_path],
232 }
233
234 include auto_installation::download
235 auto_installation::download::netboot_images { "mandriva":
236 path => $netinst_iso_path,
237 versions => ["2010.0","2010.1"],
238 archs => ['i586','x86_64'],
239 mirror_path => "ftp://ftp.free.fr/pub/Distributions_Linux/MandrivaLinux/official/%{version}/%{arch}/install/images/",
240 files => ['boot.iso'],
241 require => File[$netinst_iso_path],
242 }
243
244 # for testing pxe support of libvirt
245 libvirtd::network {"pxe_network":
246 network => "192.168.123.0/24",
247 tftp_root => $auto_installation::variables::pxe_dir,
248 bridge_name => "virbr1",
249 }
250
251 include auto_installation::pxe_menu
252 auto_installation::mandriva_installation_entry { "pxe_test":
253 version => "2010.1",
254 arch => "i586",
255 }
256 }

  ViewVC Help
Powered by ViewVC 1.1.30