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

Contents of /puppet/manifests/nodes.pp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1437 - (show annotations) (download)
Thu Mar 31 01:47:21 2011 UTC (13 years ago) by misc
File size: 5624 byte(s)
use the new module for servers
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::website
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 draklive::base
200 include access_classes::iso_makers
201 include openssh::ssh_keys_from_ldap
202 include mirror::mirrormageia
203 include releasekey::base
204 include youri-check::check
205
206 # for testing iso quickly
207 include libvirtd::kvm
208 libvirtd::group_access { "mga-iso_makers": }
209
210 # to ease the creation of test iso
211 $netinst_iso_path = "/var/lib/libvirt/netboot"
212
213 file { $netinst_iso_path:
214 ensure => directory,
215 }
216
217 libvirtd::storage { "netinst_iso":
218 path => $netinst_iso_path,
219 require => File[$netinst_iso_path],
220 }
221
222 libvirtd::download::netboot_images { "mandriva":
223 path => $netinst_iso_path,
224 versions => ["2010.0","2010.1"],
225 archs => ['i586','x86_64'],
226 mirror_path => "ftp://ftp.free.fr/pub/Distributions_Linux/MandrivaLinux/official/%{version}/%{arch}/install/images/",
227 files => ['boot.iso'],
228 require => File[$netinst_iso_path],
229 }
230
231 }

  ViewVC Help
Powered by ViewVC 1.1.30