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

Contents of /puppet/manifests/nodes.pp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1489 - (show annotations) (download)
Thu Apr 7 18:52:59 2011 UTC (12 years, 11 months ago) by boklm
File size: 6111 byte(s)
add iurt2010.1 script
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 rsyncd
17 include main_mirror
18 include openldap::master
19 include subversion::client
20 include subversion::server
21 include puppet::master
22 include ssh::auth
23 include ssh::auth::keymaster
24 include buildsystem::mainnode
25 include buildsystem::mgacreatehome
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 apache::vhost_redirect_ssl { "forums.$domain": }
82 apache::vhost_redirect { "forum.$domain":
83 url => "https://forums.$domain/",
84 }
85 apache::vhost_redirect { "ssl_forum.$domain":
86 url => "https://forums.$domain/",
87 vhost => "forum.$domain",
88 use_ssl => true,
89 }
90
91 # connect to ssl so the proxy do not shoke if trying to
92 # enforce ssl ( note that this has not been tested, maybe this
93 # is uneeded )
94 apache::vhost_reverse_proxy { "ssl_forums.$domain":
95 url => "https://forums.$domain/",
96 vhost => "forums.$domain",
97 use_ssl => true,
98 }
99
100
101 include libvirtd::kvm
102 include lists
103 include dns::server
104 include repositories::mirror
105 include viewvc
106 include xymon::server
107 apache::vhost_simple { "xymon.$domain":
108 location => "/var/lib/xymon/www",
109 }
110 include youri-check::report
111 }
112
113 # buildnode
114 node jonund {
115 # Location: IELO datacenter (marseille)
116 #
117 include common::default_mageia_server
118 include buildsystem::buildnode
119 include buildsystem::iurt20101
120 timezone::timezone { "Europe/Paris": }
121 include shorewall
122 include shorewall::default_firewall
123 include testvm
124 }
125
126 node ecosse {
127 # Location: IELO datacenter (marseille)
128 #
129 include common::default_mageia_server
130 include buildsystem::buildnode
131 timezone::timezone { "Europe/Paris": }
132 }
133
134 # backup server
135 node fiona {
136 # Location: IELO datacenter (marseille)
137 #
138 # TODO:
139 # - buy the server
140 # - install the server in datacenter
141 # - install a backup system
142 include common::default_mageia_server
143 }
144
145 # gandi-vm
146 node krampouezh {
147 # Location: gandi VM
148 #
149 # TODO:
150 # - secondary MX
151 # - LDAP slave (for external traffic maybe)
152 #
153 #include common::default_mageia_server
154 include common::default_mageia_server_no_smtp
155 include postfix::secondary_smtp
156 include blog::base
157 include blog::db_backup
158 include mysql::server
159 include dns::server
160 timezone::timezone { "Europe/Paris": }
161 # Other services running on this server :
162 # - meetbot
163 }
164
165 node champagne {
166 # Location: gandi VM
167 #
168 # TODO:
169 # - setup mageia.org web site
170 # - setup blog
171 # - setup planet
172 #
173 include common::default_mageia_server
174 timezone::timezone { "Europe/Paris": }
175 include blog::files-bots
176 include blog::files_backup
177 include planet
178 include websites::static
179 }
180
181 node friteuse {
182 # Location: VM hosted by nfrance (toulouse)
183 #
184 # TODO:
185 # - setup forum
186
187 include common::default_mageia_server
188 timezone::timezone { "Europe/Paris": }
189 include forums
190 }
191
192 node rabbit {
193 # Location: Server offered by Dedibox (paris)
194 #
195 # - used to create isos ( and live, and so on )
196 #
197 include common::default_mageia_server
198 timezone::timezone { "Europe/Paris": }
199 include bcd::base
200 include bcd::web
201 include draklive::base
202 include access_classes::iso_makers
203 include openssh::ssh_keys_from_ldap
204 include mirror::mirrormageia
205 include releasekey::base
206 include youri-check::check
207
208 # for testing iso quickly
209 include libvirtd::kvm
210 libvirtd::group_access { "mga-iso_makers": }
211
212 # to ease the creation of test iso
213 $netinst_iso_path = "/var/lib/libvirt/netboot"
214
215 file { $netinst_iso_path:
216 ensure => directory,
217 }
218
219 libvirtd::storage { "netinst_iso":
220 path => $netinst_iso_path,
221 require => File[$netinst_iso_path],
222 }
223
224 include auto_installation::download
225 auto_installation::download::netboot_images { "mandriva":
226 path => $netinst_iso_path,
227 versions => ["2010.0","2010.1"],
228 archs => ['i586','x86_64'],
229 mirror_path => "ftp://ftp.free.fr/pub/Distributions_Linux/MandrivaLinux/official/%{version}/%{arch}/install/images/",
230 files => ['boot.iso'],
231 require => File[$netinst_iso_path],
232 }
233
234 # for testing pxe support of libvirt
235 libvirtd::network {"pxe_network":
236 network => "192.168.123.0/24",
237 tftp_root => $auto_installation::variables::pxe_dir,
238 bridge_name => "virbr1",
239 }
240
241 include auto_installation::pxe_menu
242 auto_installation::mandriva_installation_entry { "pxe_test":
243 version => "2010.1",
244 arch => "i586",
245 }
246 }

  ViewVC Help
Powered by ViewVC 1.1.30