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

Contents of /puppet/manifests/nodes.pp

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.28