Merge lp:~jtv/maas/pkg-bug-1238376 into lp:~maas-committers/maas/trunk

Proposed by Jeroen T. Vermeulen
Status: Superseded
Proposed branch: lp:~jtv/maas/pkg-bug-1238376
Merge into: lp:~maas-committers/maas/trunk
Diff against target: 2963 lines (+2639/-0)
64 files modified
debian/changelog (+842/-0)
debian/compat (+1/-0)
debian/control (+283/-0)
debian/copyright (+25/-0)
debian/extras/20-maas.conf (+32/-0)
debian/extras/99-maas (+4/-0)
debian/extras/99-maas-sudoers (+3/-0)
debian/extras/isc-dhcp-server.override (+1/-0)
debian/extras/maas (+8/-0)
debian/extras/maas-cli (+2/-0)
debian/extras/maas-provision (+7/-0)
debian/extras/maas-region-celeryd (+50/-0)
debian/extras/maas_remote_syslog_compress (+2/-0)
debian/maas-cli.install (+2/-0)
debian/maas-cli.lintian-overrides (+1/-0)
debian/maas-cluster-controller.config (+36/-0)
debian/maas-cluster-controller.dirs (+1/-0)
debian/maas-cluster-controller.install (+32/-0)
debian/maas-cluster-controller.links (+1/-0)
debian/maas-cluster-controller.lintian-overrides (+2/-0)
debian/maas-cluster-controller.logrotate (+9/-0)
debian/maas-cluster-controller.maas-cluster-celery.upstart (+30/-0)
debian/maas-cluster-controller.maas-pserv.upstart (+31/-0)
debian/maas-cluster-controller.postinst (+149/-0)
debian/maas-cluster-controller.postrm (+38/-0)
debian/maas-cluster-controller.templates (+7/-0)
debian/maas-common.install (+2/-0)
debian/maas-common.postinst (+14/-0)
debian/maas-common.postrm (+14/-0)
debian/maas-dhcp.apparmor (+7/-0)
debian/maas-dhcp.install (+1/-0)
debian/maas-dhcp.maas-dhcp-server.upstart (+65/-0)
debian/maas-dhcp.postinst (+15/-0)
debian/maas-dhcp.postrm (+13/-0)
debian/maas-dns.dirs (+1/-0)
debian/maas-dns.postinst (+36/-0)
debian/maas-dns.postrm (+23/-0)
debian/maas-region-controller.apport (+37/-0)
debian/maas-region-controller.config (+45/-0)
debian/maas-region-controller.dirs (+2/-0)
debian/maas-region-controller.install (+37/-0)
debian/maas-region-controller.links (+2/-0)
debian/maas-region-controller.lintian-overrides (+6/-0)
debian/maas-region-controller.logrotate (+18/-0)
debian/maas-region-controller.maas-region-celery.upstart (+26/-0)
debian/maas-region-controller.maas-txlongpoll.upstart (+27/-0)
debian/maas-region-controller.postinst (+287/-0)
debian/maas-region-controller.postrm (+59/-0)
debian/maas-region-controller.prerm (+12/-0)
debian/maas-region-controller.templates (+22/-0)
debian/maintscript (+2/-0)
debian/patches/01-fix-database-settings.patch (+26/-0)
debian/patches/02-pserv-config.patch (+38/-0)
debian/patches/03-txlongpoll-config.patch (+39/-0)
debian/patches/series (+3/-0)
debian/po/POTFILES.in (+2/-0)
debian/po/templates.pot (+82/-0)
debian/python-django-maas.install (+2/-0)
debian/python-maas-client.install (+1/-0)
debian/python-maas-provisioningserver.install (+4/-0)
debian/python-maas-provisioningserver.lintian-overrides (+1/-0)
debian/rules (+65/-0)
debian/source/format (+1/-0)
debian/watch (+3/-0)
To merge this branch: bzr merge lp:~jtv/maas/pkg-bug-1238376
Reviewer Review Type Date Requested Status
MAAS Maintainers Pending
Review via email: mp+190658@code.launchpad.net

This proposal has been superseded by a proposal from 2013-10-11.

Commit message

Restore (a new incarnation of) obsolescent /etc/maas/import_ephemerals.

Description of the change

This is part of the fix for bug 1238376. It requires this change to the source tree: https://code.launchpad.net/~jtv/maas/bug-1238376/+merge/190656 (already landed as r1701).

Jeroen

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== added directory 'debian'
=== added file 'debian/changelog'
--- debian/changelog 1970-01-01 00:00:00 +0000
+++ debian/changelog 2013-10-11 14:15:22 +0000
@@ -0,0 +1,842 @@
1maas (1.4+bzr1701+dfsg-0ubuntu2) UNRELEASED; urgency=low
2
3 * UNRELEASED
4
5 [ Jeroen Vermeulen ]
6 * Keep legacy import_ephemerals config for now.
7
8 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 10 Oct 2013 17:07:51 -0400
9
10maas (1.4+bzr1693+dfsg-0ubuntu1) saucy; urgency=low
11
12 * New Upstream Release (LP: #1218526)
13 - This new upstream release contains fixes and improvements of the
14 features approved by the FFe above.
15 - Fixes commissioning failure on Saucy with 'Failed Test' (LP: #1237364)
16 - Fixes access of static images over http (LP: #1236544)
17 * d/maas-cluster-controller.postinst: a2enmod version module (LP: #1236544)
18 * d/control: Bump depends on python-django to 1.4. (LP: #1236572)
19 * d/maas-dhcp.postinst: Fail gracefully if apparmor_parser fails, allowing
20 to install maas-dhcp during an ISO install. (LP: #1236786)
21
22 -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 04 Oct 2013 12:33:05 -0400
23
24maas (1.4+bzr1656+dfsg-0ubuntu2) saucy; urgency=low
25
26 * debian/control: Recommends on maas-dns instead of Depends for region
27 because maas-dns needs the region installed first.
28
29 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 03 Oct 2013 10:36:20 -0400
30
31maas (1.4+bzr1656+dfsg-0ubuntu1) saucy; urgency=low
32
33 [ Andres Rodriguez ]
34 * New upstream bugfix release.
35 - Respect filters for ephemerals_script.py.
36 * debian/control: Depends on ubuntu-cloudimage-keyring instead of
37 ubuntu-cloud-keyring; depends on python-distro-info.
38 * debian/control: Remove suggests on maas-dhcp and maas-dns as they are
39 now dependencies.
40
41 [ Scott Moser ]
42 * debian/control: Bump depends on isc-dhcp-server to 4.2.4
43 * debian/maas-dhcp.maas-dhcp-server.upstart: Change ownership of leases
44 file to root:root, and run the daemon as dhcpd:dhcpd.
45
46 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 01 Oct 2013 15:26:34 -0400
47
48maas (1.4+bzr1655+dfsg-0ubuntu1) saucy; urgency=low
49
50 * New Upstream release. (LP: #1218526)
51 * debian/control:
52 - Depends on python-djorm-ext-pgarray, python-curtin,
53 python-simplestreams, ubuntu-cloud-keyring.
54 - Depends on maas-dns, maas-dhcp to get them seeded and
55 into main (LP: #1227353)
56
57 -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 28 Aug 2013 11:17:44 -0400
58
59maas (1.4+bzr1551+dfsg-0ubuntu1) saucy; urgency=low
60
61 * New upstream release
62
63 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 15 Aug 2013 16:20:41 -0400
64
65maas (1.4+bzr1548+dfsg-0ubuntu1) saucy; urgency=low
66
67 * New upstream release
68
69 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 18 Jul 2013 10:15:10 -0400
70
71maas (1.4+bzr1539+dfsg-0ubuntu1) saucy; urgency=low
72
73 * New upstream release
74 * Symlink apache2 config into /etc/apache2/conf-enabled/ instead of
75 /etc/apache2/conf.d as apache2.4 no longer supports the latter.
76 - debian/maas-cluster-controller.{postinst,postrm}
77 - debian/maas-region-controller.{postinst,postrm}
78 * debian/control: Bump Standards-Version to 3.9.4.
79 * debian/maas-cluster-controller.lintian-overrides: Remove unneeded
80 override and add a new one.
81 * debian/maas-region-controller.lintian-overrides: Add extra overrides.
82
83 -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 03 Jul 2013 17:11:02 -0400
84
85maas (1.4+bzr1538+dfsg-0ubuntu1) saucy; urgency=low
86
87 * New upstream release
88 * debian/patches/04-setup-dont-user-list-snippets.patch: Drop. Merged
89 Upstream.
90
91 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 13 Jun 2013 20:06:35 -0400
92
93maas (1.4+bzr1527+dfsg-0ubuntu1) saucy; urgency=low
94
95 * debian/patches/04-setup-dont-user-list-snippets.patch: Drop importing
96 maasserver modules to list snippets in favor to using glob. Otherwise
97 we would have to add various non necessary Build-Dependencies.
98
99 [ Jeroen Vermeulen ]
100 * Install templates into /etc/maas/templates/.
101
102 -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 03 Jun 2013 17:59:31 -0400
103
104maas (1.4+bzr1505+dfsg-0ubuntu1) saucy; urgency=low
105
106 * New upstream release
107
108 [ Steve Langasek ]
109 * Add missing dependency on iproute to maas-region-controller, for use of
110 /sbin/ip in postinst.
111
112 [ Julian Edwards ]
113 * debian/maas-dhcp.maas-dhcp-server.upstart:
114 - Detect 12.04 as the host OS and install with correct permissions. This
115 allows the same packaging to be used in the 12.04 backport.
116
117 [ Andres Rodriguez ]
118 * Update packaging to support FPI:
119 - debian/control: Depends on apache2 for maas-cluster-controller.
120 - debian/maas-cluster-controller.install: Install http config file.
121 - debian/maas-cluster-controller.{postinst,postrm}: Handle symlink creation
122 and deletion.
123 * debian/maas-region-controller.install: Install preseeds in
124 etc/maas/preseeds. (LP: #1073463)
125
126 [ Jeroen Vermeulen ]
127 * In the source tree, /etc/maas/pserv.yaml has moved from etc/ to etc/maas/.
128 * Install templates into /etc/maas/templates/.
129
130 -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 03 Jun 2013 16:53:14 -0400
131
132maas (1.3+bzr1455+dfsg-0ubuntu1) raring; urgency=low
133
134 * New upstream bugfix release.
135 - Fixes and returns the 'resource_url' with the 'canonical' url for
136 a file that is fetched using the API (LP: #1154142)
137
138 [ Andres Rodriguez ]
139 * debian/control:
140 - Change Conflicts/Replaces for Breaks/Replaces.
141 - Conflicts on tftpd-hpa and dnsmasq.
142 - Do not pre-depends, but Depends on ${misc:Depends} for 'maas'.
143
144 [ Steve Langasek ]
145 * postinst scripts are never called with 'reconfigure' as the script
146 argument. Remove references to this (mythical) invocation.
147 * always call 'set -e' from maintainer scripts instead of passing 'sh -e'
148 as the interpreter, so that scripts will behave correctly when run via
149 'sh -x'.
150 * invoke-rc.d is never allowed to not exist - simplify scripts (and make
151 them better policy-compliant) by invoking unconditionally. (The only
152 possible exception is in the postrm, where it's *theoretically* possible
153 for invoke-rc.d to be missing if the user has completely stripped
154 down their system; that's a fairly unreasonable corner case, but we
155 might as well be correct if it ever happens.)
156 * db_get+db_set is a no-op; don't call db_set to push back a value we just
157 got from db_get.
158 * Omit superfluous calls to 'exit 0' at the end of each script.
159 * Remove maas-cluster-controller prerm script, which called debconf for no
160 reason.
161 * Don't invoke debconf in the postrm script either, debhelper already does
162 this for us.
163 * Other miscellaneous maintainer script fixes
164 * debian/maas-common.postinst: call adduser and addgroup unconditionally;
165 the tools are already designed to DTRT, we don't need to check for the
166 user/group existence before calling them nor should we worry about
167 calling them only once on first install.
168 * debian/maas-common.postrm: delete the maas group, not just the user,
169 as the comment in the code implies we should do.
170
171 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 19 Mar 2013 15:38:22 -0400
172
173maas (1.3+bzr1452+dfsg-0ubuntu1) raring; urgency=low
174
175 * New upstream release.
176 - MAAS file storage mechanism is shifting from a single shared
177 namespace to a per-user namespace. Operators of the majority
178 of MAAS systems will not notice any change. However, operators
179 of the most complex installations may find that a new
180 "shared-environment" user is created, and that some resources
181 are reassigned to it, such as API credentials and SSH public
182 keys. This provides a transitional environment that mimics the
183 behaviour of a shared namespace.
184
185 [ Raphaël Badin ]
186 * debian/control: maas-region-controller depends on bind9utils.
187 (LP: #1103195)
188 * debian/maas-dns.postinst: Call write_dns_config.
189 (LP: #1085865).
190 * debian/maas-cluster-controller.postinst: Fix the name of the config
191 file (/etc/maas/pserv.yaml and not /etc/maas/pserv.conf)
192 (LP: #1083542).
193 * debian/extras/99-maas-sudoers: Add 'SETENV:' to sudo rule
194 to allow preserving the environment when running
195 /usr/sbin/maas-import-pxe-files via sudo.
196 * debian/maas-dns.postinst: fix permissions and group ownership of
197 file /etc/bind/maas/named.conf.rndc.maas. (LP: #1066935)
198 * debian/control: Remove the dependency of maas-cluster-controller
199 on rabbitmq-server. (LP: #1072744)
200 * debian/extras/99-maas-sudoers: Add sudo rule for script
201 /usr/sbin/maas-import-pxe-files.
202 * debian/maas-cluster-controller.install: Removed commissioning-user-data
203 script.
204
205 [ Julian Edwards ]
206 * debian/maas-region-controller.install: Remove installation of maas-gc; it
207 is no longer required as upstream no longer stores files in the filesystem.
208 (LP: #1069734)
209 * debian/maas-cluster-controller.postinst: Ensure that /etc/maas/pserv.yaml
210 is updated when reconfiguring. (LP: #1081212)
211
212 [ Jeroen Vermeulen ]
213 * debian/maas-cluster-controller.install: Install import scripts.
214 * debian/maas-cluster-controller.postinst: Configure tgt (the iSCSI server)
215 so the import script can install files to it.
216 * debian/maas-cluster-controller.postrm: Clean up tgt config.
217 * debian/maas-region-controller.install: Move import scripts out to the
218 cluster controller, and drop the maas-import-isos compatibility script.
219 * debian/maas-region-controller.postinst: Remove tgt config.
220 * debian/maas-region-controller.postrm: Remove tgt config cleanup.
221 * Bump code revision to include latest user_data.template fixes.
222
223 [ Gavin Panella ]
224 * debian/extras/99-maas: squashfs image download is no longer needed.
225 * debian/maas-cluster-controller.install: maas-import-squashfs and its
226 configuration file are no longer part of upstream.
227 * debian/maas-cluster-controller.install: The maas-import-pxe-files cron
228 task is no longer used.
229 * debian/maas-cluster-controller.postinst: Remove leading comment
230 markers from the 'generator' line in pserv.yaml.
231
232 [ Andres Rodriguez ]
233 * debian/control:
234 - maas-cluster-controller Conflicts with tftpd-hpa (LP: #1076028)
235 - maas-dns: Conflicts with dnsmasq
236 - maas-cluster-controller Conflicts/Replaces maas-region-controller as
237 import scripts are no longer shipped in the region.
238 - debian/control: Depends on distro-info for maas-cluster-controller
239 instead of maas-region-controller (LP: #1103194)
240 * debian/maas-cluster-controller.config: If URL has been detected,
241 add /MAAS if it doesn't contain it. This helps upgrades from versions
242 where DEFAULT_MAAS_URL didn't use /MAAS.
243
244 -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 04 Mar 2013 11:49:44 -0500
245
246maas (0.1+bzr1269+dfsg-0ubuntu1) quantal-proposed; urgency=low
247
248 * New upstream bugfix release
249 - Fixes commissioning failing to set memory attribute. (LP: #1064638)
250 - Fixes node listing by adding pagination (LP: #1064672)
251 - Changes default bind rndc key which breaks initscripts (LP: #1066938)
252 - Fixes invalid DNS config once node is enlisted (LP: #1066958)
253 - Reference documentation link to correct URL (LP: #1067261)
254
255 [ Andres Rodriguez ]
256 * debian/rules: Change upstream branch.
257
258 [ Gavin Panella ]
259 * debian/maas-dns.postinst: Remove MAAS-related include lines from named's
260 config before adding a new one (LP: #1066929)
261
262 [ Raphael Badin ]
263 * debian/extras/maas-region-celeryd: Remove whitespace that affects DNS
264 rabbitmq queue. (LP: #1067929)
265
266 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 16 Oct 2012 10:31:37 -0400
267
268maas (0.1+bzr1264+dfsg-0ubuntu2) quantal; urgency=low
269
270 * Fix MAAS not working after CD/preseed install (LP: #1065763)
271 - debian/extras/maas-region-celeryd: Add wrapper to run celery from
272 the upstart job.
273 - debian/extras/maas-region-controller.maas-region-celery.upstart: Create
274 rabbitmq user if it does not exists.
275 * debian/control: Remove unneeded deps on python-txtftp for some binary pkgs.
276 * debian/maas-region-controller.postinst: Minor fix referencing variable.
277
278 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 11 Oct 2012 17:38:08 -0400
279
280maas (0.1+bzr1264+dfsg-0ubuntu1) quantal; urgency=low
281
282 * New upstream release.
283
284 [ Raphaël Badin ]
285 * debian/maas-region-controller.postinst: Enable proxy_http module.
286 * debian/maas-cluster-controller.postinst: Create /var/lib/maas. (LP: #1065062)
287
288 [ Andres Rodriguez ]
289 * Install maas-provision with python-maas-provisioningserver (LP: #1065171):
290 - debian/python-maas-provisioningserver.install: Install
291 - debian/control: Add Conflicts/Replaces with maas-cluster-controller
292 to handle upgrades.
293 * debian/patches/04-fix-ipmi-enlistment.patch: Drop. Merged Upstream.
294 * debian/control: Depends on maas-region-controller for maas-dns.
295 * debian/maas-region-controller.postinst: Set the correct host for
296 BROKER_URL (LP: #1065080)
297 * Handle creation of user/group in maas-common.
298 * debian/maas-region-controller.config: Always source dbconfig scripts.
299
300 -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 10 Oct 2012 11:17:21 -0400
301
302maas (0.1+bzr1243+dfsg-0ubuntu3) quantal; urgency=low
303
304 * 04-fix-ipmi-enlistment.patch: retry maas-enlist without power parameters
305 on failure. This allows enlistment to continue working with Precise
306 ephemeral images before the Precise SRU for maas-enlist lands.
307 (LP: #1064922).
308
309 -- Robie Basak <robie.basak@canonical.com> Wed, 10 Oct 2012 13:29:16 +0000
310
311maas (0.1+bzr1243+dfsg-0ubuntu2) quantal; urgency=low
312
313 * debian/patches/99-ipmi-user-too-long.patch: Fix username too long for
314 IPMI user created on enlistment (LP: #1064832)
315
316 -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 10 Oct 2012 01:00:29 -0400
317
318maas (0.1+bzr1243+dfsg-0ubuntu1) quantal; urgency=low
319
320 * New upstream release. (LP: #1064596)
321 * debian/patches/99-temporary-fix-constraints.patch: Dropped.
322 * debian/control:
323 - ${python:Depends} for maas-common.
324 - Add missing Depends for python-maas-provisioningserver (LP: #1064542)
325 * debian/maas-cluster-controller.postinst: Create /var/log/maas if it
326 doesn't exist (LP: #1064539)
327
328 -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 08 Oct 2012 17:02:56 -0400
329
330maas (0.1+bzr1223+dfsg-0ubuntu1) quantal; urgency=low
331
332 * New upstream release. (LP: #1062518)
333
334 [ Julian Edwards ]
335 * Split packaging of 'maas' into maas-{region,cluster}-controller
336 - debian/control: Update accordingly.
337 - debian/*.install: Move files accordingly
338 - debian/*.{postinst,postrm,preinst}: Move files accordingly.
339 * Ensure isc-dhcp-server is disabled when installing maas-dhcp.
340 * Ensure maas-dns creates the maas user before trying to chown files.
341 * Make maas-cluster-controller autoconfigure itself when upgrading from the
342 old maas package. (LP: #1059416)
343 * Add missing prerm file for maas-cluster-controller so that .pyc files
344 are cleaned up. (LP: #1059973)
345
346 [ Raphaël Badin ]
347 * Install maas_local_celeryconfig.py in /etc/maas and symlink to
348 /usr/share/maas.
349 * debian/maas.postinst: Create rabbitmq celery user/vhost.
350 * debian/maas.postinst: Update BROKER_URL in maas_local_celeryconfig.py.
351 * Use maas_local_celeryconfig_cluster.py as the local celery
352 configuration file for the cluster worker.
353 * debian/maas-region-controller.maas-region-celery.upstart: Add region
354 worker upstart script.
355 * Rename cluster worker upstart script into
356 maas-cluster-controller.maas-clluster-celery.upstart.
357 * maas-cluster-controller.maas-celery.upstart: use "celeryconfig_cluster"
358 as the Celery config module.
359 * debian/maas-common.install: Install celeryconfig_common.py.
360 * debian/maas-cluster-controller.install: Install celeryconfig_cluster.py.
361 * debian/maas-region-controller.install: Install celeryconfig.py.
362 * Split celery config into cluster and region configs.
363 * Add region celeryd upstart config.
364 * Define CELERY_CONFIG_MODULE in
365 maas-cluster-controller.maas-cluster-celery.upstart
366
367 [ Jeroen Vermeulen ]
368 * Make maas_local_celery_config.py non-world readable.
369 * Make maas_local_celeryconfig_cluster.py non-world readable.
370 * Set root:maas ownership of local cluster config only *after*
371 the maas user/group have been created
372
373 [ Andres Rodriguez ]
374 * debian/maas.postinst:
375 - Always restart apache2.
376 - Handle upgrades for new upstream release.
377 - Handle upgrades for celery rabbitmq worker.
378 * Add binary package to install client tool.
379 - debian/extras/maas-cli: Add binary.
380 - debian/maas-cli.install: Add. Install maascli and apiclient.
381 - debian/control: Add binary package.
382 * debian/control:
383 - Depends on freeipmi-tools instead of ipmitool.
384 - Conflicts/Replaces on maas for python-maas-client.
385 - Depends on python-netifaces, python-lxml.
386 * Add python-maas-client binary package:
387 - debian/python-maas-client.install: Add. Install 'apiclient' python module.
388 - debian/control: Add package. python-django-maas and maas-cli now
389 Depend on it.
390 * debian/rules: Install maas-dhcp-server upstart job.
391 * debian/maas.postrm: Remove celery worker rabbitmq user and host.
392 * debian/extras/99-maas-sudoers: Add for maas-dhcp-server upstart job
393 instead of isc-dhcp-server (LP: #1055951)
394 * debian/maas-region-controller.postinst: Cleanup upgrade rules.
395 * debian/maas-cluster-controller.postinst: Fix 'local' usage.
396 * debian/maas-common.install: Install celeryconfig in appropriate location.
397 * debian/maas-cluster-controller.postrm: Add and delete maas user.
398 * debian/maas-dhcp.postinst: Stop isc-dhcp-server not isc_dhcp_server.
399 * debian/maas-region-controller.postinst:
400 - Always update passwords on upgrade. No longer check versioning. (LP: #1060094).
401 - Add MAAS server to allowed mirror in squid-deb-proxy
402 - Source dbconfig conf file for maas-region-controller on upgrade because
403 it writes a new config file and no longer preservers the previous password.
404 * debian/maas-cluster-controller.maas-cluster-celery.upstart: Remove set{uid/gid}.
405 * debian/maas-region-controller.install: Install maas-import-squashfs
406 * Handle removal of non existant files (LP: #1059556):
407 - debian/maintscript: Added to handle removal of conffiles.
408 - debian/control: Add Pre-depends and bump debhelper version.
409 * update po files for the templates.
410 * debian/extras/99-maas: Install in usr/share/maas/conf and symlink to the
411 appropriate etc dir.
412 * debian/maas-cluster-controller.config: Source debconf at the beginning of the
413 script. (LP: #1063857)
414 * debian/patches/99-temporary-fix-constraints.patch: Fix constraints maaping
415 when deploying with juju. Temporary until it gets merged upstream
416
417 [ Robie Basak ]
418 * Add maas-cluster-controller dependency on uuid-runtime, needed for uuidgen
419 by postinst.
420
421 [ Scott Moser ]
422 * debian/maas-dhcp.{install,apparmor,postrm} install apparmor profile into
423 /etc/apparmor.d/dhcpd.d (LP: #1049177), and update apparmor profile for
424 /usr/sbin/dhcpd on install/remove
425 * get the ip address for the dhcp server in config
426
427 [ Diogo Matsubara ]
428 * Add initial tests to be run by autotests:
429 - debian/control: XS-Testsuite: autopkgtest
430 - debian/tests/control: Add
431 - debian/tests/maas-package-test: Add
432 - tests/maas-integration.py: Add
433
434 -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 08 Oct 2012 13:10:23 -0400
435
436maas (0.1+bzr971+dfsg-0ubuntu2) quantal; urgency=low
437
438 * debian/extras/99-maas-sudoers: Add missing rule for
439 maas-provision. (LP: #1046397)
440
441 -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 05 Sep 2012 12:36:58 -0400
442
443maas (0.1+bzr971+dfsg-0ubuntu1) quantal; urgency=low
444
445 * New upstream release (LP: #1044367)
446
447 [ Julian Edwards ]
448 * Fix 02-pserv-config.patch to handle new default tftp directory
449
450 [ Andres Rodriguez ]
451 * debian/maas.postinst:
452 - include '/MAAS' for DEFAULT_MAAS_URL.(LP: #1033956)
453 - Update bzr version to safely upgrade.
454 * Add maas-dns package that configures DNS in MAAS (LP: #1030860)
455 * Remove cobbler related bits
456 - debian/maas.postinst: Drop cobbler configuration
457 - debian/maas.install: Drop installation of snippets/preseeds.
458 - debian/control:
459 + Drop Depends on maas-provision. (LP: #975473)
460 + Depends on bind9utils.
461 + Depends on python-lockfile (LP: #1037400)
462 Add necessary Conflicts/Replaces. Add conflicts to tftpd-hpa and dnsmasq.
463 Depends on isc-dhcp-server for maas-dhcp, and syslinux-common.
464 - debian/extras/maas-provision: Add missing "$@" (LP: #1040462)
465 - debian/patches:
466 + 02-pserv-config.patch: Updated. Do not patch cobbler related bits.
467 patch tftp config to default.
468 * maas-dhcp: Re-add to handle initial configuration of MAAS DHCP server.
469 * Allow restart of 'isc-dhcp-server' by adding a sudoers file:
470 - debian/extras/99-maas-sudoers: Added.
471 - debian/maas.install: Install 99-maas-sudoers
472 * Minor improvements on dbconfig-common handling:
473 - debian/maas.config: Only call dbc_go when scripts present.
474 - debian/maas.postrm: Only call dbc_go when config file exists.
475 * debian/maas.maas-celery.upstart: Enable Beat and set scheduler db file.
476 * debian/maas-dns.postinst: Set correct permissions. (LP: #1042868)
477 * debian/maas-dhcp.config:
478 - Ask whether we want to enable DHCP (LP: #1044229)
479 - Add debconf question for network interfaces
480 * debian/maas.prerm: Stop services before removing database (LP: #1044559)
481
482 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 02 Aug 2012 09:01:43 -0400
483
484maas (0.1+bzr777+dfsg-0ubuntu1) quantal-proposed; urgency=low
485
486 * New upstream release
487 * Only run 'maas' command as root. (LP: #974046)
488 - debian/extras/maas: Check id.
489 - debian/maas.install: Install in 'sbin'.
490 * debian/maas.postinst:
491 - restart apache2 after everything gets processed.
492 - Update version to handle upgrades.
493 * debian/extras/maas-provision: Add wrapper to access 'maasprovisiong'
494 command line.
495 * debian/patches/99_temporary_fix_path.patch: Dropped. No longer needed.
496
497 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 17 Jul 2012 08:28:36 -0400
498
499maas (0.1+bzr745+dfsg-0ubuntu2) quantal; urgency=low
500
501 * debian/control: Build-Dep on python-django instead of
502 python-django-configglue
503
504 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 17 Jul 2012 08:24:25 -0400
505
506maas (0.1+bzr745+dfsg-0ubuntu1) quantal; urgency=low
507
508 * New Upstream Release
509 * debian/patches:
510 - 99_power_fixes.patch: Dropped. Merged Upstream.
511 - 99_enums_js.patch: Dropped. No longer needed.
512 * Automatically build enums.js:
513 - debian/control: Build-Depends on python-django-configglue
514 - debian/rules: Build and install enums.js.
515 * debian/maas.postinst: Update version to handle upgrades
516
517 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 12 Jul 2012 16:34:11 -0400
518
519maas (0.1+bzr740+dfsg-0ubuntu1) quantal; urgency=low
520
521 * New upstream release
522 * debian/control: Depends on python-txtftp.
523 * debian/rules: Do not ship python-tx-tftp.
524 * debian/maas.postinst: Update version to upgrade successfully.
525 * debian/patches:
526 - 02-pserv-config.patch: Refreshed.
527 - 99_enums_js.patch: Updated.
528 - 99_power_fixes.patch: Added temporarily to enable IPMI
529 - 99_temporary_fix_path.patch: Added temporarily to not fail when
530 importing celeryconfig
531
532 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 03 Jul 2012 17:54:49 -0400
533
534maas (0.1+bzr709+dfsg-0ubuntu1) quantal; urgency=low
535
536 * New Upstream release
537 * debian/control:
538 - Depends on python-celery, python-tempita, libjs-yui3-{full,min},
539 libjs-raphael
540 * debian/maas.install:
541 - Install apiclient, celeryconfig.py, maas-import-pxe-files, preseeds_v2.
542 - Update to install various files from chroot, rather tha manually copy
543 them from the source.
544 * debian/maas.links: symlink celeryconfig.py
545 * debian/maas.maas-celery.upstart: Add job.
546 * debian/rules:
547 - Install celery upstart job.
548 - Do not install jslibs as packages are now used.
549 - Drop copying of maas_local_settings_sample.py as source now ships
550 a maas_local_settings.py
551 * debian/patches:
552 - 04-maas-http-fix.patch: Drop. Merged upstream.
553 - 01-fix-database-settings.patch: Refreshed.
554 - 99_enums_js.patch: Added until creation of enum.js / build process
555 is fixed.
556 * debian/maas.postinst: Update bzr version to correctly handle upgrades.
557
558 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 03 Jul 2012 17:42:37 -0400
559
560maas (0.1+bzr482+dfsg-0ubuntu1) precise; urgency=low
561
562 * New upstream release (Fixes LP: #981103)
563 * debian/maas.postinst:
564 - Make sure rabbitmq and postgresql are started on upgrade (LP: #981282)
565 - Handle upgrades from any lower than 0.1+bzr462+dfsg-0ubuntu1 to
566 correctly re-generate passwords, and not have db sync/migrate issues
567 as config has changed upstream.
568 - Correctly set Passwords for PSERV, otherwise it won't set new passwords.
569 * Allow MAAS_DEFAULT_URL reconfiguration. (LP: #980970)
570 - debian/maas.config: Add reconfigure validation to correctly allow it,
571 and ask a question.
572 - debian/maas.postinst: Reconfigure DEFAULT_MAAS_URL as well as cobbler
573 server and next_server for PXE/Provisioning.
574 - debian/maas.templates: Add debconf question and update info.
575 * Do not lose MAAS_DEFAULT_URL settings on upgrade (LP: #984309)
576 * debian/maas.postinst:
577 - Set cobbler password in between quotes (LP: #984427)
578 - Do not change permissions to maas.log (LP: #980915)
579 * no longer use maas-cloudimg2ephemeral, but rather use premade images
580 at http://maas.ubuntu.com
581
582 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 17 Apr 2012 23:44:46 -0700
583
584maas (0.1+bzr462+dfsg-0ubuntu1) precise; urgency=low
585
586 * New upstream release (LP: #980240)
587
588 [ Scott Moser ]
589 * add dependency on distro-info (LP: #949442)
590 * debian/control: add dependency on tgt for ephemeral iscsi environment
591
592 [ Andres Rodriguez ]
593 * Make package lintian clean:
594 - maas{-dhcp}.lintian-overrides: Add to make lintian clean.
595 - debian/control: Add missing dependencies; correct section and desc.
596 - debian/maas.postinst: Do not use absolute path for rabbitmqctl.
597 - debian/patches: Add headers to all patches.
598 * debian/maas-dhcp.postrm: Added to disable dnsmasq in cobbler on removal.
599 * debian/maas.config: Do not set a password with pwgen as it is not an
600 essential package; allow dbconfig-common to create a password instead by
601 creating an empty question. (LP: #977475)
602 * Run MAAS, pserv, txlongpoll as non-root user. (LP: #975436)
603 - debian/maas.postinst: Create user/group; set correct permissions for
604 directories.
605 - debian/maas.postrm: Remove user/group; restart apache2.
606 - debian/maas.maas-{pserv,txlongpoll}.upstart: Update to run as non-root
607 'maas' user.
608 * debian/patches/01-fix-database-settings.patch: Remove adding of PSERV_URL.
609 * debian/maas.postinst:
610 - Handle config file upgrade from versions lower than 0.1+bzr445+dfsg-0ubuntu1,
611 by creating new passwords and updating accordingly
612 - use local variables in functions.
613 - Handle maas tgt configuration for upgrades from 0.1+bzr459+dfsg-0ubuntu1.
614 * debian/extras/99-maas: Add squid-deb-proxy file to enable PPAs. (LP: #979383)
615 * debian/maas.install: Install missing commissioning-user-data script.
616
617 [ Dave Walker (Daviey) ]
618 * debian/patches/02-pserv-config.patch: Refreshed to apply to updated config.
619
620 [ Gavin Panella ]
621 * debian/maas.postinst: Update pserv.yaml and maas_local_settings.py to use
622 password.
623
624 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 12 Apr 2012 16:37:53 -0400
625
626maas (0.1+bzr415+dfsg-0ubuntu2) precise; urgency=low
627
628 * debian/maas-dhcp.{config,postinst}:
629 - Fix not setting new values on fresh install. (LP: #975321)
630 - Fix unsetting domain, otherwise, even if disabled, it will always be set.
631 * debian/control: Depends on maas for maas-dhcp.
632
633 -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 06 Apr 2012 15:30:44 -0400
634
635maas (0.1+bzr415+dfsg-0ubuntu1) precise; urgency=low
636
637 * debian/control: Update package descriptions; Suggests maas-dhcp for maas
638 and add a maas-dhcp binary.
639 * Add maas-dhcp package to configure a DHCP server.
640 - debian/maas-dhcp.config: Add to ask debconf questions about range,
641 gateway, and domain.
642 - debian/maas-dhcp.postinst: Handle update of config values.
643 - debian/maas-dhcp.templates: Debconf questions.
644 * debian/po: Update for templates.
645 * Add message telling MAAS URL after installation.
646 - debian/maas.templates: Add message.
647 - debian/maas.postinst: Display message.
648 * debian/maas.config: Hide dbconfig-install question.
649
650 -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 04 Apr 2012 14:47:13 -0400
651
652maas (0.1+bzr400+dfsg-0ubuntu1) precise; urgency=low
653
654 * debian/patches/{02-pserv-config,03-txlongpoll-config}.patch: Refreshed.
655 * debian/maas.install: Install maas-gc cronjob.
656 * Add apport hook.
657 - debian/maas.apport: Add hook.
658 - debian/rules: Install with apport.
659 * debian/maas.logrotate: Add logrotate for txlongpoll and pserv logs.
660 * Create 'var/lib/media/maas/storage' on postinst to have right permissions.
661 - debian/maas.dirs: Drop dir creation.
662 - debian/maas.postinst: Create dir with correct permissions.
663 - debian/maas.postrm: Remove dir on purge.
664
665 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 03 Apr 2012 14:50:34 -0400
666
667maas (0.1+bzr378+dfsg-0ubuntu1) precise; urgency=low
668
669 * maas.dirs: Create var/lib/maas/media/storage for juju storage.
670 * maas.postinst:
671 - Give correct permissions to above dir.
672 - stop apache2 before db upgrade, and restart after.
673
674 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 29 Mar 2012 19:28:13 -0400
675
676maas (0.1+bzr363+dfsg-0ubuntu1) precise; urgency=low
677
678 [ Dave Walker (Daviey) ]
679 * debian/control: Add openssh-server as a Recommends, and wrap-and-sort.
680
681 [ Andres Rodriguez ]
682 * debian/maas.postinst:
683 - Do not start apache with apache2ctl. Use invoke-rc.d instead to not
684 fail in the installer.
685 - For start of postgresql before creating the DB, otherwise it will
686 fail in the installer.
687 - Add check of invoke-rc.d for syslog.
688 - Add check of invoke-rc.d for rabbitmq-server; Add check for rabbitmqctl
689 - Add db_stop, in case invoke-rc.d fails.
690 * debian/control: Tight python-django-maas dependency.
691 * debian/postrm: Add check for rabbitmqctl.
692 * debian/maas.maas-txlongpoll.upstart: Create rabbitmq longpoll user/vhost
693 and set permissions if they don't exist. Start on rabbitmq-server-running.
694
695 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 27 Mar 2012 14:49:56 -0400
696
697maas (0.1+bzr338+dfsg-0ubuntu1) precise; urgency=low
698
699 [ Dave Walker (Daviey) ]
700 * d/patches/03-txlongpoll-config.patch: Resolve typo error from prior patch.
701 - LP: #961031
702
703 [ Andres Rodriguez ]
704 * debian/maas.config: Don't allow reconfigure.
705 * debian/maas.postinst: Don't allow reconfigure. Run sync/migrate db on
706 all upgrades.
707
708 [ Scott Moser ]
709 * add rsylog config for logging node boots (LP: 960149)
710
711 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 22 Mar 2012 10:56:58 -0400
712
713maas (0.1+bzr315+dfsg-0ubuntu1) precise; urgency=low
714
715 * New upstream snapshot.
716
717 [ Dave Walker ]
718 * debian/maas.postinst: Do not import ISO's at install time.
719 * debian/control:
720 - Drop run-one, it's not a requirement and currently in universe.
721 - Drop python-setproctitle, no longer required.
722
723 [ Andres Rodriguez ]
724 * debian/control: Depends on python-avahi, python-dbus, and avahi-daemon.
725 * debian/maas.postinst:
726 - Only syncdb if dbconfig db creation was selected.
727 - Set rabbitmq/longpoll settings
728 * debian/patches/03-txlongpoll-config.patch: Updated broker settings for
729 rabbitmq.
730
731 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 20 Mar 2012 20:10:58 -0400
732
733maas (0.1+bzr300+dfsg-0ubuntu1) precise; urgency=low
734
735 * debian/patches:
736 - 01-fix-database-settings.patch: Update PSERV_URL port.
737 - 02-pserv-config.patch: Update, and set 'maas' as username.
738 - 03-longpoll-config.patch: Update.
739 * debian/maas.install: Install preseeds and snippets.
740 * debian/maas.postinst:
741 - Set password for 'maas' cobbler username (in pserv and cobbler).
742 - Set DEFAULT_MAAS_URL to IP of interface with default gateway.
743
744 -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 16 Mar 2012 14:59:16 -0400
745
746maas (0.1+bzr295+dfsg-0ubuntu2) precise; urgency=low
747
748 * debian/patches:
749 - 01-fix-database-settings.patch: Update to set PSERV_URL.
750 - 02-pserv-config.patch: Set port to 8001.
751 * debian/maas.postinst: Run maas-import-isos on install.
752 * debian/control: Depends on rabbitmq-server.
753
754 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 15 Mar 2012 18:14:08 -0400
755
756maas (0.1+bzr295+dfsg-0ubuntu1) precise; urgency=low
757
758 * debian/maas.upstart: Specify pidfile and conffile.
759 * debian/maas.postinst:
760 - Only run syncdb if dbconfig postinst file exists.
761 - Fix file permissions.
762 * debian/maas.{postrm,prerm}: Add dbconfig-common support.
763 * Add txlongpoll support for packaging:
764 - debian/control: Depends on python-txlongpoll.
765 - debian/maas.maas-longpoll.upstart: Added to start txlongpoll.
766 - debian/maas.install: Install txlongpoll.yaml
767 * debian/extras/maas: Improvements.
768 * debian/maas.maas.upstart: Moved from debian/maas.upstart.
769 * debian/maas.postinst: Touch logfile to set correct permissions (LP: #955400)
770 * debian/maas.logrotate: Add.
771 * debian/patches/03-txlongpoll-config.patch: Add default settings.
772 * debian/maas.config: Only run dbconfig-common on configure/reconfigure.
773 * Install maas_local_settings.py in /etc/maas and symlink to usr/share/maas
774 * Update references from MaaS to MAAS.
775 * Remove podebconf as templates no longer exist.
776 - debian/po: Remove.
777 - debian/control: Drop Build-Depends on po-debconf
778
779 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 15 Mar 2012 15:28:14 -0400
780
781maas (0.1+bzr266+dfsg-0ubuntu1) precise; urgency=low
782
783 * Remove support for squid3 and use squid-deb-proxy instead.
784 * debian/extras/maas: Add to handle syncdb and creation of admin user.
785 * Add debconf questions to ask for user/pass:
786 - debian/maas.{template,config}: Add
787 - debian/maas.postinst: Ask debconf questions.
788 - debian/po: Add translation templates.i
789 * debian/maas.postinst: Enable wsgi module; drop squid3 steps.
790 * debian/maas.postrm: removed.
791 * debian/patches/01-fix-database-settings.patch: Custom database settings
792 and static files path.
793 * debian/{rules,maas.install}: Install maas static files in
794 'usr/share/maas/web/static'.
795 * Integrate cobbler:
796 - debian/maas.install: Install pserv twisted plugin, and config.
797 - debian/maas.upstart: Created to start plugin daemon.
798 - debian/patches/02-pserv-config.patch: Custom pserv config.
799 * Integrate dbconfig-common:
800 - debian/maas.config: Added and default user/pass and database.
801 - debian/maas.{postinst,postrm}: Added handling for dbconfig-common
802 * debian/control: Depends on python-convoy.
803 * debian/rules: Update path to removal of dsfg files.
804 * debian/patches/01-fix-database-settings.patch: Updated.
805
806 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 13 Mar 2012 14:31:50 -0400
807
808maas (0.1+bzr232+dfsg-0ubuntu1) precise; urgency=low
809
810 * New upstream snapshot.
811
812 [ Dave Walker ]
813 * debian/control:
814 - Changed depends from psycopg2 to python-psycopg2 and dropped versioning.
815 - LP: #937982
816
817 [ Andres Rodriguez ]
818 * debian/maas.install: Install maas-import-isos and related files.
819 * Integrate squid3 as proxy solution:
820 - debian/extras/squid.conf: Added
821 - debian/control: Depend on squid3.
822 - debian/maas.{postinst,postrm}: Handle installation/removal of custom
823 squid config file.
824 * Split into different binary packages (maas,python-django-maas).
825 - debian/maas.postinst: Handle the apache2 configuration.
826
827 -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 07 Mar 2012 12:46:17 -0500
828
829maas (0.1+bzr171+dfsg-0ubuntu1) precise; urgency=low
830
831 * New upstream snapshot, post 0.1 release.
832 * debian/control:
833 - Drop depends on rabbitmq-server, no longer required.
834 * debian/watch: Introduced watch file.
835
836 -- Dave Walker (Daviey) <DaveWalker@ubuntu.com> Thu, 23 Feb 2012 13:08:12 +0000
837
838maas (0.1~bzr146+dfsg-0ubuntu1) precise; urgency=low
839
840 * Initial release
841
842 -- Julian Edwards <julian.edwards@canonical.com> Thu, 16 Jan 2012 15:29:07 +0000
0843
=== added file 'debian/compat'
--- debian/compat 1970-01-01 00:00:00 +0000
+++ debian/compat 2013-10-11 14:15:22 +0000
@@ -0,0 +1,1 @@
17
02
=== added file 'debian/control'
--- debian/control 1970-01-01 00:00:00 +0000
+++ debian/control 2013-10-11 14:15:22 +0000
@@ -0,0 +1,283 @@
1Source: maas
2Section: net
3Priority: optional
4Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
5Build-Depends: debhelper (>= 8.1.0~),
6 dh-apport,
7 po-debconf,
8 python (>= 2.7),
9 python-distribute,
10 python-django
11Standards-Version: 3.9.4
12X-Python-Version: >= 2.7
13Homepage: https://launchpad.net/maas
14
15Package: maas
16Architecture: all
17Depends: ${misc:Depends}, maas-cluster-controller, maas-region-controller, python-django-maas
18Description: Ubuntu MAAS Server
19 Ubuntu MAAS Server is the successor to Orchestra. It offers a
20 nice UI to provision your Ubuntu servers. Each physical server
21 (“node”) will be commissioned automatically on first boot.
22 During the commissioning process administrators are able to
23 configure hardware settings manually before an automated smoke
24 test and burn-in test are done. Once commissioned, a node can
25 be deployed on demand by name, or allocated to a queue for
26 dynamic allocation to services being deployed on this MAAS.
27 .
28 This package is a metapackage which installs a complete MAAS
29 service on a single machine.
30
31Package: maas-common
32Architecture: all
33Depends: ${misc:Depends}, ${python:Depends}
34Breaks: maas ( <= 0.1+bzr1048+dfsg-0ubuntu1 )
35Replaces: maas ( <= 0.1+bzr1048+dfsg-0ubuntu1 )
36Description: Ubuntu MAAS Server
37 Ubuntu MAAS Server is the successor to Orchestra. It offers a
38 nice UI to provision your Ubuntu servers. Each physical server
39 (“node”) will be commissioned automatically on first boot.
40 During the commissioning process administrators are able to
41 configure hardware settings manually before an automated smoke
42 test and burn-in test are done. Once commissioned, a node can
43 be deployed on demand by name, or allocated to a queue for
44 dynamic allocation to services being deployed on this MAAS.
45 .
46 This package contains common files
47
48Package: maas-region-controller
49Architecture: all
50Depends: apache2,
51 avahi-daemon,
52 bind9utils,
53 dbconfig-common,
54 iproute,
55 libapache2-mod-wsgi,
56 libjs-raphael,
57 libjs-yui3-full,
58 libjs-yui3-min,
59 maas-common (= ${binary:Version}),
60 postgresql-9.1,
61 pwgen,
62 python-django (>= 1.4),
63 python-django-maas (= ${binary:Version}),
64 python-django-piston,
65 python-django-south,
66 python-maas-provisioningserver (= ${binary:Version}),
67 python-djorm-ext-pgarray,
68 rabbitmq-server,
69 rsyslog,
70 squid-deb-proxy,
71 ${misc:Depends},
72 ${python:Depends}
73Recommends: openssh-server, maas-dns (= ${binary:Version})
74Breaks: maas ( <= 0.1+bzr1048+dfsg-0ubuntu1 )
75Replaces: maas ( <= 0.1+bzr1048+dfsg-0ubuntu1 )
76Description: Ubuntu MAAS Server
77 Ubuntu MAAS Server is the successor to Orchestra. It offers a
78 nice UI to provision your Ubuntu servers. Each physical server
79 (“node”) will be commissioned automatically on first boot.
80 During the commissioning process administrators are able to
81 configure hardware settings manually before an automated smoke
82 test and burn-in test are done. Once commissioned, a node can
83 be deployed on demand by name, or allocated to a queue for
84 dynamic allocation to services being deployed on this MAAS.
85 .
86 This package installs the region controller services: the web
87 UI and the database.
88
89Package: python-maas-provisioningserver
90Section: python
91Architecture: all
92Depends: python-celery,
93 python-distro-info,
94 python-formencode,
95 python-lockfile,
96 python-lxml,
97 python-maas-client,
98 python-netifaces,
99 python-oops,
100 python-oops-amqp,
101 python-oops-datedir-repo,
102 python-oops-twisted,
103 python-pyparsing,
104 python-simplestreams,
105 python-tempita,
106 python-twisted-core,
107 python-twisted-web,
108 python-txamqp,
109 python-txtftp,
110 python-yaml,
111 python-zope.interface,
112 ${misc:Depends},
113 ${python:Depends}
114Breaks: python-django-maas ( <= 0.1+bzr1048+dfsg-0ubuntu1 ), maas-cluster-controller (<= 0.1+bzr1243+dfsg-0ubuntu3)
115Replaces: python-django-maas ( <= 0.1+bzr1048+dfsg-0ubuntu1 ), maas-cluster-controller (<= 0.1+bzr1243+dfsg-0ubuntu3)
116Description: Ubuntu MAAS Server
117 Ubuntu MAAS Server is the successor to Orchestra. It offers a
118 nice UI to provision your Ubuntu servers. Each physical server
119 (“node”) will be commissioned automatically on first boot.
120 During the commissioning process administrators are able to
121 configure hardware settings manually before an automated smoke
122 test and burn-in test are done. Once commissioned, a node can
123 be deployed on demand by name, or allocated to a queue for
124 dynamic allocation to services being deployed on this MAAS.
125 .
126 This package contains the provisioning server libraries.
127
128Package: maas-cli
129Architecture: all
130Depends: python-bzrlib,
131 python-httplib2,
132 python-maas-client (= ${binary:Version}),
133 python-oauth,
134 ${misc:Depends},
135 ${python:Depends}
136Description: Ubuntu MAAS Client Tool
137 Ubuntu MAAS Server is the successor to Orchestra. It offers a
138 nice UI to provision your Ubuntu servers. Each physical server
139 (“node”) will be commissioned automatically on first boot.
140 During the commissioning process administrators are able to
141 configure hardware settings manually before an automated smoke
142 test and burn-in test are done. Once commissioned, a node can
143 be deployed on demand by name, or allocated to a queue for
144 dynamic allocation to services being deployed on this MAAS.
145 .
146 This package contains the client command line tool.
147
148Package: python-maas-client
149Section: python
150Architecture: all
151Depends: python-oauth, ${misc:Depends}, ${python:Depends}
152Breaks: maas (<= 0.1+bzr971+dfsg-0ubuntu2 )
153Replaces: maas (<= 0.1+bzr971+dfsg-0ubuntu2 )
154Description: Ubuntu MAAS API Client - (python files)
155 Ubuntu MAAS Server is the successor to Orchestra. It offers a
156 nice UI to provision your Ubuntu servers. Each physical server
157 (“node”) will be commissioned automatically on first boot.
158 During the commissioning process administrators are able to
159 configure hardware settings manually before an automated smoke
160 test and burn-in test are done. Once commissioned, a node can
161 be deployed on demand by name, or allocated to a queue for
162 dynamic allocation to services being deployed on this MAAS.
163 .
164 This package contains the client API Python modules.
165
166Package: maas-cluster-controller
167Architecture: all
168Depends: apache2,
169 bind9utils,
170 distro-info,
171 freeipmi-tools,
172 maas-cli (=${binary:Version}),
173 maas-common (=${binary:Version}),
174 maas-dhcp (=${binary:Version}),
175 python-celery,
176 python-httplib2,
177 python-lockfile,
178 python-maas-provisioningserver (=${binary:Version}),
179 python-netaddr,
180 python-oauth,
181 python-tempita,
182 python-twisted,
183 python-zope.interface,
184 rsyslog,
185 syslinux-common,
186 tgt,
187 ubuntu-cloudimage-keyring,
188 uuid-runtime,
189 wget,
190 ${misc:Depends},
191 ${python:Depends}
192Conflicts: tftpd-hpa
193Breaks: maas ( <= 0.1+bzr1048+dfsg-0ubuntu1 ), maas-region-controller ( <= 0.1+bzr1314+dfsg-0ubuntu1 )
194Replaces: maas ( <= 0.1+bzr1048+dfsg-0ubuntu1 ), maas-region-controller ( <= 0.1+bzr1314+dfsg-0ubuntu1 )
195Description: Ubuntu MAAS Cluster Controller
196 Ubuntu MAAS Server is the successor to Orchestra. It offers a
197 nice UI to provision your Ubuntu servers. Each physical server
198 (“node”) will be commissioned automatically on first boot.
199 During the commissioning process administrators are able to
200 configure hardware settings manually before an automated smoke
201 test and burn-in test are done. Once commissioned, a node can
202 be deployed on demand by name, or allocated to a queue for
203 dynamic allocation to services being deployed on this MAAS.
204 .
205 This package contains the cluster controller, which is
206 responsible for controlling remote DHCP/TFTP instances on their
207 own subnets.
208
209Package: python-django-maas
210Section: python
211Architecture: all
212Depends: python-avahi,
213 python-celery,
214 python-convoy,
215 python-curtin,
216 python-dbus,
217 python-lockfile,
218 python-lxml,
219 python-maas-client (= ${binary:Version}),
220 python-netaddr,
221 python-oops,
222 python-oops-amqp,
223 python-oops-datedir-repo,
224 python-oops-twisted,
225 python-oops-wsgi,
226 python-psycopg2,
227 python-sphinx,
228 python-tempita,
229 python-twisted,
230 python-txamqp,
231 python-txlongpoll,
232 python-zope.interface,
233 ${misc:Depends},
234 ${python:Depends}
235Description: Ubuntu MAAS Server - (django files)
236 Ubuntu MAAS Server is the successor to Orchestra. It offers a
237 nice UI to provision your Ubuntu servers. Each physical server
238 (“node”) will be commissioned automatically on first boot.
239 During the commissioning process administrators are able to
240 configure hardware settings manually before an automated smoke
241 test and burn-in test are done. Once commissioned, a node can
242 be deployed on demand by name, or allocated to a queue for
243 dynamic allocation to services being deployed on this MAAS.
244 .
245 This package contains the Django files.
246
247Package: maas-dhcp
248Architecture: all
249Depends: isc-dhcp-server (>= 4.2.4), ${misc:Depends}
250Breaks: maas-dhcp (<= 0.1+bzr777+dfsg-0ubuntu1)
251Replaces: maas-dhcp (<= 0.1+bzr777+dfsg-0ubuntu1)
252Description: Ubuntu MAAS Server - DHCP Configuration (meta-package)
253 Ubuntu MAAS Server is the successor to Orchestra. It offers a
254 nice UI to provision your Ubuntu servers. Each physical server
255 (“node”) will be commissioned automatically on first boot.
256 During the commissioning process administrators are able to
257 configure hardware settings manually before an automated smoke
258 test and burn-in test are done. Once commissioned, a node can
259 be deployed on demand by name, or allocated to a queue for
260 dynamic allocation to services being deployed on this MAAS.
261 .
262 This package configures a DHCP that can be used with MAAS.
263
264Package: maas-dns
265Architecture: all
266Depends: bind9,
267 maas-region-controller (= ${binary:Version}),
268 maas-dhcp (= ${binary:Version}),
269 ${misc:Depends}
270Conflicts: dnsmasq
271Breaks: maas-dhcp (<= 0.1+bzr777+dfsg-0ubuntu1)
272Replaces: maas-dhcp (<= 0.1+bzr777+dfsg-0ubuntu1)
273Description: Ubuntu MAAS Server - DNS configuration (metapackage)
274 Ubuntu MAAS Server is the successor to Orchestra. It offers a
275 nice UI to provision your Ubuntu servers. Each physical server
276 (“node”) will be commissioned automatically on first boot.
277 During the commissioning process administrators are able to
278 configure hardware settings manually before an automated smoke
279 test and burn-in test are done. Once commissioned, a node can
280 be deployed on demand by name, or allocated to a queue for
281 dynamic allocation to services being deployed on this MAAS.
282 .
283 This package configures a DNS that can be used with MAAS.
0284
=== added file 'debian/copyright'
--- debian/copyright 1970-01-01 00:00:00 +0000
+++ debian/copyright 2013-10-11 14:15:22 +0000
@@ -0,0 +1,25 @@
1Format: http://dep.debian.net/deps/dep5
2Upstream-Name: maas
3Source: https://launchpad.net/maas
4
5Files: *
6Copyright: 2012 Canonical Ltd.
7License: AGPL-3.0+
8
9Files: debian/*
10Copyright: 2012 Canonical Ltd.
11License: AGPL-3.0+
12
13License: AGPL-3.0+
14 This program is free software: you can redistribute it and/or modify
15 it under the terms of the GNU Affero General Public License as
16 published by the Free Software Foundation, either version 3 of the
17 License, or (at your option) any later version.
18 .
19 This program is distributed in the hope that it will be useful,
20 but WITHOUT ANY WARRANTY; without even the implied warranty of
21 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 GNU Affero General Public License for more details.
23 .
24 You should have received a copy of the GNU Affero General Public License
25 along with this program. If not, see <http://www.gnu.org/licenses/>.
026
=== added directory 'debian/extras'
=== added file 'debian/extras/20-maas.conf'
--- debian/extras/20-maas.conf 1970-01-01 00:00:00 +0000
+++ debian/extras/20-maas.conf 2013-10-11 14:15:22 +0000
@@ -0,0 +1,32 @@
1# Enable the udp server for installation logging
2$ModLoad imudp
3$UDPServerRun 514
4$ModLoad imtcp # load TCP listener
5
6# The following section (certificates) was copied from orchestra, but is
7# not used here. In the future, if we needed secure ssl, then re-enable.
8# These files were created in the orchestra-logging-server's postinst
9#
10## make gtls driver the default
11#$DefaultNetstreamDriver gtls
12#
13## certificate files
14#$DefaultNetstreamDriverCAFile /var/lib/maas/ssl-cert-orchestra-ca.pem
15#$DefaultNetstreamDriverCertFile /var/lib/maas/.ssl/ssl-cert-orchestra.pem
16#$DefaultNetstreamDriverKeyFile /var/lib/maas/.ssl/ssl-cert-orchestra-pk.pem
17#
18#$InputTCPServerStreamDriverMode 1 # run driver in TLS-only mode
19#$InputTCPServerStreamDriverAuthMode anon # client is NOT authenticated
20#$InputTCPServerRun 10514 # start up listener at port 10514
21
22# Reduce message repetition
23$RepeatedMsgReduction on
24##$RepeatedMsgContainsOrigionalMsg on
25
26# Message templating
27$template MAASboot,"/var/log/maas/rsyslog/%HOSTNAME%/%$YEAR%/%$MONTH%/%$DAY%/messages"
28
29:fromhost-ip, !isequal, "127.0.0.1" ?MAASboot
30# Stop messages that came from anywhere else from going into other places
31# like /var/log/syslog. If you want to see these messages there, then comment below
32& ~
033
=== added file 'debian/extras/99-maas'
--- debian/extras/99-maas 1970-01-01 00:00:00 +0000
+++ debian/extras/99-maas 2013-10-11 14:15:22 +0000
@@ -0,0 +1,4 @@
1# /etc/squid-deb-proxy/mirror-dstdomain.acl.d/99-maas
2#
3# Enable launchpad personal package archives for squid-deb-proxy
4ppa.launchpad.net
05
=== added file 'debian/extras/99-maas-sudoers'
--- debian/extras/99-maas-sudoers 1970-01-01 00:00:00 +0000
+++ debian/extras/99-maas-sudoers 2013-10-11 14:15:22 +0000
@@ -0,0 +1,3 @@
1maas ALL= NOPASSWD: /usr/sbin/service maas-dhcp-server restart
2maas ALL= NOPASSWD: /usr/sbin/maas-provision
3maas ALL= NOPASSWD: SETENV: /usr/sbin/maas-import-pxe-files
04
=== added file 'debian/extras/isc-dhcp-server.override'
--- debian/extras/isc-dhcp-server.override 1970-01-01 00:00:00 +0000
+++ debian/extras/isc-dhcp-server.override 2013-10-11 14:15:22 +0000
@@ -0,0 +1,1 @@
1manual
02
=== added file 'debian/extras/maas'
--- debian/extras/maas 1970-01-01 00:00:00 +0000
+++ debian/extras/maas 2013-10-11 14:15:22 +0000
@@ -0,0 +1,8 @@
1#!/bin/sh
2if [ "$(id -u)" != "0" ]; then
3 echo "This utility may only be run as root." 1>&2
4 exit 1
5fi
6export PYTHONPATH="/usr/share/maas${PYTHONPATH:+:}${PYTHONPATH}"
7export DJANGO_SETTINGS_MODULE="maas.settings"
8exec /usr/bin/django-admin "$@"
09
=== added file 'debian/extras/maas-cli'
--- debian/extras/maas-cli 1970-01-01 00:00:00 +0000
+++ debian/extras/maas-cli 2013-10-11 14:15:22 +0000
@@ -0,0 +1,2 @@
1#!/bin/sh
2exec python -m maascli "$@"
03
=== added file 'debian/extras/maas-provision'
--- debian/extras/maas-provision 1970-01-01 00:00:00 +0000
+++ debian/extras/maas-provision 2013-10-11 14:15:22 +0000
@@ -0,0 +1,7 @@
1#!/bin/sh
2if [ "$(id -u)" != "0" ]; then
3 echo "This utility may only be run as root." 1>&2
4 exit 1
5fi
6export PYTHONPATH="/usr/share/maas${PYTHONPATH:+:}${PYTHONPATH}"
7exec /usr/bin/python -m provisioningserver "$@"
08
=== added file 'debian/extras/maas-region-celeryd'
--- debian/extras/maas-region-celeryd 1970-01-01 00:00:00 +0000
+++ debian/extras/maas-region-celeryd 2013-10-11 14:15:22 +0000
@@ -0,0 +1,50 @@
1#!/usr/bin/python
2import os
3from grp import getgrnam
4from pwd import getpwnam
5
6def start_celery(args):
7 uid = getpwnam(args.user).pw_uid
8 gid = getgrnam(args.group).gr_gid
9
10 env = dict(os.environ, PYTHONPATH="/usr/share/maas")
11
12 command = [
13 'celeryd',
14 '--logfile=%s' % args.logfile,
15 '--schedule=%s' % args.schedule,
16 '--loglevel=INFO',
17 '--beat',
18 '--queues=celery,master',
19 ]
20
21 # Change gid first, just in case changing the uid might deprive
22 # us of the privileges required to setgid.
23 os.setgid(gid)
24 os.setuid(uid)
25
26 os.execvpe(command[0], command, env=env)
27
28def main():
29 import argparse
30 parser = argparse.ArgumentParser(
31 description='MAAS celery daemon config options')
32 parser.add_argument(
33 '--user', '-u', metavar='USER', default='maas',
34 help="System user identity that should run the cluster controller.")
35 parser.add_argument(
36 '--group', '-g', metavar='GROUP', default='maas',
37 help="System group that should run the cluster controller.")
38 parser.add_argument(
39 '--logfile', '-l', metavar='LOGFILE', default='/var/log/maas/celery-region.log',
40 help="Location of the logfile.")
41 parser.add_argument(
42 '--schedule', '-s', metavar='SCHEDULE', default='/var/lib/maas/celerybeat-region-schedule',
43 help="Location of the beat schedule file.")
44
45 args = args = parser.parse_args()
46
47 start_celery(args)
48
49if __name__ == '__main__':
50 main()
051
=== added file 'debian/extras/maas_remote_syslog_compress'
--- debian/extras/maas_remote_syslog_compress 1970-01-01 00:00:00 +0000
+++ debian/extras/maas_remote_syslog_compress 2013-10-11 14:15:22 +0000
@@ -0,0 +1,2 @@
1# Compress log files not changed in more than 48 hours:
230 4 * * * root find /var/log/maas/rsyslog -type f -mtime +2 -exec bzip2 '{}' \;
03
=== added file 'debian/maas-cli.install'
--- debian/maas-cli.install 1970-01-01 00:00:00 +0000
+++ debian/maas-cli.install 2013-10-11 14:15:22 +0000
@@ -0,0 +1,2 @@
1debian/extras/maas-cli usr/bin
2debian/tmp/usr/lib/python*/dist-packages/maascli
03
=== added file 'debian/maas-cli.lintian-overrides'
--- debian/maas-cli.lintian-overrides 1970-01-01 00:00:00 +0000
+++ debian/maas-cli.lintian-overrides 2013-10-11 14:15:22 +0000
@@ -0,0 +1,1 @@
1maas-cli: binary-without-manpage usr/bin/maas-cli
02
=== added file 'debian/maas-cluster-controller.config'
--- debian/maas-cluster-controller.config 1970-01-01 00:00:00 +0000
+++ debian/maas-cluster-controller.config 2013-10-11 14:15:22 +0000
@@ -0,0 +1,36 @@
1#!/bin/sh
2
3set -e
4
5. /usr/share/debconf/confmodule
6db_version 2.0
7
8# Only ask for new installations and reconfiguring.
9# XXX Fix to not ask when installing from the CD.
10if ([ "$1" = "configure" ] && [ -z "$2" ]); then
11
12 db_get maas-cluster-controller/maas-url || true
13 if [ -z "$RET" ]; then
14 # Attempt to pre-populate if installing on the region controller.
15 if [ -e /etc/maas/maas_local_settings.py ]; then
16 url=$(awk '$1 == "DEFAULT_MAAS_URL" { split($0,array,"\"")} END{print array[2] }' /etc/maas/maas_local_settings.py)
17 # If the URL doesn't end in /MAAS then add it. This helps upgrades from
18 # precise for which the URL didn't contain /MAAS, which is now required
19 if ! echo $url | grep -qs "/MAAS$"; then
20 url="${url}/MAAS"
21 fi
22 db_set maas-cluster-controller/maas-url "$url"
23 else
24 # Will only get here if dbconf value not already set, or
25 # /etc/maas/maas_local_settings.py doesn't exist.
26 db_input medium maas-cluster-controller/maas-url || true
27 db_go
28 fi
29 fi
30fi
31
32if [ "$1" = "reconfigure" ]; then
33 db_input high maas-cluster-controller/maas-url || true
34 db_go
35fi
36#DEBHELPER#
037
=== added file 'debian/maas-cluster-controller.dirs'
--- debian/maas-cluster-controller.dirs 1970-01-01 00:00:00 +0000
+++ debian/maas-cluster-controller.dirs 2013-10-11 14:15:22 +0000
@@ -0,0 +1,1 @@
1etc/maas
02
=== added file 'debian/maas-cluster-controller.install'
--- debian/maas-cluster-controller.install 1970-01-01 00:00:00 +0000
+++ debian/maas-cluster-controller.install 2013-10-11 14:15:22 +0000
@@ -0,0 +1,32 @@
1# Install twisted plugins
2twisted/plugins/maasps.py usr/share/pyshared/twisted/plugins
3
4# Install PSERV config file
5debian/tmp/etc/maas/pserv.yaml
6
7# Install cluster config file
8debian/tmp/etc/maas/maas_cluster.conf
9
10# Install celery config file
11debian/tmp/usr/share/maas/celeryconfig_cluster.py
12
13# Install local celery cluster config file
14debian/tmp/etc/maas/maas_local_celeryconfig_cluster.py
15
16# Install templates
17debian/tmp/etc/maas/templates/dhcp
18debian/tmp/etc/maas/templates/power
19debian/tmp/etc/maas/templates/pxe
20
21# Install maas-import-pxe-files and related files
22debian/tmp/usr/sbin/maas-import-pxe-files
23man/maas-import-pxe-files.8 usr/share/man/man8
24debian/tmp/etc/maas/import_ephemerals
25debian/tmp/etc/maas/import_pxe_files
26debian/tmp/usr/sbin/maas-import-ephemerals
27debian/tmp/usr/bin/uec2roottar
28
29# Install all other stuff
30debian/extras/99-maas-sudoers etc/sudoers.d
31debian/extras/isc-dhcp-server.override etc/init
32debian/tmp/etc/maas/maas-cluster-http.conf
033
=== added file 'debian/maas-cluster-controller.links'
--- debian/maas-cluster-controller.links 1970-01-01 00:00:00 +0000
+++ debian/maas-cluster-controller.links 2013-10-11 14:15:22 +0000
@@ -0,0 +1,1 @@
1etc/maas/maas_local_celeryconfig_cluster.py usr/share/maas/maas_local_celeryconfig_cluster.py
02
=== added file 'debian/maas-cluster-controller.lintian-overrides'
--- debian/maas-cluster-controller.lintian-overrides 1970-01-01 00:00:00 +0000
+++ debian/maas-cluster-controller.lintian-overrides 2013-10-11 14:15:22 +0000
@@ -0,0 +1,2 @@
1maas-cluster-controller: binary-without-manpage usr/sbin/maas-import-ephemerals
2maas-cluster-controller: binary-without-manpage usr/bin/uec2roottar
03
=== added file 'debian/maas-cluster-controller.logrotate'
--- debian/maas-cluster-controller.logrotate 1970-01-01 00:00:00 +0000
+++ debian/maas-cluster-controller.logrotate 2013-10-11 14:15:22 +0000
@@ -0,0 +1,9 @@
1/var/log/maas/pserv.log {
2 rotate 5
3 weekly
4 compress
5 missingok
6 postrotate
7 [ -r /var/run/maas-pserv.pid ] && kill -s USR2 $(cat /var/run/maas-pserv.pid) || true
8 endscript
9}
010
=== added file 'debian/maas-cluster-controller.maas-cluster-celery.upstart'
--- debian/maas-cluster-controller.maas-cluster-celery.upstart 1970-01-01 00:00:00 +0000
+++ debian/maas-cluster-controller.maas-cluster-celery.upstart 2013-10-11 14:15:22 +0000
@@ -0,0 +1,30 @@
1# maas-cluster-controller - provisioning service
2#
3# MAAS Cluster Controller Service
4
5description "MAAS Cluster Controller"
6author "Julian Edwards <julian.edwards@canonical.com>"
7
8start on filesystem and net-device-up
9stop on runlevel [016]
10
11env CONFIG_FILE=/etc/maas/maas_cluster.conf
12# Use cluster config.
13env CELERY_CONFIG_MODULE="celeryconfig_cluster"
14
15pre-start script
16 if [ ! -f $CONFIG_FILE ]; then
17 echo "$CONFIG_FILE does not exist. Aborting."
18 stop
19 exit 0
20 fi
21end script
22
23script
24 # Prepare settings.
25 . $CONFIG_FILE
26 # Allow the cluster-controller process to read CLUSTER_UUID as set
27 # in that config file.
28 export CLUSTER_UUID
29 exec /usr/sbin/maas-provision start-cluster-controller $MAAS_URL -u maas -g maas
30end script
031
=== added file 'debian/maas-cluster-controller.maas-pserv.upstart'
--- debian/maas-cluster-controller.maas-pserv.upstart 1970-01-01 00:00:00 +0000
+++ debian/maas-cluster-controller.maas-pserv.upstart 2013-10-11 14:15:22 +0000
@@ -0,0 +1,31 @@
1# maas-pserv - provisioning service
2#
3# MAAS Provisioning Service
4
5description "MAAS"
6author "Andres Rodriguez <andres.rodriguez@canonical.com>"
7
8start on filesystem and net-device-up
9stop on runlevel [016]
10
11respawn
12
13env CONFIG_FILE=/etc/maas/maas_cluster.conf
14
15pre-start script
16 if [ ! -f $CONFIG_FILE ]; then
17 echo "$CONFIG_FILE does not exist. Aborting."
18 stop
19 exit 0
20 fi
21end script
22
23script
24 # Prepare settings.
25 . $CONFIG_FILE
26 # Allow the tftpd process to read CLUSTER_UUID as set in that config
27 # file.
28 export CLUSTER_UUID
29 # To add options to your daemon, edit the line below:
30 exec /usr/bin/twistd -n --uid=maas --gid=maas --pidfile=/run/maas-pserv.pid --logfile=/dev/null maas-pserv --config-file=/etc/maas/pserv.yaml
31end script
032
=== added file 'debian/maas-cluster-controller.postinst'
--- debian/maas-cluster-controller.postinst 1970-01-01 00:00:00 +0000
+++ debian/maas-cluster-controller.postinst 2013-10-11 14:15:22 +0000
@@ -0,0 +1,149 @@
1#!/bin/sh
2
3set -e
4
5. /usr/share/debconf/confmodule
6db_version 2.0
7
8RELEASE=`lsb_release -rs` || RELEASE=""
9
10create_log_dir() {
11 # create log dir
12 if [ ! -d /var/lib/maas ]; then
13 mkdir -p /var/lib/maas
14 fi
15 if [ ! -d /var/log/maas/oops ]; then
16 mkdir -p /var/log/maas/oops
17 fi
18 # Give appropriate permissions
19 chown -R maas:maas /var/lib/maas/
20 chown -R maas:maas /var/log/maas
21 chmod -R 775 /var/log/maas/oops
22}
23
24configure_maas_tgt(){
25 # Set up iSCSI: add maas.conf to tgt conf.d.
26 local tgtcfg="/etc/tgt/targets.conf"
27 [ -d /etc/tgt/conf.d/ ] ||
28 echo "Warning! $tgtcfg did not exist" 1>&2;
29 mkdir -p /etc/tgt/conf.d/ /var/lib/maas/ephemeral/
30 ln -sf /var/lib/maas/ephemeral/tgt.conf /etc/tgt/conf.d/maas.conf
31}
32
33extract_cluster_uuid(){
34 # Extract ClUSTER_UUID setting from config file $1. This will work
35 # both the cluster celery config (which is python) and the cluster
36 # config (which is shell).
37 sed -n -e "s/^CLUSTER_UUID *= *[\"']\([^\"']*\).*/\1/p" "$1"
38}
39
40configure_cluster_uuid(){
41 # The cluster uuid goes into maas_cluster.conf, but we also still
42 # keep a copy in maas_local_celeryconfig_cluster.py (hopefully just
43 # temporarily). If an old uuid is configured, we replicate that to
44 # maas_cluster.conf; otherwise, we want to generate one.
45 local uuid
46
47
48 if [ -n "$(extract_cluster_uuid /etc/maas/maas_cluster.conf)" ]; then
49 # UUID is already set up. Wonderful.
50 return
51 fi
52
53 # Look for a UUID stored in the old location.
54 uuid="$(extract_cluster_uuid /etc/maas/maas_local_celeryconfig_cluster.py)"
55
56 if [ -z "$uuid" ]; then
57 # No UUID at all yet. Generate one, and insert it into its
58 # placeholder in the old config location.
59 uuid="$(uuidgen)"
60 sed -i "s|^CLUSTER_UUID = None$|CLUSTER_UUID = '$uuid'|" \
61 /etc/maas/maas_local_celeryconfig_cluster.py
62 fi
63
64 # Either way, at this point we have a uuid, and it is configured in
65 # the old config location.
66 #
67 # Write it to maas_cluster.conf as well. There is no initial
68 # placeholder in this file, so just append the setting.
69 echo "CLUSTER_UUID=\"$uuid\"" >>/etc/maas/maas_cluster.conf
70}
71
72enable_apache_version_mod(){
73 COMMON_STATE=$(dpkg-query -f '${Status}' -W 'apache2.2-common' 2>/dev/null | awk '{print $3}' || true)
74 if [ "$COMMON_STATE" = "installed" ] || [ "$COMMON_STATE" = "unpacked" ] ; then
75 a2enmod version
76 fi
77}
78
79configure_cluster_http(){
80 case $RELEASE in
81 12.04|12.10|13.04)
82 if [ -e /etc/maas/maas-cluster-http.conf -a \
83 ! -e /etc/apache2/conf.d/maas-cluster-http.conf ]; then
84 ln -sf /etc/maas/maas-cluster-http.conf /etc/apache2/conf.d/maas-cluster-http.conf
85 fi
86 ;;
87 *)
88 # handle apache configs
89 if [ -e /etc/maas/maas-cluster-http.conf -a \
90 ! -e /etc/apache2/conf-enabled/maas-cluster-http.conf ]; then
91 ln -sf /etc/maas/maas-cluster-http.conf /etc/apache2/conf-enabled/maas-cluster-http.conf
92 fi
93 ;;
94 esac
95}
96
97restart_apache2(){
98 if [ -x /usr/sbin/invoke-rc.d ]; then
99 invoke-rc.d apache2 restart || true
100 else
101 /etc/init.d/apache2 restart || true
102 fi
103}
104
105
106
107if [ "$1" = "configure" ] && [ -z "$2" ]; then
108 # logging
109 create_log_dir
110 configure_maas_tgt
111fi
112
113if ([ "$1" = "configure" ] && [ -z "$2" ]) || [ -n "$DEBCONF_RECONFIGURE" ]; then
114
115 if dpkg --compare-versions "$2" lt 0.1+bzr1239+dfsg-0ubuntu1; then
116 create_log_dir
117 fi
118
119 # Get the MAAS_URL on configure/reconfigure and write it to the conf files.
120 db_get maas-cluster-controller/maas-url || true
121 if [ -n "$RET" ]; then
122 sed -i "s|MAAS_URL=.*|MAAS_URL=\"$RET\"|" /etc/maas/maas_cluster.conf
123 # Extract the hostname part.
124 HOSTPART=$(echo $RET|awk '{ split($0,array,"/")} END{print array[3] }')
125 # And substitute it in-place in pserv.yaml on an indented, non-commented
126 # line.
127 sed -ri "s|^([[:space:]]+)(#+[[:space:]]*)?(generator:[[:space:]]+https?://)[^:/]+|\1\3$HOSTPART|" /etc/maas/pserv.yaml
128 fi
129fi
130
131if [ "$1" = "configure" ]; then
132 # These config files may contain a private cluster UUID. Only maas
133 # can read them; only root can write them
134 chown root:maas \
135 /etc/maas/maas_local_celeryconfig_cluster.py \
136 /etc/maas/maas_cluster.conf
137 chmod 0640 \
138 /etc/maas/maas_local_celeryconfig_cluster.py \
139 /etc/maas/maas_cluster.conf
140
141 configure_cluster_uuid
142 enable_apache_version_mod
143 configure_cluster_http
144 restart_apache2
145fi
146
147db_stop
148
149#DEBHELPER#
0150
=== added file 'debian/maas-cluster-controller.postrm'
--- debian/maas-cluster-controller.postrm 1970-01-01 00:00:00 +0000
+++ debian/maas-cluster-controller.postrm 2013-10-11 14:15:22 +0000
@@ -0,0 +1,38 @@
1#!/bin/sh
2
3set -e
4
5#DEBHELPER#
6
7RELEASE=`lsb_release -rs` || RELEASE=""
8
9case "$1" in
10 purge)
11 # remove log directory
12 rm -rf /var/log/maas
13 case $RELEASE in
14 12.04|12.10|13.04)
15 if [ -h /etc/apache2/conf.d/maas-cluster-http.conf ]; then
16 rm -rf /etc/apache2/conf.d/maas-cluster-http.conf
17 fi
18 ;;
19 *)
20 # remove apache2 config
21 if [ -h /etc/apache2/conf-enabled/maas-cluster-http.conf ]; then
22 rm -rf /etc/apache2/conf-enabled/maas-cluster-http.conf
23 fi
24 ;;
25 esac
26 # remove var directory
27 rm -rf /var/lib/maas/celerybeat-cluster-schedule
28 DIR=/var/lib/maas
29 if [ "$(ls -A $DIR 2> /dev/null)" = "" ]; then
30 rm -rf /var/lib/maas
31 fi
32
33 # Delete symlink for iSCSI config.
34 if [ -L /etc/tgt/conf.d/maas.conf ]; then
35 rm -rf /etc/tgt/conf.d/maas.conf
36 fi
37
38esac
039
=== added file 'debian/maas-cluster-controller.templates'
--- debian/maas-cluster-controller.templates 1970-01-01 00:00:00 +0000
+++ debian/maas-cluster-controller.templates 2013-10-11 14:15:22 +0000
@@ -0,0 +1,7 @@
1Template: maas-cluster-controller/maas-url
2Type: string
3Default:
4_Description: Ubuntu MAAS API address:
5 The MAAS Cluster Controller needs to contact the MAAS server to
6 register its presence. Set the URL to the MAAS API here, e.g.
7 http://192.168.1.1/MAAS
08
=== added file 'debian/maas-common.install'
--- debian/maas-common.install 1970-01-01 00:00:00 +0000
+++ debian/maas-common.install 2013-10-11 14:15:22 +0000
@@ -0,0 +1,2 @@
1# Install Celery Config
2debian/tmp/usr/share/maas/celeryconfig_common.py
03
=== added file 'debian/maas-common.postinst'
--- debian/maas-common.postinst 1970-01-01 00:00:00 +0000
+++ debian/maas-common.postinst 2013-10-11 14:15:22 +0000
@@ -0,0 +1,14 @@
1#!/bin/sh
2
3set -e
4
5add_user_group(){
6 local user="maas"
7 local group="maas"
8 addgroup --quiet --system "$group" || true
9 adduser --quiet --system --group --no-create-home "$user" || true
10}
11
12add_user_group
13
14#DEBHELPER#
015
=== added file 'debian/maas-common.postrm'
--- debian/maas-common.postrm 1970-01-01 00:00:00 +0000
+++ debian/maas-common.postrm 2013-10-11 14:15:22 +0000
@@ -0,0 +1,14 @@
1#!/bin/sh
2
3set -e
4
5case "$1" in
6 purge)
7 # Deleting user/group
8 if getent passwd maas >/dev/null; then
9 deluser maas || true
10 delgroup maas || true
11 fi
12esac
13
14#DEBHELPER#
015
=== added file 'debian/maas-dhcp.apparmor'
--- debian/maas-dhcp.apparmor 1970-01-01 00:00:00 +0000
+++ debian/maas-dhcp.apparmor 2013-10-11 14:15:22 +0000
@@ -0,0 +1,7 @@
1/run/maas/dhcp/ r,
2/run/maas/dhcp/** r,
3/run/maas/dhcp/*.pid lrw,
4/run/maas/dhcp/*.trace lrw,
5/run/maas/dhcp/*.leases* lrw,
6/var/lib/maas/dhcp/dhcpd*.leases* lrw,
7/etc/maas/dhcpd.conf r,
08
=== added file 'debian/maas-dhcp.install'
--- debian/maas-dhcp.install 1970-01-01 00:00:00 +0000
+++ debian/maas-dhcp.install 2013-10-11 14:15:22 +0000
@@ -0,0 +1,1 @@
1/debian/tmp/etc/apparmor.d/dhcpd.d/maas
02
=== added file 'debian/maas-dhcp.maas-dhcp-server.upstart'
--- debian/maas-dhcp.maas-dhcp-server.upstart 1970-01-01 00:00:00 +0000
+++ debian/maas-dhcp.maas-dhcp-server.upstart 2013-10-11 14:15:22 +0000
@@ -0,0 +1,65 @@
1description "MAAS instance of ISC DHCP server"
2author "Jeroen Vermeulen <jtv@canonical.com>"
3
4start on runlevel [2345]
5stop on runlevel [!2345]
6
7env CONFIG_FILE=/etc/maas/dhcpd.conf
8env PID_DIR=/run/maas/dhcp
9env PID_FILE=/run/maas/dhcp/dhcpd.pid
10env LEASES_DIR=/var/lib/maas/dhcp
11env LEASES_FILE=/var/lib/maas/dhcp/dhcpd.leases
12
13# This is where we write what interfaces dhcpd should listen on.
14env INTERFACES_FILE=/var/lib/maas/dhcpd-interfaces
15
16pre-start script
17 if [ ! -f $CONFIG_FILE ]; then
18 echo "$CONFIG_FILE does not exist. Aborting."
19 stop
20 exit 0
21 fi
22
23 if [ ! -f $INTERFACES_FILE ]; then
24 echo "$INTERFACES_FILE does not exist. Aborting."
25 stop
26 exit 0
27 fi
28
29 if ! /usr/sbin/dhcpd -t -q -4 -cf $CONFIG_FILE > /dev/null 2>&1; then
30 echo "dhcpd self-test failed. Please fix the config file."
31 echo "The error was: "
32 /usr/sbin/dhcpd -t -4 -cf $CONFIG_FILE
33 stop
34 exit 0
35 fi
36end script
37
38respawn
39script
40 INTERFACES=`cat "${INTERFACES_FILE}"`
41
42 # Allow dhcp server to write lease and pid file.
43 mkdir -p $PID_DIR
44 chown dhcpd:dhcpd $PID_DIR
45
46 # As of Quantal, the leases file must be owned by root:root (even though
47 # the daemon will run under an unprivileged user).
48 # In Precise, ownership was supposed to be dhcpd:dhcpd.
49 #
50 # maas packages on saucy are only supported with newer isc-dhcp via
51 # the cloud-archive. See bug 1231693 for more information, including
52 # a patch that would actually work to support all, but is complex.
53
54 mkdir -p $LEASES_DIR
55 chown root:root $LEASES_DIR
56 [ -e $LEASES_FILE ] || touch $LEASES_FILE
57 for LFILE in $LEASES_FILE $LEASES_FILE~; do
58 if [ -e $LFILE ]; then
59 chown root:root $LFILE
60 chmod a+r $LFILE
61 fi
62 done
63
64 exec /usr/sbin/dhcpd -user dhcpd -group dhcpd -f -q -4 -pf $PID_FILE -cf $CONFIG_FILE -lf $LEASES_FILE $INTERFACES
65end script
066
=== added file 'debian/maas-dhcp.postinst'
--- debian/maas-dhcp.postinst 1970-01-01 00:00:00 +0000
+++ debian/maas-dhcp.postinst 2013-10-11 14:15:22 +0000
@@ -0,0 +1,15 @@
1#!/bin/sh
2
3set -e
4
5if [ "$1" = "configure" ]; then
6 invoke-rc.d isc-dhcp-server stop
7
8 dhcpd_prof="/etc/apparmor.d/usr.sbin.dhcpd"
9 if [ -f "${dhcpd_prof}" ] && command -v apparmor_parser >/dev/null 2>&1
10 then
11 apparmor_parser --replace --write-cache --skip-read-cache "${dhcpd_prof}" || true
12 fi
13fi
14
15#DEBHELPER#
016
=== added file 'debian/maas-dhcp.postrm'
--- debian/maas-dhcp.postrm 1970-01-01 00:00:00 +0000
+++ debian/maas-dhcp.postrm 2013-10-11 14:15:22 +0000
@@ -0,0 +1,13 @@
1#!/bin/sh
2
3set -e
4
5if [ "$1" = "remove" ] || [ "$1" = "purge" ]; then
6 dhcpd_prof="/etc/apparmor.d/usr.sbin.dhcpd"
7 if [ -f "${dhcpd_prof}" ] &&
8 command -v apparmor_parser >/dev/null 2>&1; then
9 apparmor_parser --replace --write-cache --skip-read-cache "${dhcpd_prof}"
10 fi
11fi
12
13#DEBHELPER#
014
=== added file 'debian/maas-dns.dirs'
--- debian/maas-dns.dirs 1970-01-01 00:00:00 +0000
+++ debian/maas-dns.dirs 2013-10-11 14:15:22 +0000
@@ -0,0 +1,1 @@
1etc/bind/maas
02
=== added file 'debian/maas-dns.postinst'
--- debian/maas-dns.postinst 1970-01-01 00:00:00 +0000
+++ debian/maas-dns.postinst 2013-10-11 14:15:22 +0000
@@ -0,0 +1,36 @@
1#!/bin/sh
2
3set -e
4
5if ([ "$1" = "configure" ] && [ -z "$2" ]) || [ -n "$DEBCONF_RECONFIGURE" ]; then
6 # If /etc/bind/maas is empty, set_up_dns.
7 if [ ! "$(ls -A /etc/bind/maas)" ]; then
8 maas set_up_dns
9 fi
10
11 # Fix permissions.
12 if [ -d /etc/bind/maas ]; then
13 chown -R maas:root /etc/bind/maas
14 fi
15 if [ -f /etc/bind/maas/named.conf.maas ]; then
16 chmod 644 /etc/bind/maas/named.conf.maas
17 fi
18 if [ -f /etc/bind/maas/rndc.conf.maas ]; then
19 chmod 600 /etc/bind/maas/rndc.conf.maas
20 fi
21 if [ -f /etc/bind/maas/named.conf.rndc.maas ]; then
22 chown maas:bind /etc/bind/maas/named.conf.rndc.maas
23 chmod 640 /etc/bind/maas/named.conf.rndc.maas
24 fi
25
26 # Remove any existing MAAS-related include line from
27 # /etc/bind/named.conf.local, then re-add it.
28 sed -i '/^include\s.*maas/d' /etc/bind/named.conf.local
29 maas get_named_conf --edit --config_path /etc/bind/named.conf.local
30
31 maas write_dns_config
32
33 invoke-rc.d bind9 restart || true
34fi
35
36#DEBHELPER#
037
=== added file 'debian/maas-dns.postrm'
--- debian/maas-dns.postrm 1970-01-01 00:00:00 +0000
+++ debian/maas-dns.postrm 2013-10-11 14:15:22 +0000
@@ -0,0 +1,23 @@
1#!/bin/sh
2
3set -e
4
5if [ "$1" = "remove" ]; then
6 if [ -f /etc/bind/named.conf.local ]; then
7 sed -i '/^include.*\"\/etc\/bind\/maas\/named.conf.maas\"\;$/d' \
8 /etc/bind/named.conf.local
9 fi
10fi
11
12if [ "$1" = "purge" ]; then
13 # Remove zone files
14 if [ -d /etc/bind/maas ]; then
15 rm -rf /etc/bind/maas
16 fi
17fi
18
19if [ -x /usr/sbin/invoke-rc.d ]; then
20 invoke-rc.d bind9 restart || true
21fi
22
23#DEBHELPER#
024
=== added file 'debian/maas-region-controller.apport'
--- debian/maas-region-controller.apport 1970-01-01 00:00:00 +0000
+++ debian/maas-region-controller.apport 2013-10-11 14:15:22 +0000
@@ -0,0 +1,37 @@
1#!/usr/bin/python
2
3'''apport hook for bind9
4
5(c) 2012 Canonical Ltd.
6Author: Andres Rodriguez <andres.rodriguez@canonical.com>
7
8This program is free software; you can redistribute it and/or modify it
9under the terms of the GNU General Public License as published by the
10Free Software Foundation; either version 2 of the License, or (at your
11option) any later version. See http://www.gnu.org/copyleft/gpl.html for
12the full text of the license.
13'''
14
15from apport.hookutils import *
16
17def add_info(report, ui):
18 response = ui.yesno("The contents of your /etc/maas/maas_local_settings.py, "
19 "/etc/maas/txlongpoll.yaml, /etc/maas/pserv.yaml files "
20 "may help developers diagnose your bug more "
21 "quickly. However, it may contain sensitive "
22 "information. Do you want to include it in your "
23 "bug report?")
24
25 if response == None: # user cancelled
26 raise StopIteration
27
28 elif response == True:
29 attach_conffiles(report,'maas')
30
31 # Attaching log files
32 attach_file_if_exists(report, '/var/log/maas/maas.log', 'MAASLog')
33 attach_file_if_exists(report, '/var/log/maas/pserv.log', 'MAASPservLog')
34 attach_file_if_exists(report, '/var/log/maas/txlongpoll.log', 'MAAStxlongpollLog')
35
36 # Attaching related packages info
37 attach_related_packages(report, ['python-django-maas', 'apparmor'])
038
=== added file 'debian/maas-region-controller.config'
--- debian/maas-region-controller.config 1970-01-01 00:00:00 +0000
+++ debian/maas-region-controller.config 2013-10-11 14:15:22 +0000
@@ -0,0 +1,45 @@
1#!/bin/sh
2
3set -e
4
5. /usr/share/debconf/confmodule
6db_version 2.0
7
8# creates question
9set_question() {
10 if ! db_fget "$1" seen; then
11 db_register dbconfig-common/dbconfig-install "$1"
12 db_subst "$1" ID "$1"
13 db_fget "$1" seen
14 fi
15 if [ "$RET" = false ]; then
16 db_set "$1" "$2"
17 db_fset "$1" seen true
18 fi
19}
20
21# source dbconfig-common shell library, and call the hook function
22if [ -f /usr/share/dbconfig-common/dpkg/config.pgsql ]; then
23 . /usr/share/dbconfig-common/dpkg/config.pgsql
24fi
25
26if [ "$1" = "configure" ] && [ -z "$2" ]; then
27 # Hide maas/dbconfig-install question by setting default.
28 set_question maas-region-controller/dbconfig-install true
29 set_question maas-region-controller/pgsql/app-pass ""
30
31 dbc_dbname="maasdb"
32 dbc_dbuser="maas"
33 dbc_remove="true"
34
35 dbc_go maas-region-controller $@
36
37elif [ -n "$DEBCONF_RECONFIGURE" ]; then
38 db_get maas/default-maas-url || true
39 if [ -z "$RET" ]; then
40 ipaddr=$(awk '$1 == "DEFAULT_MAAS_URL" { split($0,array,"/")} END{print array[3] }' /etc/maas/maas_local_settings.py)
41 db_set maas/default-maas-url "$ipaddr"
42 fi
43 db_input low maas/default-maas-url || true
44 db_go
45fi
046
=== added file 'debian/maas-region-controller.dirs'
--- debian/maas-region-controller.dirs 1970-01-01 00:00:00 +0000
+++ debian/maas-region-controller.dirs 2013-10-11 14:15:22 +0000
@@ -0,0 +1,2 @@
1var/log/maas/oops
2var/lib/maas/tftp
03
=== added file 'debian/maas-region-controller.install'
--- debian/maas-region-controller.install 1970-01-01 00:00:00 +0000
+++ debian/maas-region-controller.install 2013-10-11 14:15:22 +0000
@@ -0,0 +1,37 @@
1# Install project
2debian/tmp/usr/lib/python*/dist-packages/maas usr/share/maas
3
4# Install static files
5debian/tmp/usr/share/maas/web/static
6
7# Install Apache Config
8debian/tmp/etc/maas/maas-http.conf
9
10# Install MAAS local settings
11debian/tmp/etc/maas/maas_local_settings.py
12
13# Install celery config file
14debian/tmp/usr/share/maas/celeryconfig.py
15
16# Install local celery region config file
17debian/tmp/etc/maas/maas_local_celeryconfig.py
18
19# Install WSGI
20debian/tmp/usr/share/maas/wsgi.py
21
22# Install txlongpoll config file
23debian/tmp/etc/maas/txlongpoll.yaml
24
25# Install new preseed files
26debian/tmp/etc/maas/preseeds
27
28# Install templates
29debian/tmp/etc/maas/templates/dns
30debian/tmp/etc/maas/templates/commissioning-user-data
31
32# Install all other stuff
33debian/extras/maas usr/sbin
34debian/extras/maas-region-celeryd usr/sbin
35debian/extras/20-maas.conf etc/rsyslog.d
36debian/extras/maas_remote_syslog_compress etc/cron.d
37debian/extras/99-maas usr/share/maas/conf
038
=== added file 'debian/maas-region-controller.links'
--- debian/maas-region-controller.links 1970-01-01 00:00:00 +0000
+++ debian/maas-region-controller.links 2013-10-11 14:15:22 +0000
@@ -0,0 +1,2 @@
1etc/maas/maas_local_settings.py usr/share/maas/maas_local_settings.py
2etc/maas/maas_local_celeryconfig.py usr/share/maas/maas_local_celeryconfig.py
03
=== added file 'debian/maas-region-controller.lintian-overrides'
--- debian/maas-region-controller.lintian-overrides 1970-01-01 00:00:00 +0000
+++ debian/maas-region-controller.lintian-overrides 2013-10-11 14:15:22 +0000
@@ -0,0 +1,6 @@
1maas-region-controller: binary-without-manpage usr/sbin/maas
2maas-region-controller: binary-without-manpage usr/sbin/maas-region-celeryd
3maas-region-controller: script-not-executable etc/maas/templates/commissioning-user-data/snippets/maas_ipmi_autodetect.py
4maas-region-controller: script-not-executable etc/maas/templates/commissioning-user-data/snippets/maas_signal.py
5maas-region-controller: script-not-executable etc/maas/templates/commissioning-user-data/user_data.template
6maas-region-controller: script-not-executable etc/maas/templates/commissioning-user-data/snippets/maas_get.py
07
=== added file 'debian/maas-region-controller.logrotate'
--- debian/maas-region-controller.logrotate 1970-01-01 00:00:00 +0000
+++ debian/maas-region-controller.logrotate 2013-10-11 14:15:22 +0000
@@ -0,0 +1,18 @@
1/var/log/maas/maas.log {
2 rotate 5
3 weekly
4 compress
5 copytruncate
6 missingok
7 #create 620 root www-data
8}
9
10/var/log/maas/txlongpoll.log {
11 rotate 5
12 weekly
13 compress
14 missingok
15 postrotate
16 [ -r /var/run/maas-txlongpoll.pid ] && kill -s USR2 $(cat /var/run/maas-txlongpoll.pid) || true
17 endscript
18}
019
=== added file 'debian/maas-region-controller.maas-region-celery.upstart'
--- debian/maas-region-controller.maas-region-celery.upstart 1970-01-01 00:00:00 +0000
+++ debian/maas-region-controller.maas-region-celery.upstart 2013-10-11 14:15:22 +0000
@@ -0,0 +1,26 @@
1# maas-celery - celery daemon for the region controller
2#
3# MAAS Region Controller Celery Daemon
4
5description "MAAS"
6author "Raphael Badin <raphael.badin@canonical.com>"
7
8start on filesystem and net-device-up and rabbitmq-server-running
9stop on runlevel [016]
10
11respawn
12
13env workers_user="maas_workers"
14env workers_pass=""
15env workers_vhost="/maas_workers"
16
17pre-start script
18 if ! /usr/sbin/rabbitmqctl list_user_permissions $workers_user 1>/dev/null 2>&1; then
19 workers_pass=`grep "maas_workers" /etc/maas/maas_local_celeryconfig.py | cut -d':' -f3 | cut -d'@' -f1`
20 /usr/sbin/rabbitmqctl add_user "$workers_user" "$workers_pass"
21 /usr/sbin/rabbitmqctl add_vhost "$workers_vhost"
22 /usr/sbin/rabbitmqctl set_permissions -p "$workers_vhost" "$workers_user" ".*" ".*" ".*"
23 fi
24end script
25
26exec /usr/sbin/maas-region-celeryd --logfile=/var/log/maas/celery-region.log --schedule=/var/lib/maas/celerybeat-region-schedule --user=maas --group=maas
027
=== added file 'debian/maas-region-controller.maas-txlongpoll.upstart'
--- debian/maas-region-controller.maas-txlongpoll.upstart 1970-01-01 00:00:00 +0000
+++ debian/maas-region-controller.maas-txlongpoll.upstart 2013-10-11 14:15:22 +0000
@@ -0,0 +1,27 @@
1# maas - txlongpoll service
2#
3# MAAS Provisioning Service txlongpoll
4
5description "MAAS txlongpoll"
6author "Andres Rodriguez <andres.rodriguez@canonical.com>"
7
8start on filesystem and net-device-up and rabbitmq-server-running
9stop on runlevel [016]
10
11respawn
12
13env longpoll_user="maas_longpoll"
14env longpoll_pass=""
15env longpoll_vhost="/maas_longpoll"
16
17pre-start script
18 if ! /usr/sbin/rabbitmqctl list_user_permissions $longpoll_user 1>/dev/null 2>&1; then
19 longpoll_pass=`/bin/grep "password" /etc/maas/txlongpoll.yaml | cut -d'"' -f2`
20 /usr/sbin/rabbitmqctl add_user "$longpoll_user" "$longpoll_pass"
21 /usr/sbin/rabbitmqctl add_vhost "$longpoll_vhost"
22 /usr/sbin/rabbitmqctl set_permissions -p "$longpoll_vhost" "$longpoll_user" ".*" ".*" ".*"
23 fi
24end script
25
26# To add options to your daemon, edit the line below:
27exec /usr/bin/twistd -n --uid=maas --gid=maas --pidfile=/run/maas-txlongpoll.pid --logfile=/dev/null txlongpoll --config-file=/etc/maas/txlongpoll.yaml
028
=== added file 'debian/maas-region-controller.postinst'
--- debian/maas-region-controller.postinst 1970-01-01 00:00:00 +0000
+++ debian/maas-region-controller.postinst 2013-10-11 14:15:22 +0000
@@ -0,0 +1,287 @@
1#!/bin/sh
2
3set -e
4
5. /usr/share/debconf/confmodule
6db_version 2.0
7
8if [ -f /usr/share/dbconfig-common/dpkg/postinst.pgsql ]; then
9 . /usr/share/dbconfig-common/dpkg/postinst.pgsql
10fi
11
12RELEASE=`lsb_release -rs` || RELEASE=""
13
14maas_sync_migrate_db(){
15 maas syncdb --noinput
16 maas migrate maasserver --noinput
17 maas migrate metadataserver --noinput
18}
19
20restart_rabbitmq(){
21 invoke-rc.d rabbitmq-server restart || true
22}
23
24restart_postgresql(){
25 invoke-rc.d --force postgresql restart || true
26}
27
28restart_squid_deb_proxy() {
29 invoke-rc.d squid-deb-proxy restart || true
30}
31
32configure_region_http() {
33 case $RELEASE in
34 12.04|12.10|13.04)
35 # handle apache configs
36 if [ -e /etc/maas/maas-http.conf -a \
37 ! -e /etc/apache2/conf.d/maas-http.conf ]; then
38 ln -sf /etc/maas/maas-http.conf /etc/apache2/conf.d/maas-http.conf
39 fi
40 ;;
41 *)
42 # handle apache configs
43 if [ -e /etc/maas/maas-http.conf -a \
44 ! -e /etc/apache2/conf-enabled/maas-http.conf ]; then
45 ln -sf /etc/maas/maas-http.conf /etc/apache2/conf-enabled/maas-http.conf
46 fi
47 ;;
48 esac
49 # enable apache modules needed
50 a2enmod proxy_http
51 a2enmod expires
52 a2enmod wsgi
53}
54
55configure_maas_txlongpoll_rabbitmq_user() {
56 local longpoll_user="maas_longpoll"
57 local longpoll_pass=
58 local longpoll_vhost="/maas_longpoll"
59 longpoll_pass="$(pwgen -s 20)"
60 if [ -x /usr/sbin/rabbitmqctl ]; then
61 if ! rabbitmqctl list_users | grep -qs "$longpoll_user"; then
62 rabbitmqctl add_user "$longpoll_user" "$longpoll_pass" || true
63 rabbitmqctl add_vhost "$longpoll_vhost" || true
64 rabbitmqctl set_permissions -p "$longpoll_vhost" "$longpoll_user" ".*" ".*" ".*" || true
65 else
66 rabbitmqctl change_password "$longpoll_user" "$longpoll_pass" || true
67 fi
68 fi
69
70 if grep -qs "^\ \{1,\}password: \"[a-zA-Z0-9]\{0,\}\"$" /etc/maas/txlongpoll.yaml; then
71 sed -i "s/^\ \{1,\}password: \"[a-zA-Z0-9]\{0,\}\"$/ password: \""$longpoll_pass"\"/" \
72 /etc/maas/txlongpoll.yaml
73 fi
74 if grep -qs "^RABBITMQ_PASSWORD\ \= '[a-zA-Z0-9]\{0,\}'$" /etc/maas/maas_local_settings.py; then
75 sed -i "s/^RABBITMQ_PASSWORD\ \= '[a-zA-Z0-9]\{0,\}'$/RABBITMQ_PASSWORD = '"$longpoll_pass"'/" \
76 /etc/maas/maas_local_settings.py
77 fi
78}
79
80configure_maas_workers_rabbitmq_user() {
81 local workers_user="maas_workers"
82 local workers_pass="$(pwgen -s 20)"
83 local workers_vhost="/maas_workers"
84 local amqp_host="$1"
85 if [ -z "$amqp_host" ]; then
86 amqp_host="localhost"
87 fi
88 local amqp_port="5672"
89 if [ -x /usr/sbin/rabbitmqctl ]; then
90 if ! rabbitmqctl list_users | grep -qs "$workers_user"; then
91 rabbitmqctl add_user "$workers_user" "$workers_pass" || true
92 rabbitmqctl add_vhost "$workers_vhost" || true
93 rabbitmqctl set_permissions -p "$workers_vhost" "$workers_user" ".*" ".*" ".*" || true
94 else
95 rabbitmqctl change_password "$workers_user" "$workers_pass" || true
96 fi
97 fi
98
99 if grep -qs "^BROKER_URL\ \= '.*'$" /etc/maas/maas_local_celeryconfig.py; then
100 local broker_url="amqp://$workers_user:$workers_pass@$amqp_host:$amqp_port/$workers_vhost"
101 sed -i "s|^BROKER_URL\ \= '.*'$|BROKER_URL = '"$broker_url"'|" \
102 /etc/maas/maas_local_celeryconfig.py
103 fi
104}
105
106configure_maas_database() {
107 local dbc_dbpass="$1"
108 if grep -qs "^\ \{1,\} 'PASSWORD': '[a-zA-Z0-9]\{0,\}',$" /etc/maas/maas_local_settings.py; then
109 sed -i "s/^\ \{1,\} 'PASSWORD': '[a-zA-Z0-9]\{0,\}',$/ 'PASSWORD': '"$dbc_dbpass"',/" \
110 /etc/maas/maas_local_settings.py
111 fi
112}
113
114configure_maas_default_url() {
115 local ipaddr="$1"
116
117 if grep -qs "^DEFAULT_MAAS_URL\ \= \"[a-zA-Z0-9:/.]\{0,\}\"$" /etc/maas/maas_local_settings.py; then
118 sed -i "s/^DEFAULT_MAAS_URL\ \= \"[a-zA-Z0-9:/.]\{0,\}\"$/DEFAULT_MAAS_URL = \"http:\/\/"$ipaddr"\/MAAS\"/" \
119 /etc/maas/maas_local_settings.py
120 fi
121}
122
123configure_maas_squid_deb_proxy() {
124 local ipaddr="$1"
125
126 if [ -e /usr/share/maas/conf/99-maas -a \
127 ! -L /etc/squid-deb-proxy/mirror-dstdomain.acl.d/99-maas ]; then
128 ln -sf /usr/share/maas/conf/99-maas \
129 /etc/squid-deb-proxy/mirror-dstdomain.acl.d/99-maas
130 fi
131
132 sed -i "s/\(^[a-zA-Z0-9\.\-].*\) # maasurl$/$ipaddr # maasurl/" \
133 /usr/share/maas/conf/99-maas
134}
135
136if [ "$1" = "configure" ] && [ -z "$2" ]; then
137 #########################################################
138 ################ Folder Permissions ####################
139 #########################################################
140 mkdir -p /var/lib/maas/media/storage
141 chown -R maas:maas /var/lib/maas/
142
143 # Config will contain credentials, so should be readable
144 # by the application but nobody else.
145 chown root:maas \
146 /etc/maas/maas_local_celeryconfig.py \
147 /etc/maas/maas_local_settings.py
148 chmod 0640 \
149 /etc/maas/maas_local_celeryconfig.py \
150 /etc/maas/maas_local_settings.py
151
152 #########################################################
153 ################ Configure Apache2 ####################
154 #########################################################
155 configure_region_http
156
157 #########################################################
158 ########## Configure DEFAULT_MAAS_URL #################
159 #########################################################
160
161 # Obtain IP address of default route and change DEFAULT_MAAS_URL.
162 while read Iface Destination Gateway Flags RefCnt Use Metric Mask MTU Window IRTT; do
163 [ "$Mask" = "00000000" ] && break
164 done < /proc/net/route
165 interface="$Iface"
166 ipaddr=$(LC_ALL=C /sbin/ip -4 addr list dev "$interface" scope global)
167 ipaddr=${ipaddr#* inet }
168 ipaddr=${ipaddr%%/*}
169 # Set the IP address of the interface with default route
170 if [ -n "$ipaddr" ]; then
171 configure_maas_default_url "$ipaddr"
172 configure_maas_squid_deb_proxy "$ipaddr"
173 db_subst maas/installation-note MAAS_URL "$ipaddr"
174 db_set maas/default-maas-url "$ipaddr"
175 fi
176
177 #########################################################
178 ################ Configure Logging ####################
179 #########################################################
180
181 # Give appropriate permissions
182 if [ ! -f /var/log/maas/maas.log ]; then
183 touch /var/log/maas/maas.log
184 fi
185 chown -R maas:maas /var/log/maas
186 chmod -R 775 /var/log/maas/oops
187
188 # Create log directory base
189 mkdir -p /var/log/maas/rsyslog
190 chown -R syslog:syslog /var/log/maas/rsyslog
191 # Make sure rsyslog reads our config
192 invoke-rc.d rsyslog restart
193
194 #########################################################
195 ################### Squid-deb-proxy ####################
196 #########################################################
197 # Make sure squid-deb-proxy reads our config (99-maas)
198 invoke-rc.d squid-deb-proxy restart
199
200 #########################################################
201 ########## Configure longpoll rabbitmq config ###########
202 #########################################################
203
204 # Handle longpoll/rabbitmq publishing
205 restart_rabbitmq
206 configure_maas_txlongpoll_rabbitmq_user
207
208 #########################################################
209 ########## Configure worker rabbitmq config ###########
210 #########################################################
211
212 # Handle celery/rabbitmq publishing
213 configure_maas_workers_rabbitmq_user "$ipaddr"
214
215 #########################################################
216 ################ Configure Database ###################
217 #########################################################
218
219 # Need to for postgresql start so it doesn't fail on the installer
220 restart_postgresql
221
222 # Create the database
223 dbc_go maas-region-controller $@
224 configure_maas_database "$dbc_dbpass"
225
226 # Only syncdb if we have selected to install it with dbconfig-common.
227 db_get maas-region-controller/dbconfig-install
228 if [ "$RET" = "true" ]; then
229 maas_sync_migrate_db
230 fi
231
232 # Display installation note
233 db_input high maas/installation-note || true
234 db_go
235
236elif [ -n "$DEBCONF_RECONFIGURE" ]; then
237 # Set the IP address of the interface with default route
238 db_get maas/default-maas-url
239 ipaddr="$RET"
240 if [ -n "$ipaddr" ]; then
241 configure_maas_default_url "$ipaddr"
242 configure_maas_squid_deb_proxy "$ipaddr"
243 configure_maas_workers_rabbitmq_user "$ipaddr"
244 fi
245
246elif [ "$1" = "configure" ] && dpkg --compare-versions "$2" gt 0.1+bzr266+dfsg-0ubuntu1; then
247 # If upgrading to any later package version, then upgrade db.
248 invoke-rc.d apache2 stop || true
249
250 # make sure postgresql is running
251 restart_postgresql
252
253 # make sure maas http config is symlinked
254 configure_region_http
255
256 # we need to regenerate the passwords and update configs.
257 db_get maas/default-maas-url
258 ipaddr="$RET"
259 configure_maas_default_url "$ipaddr"
260 configure_maas_squid_deb_proxy "$ipaddr"
261 # make sure rabbitmq is running
262 restart_rabbitmq
263 configure_maas_txlongpoll_rabbitmq_user
264 # Handle celery/rabbitmq publishing
265 configure_maas_workers_rabbitmq_user "$ipaddr"
266 # handle database upgrade
267 if [ -f /etc/dbconfig-common/maas-region-controller.conf ]; then
268 # source dbconfig-common db config for maas-region-controller
269 # before upgrading database, otherwise a new config is written
270 # but the password is no longer preserved.
271 . /etc/dbconfig-common/maas-region-controller.conf
272 else
273 dbc_go maas-region-controller $@
274 fi
275 configure_maas_database "$dbc_dbpass"
276
277 maas_sync_migrate_db
278
279fi
280
281invoke-rc.d apache2 restart || true
282
283restart_squid_deb_proxy
284
285db_stop
286
287#DEBHELPER#
0288
=== added file 'debian/maas-region-controller.postrm'
--- debian/maas-region-controller.postrm 1970-01-01 00:00:00 +0000
+++ debian/maas-region-controller.postrm 2013-10-11 14:15:22 +0000
@@ -0,0 +1,59 @@
1#!/bin/sh
2
3set -e
4
5. /usr/share/debconf/confmodule
6
7RELEASE=`lsb_release -rs` || RELEASE=""
8
9if [ -f /etc/dbconfig-common/maas.conf ]; then
10 if [ -f /usr/share/dbconfig-common/dpkg/postrm ]; then
11 . /usr/share/dbconfig-common/dpkg/postrm.pgsql
12 dbc_go maas-region-controller $@
13 fi
14fi
15
16case "$1" in
17 purge)
18 rm -rf /var/log/maas
19 rm -rf /var/lib/maas
20 case $RELEASE in
21 12.04|12.10|13.04)
22 if [ -h /etc/apache2/conf.d/maas-http.conf ]; then
23 rm -rf /etc/apache2/conf.d/maas-http.conf
24 fi
25 ;;
26 *)
27 if [ -h /etc/apache2/conf-enabled/maas-http.conf ]; then
28 rm -rf /etc/apache2/conf-enabled/maas-http.conf
29 fi
30 ;;
31 esac
32
33 # Restarting apache2
34 if [ -x /usr/sbin/invoke-rc.d ]; then
35 invoke-rc.d apache2 restart || true
36 fi
37
38 # Delete symlink
39 if [ -L /etc/squid-deb-proxy/mirror-dstdomain.acl.d/99-maas ]; then
40 rm -rf /etc/squid-deb-proxy/mirror-dstdomain.acl.d/99-maas
41 fi
42
43 # Remove rabbitmq/longpoll/celery
44 longpoll_user="maas_longpoll"
45 longpoll_vhost="/maas_longpoll"
46 workers_user="maas_workers"
47 workers_vhost="/maas_workers"
48 if [ -x /usr/sbin/rabbitmqctl ]; then
49 rabbitmqctl delete_vhost "$longpoll_vhost" || true
50 rabbitmqctl delete_user "$longpoll_user" || true
51
52 rabbitmqctl delete_vhost "$workers_vhost" || true
53 rabbitmqctl delete_user "$workers_user" || true
54 fi
55esac
56
57#DEBHELPER#
58
59db_stop
060
=== added file 'debian/maas-region-controller.prerm'
--- debian/maas-region-controller.prerm 1970-01-01 00:00:00 +0000
+++ debian/maas-region-controller.prerm 2013-10-11 14:15:22 +0000
@@ -0,0 +1,12 @@
1#!/bin/sh
2
3set -e
4
5. /usr/share/debconf/confmodule
6
7#DEBHELPER#
8
9invoke-rc.d apache2 stop || true
10
11. /usr/share/dbconfig-common/dpkg/prerm.pgsql
12dbc_go maas-region-controller $@
013
=== added file 'debian/maas-region-controller.templates'
--- debian/maas-region-controller.templates 1970-01-01 00:00:00 +0000
+++ debian/maas-region-controller.templates 2013-10-11 14:15:22 +0000
@@ -0,0 +1,22 @@
1Template: maas/installation-note
2Type: note
3Default: true
4_Description: Ubuntu MAAS Server
5 The Ubuntu MAAS Server has been installed in your system. You
6 can access the MAAS Web interface here:
7 .
8 http://${MAAS_URL}/MAAS
9 .
10 If the automatically detected address above is not in the same
11 network as the MAAS clients, you need to reconfigure it:
12 .
13 sudo dpkg-reconfigure maas-region-controller
14
15Template: maas/default-maas-url
16Type: string
17_Description: Ubuntu MAAS PXE/Provisioning network address:
18 The Ubuntu MAAS Server automatically detects the IP address
19 that is used for PXE and provisioning. However, it needs to be
20 in the same network as the clients. If the automatically
21 detected address is not in the same network as the clients, it
22 must be changed.
023
=== added file 'debian/maintscript'
--- debian/maintscript 1970-01-01 00:00:00 +0000
+++ debian/maintscript 2013-10-11 14:15:22 +0000
@@ -0,0 +1,2 @@
1rm_conffile /etc/init/maas-celery.conf 0.1+bzr971+dfsg-0ubuntu2
2rm_conffile /etc/dbconfig-common/maas.conf 0.1+bzr971+dfsg-0ubuntu2
03
=== added directory 'debian/patches'
=== added file 'debian/patches/01-fix-database-settings.patch'
--- debian/patches/01-fix-database-settings.patch 1970-01-01 00:00:00 +0000
+++ debian/patches/01-fix-database-settings.patch 2013-10-11 14:15:22 +0000
@@ -0,0 +1,26 @@
1Index: maas-0.1+bzr702+dfsg.orig/contrib/maas_local_settings.py
2===================================================================
3--- maas-0.1+bzr702+dfsg.orig.orig/contrib/maas_local_settings.py 2012-06-29 12:03:20.000000000 -0400
4+++ maas-0.1+bzr702+dfsg.orig/contrib/maas_local_settings.py 2012-06-29 12:17:00.733389757 -0400
5@@ -7,7 +7,7 @@
6 DEFAULT_MAAS_URL = "http://maas.internal.example.com/"
7
8 # Absolute path to the directory static files should be collected to.
9-STATIC_ROOT = '/var/lib/maas/static/'
10+STATIC_ROOT = '/usr/share/maas/web/static/'
11
12 # Prefix to use for MAAS's urls.
13 # If FORCE_SCRIPT_NAME is None (the default), all the urls will start with
14@@ -68,9 +68,9 @@
15 'default': {
16 # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' etc.
17 'ENGINE': 'django.db.backends.postgresql_psycopg2',
18- 'NAME': '',
19- 'USER': '',
20- 'PASSWORD': '',
21+ 'NAME': 'maasdb',
22+ 'USER': 'maas',
23+ 'PASSWORD': 'maas',
24 'HOST': 'localhost',
25 }
26 }
027
=== added file 'debian/patches/02-pserv-config.patch'
--- debian/patches/02-pserv-config.patch 1970-01-01 00:00:00 +0000
+++ debian/patches/02-pserv-config.patch 2013-10-11 14:15:22 +0000
@@ -0,0 +1,38 @@
1Description: Use default settings for MAAS PSERV
2 Use default settings for MAAS pserv. These default settings
3 include port, logfile, oops directory, cobbler url and username
4Author: Andres Rodriguez <andreserl@ubuntu.com>
5
6Index: maas-0.1+bzr917+dfsg.orig/etc/maas/pserv.yaml
7===================================================================
8--- maas-0.1+bzr917+dfsg.orig.orig/etc/maas/pserv.yaml 2012-08-23 16:22:46.483599114 -0400
9+++ maas-0.1+bzr917+dfsg.orig/etc/maas/pserv.yaml 2012-08-23 16:22:56.579599373 -0400
10@@ -6,7 +6,7 @@
11 ## running server.
12 #
13 # logfile: "pserv.log"
14-logfile: "/dev/null"
15+logfile: "/var/log/maas/pserv.log"
16
17 ## OOPS configuration (optional).
18 #
19@@ -15,7 +15,7 @@
20 # or directories other than what the oops machinery creates there.
21 #
22 # directory:
23- directory: "logs/oops"
24+ directory: "/var/log/maas/oops"
25 # reporter:
26 reporter: "maas-pserv"
27
28@@ -33,10 +33,8 @@
29 tftp:
30 # root: /var/lib/maas/tftp
31 # port: 69
32- port: 5244
33 ## The URL to be contacted to generate PXE configurations.
34 # generator: http://localhost/MAAS/api/1.0/pxeconfig/
35- generator: http://localhost:5243/api/1.0/pxeconfig/
36
37 ## Boot configuration.
38 boot:
039
=== added file 'debian/patches/03-txlongpoll-config.patch'
--- debian/patches/03-txlongpoll-config.patch 1970-01-01 00:00:00 +0000
+++ debian/patches/03-txlongpoll-config.patch 2013-10-11 14:15:22 +0000
@@ -0,0 +1,39 @@
1Description: Use default settings for MAAS txlongpoll
2 Use default settings for MAAS txlongpoll. These default settings
3 include oops directory, Message broker configuration, logfile.
4Author: Andres Rodriguez <andreserl@ubuntu.com>
5
6Index: maas-0.1+bzr398+dfsg.orig/etc/txlongpoll.yaml
7===================================================================
8--- maas-0.1+bzr398+dfsg.orig.orig/etc/txlongpoll.yaml 2012-04-03 09:49:48.109427702 -0400
9+++ maas-0.1+bzr398+dfsg.orig/etc/txlongpoll.yaml 2012-04-03 09:53:07.276282800 -0400
10@@ -17,7 +17,7 @@
11 # or directories other than what the oops machinery creates there.
12 #
13 # directory: ""
14- directory: "logs/oops"
15+ directory: "/var/log/maas/oops"
16 ## The reporter used when generating OOPS reports.
17 # reporter: "LONGPOLL"
18 reporter: "maas-txlongpoll"
19@@ -25,14 +25,14 @@
20 ## Message broker configuration.
21 #
22 broker:
23- # host: "localhost"
24- # port: 5672
25- # username: "guest"
26- # password: "guest"
27- # vhost: "/"
28+ host: "localhost"
29+ port: 5672
30+ username: "maas_longpoll"
31+ password: "maaslongpoll"
32+ vhost: "/maas_longpoll"
33
34 ## Where to log. This log can be rotated by sending SIGUSR1 to the
35 ## running server.
36 #
37 # logfile: "txlongpoll.log"
38-logfile: "/dev/null"
39+logfile: "/var/log/maas/txlongpoll.log"
040
=== added file 'debian/patches/series'
--- debian/patches/series 1970-01-01 00:00:00 +0000
+++ debian/patches/series 2013-10-11 14:15:22 +0000
@@ -0,0 +1,3 @@
101-fix-database-settings.patch
202-pserv-config.patch
303-txlongpoll-config.patch
04
=== added directory 'debian/po'
=== added file 'debian/po/POTFILES.in'
--- debian/po/POTFILES.in 1970-01-01 00:00:00 +0000
+++ debian/po/POTFILES.in 2013-10-11 14:15:22 +0000
@@ -0,0 +1,2 @@
1[type: gettext/rfc822deb] maas-region-controller.templates
2[type: gettext/rfc822deb] maas-cluster-controller.templates
03
=== added file 'debian/po/templates.pot'
--- debian/po/templates.pot 1970-01-01 00:00:00 +0000
+++ debian/po/templates.pot 2013-10-11 14:15:22 +0000
@@ -0,0 +1,82 @@
1# SOME DESCRIPTIVE TITLE.
2# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
3# This file is distributed under the same license as the PACKAGE package.
4# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5#
6#, fuzzy
7msgid ""
8msgstr ""
9"Project-Id-Version: maas\n"
10"Report-Msgid-Bugs-To: maas@packages.debian.org\n"
11"POT-Creation-Date: 2012-10-04 13:40-0400\n"
12"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14"Language-Team: LANGUAGE <LL@li.org>\n"
15"Language: \n"
16"MIME-Version: 1.0\n"
17"Content-Type: text/plain; charset=CHARSET\n"
18"Content-Transfer-Encoding: 8bit\n"
19
20#. Type: note
21#. Description
22#: ../maas-region-controller.templates:1001
23msgid "Ubuntu MAAS Server"
24msgstr ""
25
26#. Type: note
27#. Description
28#: ../maas-region-controller.templates:1001
29msgid ""
30"The Ubuntu MAAS Server has been installed in your system. You can access the "
31"MAAS Web interface here:"
32msgstr ""
33
34#. Type: note
35#. Description
36#: ../maas-region-controller.templates:1001
37msgid " http://${MAAS_URL}/MAAS"
38msgstr ""
39
40#. Type: note
41#. Description
42#: ../maas-region-controller.templates:1001
43msgid ""
44"If the automatically detected address above is not in the same network as "
45"the MAAS clients, you need to reconfigure it:"
46msgstr ""
47
48#. Type: note
49#. Description
50#: ../maas-region-controller.templates:1001
51msgid " sudo dpkg-reconfigure maas-region-controller"
52msgstr ""
53
54#. Type: string
55#. Description
56#: ../maas-region-controller.templates:2001
57msgid "Ubuntu MAAS PXE/Provisioning network address:"
58msgstr ""
59
60#. Type: string
61#. Description
62#: ../maas-region-controller.templates:2001
63msgid ""
64"The Ubuntu MAAS Server automatically detects the IP address that is used for "
65"PXE and provisioning. However, it needs to be in the same network as the "
66"clients. If the automatically detected address is not in the same network as "
67"the clients, it must be changed."
68msgstr ""
69
70#. Type: string
71#. Description
72#: ../maas-cluster-controller.templates:1001
73msgid "Ubuntu MAAS API address:"
74msgstr ""
75
76#. Type: string
77#. Description
78#: ../maas-cluster-controller.templates:1001
79msgid ""
80"The MAAS Cluster Controller needs to contact the MAAS server to register its "
81"presence. Set the URL to the MAAS API here, e.g. http://192.168.1.1/MAAS"
82msgstr ""
083
=== added file 'debian/python-django-maas.install'
--- debian/python-django-maas.install 1970-01-01 00:00:00 +0000
+++ debian/python-django-maas.install 2013-10-11 14:15:22 +0000
@@ -0,0 +1,2 @@
1debian/tmp/usr/lib/python*/dist-packages/maasserver
2debian/tmp/usr/lib/python*/dist-packages/metadataserver
03
=== added file 'debian/python-maas-client.install'
--- debian/python-maas-client.install 1970-01-01 00:00:00 +0000
+++ debian/python-maas-client.install 2013-10-11 14:15:22 +0000
@@ -0,0 +1,1 @@
1debian/tmp/usr/lib/python*/dist-packages/apiclient
02
=== added file 'debian/python-maas-provisioningserver.install'
--- debian/python-maas-provisioningserver.install 1970-01-01 00:00:00 +0000
+++ debian/python-maas-provisioningserver.install 2013-10-11 14:15:22 +0000
@@ -0,0 +1,4 @@
1debian/tmp/usr/lib/python*/dist-packages/provisioningserver
2
3# Install other stuff
4debian/extras/maas-provision usr/sbin
05
=== added file 'debian/python-maas-provisioningserver.lintian-overrides'
--- debian/python-maas-provisioningserver.lintian-overrides 1970-01-01 00:00:00 +0000
+++ debian/python-maas-provisioningserver.lintian-overrides 2013-10-11 14:15:22 +0000
@@ -0,0 +1,1 @@
1python-maas-provisioningserver: binary-without-manpage usr/sbin/maas-provision
02
=== added file 'debian/rules'
--- debian/rules 1970-01-01 00:00:00 +0000
+++ debian/rules 2013-10-11 14:15:22 +0000
@@ -0,0 +1,65 @@
1#!/usr/bin/make -f
2
3BUILDHOME = $(CURDIR)/debian/build
4PYTHON = $(shell pyversions -d)
5# Python enum modules.
6py_enums := $(wildcard src/*/enum.py)
7
8%:
9 dh $@ --with python2,apport --buildsystem=python_distutils
10
11override_dh_installinit:
12 dh_installinit --name maas-pserv
13 dh_installinit --name maas-txlongpoll
14 dh_installinit --name maas-region-celery
15 dh_installinit --name maas-cluster-celery
16 dh_installinit --name maas-dhcp-server
17
18override_dh_auto_build:
19 dh_auto_build
20
21 mkdir -p $(BUILDHOME)
22 HOME=$(BUILDHOME) PYTHONPATH=$(CURDIR)/src/ $(PYTHON) \
23 $(CURDIR)/src/maasserver/utils/jsenums.py \
24 $(py_enums) > $(BUILDHOME)/enums.js
25
26override_dh_auto_install:
27 dh_auto_install
28
29 # Move static files
30 install -d -m 755 $(CURDIR)/debian/tmp/usr/share/maas/web/static
31 mv $(CURDIR)/debian/tmp/usr/lib/python*/*-packages/maasserver/static \
32 $(CURDIR)/debian/tmp/usr/share/maas/web/
33
34 # Install built enums.js file.
35 cp $(BUILDHOME)/enums.js $(CURDIR)/debian/tmp/usr/share/maas/web/static/js/
36
37 # install the apparmor profile
38 install -d -m 755 $(CURDIR)/debian/tmp/etc/apparmor.d/dhcpd.d
39 install -m 644 $(CURDIR)/debian/maas-dhcp.apparmor \
40 $(CURDIR)/debian/tmp/etc/apparmor.d/dhcpd.d/maas
41
42 dh_install --list-missing
43
44override_dh_auto_clean:
45 dh_auto_clean
46 rm -rf $(BUILDHOME)
47 rm -rf src/*.egg-info
48
49DEB_DEBIAN_DIR=$(dir $(firstword $(MAKEFILE_LIST)))
50REV=$(shell dpkg-parsechangelog -l$(DEB_DEBIAN_DIR)/changelog \
51 | sed -rne 's,^Version: .*[+~]bzr([0-9]+).*,\1,p')
52VER=$(shell dpkg-parsechangelog -l$(DEB_DEBIAN_DIR)/changelog \
53 | sed -rne 's,^Version: ([^-]+).*,\1,p')
54get-orig-source:
55 bzr export -r $(REV) --root=maas-$(VER).orig \
56 maas_$(VER).orig.tar.gz lp:maas
57 rm -rf maas-$(VER)
58 tar -xf maas_$(VER).orig.tar.gz
59 rm maas_$(VER).orig.tar.gz
60 rm -rf maas-$(VER).orig/src/maasserver/static/jslibs/
61 rm -rf maas-$(VER).orig/contrib/python-tx-tftp
62 GZIP=--best tar -cz --owner root --group root --mode a+rX \
63 -f maas_$(VER).orig.tar.gz \
64 maas-$(VER).orig
65 rm -r maas-$(VER).orig
066
=== added directory 'debian/source'
=== added file 'debian/source/format'
--- debian/source/format 1970-01-01 00:00:00 +0000
+++ debian/source/format 2013-10-11 14:15:22 +0000
@@ -0,0 +1,1 @@
13.0 (quilt)
02
=== added file 'debian/watch'
--- debian/watch 1970-01-01 00:00:00 +0000
+++ debian/watch 2013-10-11 14:15:22 +0000
@@ -0,0 +1,3 @@
1version=3
2opts=dversionmangle=s/\.dfsg// \
3http://launchpad.net/maas/+download https://launchpad.net/maas/.*/maas-(.*).tar.*