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

Contents of /puppet/manifests/nodes.pp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1477 - (show annotations) (download)
Tue Apr 5 02:19:55 2011 UTC (10 years, 4 months ago) by misc
File size: 6075 byte(s)
- fix missing commas preventing rabbit from updating

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 timezone::timezone { "Europe/Paris": }
120 include shorewall
121 include shorewall::default_firewall
122 include testvm
123 }
124
125 node ecosse {
126 # Location: IELO datacenter (marseille)
127 #
128 include common::default_mageia_server
129 include buildsystem::buildnode
130 timezone::timezone { "Europe/Paris": }
131 }
132
133 # backup server
134 node fiona {
135 # Location: IELO datacenter (marseille)
136 #
137 # TODO:
138 # - buy the server
139 # - install the server in datacenter
140 # - install a backup system
141 include common::default_mageia_server
142 }
143
144 # gandi-vm
145 node krampouezh {
146 # Location: gandi VM
147 #
148 # TODO:
149 # - secondary MX
150 # - LDAP slave (for external traffic maybe)
151 #
152 #include common::default_mageia_server
153 include common::default_mageia_server_no_smtp
154 include postfix::secondary_smtp
155 include blog::base
156 include blog::db_backup
157 include mysql::server
158 include dns::server
159 timezone::timezone { "Europe/Paris": }
160 # Other services running on this server :
161 # - meetbot
162 }
163
164 node champagne {
165 # Location: gandi VM
166 #
167 # TODO:
168 # - setup mageia.org web site
169 # - setup blog
170 # - setup planet
171 #
172 include common::default_mageia_server
173 timezone::timezone { "Europe/Paris": }
174 include blog::files-bots
175 include blog::files_backup
176 include planet
177 include websites::static
178 }
179
180 node friteuse {
181 # Location: VM hosted by nfrance (toulouse)
182 #
183 # TODO:
184 # - setup forum
185
186 include common::default_mageia_server
187 timezone::timezone { "Europe/Paris": }
188 include forums
189 }
190
191 node rabbit {
192 # Location: Server offered by Dedibox (paris)
193 #
194 # - used to create isos ( and live, and so on )
195 #
196 include common::default_mageia_server
197 timezone::timezone { "Europe/Paris": }
198 include bcd::base
199 include bcd::web
200 include draklive::base
201 include access_classes::iso_makers
202 include openssh::ssh_keys_from_ldap
203 include mirror::mirrormageia
204 include releasekey::base
205 include youri-check::check
206
207 # for testing iso quickly
208 include libvirtd::kvm
209 libvirtd::group_access { "mga-iso_makers": }
210
211 # to ease the creation of test iso
212 $netinst_iso_path = "/var/lib/libvirt/netboot"
213
214 file { $netinst_iso_path:
215 ensure => directory,
216 }
217
218 libvirtd::storage { "netinst_iso":
219 path => $netinst_iso_path,
220 require => File[$netinst_iso_path],
221 }
222
223 include auto_installation::download
224 auto_installation::download::netboot_images { "mandriva":
225 path => $netinst_iso_path,
226 versions => ["2010.0","2010.1"],
227 archs => ['i586','x86_64'],
228 mirror_path => "ftp://ftp.free.fr/pub/Distributions_Linux/MandrivaLinux/official/%{version}/%{arch}/install/images/",
229 files => ['boot.iso'],
230 require => File[$netinst_iso_path],
231 }
232
233 # for testing pxe support of libvirt
234 libvirtd::network {"pxe_network":
235 network => "192.168.123.0/24",
236 tftp_root => auto_installation::variables::pxe_dir,
237 bridge_name => "virbr1",
238 }
239
240 include auto_installation::pxe_menu
241 auto_installation::mandriva_installation_entry { "pxe_test":
242 version => "2010.1",
243 arch => "i586",
244 }
245 }

  ViewVC Help
Powered by ViewVC 1.1.28