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

Contents of /puppet/manifests/nodes.pp

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.28