Merge lp:~mpontillo/maas/bug-1459876-packaging into lp:~maas-committers/maas/trunk

Proposed by Mike Pontillo
Status: Superseded
Proposed branch: lp:~mpontillo/maas/bug-1459876-packaging
Merge into: lp:~maas-committers/maas/trunk
Prerequisite: lp:~mpontillo/maas/database-vacuum-bug-1459876
Diff against target: 4335 lines (+3891/-0)
88 files modified
debian/changelog (+1595/-0)
debian/compat (+1/-0)
debian/control (+233/-0)
debian/copyright (+45/-0)
debian/extras/20-maas.conf (+32/-0)
debian/extras/99-maas (+5/-0)
debian/extras/99-maas-sudoers (+12/-0)
debian/extras/isc-dhcp-server.override (+1/-0)
debian/extras/maas (+6/-0)
debian/extras/maas-probe-dhcp (+7/-0)
debian/extras/maas-provision (+7/-0)
debian/extras/maas-proxy-common.sh (+34/-0)
debian/extras/maas-proxy.conf (+37/-0)
debian/extras/maas-region-admin (+22/-0)
debian/extras/maas_remote_syslog_compress (+2/-0)
debian/extras/squid3.override (+1/-0)
debian/maas-cli.install (+2/-0)
debian/maas-cli.links (+1/-0)
debian/maas-cli.lintian-overrides (+1/-0)
debian/maas-cluster-controller.config (+36/-0)
debian/maas-cluster-controller.dirs (+2/-0)
debian/maas-cluster-controller.install (+21/-0)
debian/maas-cluster-controller.lintian-overrides (+1/-0)
debian/maas-cluster-controller.logrotate (+15/-0)
debian/maas-cluster-controller.maas-clusterd.service (+26/-0)
debian/maas-cluster-controller.maas-clusterd.upstart (+52/-0)
debian/maas-cluster-controller.maintscript (+7/-0)
debian/maas-cluster-controller.postinst (+140/-0)
debian/maas-cluster-controller.postrm (+29/-0)
debian/maas-cluster-controller.preinst (+43/-0)
debian/maas-cluster-controller.templates (+16/-0)
debian/maas-common.install (+1/-0)
debian/maas-common.logrotate (+9/-0)
debian/maas-common.maintscript (+2/-0)
debian/maas-common.postinst (+31/-0)
debian/maas-common.postrm (+17/-0)
debian/maas-dhcp.apparmor (+12/-0)
debian/maas-dhcp.install (+1/-0)
debian/maas-dhcp.maas-dhcpd.service (+27/-0)
debian/maas-dhcp.maas-dhcpd.upstart (+65/-0)
debian/maas-dhcp.maas-dhcpd6.service (+27/-0)
debian/maas-dhcp.maas-dhcpd6.upstart (+65/-0)
debian/maas-dhcp.maintscript (+2/-0)
debian/maas-dhcp.postinst (+23/-0)
debian/maas-dhcp.postrm (+17/-0)
debian/maas-dhcp.preinst (+16/-0)
debian/maas-dns.dirs (+1/-0)
debian/maas-dns.postinst (+78/-0)
debian/maas-dns.postrm (+25/-0)
debian/maas-proxy.dirs (+1/-0)
debian/maas-proxy.install (+3/-0)
debian/maas-proxy.logrotate (+24/-0)
debian/maas-proxy.maas-proxy.service (+15/-0)
debian/maas-proxy.maas-proxy.upstart (+24/-0)
debian/maas-proxy.postinst (+22/-0)
debian/maas-proxy.postrm (+12/-0)
debian/maas-region-controller-min.apport (+63/-0)
debian/maas-region-controller-min.install (+34/-0)
debian/maas-region-controller-min.links (+8/-0)
debian/maas-region-controller-min.lintian-overrides (+6/-0)
debian/maas-region-controller-min.logrotate (+15/-0)
debian/maas-region-controller-min.maas-regiond-worker.upstart (+25/-0)
debian/maas-region-controller-min.maas-regiond-worker@.service (+27/-0)
debian/maas-region-controller-min.maas-regiond.service (+24/-0)
debian/maas-region-controller-min.maas-regiond.upstart (+17/-0)
debian/maas-region-controller-min.maintscript (+6/-0)
debian/maas-region-controller-min.postinst (+136/-0)
debian/maas-region-controller-min.postrm (+42/-0)
debian/maas-region-controller-min.preinst (+35/-0)
debian/maas-region-controller-min.prerm (+9/-0)
debian/maas-region-controller-min.templates (+22/-0)
debian/maas-region-controller.config (+45/-0)
debian/maas-region-controller.postinst (+151/-0)
debian/maas-region-controller.postrm (+47/-0)
debian/maas-region-controller.prerm (+13/-0)
debian/maintscript (+2/-0)
debian/patches/01-fix-database-settings.patch (+17/-0)
debian/patches/02-pserv-config.patch (+18/-0)
debian/patches/series (+2/-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 (+5/-0)
debian/python-maas-provisioningserver.lintian-overrides (+2/-0)
debian/rules (+77/-0)
debian/source/format (+1/-0)
debian/watch (+3/-0)
To merge this branch: bzr merge lp:~mpontillo/maas/bug-1459876-packaging
Reviewer Review Type Date Requested Status
MAAS Maintainers Pending
Review via email: mp+261023@code.launchpad.net

This proposal has been superseded by a proposal from 2015-06-03.

Commit message

Run the 'maas-region-admin purge_unused_images' command at the same time as database migrations occur, so that deleted MAAS images don't endlessly grow the database.

Description of the change

This change depends on the following MP:

https://code.launchpad.net/~mpontillo/maas/database-vacuum-bug-1459876/+merge/260910

With this change to the packaging, we'll vacuum the database whenever an upgrade occurs (just after we migrate the database).

This allows us a window to clean up the database without affecting MAAS functionality.

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 2015-06-03 20:01:10 +0000
@@ -0,0 +1,1595 @@
1maas (1.8.0~rc2+bzr3972-0ubuntu1) UNRELEASED; urgency=medium
2
3 * UNRELEASED
4
5 [ Mike Pontillo ]
6 * Run the 'maas-region-admin purge_unused_images' command at the same
7 time as database migrations occur, so that deleted MAAS images
8 don't endlessly grow the database. (LP: #1459876)
9
10 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 02 Jun 2015 09:27:54 -0400
11
12maas (1.8.0~rc1+bzr3972-0ubuntu1) trusty; urgency=medium
13
14 * New upstream release, 1.8.0 RC1 bzr3972.
15 * debian/copyright: Add copyright headers for ng-tags-input.js.
16 * debian/control: Bump Standards-Version
17
18 -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 27 May 2015 20:16:40 -0400
19
20maas (1.8.0~beta8+bzr3951-0ubuntu1) trusty; urgency=medium
21
22 * New upstream release, 1.8.0 beta 8 bzr3951.
23
24 [ Raphaël Badin ]
25 * debian/extras/99-maas-sudoers: Allow maas to check the status of
26 maas-dhcpd and maas-dhcp6 and start these services (LP: #1457708).
27
28 [ Andres Rodriguez ]
29 * debian/rules: Ensure maas-regiond-worker is not started in packaging.
30
31 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 21 May 2015 19:18:22 -0400
32
33maas (1.8.0~beta7+bzr3926-0ubuntu1) trusty; urgency=medium
34
35 * New upstream release, 1.8.0 beta 7 bzr3926.
36
37 [ Andres Rodriguez ]
38 * debian/{maas-cluster-controller,maas-common,
39 maas-region-controller-min}.postinst: Cleaned up to correctly create
40 log dir permissions (LP: #1457191)
41
42 [ Gavin Panella ]
43 * Create maas-regiond workers for systemd.
44
45 -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 20 May 2015 17:03:13 -0400
46
47maas (1.8.0~beta6+bzr3891-0ubuntu1) trusty; urgency=medium
48
49 * New upstream release, 1.8.0 beta 6 bzr3904:
50
51 [ Gavin Panella ]
52 * Drop the use of daemontools in favor of having upstart track
53 thread processes:
54 - d/maas-region-controller-min.maas-regiond.upstart: Drop use of
55 daemontools; use maas-regiond-worker
56 - d/maas-region-controller-min.maas-regiond-worker.upstart: Add.
57 - d/control: Drop depends on daemontools.
58
59 [ Andres Rodriguez ]
60 * debian/maas-common.{postinst,logrotate}: Create maas.log if non-existent
61 and add log rotation, provided maas.log exists both in the Region
62 and in the Cluster (LP: #1381603)
63
64 -- Andres Rodriguez <andreserl@ubuntu.com> Sat, 09 May 2015 15:03:17 +0100
65
66maas (1.8.0~beta5+bzr3867-0ubuntu1) trusty; urgency=medium
67
68 * New upstream release, 1.8.0 Beta 5 bzr3867.
69
70 [ Andres Rodriguez ]
71 * d/p/02-pserv.yaml: Fix config file (LP: #1449862)
72
73 [ Mike Pontillo ]
74 * Run DNS reconfiguration if either 'forwarders' or 'dnssec-validation'
75 keywords exist in named.conf.options (LP: #1384334)
76
77 -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 24 Apr 2015 18:55:47 -0400
78
79maas (1.8.0~beta4+bzr3844-0ubuntu1) trusty; urgency=medium
80
81 * New upstream release. 1.8.0 Beta 4 bzr2344
82 * debian/maas-dhcpd.maas-dhcpd.service: Remove whitespace in unit that
83 was making systemd crash (LP: #1446699)
84 * debian/maas-proxy.maas-proxy.service: Fix proxy to correctly run
85 pre-start script.
86 * debian/maas-dns.postinst: Ensure permissions are fixed also on upgrade.
87
88 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 21 Apr 2015 13:00:49 -0400
89
90maas (1.8.0~beta3+bzr3825-0ubuntu1) trusty; urgency=medium
91
92 * New upstream release. 1.8.0 Beta3 bzr3825 (LP: #1432666):
93 - Fixx issues with concurrent DB access and the isolation level
94 that made MAAS unusable in highload environments.
95
96 [ Gavin Panella ]
97 * Run one maas-regiond per CPU core.
98
99 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 16 Apr 2015 21:26:21 +0200
100
101maas (1.8.0~beta2+bzr3814-0ubuntu1) trusty; urgency=medium
102
103 * New upstream release. 1.8.0 Beta2 bzr3814.
104
105 [ Andres Rodriguez ]
106 * Restart apache2 after the region is restarted on a install. (LP: #1438782)
107
108 [ Mike Pontillo ]
109 * Stop maas-clusterd in prerm so that database purge succeeds (LP: #1044559)
110
111 -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 06 Apr 2015 11:00:00 -0400
112
113maas (1.8.0~beta1+bzr3777-0ubuntu1) trusty; urgency=medium
114
115 * New upstream release. 1.8.0 Beta1 bzr 3777.
116
117 [ Mike Pontillo ]
118 * debian/extras/maas-region-admin: Fix Path setting.
119 * debian/control: Properly depend on python-apt
120
121 [ Andres Rodriguez ]
122 * debian/maas-dhcp.maas-dhcpd[6].service: Fix units to correctly run
123 in vivid.
124 * debian/maas-proxy.maas-proxy.service: Fix unit to use correct daemon.
125
126 -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 30 Mar 2015 19:17:47 -0400
127
128maas (1.8.0~alpha9+bzr3750-0ubuntu1) trusty; urgency=medium
129
130 * New upstream release. MAAS 1.9.0 Alpha 9 bzr3692:
131 - fix bulk actions for isolation level changes.
132 - fix commissioning related isolation level / transaction issues.
133
134 [ Andres Rodriguez ]
135 * Make sure MAAS works with python-django16 in vivid.
136
137 [Gavin Panella]
138 * debian/extras/99-maas-sudoers
139 debian/maas-cluster-controller.install
140 - Do not install maas-import-pxe-files; it is no longer used, and is
141 not present in upstream.
142
143 -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 20 Mar 2015 20:27:02 -0400
144
145maas (1.8.0~alpha8+bzr3692-0ubuntu1) trusty; urgency=medium
146
147 * New upstream release, 1.8.0~alpha8 bzr 3692:
148 - Fix bulk actions to not fail due to transaction errors.
149
150 [ Steve Langasek ]
151 * Depend on pxelinux for pxelinux.0, not on syslinux-dev. (LP: #1433697)
152
153 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 17 Mar 2015 18:46:41 -0400
154
155maas (1.8.0~alpha7+bzr3664-0ubuntu1) trusty; urgency=medium
156
157 * New upstream release, 1.8.0~alpha7 bzr3664
158
159 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 10 Mar 2015 16:36:40 -0400
160
161maas (1.8.0~alpha6+bzr3625-0ubuntu1) trusty; urgency=medium
162
163 * New upstream release, 1.8.0~alpha6 bzr3625:
164 - Add ability to select OS when we Deploy via a bulk action.
165
166 -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 06 Mar 2015 18:10:46 -0500
167
168maas (1.8.0~alpha5+bzr3609-0ubuntu1) trusty; urgency=medium
169
170 * New upstream release, 1.8.0~alpha5 bzr3601:
171 - Add new 'Devices' page in the WebUI.
172 - Add support for VMWare's vSphere.
173 * debian/control:
174 - Add Depends on python-pyvmomi; Drop Depends on python-pyscss.
175
176 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 05 Mar 2015 11:31:14 -0500
177
178maas (1.8.0~alpha4+bzr3581-0ubuntu1) trusty; urgency=medium
179
180 * New upstream release, 1.8.0~alpha4 bzr3581:
181 - Adds new 'Add Hardware' button on the WebUI.
182 - Adds new 'Add Chassis' button on the WebUI.
183
184 -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 27 Feb 2015 19:50:00 -0500
185
186maas (1.8.0~alpha3+bzr3568-0ubuntu1) trusty; urgency=medium
187
188 * New upstream release, 1.8.0~alpha3 bzr3568
189 - Adds support for Microsoft OCP Chassis.
190 * debian/control:
191 - Add python-bson as a depends.
192 - Remove python-pyscss as a build dependency.
193
194 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 24 Feb 2015 15:47:07 -0500
195
196maas (1.8.0~alpha2+bzr3545-0ubuntu1) trusty; urgency=medium
197
198 * New upstream release, 1.8.0~alpha2 bzr3545
199 * debian/control:
200 - Depends on libjs-angularjs (LP: #1423457)
201 - Depends on ubuntu-cloudimage-keyring for region (LP: #1424287)
202
203 -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 18 Feb 2015 16:31:02 -0500
204
205maas (1.8.0~alpha1+bzr3523-0ubuntu1) trusty; urgency=medium
206
207 * New upstream release, 1.8.0~alpha1 bzr3523
208
209 [ Blake Rouse ]
210 * debian/control: added python-pyscss as a build dependency.
211 * debian/rules: build scss files to maas-styles.css and remove scss files
212 from the static files directory.
213
214 [ Jeroen Vermeulen ]
215 * debian/maas-cluster-controller.postinst: configure MAAS_URL through new
216 "maas-provision configure-maas-url" sub-command instead of with "sed".
217
218 [ Andres Rodriguez ]
219 * Set 'maas' homedir to '/var/lib/maas' (LP: #1399016):
220 - debian/maas-common.postinst: Do not try to update 'maas'
221 home user dir on upgrade.
222 * debian/control: Tighten Dependency versioning of some packages.
223 * debian/maas-region-controller-min.preinst: Handle upgrades to remove
224 legacy files.
225 * debian/maas-region-controller{-min}.postinst: Simplify postinsts.
226 * Drop depends on python-celery, python-oops, python-oops-twisted,
227 python-oops-datedir-repo, python-oosp-wsgi
228 * Drop maas-cluster-http.conf; Drop depends on apache2 for
229 maas-cluster-controller.
230
231 [ Gavin Panella ]
232 * debian/maas-region-controller-min.maas-regiond.upstart
233 - Upstart script for the new maas-regiond.
234 - Use setuid/setgid to drop root privs before running script.
235 - Don't write a pid file.
236 * debian/maas-cluster-controller.maas-clusterd.upstart
237 - Start maas-clusterd; it's no longer called maas-pserv.
238 * debian/maas-region-controller-min.install
239 - Don't install wsgi.py; it's no longer used.
240 * debian/rules
241 - Install maas-regiond plugin.
242 * debian/maas-region-controller-min.apport
243 debian/maas-region-controller-min.logrotate
244 debian/maas-region-controller-min.postinst
245 debian/maas-region-controller.postinst
246 - Change maas-django.log to regiond.log.
247 * debian/maas-region-controller.postinst
248 - Restart maas-regiond after installation.
249 - a2enmod rewrite module (LP: #1236544)
250 * debian/maas-region-controller.postinst
251 - Restart maas-regiond after installation.
252 * debian/control
253 debian/maas-region-controller-min.postinst
254 debian/maas-region-controller.postinst
255 - mod_wsgi is no longer used.
256 * debian/maas-region-controller-min.logrotate
257 - No longer used; maas-regiond uses rotatelogs.
258 - a2enmod rewrite module (LP: #1236544)
259 * debian/patches/01-fix-database-settings.patch
260 - Move STATIC_ROOT setting upstream.
261 - Simplify database configuration hunk.
262 * debian/maas-cluster-controller.logrotate
263 debian/maas-region-controller.logrotate
264 - Use copytruncate; even though it's sub-optimal, this is currently
265 the best way to integrate logrotate with twistd.
266 - Limit the size of the logs to 50MB, but don't rotate unless
267 they're more than 10MB.
268 - Drop privileges and run as maas/maas.
269 * debian/maas-region-controller-min.maas-regiond.upstart
270 debian/maas-cluster-controller.maas-clusterd.upstart
271 - Redirect stdout and stderr from twistd directly to the daemon's
272 respective log file.
273 * debian/maas-region-controller-min.apport
274 - pserv.log has been renamed to clusterd.log.
275
276 -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 14 Nov 2014 09:04:29 -0500
277
278maas (1.7.0+bzr3299-0ubuntu1) utopic; urgency=medium
279
280 * New upstream release, 1.7.0.
281
282 -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 14 Nov 2014 08:38:39 -0500
283
284maas (1.7.0~rc3+bzr3299-0ubuntu1) utopic; urgency=medium
285
286 * New upstream release, RC3 bzr 3299
287 - Fix dashboard tooltip messages which had stopped being displayed
288 (LP: #1390434)
289
290 -- Julian Edwards <julian.edwards@canonical.com> Tue, 11 Nov 2014 12:23:07 +1000
291
292maas (1.7.0~rc2+bzr3297-0ubuntu1) utopic; urgency=medium
293
294 * New upstream release, RC2 bzr 3297
295 - Allow marking a node in the DISK_ERASING state as broken (LP: #1388919)
296 - Prevent concurrent allocations of static IP addresses from returning
297 the same clashing address. (LP: #1387262)
298
299 [ Andres Rodriguez ]
300 * debian/maas-cluster-controller.postinst: Make sure that cluster sets
301 the correct permissions for proxy log dir if running on the same
302 system. (LP: #1377964)
303
304 -- Julian Edwards <julian.edwards@canonical.com> Fri, 07 Nov 2014 09:30:52 +1000
305
306maas (1.7.0~rc1+bzr3295-0ubuntu1) trusty; urgency=medium
307
308 * New Upstream Release, RC1 bzr 3295
309 - If using MSCM (Moonshot Chassis Manager) on a M300, do not overwrite
310 power parameters (LP: #1382075)
311 - Do not write DNS hostmaps if its PXE Mac is not on a managed cluster
312 interface. (LP: #1382108)
313 - Show os field in boot source selections API. (LP: #1384383)
314 - Add documentation for new Import Images features (LP: #1384010)
315 - Allow releasing if Failed to Disk Wipe or Release (LP: #1384821)
316 - Handle missing subarch when creating a node via RPC for
317 probe-and-enlist methods (LP: #1384778)
318 - Update default waiting policy for power actions to increase time of
319 wait to handle different type of BMC's (LP: #1384758)
320 - Use HTTP_PROXY to download images if configured (LP: #1384464)
321 - Return 503 response for PowerActionAlreadyInProgress and add a
322 'Retry-after' Header. (LP: #1384001)
323 - Stop ImportResourcesService from crashing when an import fails
324 (LP: #1386722)
325 - Convert TFTP request paths that contain backslashes to forward
326 slashes. (LP: #1387191)
327 - Do not try to delete synced boot images if not new ones are present
328 to handle a weird race. (LP: #1387133)
329 - Fix storage unit shown on the node edit page (LP: #1387431)
330 - Use CompressedAmpList in UpdateLeases to now parse
331 ~3500 leases (LP: #1387515, LP: #1387515)
332 - Updated XPath expression for discovering storage capacity from new
333 lshw changes. (LP: #1387380)
334 - Add sub status field on API.
335 - Generate DNS mappings for the Dynamic IP range. Hostname generation
336 is limited to /16. (LP: #1382190)
337 - Use configured HTTP Proxy to download boot images (LP: #1384464)
338 * debian/extras/maas-proxy-common.sh: Ensure that permissions are correct
339 before starting maas-proxy. (LP: #1382266)
340
341 -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 27 Oct 2014 21:53:43 -0400
342
343maas (1.7.0~beta8+bzr3272-0ubuntu1) utopic; urgency=medium
344
345 * New Upstream Release, Beta 8 bzr 3272.
346 - Maintain backward compatibility with status codes to not break
347 client MAAS API users. (LP: #1383609)
348 - Allow users to disable DHCP NIC scanning during commissioning otherwise
349 this can lead machines not being able to commission (LP: #1383384)
350 - Ensure that MAAS can correctly download, and install HWE Kernels, and
351 not crash in the process. (LP: #1357532, LP: #1382281)
352 - Add a lock to ensure we don't give the same 2 systems to two different
353 users when acquiring a machine. (LP: #1382575)
354
355 [ Michael McCracken ]
356 * debian/maas-dns.postrm: ensure named.conf is cleaned of maas
357 includes (LP: #1346538)
358
359 -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 22 Oct 2014 12:55:08 -0400
360
361maas (1.7.0~beta7+bzr3266-0ubuntu1) utopic; urgency=medium
362
363 * New Upstream Snapshot, Beta 7 bzr3266
364
365 [ Jeroen Vermeulen ]
366 * debian/extras/99-maas-sudoers
367 debian/maas-dhcp.postinst
368 debian/rules
369 - Add second DHCP server instance for IPv6.
370 * debian/maas-region-controller-min.install
371 debian/maas-region-controller-min.lintian-overrides
372 - Install deployment user-data: maas_configure_interfaces.py script.
373 * debian/maas-cluster-controller.links
374 debian/maas-cluster-controller.install
375 debian/maas-cluster-controller.postinst
376 - Reflect Celery removal changes made in trunk r3067.
377 - Don't install celeryconfig_cluster.py any longer.
378 - Don't install maas_local_celeryconfig_cluster.py any longer.
379 - Don't symlink maas_local_celeryconfig_cluster.py from /etc to /usr.
380 - Don't insert UUID into maas_local_celeryconfig_cluster.py.
381
382 [ Andres Rodriguez ]
383 * debian/maas-region-controller-min.postrm: Cleanup lefover files.
384 * debian/maas-dhcp.postrm: Clean leftover configs.
385 * Provide new maas-proxy package that replaces the usage of
386 squid-deb-proxy:
387 - debian/control: New maas-proxy package that replaces the usage
388 of squid-deb-proxy; Drop depends on squid-deb-proxy.
389 - Add upstrart job.
390 - Ensure squid3 is stopped as maas-proxy uses a caching proxy.
391 * Remove Celery references to cluster controller:
392 - Rename upstart job from maas-pserv to maas-cluster; rename
393 maas-cluster-celery to maas-cluster-register. Ensure services
394 are stopped on upgrade.
395 - debian/maintscript: Cleanup config files.
396 - Remove all references to the MAAS celery daemon and config
397 files as we don't use it like that anymore
398 * Move some entries in debian/maintscript to
399 debian/maas-cluster-controller.maintscript
400 * Remove usage of txlongpoll and rabbitmq-server. Handle upgrades
401 to ensure these are removed correctly.
402
403 [ Jason Hobbs ]
404 * debian/maas-region-controller-min.install: Install
405 maas-generate-winrm-cert script.
406
407 [ Raphaël Badin ]
408 * debian/extras/maas-region-admin: Bypass django-admin as it prints
409 spurious messages to stdout (LP: #1365130).
410
411 [Louis Bouchard]
412 * debian/maas-cluster-controller.postinst:
413 - Exclude /var/log/maas/rsyslog when changing ownership
414 (LP: #1346703)
415
416 [Gavin Panella]
417 * debian/maas-cluster-controller.maas-clusterd.upstart:
418 - Don't start-up the cluster controller unless a shared-secret has
419 been installed.
420 * debian/maas-cluster-controller.maas-cluster-register.upstart: Drop.
421
422 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 21 Aug 2014 19:36:30 -0400
423
424maas (1.7.0~beta1+bzr2781-0ubuntu1) utopic; urgency=medium
425
426 * New upstream release, 1.7.0 Beta 1
427
428 [Diogo Matsubara]
429 * debian/control:
430 - maas-cluster-controller depends on syslinux-dev |
431 syslinux-common (LP: #1328659)
432 - python-maas-provisioningserver depends on
433 python-paramiko (LP: #1334401)
434
435 [Jeroen Vermeulen]
436 * debian/extras/99-maas-sudoers:
437 - Let maas user import, including sudo tgt-admin and sudo uec2roottar.
438 * debian/maas-cluster-controller.install:
439 - Stop installing obsolete file bootresources.yaml.
440
441 [ Raphaël Badin ]
442 * debian/control:
443 - maas-cluster-controller depends on python-pexpect
444 * debian/extras/99-maas-sudoers:
445 - Add rule 'maas-dhcp-server stop' job.
446
447 [ Greg Lutostanski ]
448 * debian/control:
449 - maas-cluster-controller depends on grub-common
450 - maas-provisioningserver not maas-cluster-controller depends on
451 python-pexpect (LP: #1352273)
452 - maas-provisioningserver not maas-cluster-controller depends on
453 python-seamicroclient (LP: #1332532)
454
455 [ Gavin Panella ]
456 * debian/maas-cluster-controller.postinst
457 - Allow maas-pserv to bind to all IPv6 addresses too.
458
459 [ Julian Edwards ]
460 * debian/maas-region-controller-min.apport
461 debian/maas-region-controller-min.logrotate
462 debian/maas-region-controller-min.postinst
463 debian/maas-region-controller.postinst
464 - Change the log file name maas.log to maas-django.log
465 * debian/maas-cluster-controller.postinst
466 debian/maas-common.install
467 debian/maas-region-controller-min.postinst
468 debian/maas-region-controller.postinst
469 - Install /var/log/maas/maas.log as a syslog file.
470 - Ensure logging is set up for upgrades
471
472 [ Graham Binns ]
473 * debian/maas-region-controller.postinst:
474 - Add symlinks for squid3, squid-deb-proxy and apache log directories to
475 /var/log/maas.
476
477 [ Andres Rodriguez ]
478 * debian/maas-region-controller.postinst: Force symlink creation
479 for external logs.
480 * debian/maas-region-controller.postinst: Do not change celery's
481 rabbitmq password on upgrade that to not lock remote
482 Cluster Controllers if upgrading from 1.5+. (LP: #1300507)
483
484 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 21 Aug 2014 14:05:40 -0400
485
486maas (1.5+bzr2252-0ubuntu1) trusty; urgency=medium
487
488 * New upstream release
489 - Add support to install Third Party Drivers. In order for this to be
490 used the user will have to go to the Settings page to enable the
491 installation of these drivers. (LP: #1305839)
492 - Use release images instead of daily. (LP: #1306701)
493 - Quote interface name in dhcpd.template, otherwise DHCP server fails
494 to start. (LP: #1306335)
495 - Fix IntegrityError, when multiple processes are trying to register
496 the same component. (LP: #1307415)
497 - Add missing armhf commissioning template (LP: #1307780)
498 * debian/maas-region-controller-min.install: Install drivers.yaml.
499 * debian/maas-region-controller.postinst: No longer show the
500 installation note by default. (LP: #1284652)
501
502 -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 09 Apr 2014 19:02:00 -0400
503
504maas (1.5+bzr2236-0ubuntu1) trusty; urgency=medium
505
506 * New upstream bugfix release.
507 - Fix simplestreams path to use the new data source path. (LP: #1305118)
508 - Fix commissioning_distro_series validation failure. (LP: #1304408)
509 - Fix DB migration 0072_remove_ipmi_autodetec. (LP: #1302156)
510 - Update documentation.
511 * debian/maas-region-controller-min.maas-region-celery.upstart,
512 debian/maas-region-controller-min.maas-txlongpoll.upstart: Fix ISO
513 install by making sure rabbitmq user is really created if it does not
514 exist (LP: #1298559)
515
516 -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 09 Apr 2014 18:36:55 -0400
517
518maas (1.5+bzr2230-0ubuntu1) trusty; urgency=medium
519
520 * New upstream bugfix release:
521 - Fix Cluster Controller to handle deprecated config items gracefull.
522 Otherwise it fails on upgrades. (LP: #1302772)
523 - Fix documentation generation and referencing. (LP: #1302956)
524 - Ensure we PXE boot when we turn on SM15K systems. (LP: #1303915)
525
526 -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 07 Apr 2014 10:26:51 -0400
527
528maas (1.5+bzr2227-0ubuntu1) trusty; urgency=medium
529
530 * New upstream bugfix release:
531 - Fix catching exceptions raised by
532 twisted.conch.ssh.keys.Key.fromString (LP: #1298788)
533 - Fix validationg in default NodeGroupInterface.broadcast_ip making it
534 optional. (LP: #1299374)
535 - Drop install-pxe-bootloader as it conflicts with newer import script.
536 - Remove references to old import script.
537 - Fix changes that cause overwriting of existing entries.
538 - Fix inappropriate ValidationError when defining networks with nested
539 (but non-identical) address ranges. (LP: #1299114)
540 - Fix issue where if a node does not provide an architecture type on dhcp
541 request, or no other boot method is available for that architecture,
542 the node still uses pxelinux.0 to boot. (LP: #1300285)
543 - Take an advisory lock to prevent concurrent creation of the
544 eventloops table. (LP: #1300363)
545 - Remove the cloud_images_archive setting, as it conflicts with new
546 import script. (LP: #1300587)
547 - Add a 'logout confirmation' page. Using this, the logout action is
548 protected against CSRF attacks because it uses a POST request, in
549 conjunction with Django's CSRF protection feature. (LP: #1298790)
550 - Fix cluster listings when dealing with large number of clusters by
551 paginating it. (LP: #1301242)
552 - Change list_boot_images() so that it can cope with a missing boot
553 images directory: this happens if the reporting task runs before the
554 images have been imported. (LP: #213984)
555 - Fix internal server error on fast path installer. (LP: #1293676)
556 - Fix uploading files using maas-cli. (LP: #1187826)
557 - Fix SM15k Invalid Power Control and Fix enlisting machines with
558 2.0 api. (LP: #1302818, LP: #1302819)
559
560 [ Andres Rodriguez ]
561 * debian/maas-cluster-controller.install: Install UEFI templates
562 * debian/maas-cluster-controller.dirs: Create 'boot-resources' dir.
563
564 [ Jason Hobbs ]
565 * debian/extras/99-maas: Allow access to keyserver.ubuntu.com via
566 squid-deb-proxy.
567
568 [Jeroen Vermeulen]
569 * debian/maas-cluster-controller.postinst:
570 - Make the tgt config link point to the new boot-resources dir.
571 * debian/maas-region-controller-min.dirs:
572 - Don't create /var/lib/maas/tftp.
573
574 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 03 Apr 2014 13:45:02 -0400
575
576maas (1.5+bzr2204-0ubuntu1) trusty; urgency=low
577
578 * New upstream release (LP: #1281881)
579
580 [ Andres Rodriguez ]
581 * debian/maas-region-controller-min.templates: Set installation note to false
582 by default.
583 * Check rabbitmqctl is present before running commands:
584 - debian/maas-region-controller-min.maas-region-celery.upstart.
585 - debian/maas-region-controller-min.maas-txlongpoll.upstart.
586 * make sure maas_longpoll rabbitmq user is created/with correct password on
587 a package reconfigure.
588 * debian/maas-dns.postinst: Fix upgrade setup of named.conf.options.
589 * debian/maas-cluster-controller.install: Install UEFI templates (LP: #1299143)
590
591 [ Julian Edwards ]
592 * debian/extas/maas: Echo warning to stderr so json stdout is not polluted
593 * debian/maas-cluster-controller.postinst: Run upgrade-cluster on each
594 upgrade
595 * debian/maas-dns.postinst: Call edit_named_options to add a line in
596 /etc/bind/named.conf.options that includes the
597 /etc/named/maas/named.conf.options.inside.maas file.
598 * debian/control:
599 - maas-dns depends on python-iscpy
600 - maas-cluster-controller depends on python-seamicroclient
601 * debian/maas-cluster-controller.install: Install bootresources.yaml
602
603 [ Dustin Kirkland ]
604 * debian/control: LP: #1297097
605 - clean up package descriptions, modernize, and more clearly/simply
606 explain what each package does
607 - drop "Ubuntu" in front of MAAS, clean up command line/API description
608
609 -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 28 Mar 2014 10:43:53 -0400
610
611maas (1.5+bzr1977-0ubuntu1) trusty; urgency=low
612
613 * New upstream bugfix release.
614 - setup.py: Install missing shell snippet
615
616 -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 19 Feb 2014 16:31:45 -0500
617
618maas (1.5+bzr1976-0ubuntu1) trusty; urgency=low
619
620 * New upstream release.
621 * debian/maas-cluster-controller.postinst: Make sure upgrades handle
622 authbind upgrades too.
623
624 -- Andres Rodriguez <andreserl@ubuntu.com> Sun, 16 Feb 2014 22:56:36 -0500
625
626maas (1.5+bzr1951-0ubuntu1) trusty; urgency=low
627
628 * New upstream release
629 * debian/maas-cluster-controller.postinst: Also authbind port 69.
630 * debian/maas-cluster-controller.maas-pserv.upstart: Export MAAS_URL.
631
632 -- Andres Rodriguez <andreserl@ubuntu.com> Sat, 15 Feb 2014 16:16:38 -0500
633
634maas (1.5+bzr1948-0ubuntu2) trusty; urgency=low
635
636 * debian/maas-cluster-controller.postinst: Make sure generator on
637 pserv.yaml is updated on upgrade or reconfigure. (LP: #1273197)
638 * debian/maas-cluster-controller.maas-pserv.upstart: Make sure maas-pserv
639 is started with authbind.
640
641 -- Andres Rodriguez <andreserl@ubuntu.com> Sat, 15 Feb 2014 13:55:20 -0500
642
643maas (1.5+bzr1948-0ubuntu1) trusty; urgency=low
644
645 * New upstream release.
646
647 [ Graham Binns ]
648 * debian/control: Depends on python-jsonschema.
649
650 [ Andres Rodriguez ]
651 * debian/maas-region-controller-min.posinst: Make txlongpoll.yaml only
652 readable by the app and not world readeable.
653 * debian/patches/02-pserv-config.patch: Refreshed.
654
655 [ Julian Edwards ]
656 * debian/extras/maas-cli renamed to debian/extras/maas, and introduce
657 a deprecation warning in favour of using maas over maas-cli.
658 * debian/extras/maas renamed to debian/extras/maas-region-admin
659 * debian/maas-cli.install: install debian/extras/maas
660 * debian/maas-dns.postinst: Invoke maas-region-admin instead of maas
661 * debian/maas-region-controller-min.install: install maas-region-admin
662 instead of maas
663 * debian/maas-region-controller.postinst: Invoke maas-region-admin instead
664 of maas
665 * debian/maas-cli.links: Link from maas to maas-cli for backward compat.
666
667 [ Seth Arnold ]
668 * debian/maas-region-controller-min.postinst: Make sure txlongpoll.yaml
669 gets correct permissions on upgrade (LP: #1254034)
670
671 -- Andres Rodriguez <andreserl@ubuntu.com> Sat, 15 Feb 2014 12:08:23 -0500
672
673maas (1.5+bzr1909-0ubuntu1) trusty; urgency=low
674
675 * New upstream release.
676
677 [ Dustin Kirkland ]
678 * debian/maas-region-controller-min.postinst: Fix typo in sed. Remove
679 double quotes. (LP: #1274448)
680
681 [ Andres Rodriguez ]
682 * debian/control: Add depends on python-crochet.
683 * Get rid of dfsg on the versioning as we no longer strip any code from
684 the orig tarball.
685 - debian/rules: Do not strip any files out of the tarball.
686 * debian/patches/*: Refreshed.
687
688 -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 31 Jan 2014 09:38:51 -0500
689
690maas (1.4+bzr1853+dfsg-0ubuntu1) trusty; urgency=low
691
692 * New upstream release
693
694 -- Dustin Kirkland <kirkland@ubuntu.com> Tue, 28 Jan 2014 08:41:41 +0000
695
696maas (1.4+bzr1849+dfsg-0ubuntu1) trusty; urgency=low
697
698 * New upstream release.
699
700 [ Gavin Panella ]
701 * debian/control: Remove all dependencies on Avahi and DBUS.
702
703 -- Julian Edwards <julian.edwards@canonical.com> Tue, 28 Jan 2014 17:12:22 +1000
704
705maas (1.4+bzr1820+dfsg-0ubuntu1) trusty; urgency=low
706
707 * New upstream Release.
708
709 [ Jeroen Vermeulen ]
710 * Move maas-probe-dhcp from maas-dhcp to python-maas-provisioningserver.
711
712 [ Andres Rodriguez ]
713 * debian/maas-region-controller.postinst: Make sure maas-txlongpoll and
714 maas-region-celery get restarted.
715 * debian/control:
716 - python-maas-provisioningserver Breaks/Replaces for maas-dhcp due to
717 moving files around packages.
718 - Suggests ipmitool, libvirt-bin, amtterm.
719
720 -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 15 Jan 2014 00:24:58 -0500
721
722maas (1.4+bzr1817+dfsg-0ubuntu1) trusty; urgency=low
723
724 * New upstream release
725
726 [ Andres Rodriguez ]
727 * debian/maas-dns.postinst: Drop write_dns_config as this is run by
728 celery jobs.
729 * debian/maas-region-controller.templates: Rename template to
730 maas-region-controller-min.templates
731 * debian/control: Depends on python-amqp; Conflicts on python-librabbitmq.
732
733 [ Julian Edwards ]
734 * New maas-probe-dhcp script to detect DHCP servers
735 - debian/extras/maas-probe-dhcp: New script
736 - debian/maas-dhcp.install: Install new maas-probe-dhcp script
737 - maas-dhcp.lintian-overrides: New maas-probe-dhcp script has no manpage
738
739 -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 15 Jan 2014 00:23:44 -0500
740
741maas (1.4+bzr1789+dfsg-0ubuntu1) trusty; urgency=low
742
743 * New upstream release
744
745 [ Jeroen Vermeulen ]
746 * Keep legacy import_ephemerals config for now.
747
748 [ Andres Rodriguez ]
749 * debian/maas-region-controller.postinst: Allo default-maas-url debconf
750 option to be preseeded.
751 * Make use of authbind to allow maas-cluster-celery bind port as non-root.
752 - debian/control: Depends on authbind for maas-cluster-controller.
753 - debian/maas-cluster-controller.{postinst,postrm}: Handle creation
754 and removal of required authbind file.
755 * Split maas-region-controller into maas-region-controller-min.
756 - debian/maas-region-controller-min.{postinst,postrm,prerm}: Handle
757 basic configuration for rsyslogd, squid-deb-proxy, and maas-url.
758 - debian/control: Depends on maas-region-controller-min, postgresql
759 and rabbitmq-server for maas-region-controller.
760
761 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 10 Oct 2013 17:07:51 -0400
762
763maas (1.4+bzr1693+dfsg-0ubuntu1) saucy; urgency=low
764
765 * New Upstream Release (LP: #1218526)
766 - This new upstream release contains fixes and improvements of the
767 features approved by the FFe above.
768 - Fixes commissioning failure on Saucy with 'Failed Test' (LP: #1237364)
769 - Fixes access of static images over http (LP: #1236544)
770 * d/maas-cluster-controller.postinst: a2enmod version module (LP: #1236544)
771 * d/control: Bump depends on python-django to 1.4. (LP: #1236572)
772 * d/maas-dhcp.postinst: Fail gracefully if apparmor_parser fails, allowing
773 to install maas-dhcp during an ISO install. (LP: #1236786)
774
775 -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 04 Oct 2013 12:33:05 -0400
776
777maas (1.4+bzr1656+dfsg-0ubuntu2) saucy; urgency=low
778
779 * debian/control: Recommends on maas-dns instead of Depends for region
780 because maas-dns needs the region installed first.
781
782 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 03 Oct 2013 10:36:20 -0400
783
784maas (1.4+bzr1656+dfsg-0ubuntu1) saucy; urgency=low
785
786 [ Andres Rodriguez ]
787 * New upstream bugfix release.
788 - Respect filters for ephemerals_script.py.
789 * debian/control: Depends on ubuntu-cloudimage-keyring instead of
790 ubuntu-cloud-keyring; depends on python-distro-info.
791 * debian/control: Remove suggests on maas-dhcp and maas-dns as they are
792 now dependencies.
793
794 [ Scott Moser ]
795 * debian/control: Bump depends on isc-dhcp-server to 4.2.4
796 * debian/maas-dhcp.maas-dhcp-server.upstart: Change ownership of leases
797 file to root:root, and run the daemon as dhcpd:dhcpd.
798
799 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 01 Oct 2013 15:26:34 -0400
800
801maas (1.4+bzr1655+dfsg-0ubuntu1) saucy; urgency=low
802
803 * New Upstream release. (LP: #1218526)
804 * debian/control:
805 - Depends on python-djorm-ext-pgarray, python-curtin,
806 python-simplestreams, ubuntu-cloud-keyring.
807 - Depends on maas-dns, maas-dhcp to get them seeded and
808 into main (LP: #1227353)
809
810 -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 28 Aug 2013 11:17:44 -0400
811
812maas (1.4+bzr1551+dfsg-0ubuntu1) saucy; urgency=low
813
814 * New upstream release
815
816 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 15 Aug 2013 16:20:41 -0400
817
818maas (1.4+bzr1548+dfsg-0ubuntu1) saucy; urgency=low
819
820 * New upstream release
821
822 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 18 Jul 2013 10:15:10 -0400
823
824maas (1.4+bzr1539+dfsg-0ubuntu1) saucy; urgency=low
825
826 * New upstream release
827 * Symlink apache2 config into /etc/apache2/conf-enabled/ instead of
828 /etc/apache2/conf.d as apache2.4 no longer supports the latter.
829 - debian/maas-cluster-controller.{postinst,postrm}
830 - debian/maas-region-controller.{postinst,postrm}
831 * debian/control: Bump Standards-Version to 3.9.4.
832 * debian/maas-cluster-controller.lintian-overrides: Remove unneeded
833 override and add a new one.
834 * debian/maas-region-controller.lintian-overrides: Add extra overrides.
835
836 -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 03 Jul 2013 17:11:02 -0400
837
838maas (1.4+bzr1538+dfsg-0ubuntu1) saucy; urgency=low
839
840 * New upstream release
841 * debian/patches/04-setup-dont-user-list-snippets.patch: Drop. Merged
842 Upstream.
843
844 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 13 Jun 2013 20:06:35 -0400
845
846maas (1.4+bzr1527+dfsg-0ubuntu1) saucy; urgency=low
847
848 * debian/patches/04-setup-dont-user-list-snippets.patch: Drop importing
849 maasserver modules to list snippets in favor to using glob. Otherwise
850 we would have to add various non necessary Build-Dependencies.
851
852 [ Jeroen Vermeulen ]
853 * Install templates into /etc/maas/templates/.
854
855 -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 03 Jun 2013 17:59:31 -0400
856
857maas (1.4+bzr1505+dfsg-0ubuntu1) saucy; urgency=low
858
859 * New upstream release
860
861 [ Steve Langasek ]
862 * Add missing dependency on iproute to maas-region-controller, for use of
863 /sbin/ip in postinst.
864
865 [ Julian Edwards ]
866 * debian/maas-dhcp.maas-dhcp-server.upstart:
867 - Detect 12.04 as the host OS and install with correct permissions. This
868 allows the same packaging to be used in the 12.04 backport.
869
870 [ Andres Rodriguez ]
871 * Update packaging to support FPI:
872 - debian/control: Depends on apache2 for maas-cluster-controller.
873 - debian/maas-cluster-controller.install: Install http config file.
874 - debian/maas-cluster-controller.{postinst,postrm}: Handle symlink creation
875 and deletion.
876 * debian/maas-region-controller.install: Install preseeds in
877 etc/maas/preseeds. (LP: #1073463)
878
879 [ Jeroen Vermeulen ]
880 * In the source tree, /etc/maas/pserv.yaml has moved from etc/ to etc/maas/.
881 * Install templates into /etc/maas/templates/.
882
883 -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 03 Jun 2013 16:53:14 -0400
884
885maas (1.3+bzr1455+dfsg-0ubuntu1) raring; urgency=low
886
887 * New upstream bugfix release.
888 - Fixes and returns the 'resource_url' with the 'canonical' url for
889 a file that is fetched using the API (LP: #1154142)
890
891 [ Andres Rodriguez ]
892 * debian/control:
893 - Change Conflicts/Replaces for Breaks/Replaces.
894 - Conflicts on tftpd-hpa and dnsmasq.
895 - Do not pre-depends, but Depends on ${misc:Depends} for 'maas'.
896
897 [ Steve Langasek ]
898 * postinst scripts are never called with 'reconfigure' as the script
899 argument. Remove references to this (mythical) invocation.
900 * always call 'set -e' from maintainer scripts instead of passing 'sh -e'
901 as the interpreter, so that scripts will behave correctly when run via
902 'sh -x'.
903 * invoke-rc.d is never allowed to not exist - simplify scripts (and make
904 them better policy-compliant) by invoking unconditionally. (The only
905 possible exception is in the postrm, where it's *theoretically* possible
906 for invoke-rc.d to be missing if the user has completely stripped
907 down their system; that's a fairly unreasonable corner case, but we
908 might as well be correct if it ever happens.)
909 * db_get+db_set is a no-op; don't call db_set to push back a value we just
910 got from db_get.
911 * Omit superfluous calls to 'exit 0' at the end of each script.
912 * Remove maas-cluster-controller prerm script, which called debconf for no
913 reason.
914 * Don't invoke debconf in the postrm script either, debhelper already does
915 this for us.
916 * Other miscellaneous maintainer script fixes
917 * debian/maas-common.postinst: call adduser and addgroup unconditionally;
918 the tools are already designed to DTRT, we don't need to check for the
919 user/group existence before calling them nor should we worry about
920 calling them only once on first install.
921 * debian/maas-common.postrm: delete the maas group, not just the user,
922 as the comment in the code implies we should do.
923
924 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 19 Mar 2013 15:38:22 -0400
925
926maas (1.3+bzr1452+dfsg-0ubuntu1) raring; urgency=low
927
928 * New upstream release.
929 - MAAS file storage mechanism is shifting from a single shared
930 namespace to a per-user namespace. Operators of the majority
931 of MAAS systems will not notice any change. However, operators
932 of the most complex installations may find that a new
933 "shared-environment" user is created, and that some resources
934 are reassigned to it, such as API credentials and SSH public
935 keys. This provides a transitional environment that mimics the
936 behaviour of a shared namespace.
937
938 [ Raphaël Badin ]
939 * debian/control: maas-region-controller depends on bind9utils.
940 (LP: #1103195)
941 * debian/maas-dns.postinst: Call write_dns_config.
942 (LP: #1085865).
943 * debian/maas-cluster-controller.postinst: Fix the name of the config
944 file (/etc/maas/pserv.yaml and not /etc/maas/pserv.conf)
945 (LP: #1083542).
946 * debian/extras/99-maas-sudoers: Add 'SETENV:' to sudo rule
947 to allow preserving the environment when running
948 /usr/sbin/maas-import-pxe-files via sudo.
949 * debian/maas-dns.postinst: fix permissions and group ownership of
950 file /etc/bind/maas/named.conf.rndc.maas. (LP: #1066935)
951 * debian/control: Remove the dependency of maas-cluster-controller
952 on rabbitmq-server. (LP: #1072744)
953 * debian/extras/99-maas-sudoers: Add sudo rule for script
954 /usr/sbin/maas-import-pxe-files.
955 * debian/maas-cluster-controller.install: Removed commissioning-user-data
956 script.
957
958 [ Julian Edwards ]
959 * debian/maas-region-controller.install: Remove installation of maas-gc; it
960 is no longer required as upstream no longer stores files in the filesystem.
961 (LP: #1069734)
962 * debian/maas-cluster-controller.postinst: Ensure that /etc/maas/pserv.yaml
963 is updated when reconfiguring. (LP: #1081212)
964
965 [ Jeroen Vermeulen ]
966 * debian/maas-cluster-controller.install: Install import scripts.
967 * debian/maas-cluster-controller.postinst: Configure tgt (the iSCSI server)
968 so the import script can install files to it.
969 * debian/maas-cluster-controller.postrm: Clean up tgt config.
970 * debian/maas-region-controller.install: Move import scripts out to the
971 cluster controller, and drop the maas-import-isos compatibility script.
972 * debian/maas-region-controller.postinst: Remove tgt config.
973 * debian/maas-region-controller.postrm: Remove tgt config cleanup.
974 * Bump code revision to include latest user_data.template fixes.
975
976 [ Gavin Panella ]
977 * debian/extras/99-maas: squashfs image download is no longer needed.
978 * debian/maas-cluster-controller.install: maas-import-squashfs and its
979 configuration file are no longer part of upstream.
980 * debian/maas-cluster-controller.install: The maas-import-pxe-files cron
981 task is no longer used.
982 * debian/maas-cluster-controller.postinst: Remove leading comment
983 markers from the 'generator' line in pserv.yaml.
984
985 [ Andres Rodriguez ]
986 * debian/control:
987 - maas-cluster-controller Conflicts with tftpd-hpa (LP: #1076028)
988 - maas-dns: Conflicts with dnsmasq
989 - maas-cluster-controller Conflicts/Replaces maas-region-controller as
990 import scripts are no longer shipped in the region.
991 - debian/control: Depends on distro-info for maas-cluster-controller
992 instead of maas-region-controller (LP: #1103194)
993 * debian/maas-cluster-controller.config: If URL has been detected,
994 add /MAAS if it doesn't contain it. This helps upgrades from versions
995 where DEFAULT_MAAS_URL didn't use /MAAS.
996
997 -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 04 Mar 2013 11:49:44 -0500
998
999maas (0.1+bzr1269+dfsg-0ubuntu1) quantal-proposed; urgency=low
1000
1001 * New upstream bugfix release
1002 - Fixes commissioning failing to set memory attribute. (LP: #1064638)
1003 - Fixes node listing by adding pagination (LP: #1064672)
1004 - Changes default bind rndc key which breaks initscripts (LP: #1066938)
1005 - Fixes invalid DNS config once node is enlisted (LP: #1066958)
1006 - Reference documentation link to correct URL (LP: #1067261)
1007
1008 [ Andres Rodriguez ]
1009 * debian/rules: Change upstream branch.
1010
1011 [ Gavin Panella ]
1012 * debian/maas-dns.postinst: Remove MAAS-related include lines from named's
1013 config before adding a new one (LP: #1066929)
1014
1015 [ Raphael Badin ]
1016 * debian/extras/maas-region-celeryd: Remove whitespace that affects DNS
1017 rabbitmq queue. (LP: #1067929)
1018
1019 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 16 Oct 2012 10:31:37 -0400
1020
1021maas (0.1+bzr1264+dfsg-0ubuntu2) quantal; urgency=low
1022
1023 * Fix MAAS not working after CD/preseed install (LP: #1065763)
1024 - debian/extras/maas-region-celeryd: Add wrapper to run celery from
1025 the upstart job.
1026 - debian/extras/maas-region-controller.maas-region-celery.upstart: Create
1027 rabbitmq user if it does not exists.
1028 * debian/control: Remove unneeded deps on python-txtftp for some binary pkgs.
1029 * debian/maas-region-controller.postinst: Minor fix referencing variable.
1030
1031 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 11 Oct 2012 17:38:08 -0400
1032
1033maas (0.1+bzr1264+dfsg-0ubuntu1) quantal; urgency=low
1034
1035 * New upstream release.
1036
1037 [ Raphaël Badin ]
1038 * debian/maas-region-controller.postinst: Enable proxy_http module.
1039 * debian/maas-cluster-controller.postinst: Create /var/lib/maas. (LP: #1065062)
1040
1041 [ Andres Rodriguez ]
1042 * Install maas-provision with python-maas-provisioningserver (LP: #1065171):
1043 - debian/python-maas-provisioningserver.install: Install
1044 - debian/control: Add Conflicts/Replaces with maas-cluster-controller
1045 to handle upgrades.
1046 * debian/patches/04-fix-ipmi-enlistment.patch: Drop. Merged Upstream.
1047 * debian/control: Depends on maas-region-controller for maas-dns.
1048 * debian/maas-region-controller.postinst: Set the correct host for
1049 BROKER_URL (LP: #1065080)
1050 * Handle creation of user/group in maas-common.
1051 * debian/maas-region-controller.config: Always source dbconfig scripts.
1052
1053 -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 10 Oct 2012 11:17:21 -0400
1054
1055maas (0.1+bzr1243+dfsg-0ubuntu3) quantal; urgency=low
1056
1057 * 04-fix-ipmi-enlistment.patch: retry maas-enlist without power parameters
1058 on failure. This allows enlistment to continue working with Precise
1059 ephemeral images before the Precise SRU for maas-enlist lands.
1060 (LP: #1064922).
1061
1062 -- Robie Basak <robie.basak@canonical.com> Wed, 10 Oct 2012 13:29:16 +0000
1063
1064maas (0.1+bzr1243+dfsg-0ubuntu2) quantal; urgency=low
1065
1066 * debian/patches/99-ipmi-user-too-long.patch: Fix username too long for
1067 IPMI user created on enlistment (LP: #1064832)
1068
1069 -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 10 Oct 2012 01:00:29 -0400
1070
1071maas (0.1+bzr1243+dfsg-0ubuntu1) quantal; urgency=low
1072
1073 * New upstream release. (LP: #1064596)
1074 * debian/patches/99-temporary-fix-constraints.patch: Dropped.
1075 * debian/control:
1076 - ${python:Depends} for maas-common.
1077 - Add missing Depends for python-maas-provisioningserver (LP: #1064542)
1078 * debian/maas-cluster-controller.postinst: Create /var/log/maas if it
1079 doesn't exist (LP: #1064539)
1080
1081 -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 08 Oct 2012 17:02:56 -0400
1082
1083maas (0.1+bzr1223+dfsg-0ubuntu1) quantal; urgency=low
1084
1085 * New upstream release. (LP: #1062518)
1086
1087 [ Julian Edwards ]
1088 * Split packaging of 'maas' into maas-{region,cluster}-controller
1089 - debian/control: Update accordingly.
1090 - debian/*.install: Move files accordingly
1091 - debian/*.{postinst,postrm,preinst}: Move files accordingly.
1092 * Ensure isc-dhcp-server is disabled when installing maas-dhcp.
1093 * Ensure maas-dns creates the maas user before trying to chown files.
1094 * Make maas-cluster-controller autoconfigure itself when upgrading from the
1095 old maas package. (LP: #1059416)
1096 * Add missing prerm file for maas-cluster-controller so that .pyc files
1097 are cleaned up. (LP: #1059973)
1098
1099 [ Raphaël Badin ]
1100 * Install maas_local_celeryconfig.py in /etc/maas and symlink to
1101 /usr/share/maas.
1102 * debian/maas.postinst: Create rabbitmq celery user/vhost.
1103 * debian/maas.postinst: Update BROKER_URL in maas_local_celeryconfig.py.
1104 * Use maas_local_celeryconfig_cluster.py as the local celery
1105 configuration file for the cluster worker.
1106 * debian/maas-region-controller.maas-region-celery.upstart: Add region
1107 worker upstart script.
1108 * Rename cluster worker upstart script into
1109 maas-cluster-controller.maas-clluster-celery.upstart.
1110 * maas-cluster-controller.maas-celery.upstart: use "celeryconfig_cluster"
1111 as the Celery config module.
1112 * debian/maas-common.install: Install celeryconfig_common.py.
1113 * debian/maas-cluster-controller.install: Install celeryconfig_cluster.py.
1114 * debian/maas-region-controller.install: Install celeryconfig.py.
1115 * Split celery config into cluster and region configs.
1116 * Add region celeryd upstart config.
1117 * Define CELERY_CONFIG_MODULE in
1118 maas-cluster-controller.maas-cluster-celery.upstart
1119
1120 [ Jeroen Vermeulen ]
1121 * Make maas_local_celery_config.py non-world readable.
1122 * Make maas_local_celeryconfig_cluster.py non-world readable.
1123 * Set root:maas ownership of local cluster config only *after*
1124 the maas user/group have been created
1125
1126 [ Andres Rodriguez ]
1127 * debian/maas.postinst:
1128 - Always restart apache2.
1129 - Handle upgrades for new upstream release.
1130 - Handle upgrades for celery rabbitmq worker.
1131 * Add binary package to install client tool.
1132 - debian/extras/maas-cli: Add binary.
1133 - debian/maas-cli.install: Add. Install maascli and apiclient.
1134 - debian/control: Add binary package.
1135 * debian/control:
1136 - Depends on freeipmi-tools instead of ipmitool.
1137 - Conflicts/Replaces on maas for python-maas-client.
1138 - Depends on python-netifaces, python-lxml.
1139 * Add python-maas-client binary package:
1140 - debian/python-maas-client.install: Add. Install 'apiclient' python module.
1141 - debian/control: Add package. python-django-maas and maas-cli now
1142 Depend on it.
1143 * debian/rules: Install maas-dhcp-server upstart job.
1144 * debian/maas.postrm: Remove celery worker rabbitmq user and host.
1145 * debian/extras/99-maas-sudoers: Add for maas-dhcp-server upstart job
1146 instead of isc-dhcp-server (LP: #1055951)
1147 * debian/maas-region-controller.postinst: Cleanup upgrade rules.
1148 * debian/maas-cluster-controller.postinst: Fix 'local' usage.
1149 * debian/maas-common.install: Install celeryconfig in appropriate location.
1150 * debian/maas-cluster-controller.postrm: Add and delete maas user.
1151 * debian/maas-dhcp.postinst: Stop isc-dhcp-server not isc_dhcp_server.
1152 * debian/maas-region-controller.postinst:
1153 - Always update passwords on upgrade. No longer check versioning. (LP: #1060094).
1154 - Add MAAS server to allowed mirror in squid-deb-proxy
1155 - Source dbconfig conf file for maas-region-controller on upgrade because
1156 it writes a new config file and no longer preservers the previous password.
1157 * debian/maas-cluster-controller.maas-cluster-celery.upstart: Remove set{uid/gid}.
1158 * debian/maas-region-controller.install: Install maas-import-squashfs
1159 * Handle removal of non existant files (LP: #1059556):
1160 - debian/maintscript: Added to handle removal of conffiles.
1161 - debian/control: Add Pre-depends and bump debhelper version.
1162 * update po files for the templates.
1163 * debian/extras/99-maas: Install in usr/share/maas/conf and symlink to the
1164 appropriate etc dir.
1165 * debian/maas-cluster-controller.config: Source debconf at the beginning of the
1166 script. (LP: #1063857)
1167 * debian/patches/99-temporary-fix-constraints.patch: Fix constraints maaping
1168 when deploying with juju. Temporary until it gets merged upstream
1169
1170 [ Robie Basak ]
1171 * Add maas-cluster-controller dependency on uuid-runtime, needed for uuidgen
1172 by postinst.
1173
1174 [ Scott Moser ]
1175 * debian/maas-dhcp.{install,apparmor,postrm} install apparmor profile into
1176 /etc/apparmor.d/dhcpd.d (LP: #1049177), and update apparmor profile for
1177 /usr/sbin/dhcpd on install/remove
1178 * get the ip address for the dhcp server in config
1179
1180 [ Diogo Matsubara ]
1181 * Add initial tests to be run by autotests:
1182 - debian/control: XS-Testsuite: autopkgtest
1183 - debian/tests/control: Add
1184 - debian/tests/maas-package-test: Add
1185 - tests/maas-integration.py: Add
1186
1187 -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 08 Oct 2012 13:10:23 -0400
1188
1189maas (0.1+bzr971+dfsg-0ubuntu2) quantal; urgency=low
1190
1191 * debian/extras/99-maas-sudoers: Add missing rule for
1192 maas-provision. (LP: #1046397)
1193
1194 -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 05 Sep 2012 12:36:58 -0400
1195
1196maas (0.1+bzr971+dfsg-0ubuntu1) quantal; urgency=low
1197
1198 * New upstream release (LP: #1044367)
1199
1200 [ Julian Edwards ]
1201 * Fix 02-pserv-config.patch to handle new default tftp directory
1202
1203 [ Andres Rodriguez ]
1204 * debian/maas.postinst:
1205 - include '/MAAS' for DEFAULT_MAAS_URL.(LP: #1033956)
1206 - Update bzr version to safely upgrade.
1207 * Add maas-dns package that configures DNS in MAAS (LP: #1030860)
1208 * Remove cobbler related bits
1209 - debian/maas.postinst: Drop cobbler configuration
1210 - debian/maas.install: Drop installation of snippets/preseeds.
1211 - debian/control:
1212 + Drop Depends on maas-provision. (LP: #975473)
1213 + Depends on bind9utils.
1214 + Depends on python-lockfile (LP: #1037400)
1215 Add necessary Conflicts/Replaces. Add conflicts to tftpd-hpa and dnsmasq.
1216 Depends on isc-dhcp-server for maas-dhcp, and syslinux-common.
1217 - debian/extras/maas-provision: Add missing "$@" (LP: #1040462)
1218 - debian/patches:
1219 + 02-pserv-config.patch: Updated. Do not patch cobbler related bits.
1220 patch tftp config to default.
1221 * maas-dhcp: Re-add to handle initial configuration of MAAS DHCP server.
1222 * Allow restart of 'isc-dhcp-server' by adding a sudoers file:
1223 - debian/extras/99-maas-sudoers: Added.
1224 - debian/maas.install: Install 99-maas-sudoers
1225 * Minor improvements on dbconfig-common handling:
1226 - debian/maas.config: Only call dbc_go when scripts present.
1227 - debian/maas.postrm: Only call dbc_go when config file exists.
1228 * debian/maas.maas-celery.upstart: Enable Beat and set scheduler db file.
1229 * debian/maas-dns.postinst: Set correct permissions. (LP: #1042868)
1230 * debian/maas-dhcp.config:
1231 - Ask whether we want to enable DHCP (LP: #1044229)
1232 - Add debconf question for network interfaces
1233 * debian/maas.prerm: Stop services before removing database (LP: #1044559)
1234
1235 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 02 Aug 2012 09:01:43 -0400
1236
1237maas (0.1+bzr777+dfsg-0ubuntu1) quantal-proposed; urgency=low
1238
1239 * New upstream release
1240 * Only run 'maas' command as root. (LP: #974046)
1241 - debian/extras/maas: Check id.
1242 - debian/maas.install: Install in 'sbin'.
1243 * debian/maas.postinst:
1244 - restart apache2 after everything gets processed.
1245 - Update version to handle upgrades.
1246 * debian/extras/maas-provision: Add wrapper to access 'maasprovisiong'
1247 command line.
1248 * debian/patches/99_temporary_fix_path.patch: Dropped. No longer needed.
1249
1250 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 17 Jul 2012 08:28:36 -0400
1251
1252maas (0.1+bzr745+dfsg-0ubuntu2) quantal; urgency=low
1253
1254 * debian/control: Build-Dep on python-django instead of
1255 python-django-configglue
1256
1257 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 17 Jul 2012 08:24:25 -0400
1258
1259maas (0.1+bzr745+dfsg-0ubuntu1) quantal; urgency=low
1260
1261 * New Upstream Release
1262 * debian/patches:
1263 - 99_power_fixes.patch: Dropped. Merged Upstream.
1264 - 99_enums_js.patch: Dropped. No longer needed.
1265 * Automatically build enums.js:
1266 - debian/control: Build-Depends on python-django-configglue
1267 - debian/rules: Build and install enums.js.
1268 * debian/maas.postinst: Update version to handle upgrades
1269
1270 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 12 Jul 2012 16:34:11 -0400
1271
1272maas (0.1+bzr740+dfsg-0ubuntu1) quantal; urgency=low
1273
1274 * New upstream release
1275 * debian/control: Depends on python-txtftp.
1276 * debian/rules: Do not ship python-tx-tftp.
1277 * debian/maas.postinst: Update version to upgrade successfully.
1278 * debian/patches:
1279 - 02-pserv-config.patch: Refreshed.
1280 - 99_enums_js.patch: Updated.
1281 - 99_power_fixes.patch: Added temporarily to enable IPMI
1282 - 99_temporary_fix_path.patch: Added temporarily to not fail when
1283 importing celeryconfig
1284
1285 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 03 Jul 2012 17:54:49 -0400
1286
1287maas (0.1+bzr709+dfsg-0ubuntu1) quantal; urgency=low
1288
1289 * New Upstream release
1290 * debian/control:
1291 - Depends on python-celery, python-tempita, libjs-yui3-{full,min},
1292 libjs-raphael
1293 * debian/maas.install:
1294 - Install apiclient, celeryconfig.py, maas-import-pxe-files, preseeds_v2.
1295 - Update to install various files from chroot, rather tha manually copy
1296 them from the source.
1297 * debian/maas.links: symlink celeryconfig.py
1298 * debian/maas.maas-celery.upstart: Add job.
1299 * debian/rules:
1300 - Install celery upstart job.
1301 - Do not install jslibs as packages are now used.
1302 - Drop copying of maas_local_settings_sample.py as source now ships
1303 a maas_local_settings.py
1304 * debian/patches:
1305 - 04-maas-http-fix.patch: Drop. Merged upstream.
1306 - 01-fix-database-settings.patch: Refreshed.
1307 - 99_enums_js.patch: Added until creation of enum.js / build process
1308 is fixed.
1309 * debian/maas.postinst: Update bzr version to correctly handle upgrades.
1310
1311 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 03 Jul 2012 17:42:37 -0400
1312
1313maas (0.1+bzr482+dfsg-0ubuntu1) precise; urgency=low
1314
1315 * New upstream release (Fixes LP: #981103)
1316 * debian/maas.postinst:
1317 - Make sure rabbitmq and postgresql are started on upgrade (LP: #981282)
1318 - Handle upgrades from any lower than 0.1+bzr462+dfsg-0ubuntu1 to
1319 correctly re-generate passwords, and not have db sync/migrate issues
1320 as config has changed upstream.
1321 - Correctly set Passwords for PSERV, otherwise it won't set new passwords.
1322 * Allow MAAS_DEFAULT_URL reconfiguration. (LP: #980970)
1323 - debian/maas.config: Add reconfigure validation to correctly allow it,
1324 and ask a question.
1325 - debian/maas.postinst: Reconfigure DEFAULT_MAAS_URL as well as cobbler
1326 server and next_server for PXE/Provisioning.
1327 - debian/maas.templates: Add debconf question and update info.
1328 * Do not lose MAAS_DEFAULT_URL settings on upgrade (LP: #984309)
1329 * debian/maas.postinst:
1330 - Set cobbler password in between quotes (LP: #984427)
1331 - Do not change permissions to maas.log (LP: #980915)
1332 * no longer use maas-cloudimg2ephemeral, but rather use premade images
1333 at http://maas.ubuntu.com
1334
1335 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 17 Apr 2012 23:44:46 -0700
1336
1337maas (0.1+bzr462+dfsg-0ubuntu1) precise; urgency=low
1338
1339 * New upstream release (LP: #980240)
1340
1341 [ Scott Moser ]
1342 * add dependency on distro-info (LP: #949442)
1343 * debian/control: add dependency on tgt for ephemeral iscsi environment
1344
1345 [ Andres Rodriguez ]
1346 * Make package lintian clean:
1347 - maas{-dhcp}.lintian-overrides: Add to make lintian clean.
1348 - debian/control: Add missing dependencies; correct section and desc.
1349 - debian/maas.postinst: Do not use absolute path for rabbitmqctl.
1350 - debian/patches: Add headers to all patches.
1351 * debian/maas-dhcp.postrm: Added to disable dnsmasq in cobbler on removal.
1352 * debian/maas.config: Do not set a password with pwgen as it is not an
1353 essential package; allow dbconfig-common to create a password instead by
1354 creating an empty question. (LP: #977475)
1355 * Run MAAS, pserv, txlongpoll as non-root user. (LP: #975436)
1356 - debian/maas.postinst: Create user/group; set correct permissions for
1357 directories.
1358 - debian/maas.postrm: Remove user/group; restart apache2.
1359 - debian/maas.maas-{pserv,txlongpoll}.upstart: Update to run as non-root
1360 'maas' user.
1361 * debian/patches/01-fix-database-settings.patch: Remove adding of PSERV_URL.
1362 * debian/maas.postinst:
1363 - Handle config file upgrade from versions lower than 0.1+bzr445+dfsg-0ubuntu1,
1364 by creating new passwords and updating accordingly
1365 - use local variables in functions.
1366 - Handle maas tgt configuration for upgrades from 0.1+bzr459+dfsg-0ubuntu1.
1367 * debian/extras/99-maas: Add squid-deb-proxy file to enable PPAs. (LP: #979383)
1368 * debian/maas.install: Install missing commissioning-user-data script.
1369
1370 [ Dave Walker (Daviey) ]
1371 * debian/patches/02-pserv-config.patch: Refreshed to apply to updated config.
1372
1373 [ Gavin Panella ]
1374 * debian/maas.postinst: Update pserv.yaml and maas_local_settings.py to use
1375 password.
1376
1377 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 12 Apr 2012 16:37:53 -0400
1378
1379maas (0.1+bzr415+dfsg-0ubuntu2) precise; urgency=low
1380
1381 * debian/maas-dhcp.{config,postinst}:
1382 - Fix not setting new values on fresh install. (LP: #975321)
1383 - Fix unsetting domain, otherwise, even if disabled, it will always be set.
1384 * debian/control: Depends on maas for maas-dhcp.
1385
1386 -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 06 Apr 2012 15:30:44 -0400
1387
1388maas (0.1+bzr415+dfsg-0ubuntu1) precise; urgency=low
1389
1390 * debian/control: Update package descriptions; Suggests maas-dhcp for maas
1391 and add a maas-dhcp binary.
1392 * Add maas-dhcp package to configure a DHCP server.
1393 - debian/maas-dhcp.config: Add to ask debconf questions about range,
1394 gateway, and domain.
1395 - debian/maas-dhcp.postinst: Handle update of config values.
1396 - debian/maas-dhcp.templates: Debconf questions.
1397 * debian/po: Update for templates.
1398 * Add message telling MAAS URL after installation.
1399 - debian/maas.templates: Add message.
1400 - debian/maas.postinst: Display message.
1401 * debian/maas.config: Hide dbconfig-install question.
1402
1403 -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 04 Apr 2012 14:47:13 -0400
1404
1405maas (0.1+bzr400+dfsg-0ubuntu1) precise; urgency=low
1406
1407 * debian/patches/{02-pserv-config,03-txlongpoll-config}.patch: Refreshed.
1408 * debian/maas.install: Install maas-gc cronjob.
1409 * Add apport hook.
1410 - debian/maas.apport: Add hook.
1411 - debian/rules: Install with apport.
1412 * debian/maas.logrotate: Add logrotate for txlongpoll and pserv logs.
1413 * Create 'var/lib/media/maas/storage' on postinst to have right permissions.
1414 - debian/maas.dirs: Drop dir creation.
1415 - debian/maas.postinst: Create dir with correct permissions.
1416 - debian/maas.postrm: Remove dir on purge.
1417
1418 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 03 Apr 2012 14:50:34 -0400
1419
1420maas (0.1+bzr378+dfsg-0ubuntu1) precise; urgency=low
1421
1422 * maas.dirs: Create var/lib/maas/media/storage for juju storage.
1423 * maas.postinst:
1424 - Give correct permissions to above dir.
1425 - stop apache2 before db upgrade, and restart after.
1426
1427 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 29 Mar 2012 19:28:13 -0400
1428
1429maas (0.1+bzr363+dfsg-0ubuntu1) precise; urgency=low
1430
1431 [ Dave Walker (Daviey) ]
1432 * debian/control: Add openssh-server as a Recommends, and wrap-and-sort.
1433
1434 [ Andres Rodriguez ]
1435 * debian/maas.postinst:
1436 - Do not start apache with apache2ctl. Use invoke-rc.d instead to not
1437 fail in the installer.
1438 - For start of postgresql before creating the DB, otherwise it will
1439 fail in the installer.
1440 - Add check of invoke-rc.d for syslog.
1441 - Add check of invoke-rc.d for rabbitmq-server; Add check for rabbitmqctl
1442 - Add db_stop, in case invoke-rc.d fails.
1443 * debian/control: Tight python-django-maas dependency.
1444 * debian/postrm: Add check for rabbitmqctl.
1445 * debian/maas.maas-txlongpoll.upstart: Create rabbitmq longpoll user/vhost
1446 and set permissions if they don't exist. Start on rabbitmq-server-running.
1447
1448 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 27 Mar 2012 14:49:56 -0400
1449
1450maas (0.1+bzr338+dfsg-0ubuntu1) precise; urgency=low
1451
1452 [ Dave Walker (Daviey) ]
1453 * d/patches/03-txlongpoll-config.patch: Resolve typo error from prior patch.
1454 - LP: #961031
1455
1456 [ Andres Rodriguez ]
1457 * debian/maas.config: Don't allow reconfigure.
1458 * debian/maas.postinst: Don't allow reconfigure. Run sync/migrate db on
1459 all upgrades.
1460
1461 [ Scott Moser ]
1462 * add rsylog config for logging node boots (LP: 960149)
1463
1464 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 22 Mar 2012 10:56:58 -0400
1465
1466maas (0.1+bzr315+dfsg-0ubuntu1) precise; urgency=low
1467
1468 * New upstream snapshot.
1469
1470 [ Dave Walker ]
1471 * debian/maas.postinst: Do not import ISO's at install time.
1472 * debian/control:
1473 - Drop run-one, it's not a requirement and currently in universe.
1474 - Drop python-setproctitle, no longer required.
1475
1476 [ Andres Rodriguez ]
1477 * debian/control: Depends on python-avahi, python-dbus, and avahi-daemon.
1478 * debian/maas.postinst:
1479 - Only syncdb if dbconfig db creation was selected.
1480 - Set rabbitmq/longpoll settings
1481 * debian/patches/03-txlongpoll-config.patch: Updated broker settings for
1482 rabbitmq.
1483
1484 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 20 Mar 2012 20:10:58 -0400
1485
1486maas (0.1+bzr300+dfsg-0ubuntu1) precise; urgency=low
1487
1488 * debian/patches:
1489 - 01-fix-database-settings.patch: Update PSERV_URL port.
1490 - 02-pserv-config.patch: Update, and set 'maas' as username.
1491 - 03-longpoll-config.patch: Update.
1492 * debian/maas.install: Install preseeds and snippets.
1493 * debian/maas.postinst:
1494 - Set password for 'maas' cobbler username (in pserv and cobbler).
1495 - Set DEFAULT_MAAS_URL to IP of interface with default gateway.
1496
1497 -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 16 Mar 2012 14:59:16 -0400
1498
1499maas (0.1+bzr295+dfsg-0ubuntu2) precise; urgency=low
1500
1501 * debian/patches:
1502 - 01-fix-database-settings.patch: Update to set PSERV_URL.
1503 - 02-pserv-config.patch: Set port to 8001.
1504 * debian/maas.postinst: Run maas-import-isos on install.
1505 * debian/control: Depends on rabbitmq-server.
1506
1507 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 15 Mar 2012 18:14:08 -0400
1508
1509maas (0.1+bzr295+dfsg-0ubuntu1) precise; urgency=low
1510
1511 * debian/maas.upstart: Specify pidfile and conffile.
1512 * debian/maas.postinst:
1513 - Only run syncdb if dbconfig postinst file exists.
1514 - Fix file permissions.
1515 * debian/maas.{postrm,prerm}: Add dbconfig-common support.
1516 * Add txlongpoll support for packaging:
1517 - debian/control: Depends on python-txlongpoll.
1518 - debian/maas.maas-longpoll.upstart: Added to start txlongpoll.
1519 - debian/maas.install: Install txlongpoll.yaml
1520 * debian/extras/maas: Improvements.
1521 * debian/maas.maas.upstart: Moved from debian/maas.upstart.
1522 * debian/maas.postinst: Touch logfile to set correct permissions (LP: #955400)
1523 * debian/maas.logrotate: Add.
1524 * debian/patches/03-txlongpoll-config.patch: Add default settings.
1525 * debian/maas.config: Only run dbconfig-common on configure/reconfigure.
1526 * Install maas_local_settings.py in /etc/maas and symlink to usr/share/maas
1527 * Update references from MaaS to MAAS.
1528 * Remove podebconf as templates no longer exist.
1529 - debian/po: Remove.
1530 - debian/control: Drop Build-Depends on po-debconf
1531
1532 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 15 Mar 2012 15:28:14 -0400
1533
1534maas (0.1+bzr266+dfsg-0ubuntu1) precise; urgency=low
1535
1536 * Remove support for squid3 and use squid-deb-proxy instead.
1537 * debian/extras/maas: Add to handle syncdb and creation of admin user.
1538 * Add debconf questions to ask for user/pass:
1539 - debian/maas.{template,config}: Add
1540 - debian/maas.postinst: Ask debconf questions.
1541 - debian/po: Add translation templates.i
1542 * debian/maas.postinst: Enable wsgi module; drop squid3 steps.
1543 * debian/maas.postrm: removed.
1544 * debian/patches/01-fix-database-settings.patch: Custom database settings
1545 and static files path.
1546 * debian/{rules,maas.install}: Install maas static files in
1547 'usr/share/maas/web/static'.
1548 * Integrate cobbler:
1549 - debian/maas.install: Install pserv twisted plugin, and config.
1550 - debian/maas.upstart: Created to start plugin daemon.
1551 - debian/patches/02-pserv-config.patch: Custom pserv config.
1552 * Integrate dbconfig-common:
1553 - debian/maas.config: Added and default user/pass and database.
1554 - debian/maas.{postinst,postrm}: Added handling for dbconfig-common
1555 * debian/control: Depends on python-convoy.
1556 * debian/rules: Update path to removal of dsfg files.
1557 * debian/patches/01-fix-database-settings.patch: Updated.
1558
1559 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 13 Mar 2012 14:31:50 -0400
1560
1561maas (0.1+bzr232+dfsg-0ubuntu1) precise; urgency=low
1562
1563 * New upstream snapshot.
1564
1565 [ Dave Walker ]
1566 * debian/control:
1567 - Changed depends from psycopg2 to python-psycopg2 and dropped versioning.
1568 - LP: #937982
1569
1570 [ Andres Rodriguez ]
1571 * debian/maas.install: Install maas-import-isos and related files.
1572 * Integrate squid3 as proxy solution:
1573 - debian/extras/squid.conf: Added
1574 - debian/control: Depend on squid3.
1575 - debian/maas.{postinst,postrm}: Handle installation/removal of custom
1576 squid config file.
1577 * Split into different binary packages (maas,python-django-maas).
1578 - debian/maas.postinst: Handle the apache2 configuration.
1579
1580 -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 07 Mar 2012 12:46:17 -0500
1581
1582maas (0.1+bzr171+dfsg-0ubuntu1) precise; urgency=low
1583
1584 * New upstream snapshot, post 0.1 release.
1585 * debian/control:
1586 - Drop depends on rabbitmq-server, no longer required.
1587 * debian/watch: Introduced watch file.
1588
1589 -- Dave Walker (Daviey) <DaveWalker@ubuntu.com> Thu, 23 Feb 2012 13:08:12 +0000
1590
1591maas (0.1~bzr146+dfsg-0ubuntu1) precise; urgency=low
1592
1593 * Initial release
1594
1595 -- Julian Edwards <julian.edwards@canonical.com> Thu, 16 Jan 2012 15:29:07 +0000
01596
=== added file 'debian/compat'
--- debian/compat 1970-01-01 00:00:00 +0000
+++ debian/compat 2015-06-03 20:01:10 +0000
@@ -0,0 +1,1 @@
17
02
=== added file 'debian/control'
--- debian/control 1970-01-01 00:00:00 +0000
+++ debian/control 2015-06-03 20:01:10 +0000
@@ -0,0 +1,233 @@
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 dh-systemd,
8 po-debconf,
9 python (>= 2.7),
10 python-distribute,
11 python-django
12Standards-Version: 3.9.6
13X-Python-Version: >= 2.7
14Homepage: https://launchpad.net/maas
15
16Package: maas
17Architecture: all
18Depends: ${misc:Depends},
19 maas-cluster-controller (= ${binary:Version}),
20 maas-region-controller (= ${binary:Version}),
21 python-django-maas (= ${binary:Version})
22Description: MAAS server all-in-one metapackage
23 MAAS is "Metal As A Service", a system for dynamic provisioning of physical
24 servers that has many of the same characteristics as a cloud. You register
25 servers with MAAS by telling MAAS about their IPMI or other control system.
26 MAAS can then do hardware inventory, and provision that system on demand
27 with whatever OS and software you like. MAAS is standalone software that
28 works with any configuration system, but for best results combine MAAS with
29 Juju.
30 .
31 MAAS provides:
32 * Hardware inventory of servers
33 * Dynamic provisioning based on name or attributes such as disk, RAM cores, sockets
34 * DNS and DHCP as needed
35 * PXE boot services
36 .
37 This package is a metapackage which installs all of the separate components
38 of MAAS on a single machine.
39
40Package: maas-common
41Architecture: all
42Depends: ${misc:Depends}, ${python:Depends}
43Breaks: maas ( <= 0.1+bzr1048+dfsg-0ubuntu1 )
44Replaces: maas ( <= 0.1+bzr1048+dfsg-0ubuntu1 )
45Description: MAAS server common files
46 This package contains the common files for any MAAS installation.
47
48Package: maas-region-controller-min
49Architecture: all
50Depends: apache2,
51 bind9utils,
52 dbconfig-common,
53 iproute,
54 libjs-angularjs,
55 libjs-yui3-full,
56 libjs-yui3-min,
57 maas-common (= ${binary:Version}),
58 maas-proxy (= ${binary:Version}),
59 python-bson,
60 python-django16 | python-django (<< 1.7),
61 python-django,
62 python-django-maas (= ${binary:Version}),
63 python-django-piston,
64 python-django-south,
65 python-maas-provisioningserver (= ${binary:Version}),
66 python-djorm-ext-pgarray,
67 rsyslog,
68 ubuntu-cloudimage-keyring,
69 ${misc:Depends},
70 ${python:Depends}
71Breaks: maas-region-controller ( <= 1.4+bzr1693+dfsg-0ubuntu3 )
72Replaces: maas-region-controller ( <= 1.4+bzr1693+dfsg-0ubuntu3 )
73Description: MAAS Server minimum region controller
74 This package installs and configures the minimum region controller
75 services provided by MAAS, including the web UI, caching package proxy,
76 networking/traffic control, and remote logging system.
77
78Package: maas-region-controller
79Architecture: all
80Depends: maas-region-controller-min (= ${binary:Version}),
81 postgresql (>= 9.1),
82 ${misc:Depends},
83 ${python:Depends}
84Recommends: openssh-server, maas-dns (= ${binary:Version})
85Description: MAAS server complete region controller
86 This package installs and configures the complete MAAS region controller,
87 including the minimum setup, plus the database server and messaging queue.
88
89Package: python-maas-provisioningserver
90Section: python
91Architecture: all
92Depends: python-bson,
93 python-crochet,
94 python-distro-info,
95 python-formencode,
96 python-jsonschema,
97 python-lockfile,
98 python-lxml,
99 python-maas-client (= ${binary:Version}),
100 python-netifaces,
101 python-paramiko,
102 python-pexpect,
103 python-pyparsing,
104 python-seamicroclient,
105 python-simplestreams,
106 python-tempita,
107 python-twisted-core,
108 python-twisted-web,
109 python-txamqp,
110 python-txtftp,
111 python-yaml,
112 python-zope.interface,
113 ${misc:Depends},
114 ${python:Depends}
115Breaks: python-django-maas ( <= 0.1+bzr1048+dfsg-0ubuntu1 ), maas-cluster-controller (<= 0.1+bzr1243+dfsg-0ubuntu3), maas-dhcp (<= 1.4+bzr1817+dfsg-0ubuntu1)
116Replaces: python-django-maas ( <= 0.1+bzr1048+dfsg-0ubuntu1 ), maas-cluster-controller (<= 0.1+bzr1243+dfsg-0ubuntu3), maas-dhcp (<= 1.4+bzr1817+dfsg-0ubuntu1)
117Description: MAAS server provisioning libraries
118 This package provides the MAAS provisioning server python libraries.
119
120Package: maas-cli
121Architecture: all
122Depends: python-bzrlib,
123 python-httplib2,
124 python-maas-client (= ${binary:Version}),
125 python-oauth,
126 ${misc:Depends},
127 ${python:Depends}
128Conflicts: maas-region-controller-min (<= 1.5+bzr1909-0ubuntu1)
129Replaces: maas-region-controller-min (<= 1.5+bzr1909-0ubuntu1)
130Description: MAAS command line API tool
131 This package contains the MAAS client command line API tool.
132 This tool enables automation of tasks in MAAS, remotely, through
133 its API.
134
135Package: python-maas-client
136Section: python
137Architecture: all
138Depends: python-oauth, ${misc:Depends}, ${python:Depends}
139Breaks: maas (<= 0.1+bzr971+dfsg-0ubuntu2 )
140Replaces: maas (<= 0.1+bzr971+dfsg-0ubuntu2 )
141Description: MAAS python API client
142 This package contains the MAAS client API Python modules.
143
144Package: maas-cluster-controller
145Architecture: all
146Depends: authbind,
147 bind9utils,
148 distro-info,
149 freeipmi-tools,
150 grub-common,
151 maas-cli (=${binary:Version}),
152 maas-common (=${binary:Version}),
153 maas-dhcp (=${binary:Version}),
154 python-httplib2,
155 python-lockfile,
156 python-maas-provisioningserver (=${binary:Version}),
157 python-netaddr,
158 python-oauth,
159 python-tempita,
160 python-twisted,
161 python-zope.interface,
162 rsyslog,
163 pxelinux | syslinux-common (<< 3:6.00~pre4+dfsg-5),
164 syslinux-common,
165 tgt,
166 uuid-runtime,
167 wget,
168 ${misc:Depends},
169 ${python:Depends}
170Suggests: ipmitool, libvirt-bin, amtterm, python-pyvmomi
171Conflicts: tftpd-hpa
172Breaks: maas ( <= 0.1+bzr1048+dfsg-0ubuntu1 ), maas-region-controller ( <= 0.1+bzr1314+dfsg-0ubuntu1 )
173Replaces: maas ( <= 0.1+bzr1048+dfsg-0ubuntu1 ), maas-region-controller ( <= 0.1+bzr1314+dfsg-0ubuntu1 )
174Description: MAAS server cluster controller
175 This package contains the MAAS cluster controller, which is responsible
176 for enabling and controlling remote DHCP/TFTP instances on their own
177 subnets.
178
179Package: python-django-maas
180Section: python
181Architecture: all
182Depends: python-amqp,
183 python-apt,
184 python-convoy,
185 python-crochet,
186 python-curtin,
187 python-lockfile,
188 python-lxml,
189 python-maas-client (= ${binary:Version}),
190 python-netaddr,
191 python-psycopg2,
192 python-sphinx,
193 python-tempita,
194 python-twisted,
195 python-txamqp,
196 python-zope.interface,
197 ${misc:Depends},
198 ${python:Depends}
199Description: MAAS server Django web framework
200 This package provides the Django web framework for MAAS.
201
202Package: maas-dhcp
203Architecture: all
204Depends: isc-dhcp-server (>= 4.2.4), ${misc:Depends}
205Breaks: maas-dhcp (<= 0.1+bzr777+dfsg-0ubuntu1)
206Replaces: maas-dhcp (<= 0.1+bzr777+dfsg-0ubuntu1)
207Description: MAAS DHCP server
208 This package installs and configures a DHCP server that can be used by
209 MAAS, and enhances the overall MAAS user experience.
210
211Package: maas-dns
212Architecture: all
213Depends: bind9,
214 maas-region-controller-min (= ${binary:Version}),
215 python-iscpy,
216 ${misc:Depends}
217Conflicts: dnsmasq
218Breaks: maas-dhcp (<= 0.1+bzr777+dfsg-0ubuntu1)
219Replaces: maas-dhcp (<= 0.1+bzr777+dfsg-0ubuntu1)
220Description: MAAS DNS server
221 This package installs and configures a DNS server that can be used by
222 MAAS, and enhances the overall MAAS user experience.
223
224Package: maas-proxy
225Architecture: all
226Depends: ${python:Depends},
227 ${misc:Depends},
228 squid3
229Conflicts: squid-deb-proxy
230Replaces: squid-deb-proxy
231Description: MAAS Caching Proxy
232 This package installs and configures a Caching Proxy server that can be
233 used by MAAS. It enhances the overall MAAS user experience.
0234
=== added file 'debian/copyright'
--- debian/copyright 1970-01-01 00:00:00 +0000
+++ debian/copyright 2015-06-03 20:01:10 +0000
@@ -0,0 +1,45 @@
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/>.
26
27Files: src/maasserver/static/js/angular/3rdparty/ng-tags-input.js
28Copyright: Copyright (c) 2013-2015 Michael Benford.
29License: MIT
30 Permission is hereby granted, free of charge, to any person obtaining a copy of
31 this software and associated documentation files (the "Software"), to deal in
32 the Software without restriction, including without limitation the rights to
33 use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
34 the Software, and to permit persons to whom the Software is furnished to do so,
35 subject to the following conditions:
36 .
37 The above copyright notice and this permission notice shall be included in all
38 copies or substantial portions of the Software.
39 .
40 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
41 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
42 FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
43 COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
44 IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
45 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
046
=== 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 2015-06-03 20:01:10 +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 2015-06-03 20:01:10 +0000
@@ -0,0 +1,5 @@
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
5keyserver.ubuntu.com
06
=== added file 'debian/extras/99-maas-sudoers'
--- debian/extras/99-maas-sudoers 1970-01-01 00:00:00 +0000
+++ debian/extras/99-maas-sudoers 2015-06-03 20:01:10 +0000
@@ -0,0 +1,12 @@
1maas ALL= NOPASSWD: /usr/sbin/service maas-dhcpd start
2maas ALL= NOPASSWD: /usr/sbin/service maas-dhcpd status
3maas ALL= NOPASSWD: /usr/sbin/service maas-dhcpd restart
4maas ALL= NOPASSWD: /usr/sbin/service maas-dhcpd stop
5maas ALL= NOPASSWD: /usr/sbin/service maas-dhcpd6 start
6maas ALL= NOPASSWD: /usr/sbin/service maas-dhcpd6 status
7maas ALL= NOPASSWD: /usr/sbin/service maas-dhcpd6 restart
8maas ALL= NOPASSWD: /usr/sbin/service maas-dhcpd6 stop
9maas ALL= NOPASSWD: /usr/sbin/service tgt status
10maas ALL= NOPASSWD: /usr/sbin/service tgt start
11maas ALL= NOPASSWD: /usr/sbin/maas-provision
12maas ALL= NOPASSWD: SETENV: /usr/sbin/tgt-admin, /usr/bin/uec2roottar
013
=== 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 2015-06-03 20:01:10 +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 2015-06-03 20:01:10 +0000
@@ -0,0 +1,6 @@
1#!/bin/sh
2if [ "`expr \"$0\" : \".*maas-cli*\"`" != "0" ];then
3 echo " WARNING: The maas-cli command is deprecated and will be removed" \
4 "in a future\n version. From now on please use 'maas' instead." >&2
5fi
6exec python -m maascli "$@"
07
=== added file 'debian/extras/maas-probe-dhcp'
--- debian/extras/maas-probe-dhcp 1970-01-01 00:00:00 +0000
+++ debian/extras/maas-probe-dhcp 2015-06-03 20:01:10 +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.dhcp.probe "$@"
08
=== added file 'debian/extras/maas-provision'
--- debian/extras/maas-provision 1970-01-01 00:00:00 +0000
+++ debian/extras/maas-provision 2015-06-03 20:01:10 +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-proxy-common.sh'
--- debian/extras/maas-proxy-common.sh 1970-01-01 00:00:00 +0000
+++ debian/extras/maas-proxy-common.sh 2015-06-03 20:01:10 +0000
@@ -0,0 +1,34 @@
1pre_start() {
2 if [ -x /usr/sbin/squid ]; then
3 SQUID=/usr/sbin/squid
4 elif [ -x /usr/sbin/squid3 ]; then
5 SQUID=/usr/sbin/squid3
6 else
7 echo "No squid binary found"
8 exit 1
9 fi
10
11 # ensure all cache dirs are there
12 install -d -o proxy -g proxy -m 750 /var/cache/maas-proxy/
13 install -d -o proxy -g proxy -m 750 /var/log/maas/proxy/
14 install -m 750 -o proxy -g proxy -d /var/spool/maas-proxy/
15 if [ -d /var/log/maas/proxy ]; then
16 chown -R proxy:proxy /var/log/maas/proxy
17 fi
18 if [ ! -d /var/cache/maas-proxy/00 ]; then
19 $SQUID -z -N -f /etc/maas/maas-proxy.conf
20 fi
21}
22
23# from the squid3 debian init script
24find_cache_dir () {
25 w=" " # space tab
26 res=`sed -ne '
27 s/^'$1'['"$w"']\+[^'"$w"']\+['"$w"']\+\([^'"$w"']\+\).*$/\1/p;
28 t end;
29 d;
30 :end q' < $CONFIG`
31 [ -n "$res" ] || res=$2
32 echo "$res"
33}
34
035
=== added file 'debian/extras/maas-proxy.conf'
--- debian/extras/maas-proxy.conf 1970-01-01 00:00:00 +0000
+++ debian/extras/maas-proxy.conf 2015-06-03 20:01:10 +0000
@@ -0,0 +1,37 @@
1# Inspired by UDS's conference proxy
2
3acl maas_proxy_manager proto cache_object
4acl localhost src 127.0.0.1/32 ::1
5acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1
6acl localnet src all # TODO: We should auto-generate this with the networks MAAS manages/knows about.
7acl SSL_ports port 443
8acl Safe_ports port 80 # http
9acl Safe_ports port 21 # ftp
10acl Safe_ports port 443 # https
11acl Safe_ports port 1025-65535 # unregistered ports
12acl CONNECT method CONNECT
13http_access allow maas_proxy_manager localhost
14http_access deny maas_proxy_manager
15http_access deny !Safe_ports
16http_access deny CONNECT !SSL_ports
17http_access allow localnet
18http_access allow localhost
19http_access deny all
20http_port 3128 transparent
21http_port 8000
22coredump_dir /var/spool/maas-proxy
23refresh_pattern ^ftp: 1440 20% 10080
24refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
25refresh_pattern (Release|Packages(.gz)*)$ 0 20% 2880
26refresh_pattern . 0 20% 4320
27forwarded_for delete
28visible_hostname maas.proxy # TODO: This should be autogenerated by a template.
29cache_mem 512 MB
30minimum_object_size 0 MB
31maximum_object_size 1024 MB
32maximum_object_size_in_memory 100 MB
33cache_dir aufs /var/spool/maas-proxy 40000 16 256
34# use different logs
35cache_access_log /var/log/maas/proxy/access.log
36cache_log /var/log/maas/proxy/cache.log
37cache_store_log /var/log/maas/proxy/store.log
038
=== added file 'debian/extras/maas-region-admin'
--- debian/extras/maas-region-admin 1970-01-01 00:00:00 +0000
+++ debian/extras/maas-region-admin 2015-06-03 20:01:10 +0000
@@ -0,0 +1,22 @@
1#!/usr/bin/python
2import os
3import sys
4
5user_id = os.getuid()
6if user_id != 0:
7 print("This utility may only be run as root.")
8 sys.exit(1)
9
10os.environ.setdefault("DJANGO_SETTINGS_MODULE", "maas.settings")
11sys.path.append('/usr/share/maas')
12
13# Use Django 1.6 if the python-django16 package is installed: this is
14# to get MAAS to work on vivid: vivid ships with Django 1.7 by default
15# and MAAS isn't yet compatible with Django 1.7.
16if os.path.exists('/usr/lib/django16'):
17 sys.path.insert(1, '/usr/lib/django16')
18
19from django.core import management
20
21if __name__ == "__main__":
22 management.execute_from_command_line()
023
=== 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 2015-06-03 20:01:10 +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/extras/squid3.override'
--- debian/extras/squid3.override 1970-01-01 00:00:00 +0000
+++ debian/extras/squid3.override 2015-06-03 20:01:10 +0000
@@ -0,0 +1,1 @@
1manual
02
=== added file 'debian/maas-cli.install'
--- debian/maas-cli.install 1970-01-01 00:00:00 +0000
+++ debian/maas-cli.install 2015-06-03 20:01:10 +0000
@@ -0,0 +1,2 @@
1debian/extras/maas usr/bin
2debian/tmp/usr/lib/python*/dist-packages/maascli
03
=== added file 'debian/maas-cli.links'
--- debian/maas-cli.links 1970-01-01 00:00:00 +0000
+++ debian/maas-cli.links 2015-06-03 20:01:10 +0000
@@ -0,0 +1,1 @@
1usr/bin/maas usr/bin/maas-cli
02
=== added file 'debian/maas-cli.lintian-overrides'
--- debian/maas-cli.lintian-overrides 1970-01-01 00:00:00 +0000
+++ debian/maas-cli.lintian-overrides 2015-06-03 20:01:10 +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 2015-06-03 20:01:10 +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 2015-06-03 20:01:10 +0000
@@ -0,0 +1,2 @@
1etc/maas
2var/lib/maas/boot-resources
03
=== added file 'debian/maas-cluster-controller.install'
--- debian/maas-cluster-controller.install 1970-01-01 00:00:00 +0000
+++ debian/maas-cluster-controller.install 2015-06-03 20:01:10 +0000
@@ -0,0 +1,21 @@
1# Install twisted plugins
2twisted/plugins/maasclusterd.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 templates
11debian/tmp/etc/maas/templates/dhcp
12debian/tmp/etc/maas/templates/power
13debian/tmp/etc/maas/templates/pxe
14debian/tmp/etc/maas/templates/uefi
15
16# Install uec2roottar
17debian/tmp/usr/bin/uec2roottar
18
19# Install all other stuff
20debian/extras/99-maas-sudoers etc/sudoers.d
21debian/extras/isc-dhcp-server.override etc/init
022
=== 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 2015-06-03 20:01:10 +0000
@@ -0,0 +1,1 @@
1maas-cluster-controller: binary-without-manpage usr/bin/uec2roottar
02
=== added file 'debian/maas-cluster-controller.logrotate'
--- debian/maas-cluster-controller.logrotate 1970-01-01 00:00:00 +0000
+++ debian/maas-cluster-controller.logrotate 2015-06-03 20:01:10 +0000
@@ -0,0 +1,15 @@
1/var/log/maas/clusterd.log {
2 rotate 5
3 weekly
4 compress
5 missingok
6 # copytruncate may lose log messages at the moment of rotation, but
7 # there is no better way to integrate twistd and logrotate.
8 copytruncate
9 # The logs are all owned by the `maas` user, so drop privs.
10 su maas maas
11 # Don't rotate unless the log is at least 10MB.
12 minsize 10M
13 # Force rotation if the log grows beyond 50MB.
14 maxsize 50M
15}
016
=== added file 'debian/maas-cluster-controller.maas-clusterd.service'
--- debian/maas-cluster-controller.maas-clusterd.service 1970-01-01 00:00:00 +0000
+++ debian/maas-cluster-controller.maas-clusterd.service 2015-06-03 20:01:10 +0000
@@ -0,0 +1,26 @@
1[Unit]
2Description=MAAS Cluster Controller
3Documentation=https://maas.ubuntu.com/
4Requires=network-online.target
5After=network-online.target
6ConditionPathExists=/var/lib/maas/secret
7# These will go away one we support new config files.
8ConditionPathExists=/etc/maas/maas_cluster.conf
9ConditionPathExists=/etc/maas/pserv.yaml
10
11[Service]
12User=maas
13Group=maas
14Restart=always
15EnvironmentFile=/etc/maas/maas_cluster.conf
16Environment="LOGFILE=/var/log/maas/clusterd.log"
17# Logs go to the journal; read them with
18# journalctl -u maas-clusterd
19# Logs also go to $LOGFILE for backward compatibility. The journal
20# should now be preferred as the $LOGFILE will be removed in MAAS 1.9.
21ExecStart=/bin/sh -c \
22 'exec /usr/bin/authbind --deep /usr/bin/twistd --nodaemon --pidfile= \
23 maas-clusterd --config-file=/etc/maas/pserv.yaml 2>&1 | tee -a $LOGFILE'
24
25[Install]
26WantedBy=multi-user.target
027
=== added file 'debian/maas-cluster-controller.maas-clusterd.upstart'
--- debian/maas-cluster-controller.maas-clusterd.upstart 1970-01-01 00:00:00 +0000
+++ debian/maas-cluster-controller.maas-clusterd.upstart 2015-06-03 20:01:10 +0000
@@ -0,0 +1,52 @@
1description "MAAS Cluster Controller"
2author "Andres Rodriguez <andres.rodriguez@canonical.com>"
3
4start on filesystem and net-device-up
5stop on runlevel [016]
6
7respawn
8
9env CONFIG_FILE=/etc/maas/maas_cluster.conf
10env LOGFILE=/var/log/maas/clusterd.log
11
12pre-start script
13 if [ ! -f $CONFIG_FILE ]; then
14 echo "$CONFIG_FILE does not exist. Aborting."
15 stop
16 exit 0
17 fi
18end script
19
20script
21 # Exit immediately on error, and treat unset variables as errors. In
22 # sh/dash, unfortunately, the following does not cause the use of an unset
23 # variable to halt the script, it merely prints an error and sets $?.
24 set -o errexit -o nounset
25 # Load the configuration file.
26 . $CONFIG_FILE
27 # The MAAS cluster controller needs both CLUSTER_UUID and MAAS_URL to
28 # operate.
29 export CLUSTER_UUID
30 export MAAS_URL
31 # Check for the shared-secret. If it's not here, sleep for a while, then
32 # exit and allow respawn to do its thing.
33 if ! maas-provision check-for-shared-secret >/dev/null; then
34 fmt -w 72 <<-'EOF' >&2
35 A shared secret has not been installed for this cluster. Obtain
36 the secret from the region (find it in /var/lib/maas/secret once
37 the region controller has started for the first time) and
38 install it with `maas-provision install-shared-secret`.
39
40 However, if this machine is also serving as the region, ensure
41 that the region controller is started (`sudo service apache2
42 start` typically). It will create the shared secret, which
43 maas-clusterd will then find when it respawns in 5 seconds.
44
45 EOF
46 exec sleep 5
47 fi
48 # To add options to your daemon, edit the line below:
49 exec /usr/bin/authbind --deep \
50 /usr/bin/twistd --nodaemon --uid=maas --gid=maas --pidfile= \
51 maas-clusterd --config-file=/etc/maas/pserv.yaml > ${LOGFILE} 2>&1
52end script
053
=== added file 'debian/maas-cluster-controller.maintscript'
--- debian/maas-cluster-controller.maintscript 1970-01-01 00:00:00 +0000
+++ debian/maas-cluster-controller.maintscript 2015-06-03 20:01:10 +0000
@@ -0,0 +1,7 @@
1rm_conffile /etc/maas/bootresources.yaml 1.7.0~beta1+bzr2781-0ubuntu1
2rm_conffile /etc/maas/maas_local_celeryconfig_cluster.py 1.7.0~beta3+bzr3043-0ubuntu1
3rm_conffile /etc/init/maas-cluster-celery.conf 1.7.0~beta3+bzr3043-0ubuntu1
4rm_conffile /etc/init/maas-pserv.conf 1.7.0~beta3+bzr3043-0ubuntu1
5rm_conffile /etc/init/maas-cluster.conf 1.7.0~beta6+bzr3231-0ubuntu1
6rm_conffile /etc/init/maas-cluster-register.conf 1.7.0~beta6+bzr3231-0ubuntu1
7rm_conffile /etc/maas/maas-cluster-http.conf 1.8.0~alpha1+bzr3522-0ubuntu1
08
=== added file 'debian/maas-cluster-controller.postinst'
--- debian/maas-cluster-controller.postinst 1970-01-01 00:00:00 +0000
+++ debian/maas-cluster-controller.postinst 2015-06-03 20:01:10 +0000
@@ -0,0 +1,140 @@
1#!/bin/sh
2
3set -e
4
5. /usr/share/debconf/confmodule
6db_version 2.0
7
8RELEASE=`lsb_release -rs` || RELEASE=""
9
10create_var_dir() {
11 # create var dir
12 if [ ! -d /var/lib/maas ]; then
13 mkdir -p /var/lib/maas
14 fi
15 chown -R maas:maas /var/lib/maas/
16
17}
18create_log_dir() {
19 # Give appropriate permissions
20 if [ ! -f /var/log/maas/clusterd.log ]; then
21 touch /var/log/maas/clusterd.log
22 fi
23 chown maas:maas /var/log/maas/clusterd.log
24}
25
26configure_maas_tgt() {
27 # Ensure that iSCSI targets get re-defined on reboot.
28 # Creates a softlink in /etc/tgt/conf.d/ that points to the current
29 # boot images' tgt configuration.
30 mkdir -p /etc/tgt/conf.d
31 ln -sf /var/lib/maas/boot-resources/current/maas.tgt /etc/tgt/conf.d/maas.conf
32}
33
34extract_cluster_uuid(){
35 # Extract ClUSTER_UUID setting from config file $1. This will work
36 # the cluster 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. If an old uuid is
42 # configured, we replicate that to maas_cluster.conf; otherwise,
43 # we want to generate one.
44 local uuid
45
46 if [ -n "$(extract_cluster_uuid /etc/maas/maas_cluster.conf)" ]; then
47 # UUID is already set up. Wonderful.
48 return
49 else
50 # No UUID at all yet. Generate one.
51 uuid="$(uuidgen)"
52 fi
53
54 # Write the uuid to maas_cluster.conf
55 # There is no initial placeholder in this file, so just append the setting.
56 echo "CLUSTER_UUID=\"$uuid\"" >>/etc/maas/maas_cluster.conf
57}
58
59enable_apache_version_mod(){
60 COMMON_STATE=$(dpkg-query -f '${Status}' -W 'apache2.2-common' 2>/dev/null | awk '{print $3}' || true)
61 if [ "$COMMON_STATE" = "installed" ] || [ "$COMMON_STATE" = "unpacked" ] ; then
62 a2enmod version
63 fi
64}
65
66configure_cluster_authbind() {
67 MAAS_UID="`id -u maas`"
68 if [ ! -f "/etc/authbind/byuid/$MAAS_UID" ]; then
69 if [ ! -d "/etc/authbind/byuid" ]; then
70 mkdir -p /etc/authbind/byuid
71 chmod 755 /etc/authbind
72 chmod 755 /etc/authbind/byuid
73 fi
74 fi
75 echo '0.0.0.0/0:68,69' >/etc/authbind/byuid/$MAAS_UID
76 echo '::/0,68-69' >>/etc/authbind/byuid/$MAAS_UID
77 chown maas:maas /etc/authbind/byuid/$MAAS_UID
78 chmod 700 /etc/authbind/byuid/$MAAS_UID
79}
80
81restart_apache2(){
82 if [ -x /usr/sbin/invoke-rc.d ]; then
83 invoke-rc.d apache2 restart || true
84 else
85 /etc/init.d/apache2 restart || true
86 fi
87}
88
89configure_maas_url(){
90 # Get the MAAS_URL on configure/reconfigure and write it to the conf files.
91 db_get maas-cluster-controller/maas-url || true
92 if [ -n "$RET" ]; then
93 maas-provision configure-maas-url "$RET"
94 fi
95}
96
97configure_shared_secret() {
98 db_get maas-cluster-controller/shared-secret || true
99 if [ -n "$RET" ]; then
100 echo "$RET" | maas-provision install-shared-secret
101 chown maas:maas /var/lib/maas/secret
102 chmod 0640 /var/lib/maas/secret
103 fi
104}
105
106
107if [ "$1" = "configure" ] && [ -z "$2" ]; then
108 create_log_dir
109 create_var_dir
110 configure_maas_tgt
111fi
112
113if [ "$1" = "configure" ]; then
114 create_log_dir
115
116 configure_maas_tgt
117 configure_maas_url
118 # Only ask for a shared secret when the region is not installed
119 # on the same system.
120 if [ -n "$DEBCONF_RECONFIGURE" ] && [ ! -f /usr/sbin/maas-region-admin ]; then
121 db_input high maas-cluster-controller/shared-secret
122 db_go
123 fi
124 configure_shared_secret
125
126 # This config file may contain a private cluster UUID. Only maas
127 # can read it; only root can write it.
128 chown root:maas /etc/maas/maas_cluster.conf
129 chmod 0640 /etc/maas/maas_cluster.conf
130
131 configure_cluster_uuid
132 configure_cluster_authbind
133 enable_apache_version_mod
134 restart_apache2
135 maas-provision upgrade-cluster
136fi
137
138db_stop
139
140#DEBHELPER#
0141
=== added file 'debian/maas-cluster-controller.postrm'
--- debian/maas-cluster-controller.postrm 1970-01-01 00:00:00 +0000
+++ debian/maas-cluster-controller.postrm 2015-06-03 20:01:10 +0000
@@ -0,0 +1,29 @@
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 # remove var directory
14 DIR=/var/lib/maas
15 if [ "$(ls -A $DIR 2> /dev/null)" = "" ]; then
16 rm -rf /var/lib/maas
17 fi
18
19 # Delete symlink for iSCSI config.
20 if [ -L /etc/tgt/conf.d/maas.conf ]; then
21 rm -rf /etc/tgt/conf.d/maas.conf
22 fi
23
24 # Remove authbind
25 MAAS_UID="`id -u maas`"
26 if [ -f "/etc/authbind/byuid/$MAAS_UID" ]; then
27 rm -rf /etc/authbind/byuid/$MAAS_UID
28 fi
29esac
030
=== added file 'debian/maas-cluster-controller.preinst'
--- debian/maas-cluster-controller.preinst 1970-01-01 00:00:00 +0000
+++ debian/maas-cluster-controller.preinst 2015-06-03 20:01:10 +0000
@@ -0,0 +1,43 @@
1#!/bin/sh
2
3set -e
4
5. /usr/share/debconf/confmodule
6
7if [ "$1" = "upgrade" ]; then
8
9 if dpkg --compare-versions "$2" lt 1.7.0~beta3+bzr3066-0ubuntu1; then
10 if [ -f /etc/init/maas-pserv.conf ]; then
11 invoke-rc.d maas-pserv stop
12 fi
13
14 if [ -f /etc/init/maas-cluster-celery.conf ]; then
15 invoke-rc.d maas-cluster-celery stop
16 fi
17
18 if [ -f /var/log/maas/celery.log ]; then
19 rm -rf /var/log/maas/celery.log
20 fi
21 fi
22
23 if dpkg --compare-versions "$2" lt 1.7.0~beta6+bzr3232-0ubuntu1; then
24 if [ -f /etc/init/maas-cluster.conf ]; then
25 invoke-rc.d maas-cluster stop
26 fi
27 fi
28
29 if dpkg --compare-versions "$2" lt 1.8.0~alpha1+bzr3486-0ubuntu1; then
30 if [ -f /var/log/maas/pserv.log ]; then
31 rm -rf /var/log/maas/pserv.log
32 fi
33 fi
34
35 if dpkg --compare-versions "$2" lt 1.8.0~alpha1+bzr3523-0ubuntu1; then
36 if [ -f /etc/apache2/conf-enabled/maas-cluster-http.conf ]; then
37 rm -rf /etc/apache2/conf-enabled/maas-cluster-http.conf
38 fi
39 fi
40
41fi
42
43#DEBHELPER#
044
=== added file 'debian/maas-cluster-controller.templates'
--- debian/maas-cluster-controller.templates 1970-01-01 00:00:00 +0000
+++ debian/maas-cluster-controller.templates 2015-06-03 20:01:10 +0000
@@ -0,0 +1,16 @@
1Template: maas-cluster-controller/maas-url
2Type: string
3Default:
4_Description: Ubuntu MAAS API address:
5 The MAAS cluster controller and nodes need to contact the MAAS region
6 controller API. Set the URL at which they can reach the MAAS API remotely,
7 e.g. "http://192.168.1.1/MAAS".
8 Since nodes must be able to access this URL, localhost or 127.0.0.1 are not
9 useful values here.
10
11Template: maas-cluster-controller/shared-secret
12Type: password
13Default:
14_Description: MAAS Cluster Controller Shared Secret:
15 The MAAS Cluster Controller needs to contact the MAAS server
16 with a share secret. Set the shared secret here.
017
=== added file 'debian/maas-common.install'
--- debian/maas-common.install 1970-01-01 00:00:00 +0000
+++ debian/maas-common.install 2015-06-03 20:01:10 +0000
@@ -0,0 +1,1 @@
1debian/tmp/usr/share/maas/maas-rsyslog.conf
02
=== added file 'debian/maas-common.logrotate'
--- debian/maas-common.logrotate 1970-01-01 00:00:00 +0000
+++ debian/maas-common.logrotate 2015-06-03 20:01:10 +0000
@@ -0,0 +1,9 @@
1/var/log/maas/maas.log
2{
3 rotate 7
4 daily
5 missingok
6 notifempty
7 delaycompress
8 compress
9}
010
=== added file 'debian/maas-common.maintscript'
--- debian/maas-common.maintscript 1970-01-01 00:00:00 +0000
+++ debian/maas-common.maintscript 2015-06-03 20:01:10 +0000
@@ -0,0 +1,2 @@
1#TODO: Figure out the right version or whether this is needed.
2#rm_conffile /usr/share/maas/celeryconfig_common.py 1.7.0~beta3+bzr3043-0ubuntu1
03
=== added file 'debian/maas-common.postinst'
--- debian/maas-common.postinst 1970-01-01 00:00:00 +0000
+++ debian/maas-common.postinst 2015-06-03 20:01:10 +0000
@@ -0,0 +1,31 @@
1#!/bin/sh
2
3set -e
4
5create_log_dir(){
6 # Logging directory (/var/log/maas)
7 if [ ! -d /var/log/maas ]; then
8 mkdir -p /var/log/maas
9 chown -R maas:maas /var/log/maas/
10 fi
11
12 if [ ! -f /var/log/maas/maas.log ]; then
13 touch /var/log/maas/maas.log
14 fi
15 chown syslog:syslog /var/log/maas/maas.log
16}
17
18add_user_group(){
19 local user="maas"
20 local group="maas"
21 local home="/var/lib/maas"
22 addgroup --quiet --system "$group" || true
23 adduser --quiet --system --group --home "$home" "$user" || true
24}
25
26ln -sf /usr/share/maas/maas-rsyslog.conf /etc/rsyslog.d/99-maas.conf
27
28add_user_group
29create_log_dir
30
31#DEBHELPER#
032
=== added file 'debian/maas-common.postrm'
--- debian/maas-common.postrm 1970-01-01 00:00:00 +0000
+++ debian/maas-common.postrm 2015-06-03 20:01:10 +0000
@@ -0,0 +1,17 @@
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
14rm -f /etc/rsyslog.d/99-maas.conf
15
16
17#DEBHELPER#
018
=== added file 'debian/maas-dhcp.apparmor'
--- debian/maas-dhcp.apparmor 1970-01-01 00:00:00 +0000
+++ debian/maas-dhcp.apparmor 2015-06-03 20:01:10 +0000
@@ -0,0 +1,12 @@
1# Work around bug:
2# https://bugs.launchpad.net/ubuntu/+source/isc-dhcp/+bug/1186662
3capability dac_override,
4
5/run/maas/dhcp/ r,
6/run/maas/dhcp/** r,
7/run/maas/dhcp/*.pid lrw,
8/run/maas/dhcp/*.trace lrw,
9/run/maas/dhcp/*.leases* lrw,
10/var/lib/maas/dhcp/dhcpd*.leases* lrw,
11/etc/maas/dhcpd.conf r,
12/etc/maas/dhcpd6.conf r,
013
=== added file 'debian/maas-dhcp.install'
--- debian/maas-dhcp.install 1970-01-01 00:00:00 +0000
+++ debian/maas-dhcp.install 2015-06-03 20:01:10 +0000
@@ -0,0 +1,1 @@
1/debian/tmp/etc/apparmor.d/dhcpd.d/maas
02
=== added file 'debian/maas-dhcp.maas-dhcpd.service'
--- debian/maas-dhcp.maas-dhcpd.service 1970-01-01 00:00:00 +0000
+++ debian/maas-dhcp.maas-dhcpd.service 2015-06-03 20:01:10 +0000
@@ -0,0 +1,27 @@
1[Unit]
2Description=MAAS instance of ISC DHCP server for IPv4
3Documentation=man:dhcpd(8)
4Wants=network-online.target
5After=network-online.target
6After=time-sync.target
7ConditionPathExists=/etc/maas/dhcpd.conf
8ConditionPathExists=/var/lib/maas/dhcpd-interfaces
9
10[Service]
11# Allow dhcp server to write lease and pid file as 'dhcpd' user
12ExecStartPre=/bin/mkdir -p /run/maas/dhcp
13ExecStartPre=/bin/chown root:root /run/maas/dhcp
14# The leases files need to be root:root even when dropping privileges
15ExecStartPre=/bin/mkdir -p /var/lib/maas/dhcp
16ExecStartPre=/bin/chown root:root /var/lib/maas/dhcp
17# Start the daemon
18ExecStart=/bin/sh -ec '\
19 INTERFACES=$(cat /var/lib/maas/dhcpd-interfaces); \
20 LEASES_FILE=/var/lib/maas/dhcp/dhcpd.leases; \
21 [ -e $LEASES_FILE ] || touch $LEASES_FILE; \
22 chown root:root /var/lib/maas/dhcp /var/lib/maas/dhcp/dhcpd.leases*; \
23 exec dhcpd -user dhcpd -group dhcpd -f -q -4 -pf /run/maas/dhcp/dhcpd.pid \
24 -cf /etc/maas/dhcpd.conf -lf $LEASES_FILE $INTERFACES'
25
26[Install]
27WantedBy=multi-user.target
028
=== added file 'debian/maas-dhcp.maas-dhcpd.upstart'
--- debian/maas-dhcp.maas-dhcpd.upstart 1970-01-01 00:00:00 +0000
+++ debian/maas-dhcp.maas-dhcpd.upstart 2015-06-03 20:01:10 +0000
@@ -0,0 +1,65 @@
1description "MAAS instance of ISC DHCP server for IPv4"
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.maas-dhcpd6.service'
--- debian/maas-dhcp.maas-dhcpd6.service 1970-01-01 00:00:00 +0000
+++ debian/maas-dhcp.maas-dhcpd6.service 2015-06-03 20:01:10 +0000
@@ -0,0 +1,27 @@
1[Unit]
2Description=MAAS instance of ISC DHCP server for IPv6
3Documentation=man:dhcpd(8)
4Wants=network-online.target
5After=network-online.target
6After=time-sync.target
7ConditionPathExists=/etc/maas/dhcpd6.conf
8ConditionPathExists=/var/lib/maas/dhcpd-interfaces
9
10[Service]
11# Allow dhcp server to write lease and pid file as 'dhcpd' user
12ExecStartPre=/bin/mkdir -p /run/maas/dhcp
13ExecStartPre=/bin/chown root:root /run/maas/dhcp
14# The leases files need to be root:root even when dropping privileges
15ExecStartPre=/bin/mkdir -p /var/lib/maas/dhcp
16ExecStartPre=/bin/chown root:root /var/lib/maas/dhcp
17# Start the daemon
18ExecStart=/bin/sh -ec '\
19 INTERFACES=$(cat /var/lib/maas/dhcpd-interfaces); \
20 LEASES_FILE=/var/lib/maas/dhcp/dhcpd6.leases; \
21 [ -e $LEASES_FILE ] || touch $LEASES_FILE; \
22 chown root:root /var/lib/maas/dhcp /var/lib/maas/dhcp/dhcpd6.leases*; \
23 exec dhcpd -user dhcpd -group dhcpd -f -6 -pf /run/maas/dhcp/dhcpd6.pid \
24 -cf /etc/maas/dhcpd6.conf -lf $LEASES_FILE $INTERFACES'
25
26[Install]
27WantedBy=multi-user.target
028
=== added file 'debian/maas-dhcp.maas-dhcpd6.upstart'
--- debian/maas-dhcp.maas-dhcpd6.upstart 1970-01-01 00:00:00 +0000
+++ debian/maas-dhcp.maas-dhcpd6.upstart 2015-06-03 20:01:10 +0000
@@ -0,0 +1,65 @@
1description "MAAS instance of ISC DHCP server for IPv6"
2author "Jeroen Vermeulen <jtv@canonical.com>"
3
4start on runlevel [2345]
5stop on runlevel [!2345]
6
7env CONFIG_FILE=/etc/maas/dhcpd6.conf
8env PID_DIR=/run/maas/dhcp
9env PID_FILE=/run/maas/dhcp/dhcpd6.pid
10env LEASES_DIR=/var/lib/maas/dhcp
11env LEASES_FILE=/var/lib/maas/dhcp/dhcpd6.leases
12
13# This is where we write what interfaces dhcpd should listen on.
14env INTERFACES_FILE=/var/lib/maas/dhcpd6-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 -6 -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 -6 -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 -6 -pf $PID_FILE -cf $CONFIG_FILE -lf $LEASES_FILE $INTERFACES
65end script
066
=== added file 'debian/maas-dhcp.maintscript'
--- debian/maas-dhcp.maintscript 1970-01-01 00:00:00 +0000
+++ debian/maas-dhcp.maintscript 2015-06-03 20:01:10 +0000
@@ -0,0 +1,2 @@
1rm_conffile /etc/init/maas-dhcp-server.conf 1.7.0~beta6+bzr3231-0ubuntu1
2rm_conffile /etc/init/maas-dhcpv6-server.conf 1.7.0~beta6+bzr3231-0ubuntu1
03
=== added file 'debian/maas-dhcp.postinst'
--- debian/maas-dhcp.postinst 1970-01-01 00:00:00 +0000
+++ debian/maas-dhcp.postinst 2015-06-03 20:01:10 +0000
@@ -0,0 +1,23 @@
1#!/bin/sh
2
3set -e
4
5if [ "$1" = "configure" ]
6then
7 # Stop the dhcpd instance that came with the isc-dhcp-server package.
8 # We run our own dhcpd instances.
9 if [ -d /run/systemd/system ]; then
10 systemctl stop isc-dhcp-server >/dev/null || true
11 systemctl disable isc-dhcp-server >/dev/null || true
12 else
13 invoke-rc.d isc-dhcp-server stop
14 fi
15
16 dhcpd_prof="/etc/apparmor.d/usr.sbin.dhcpd"
17 if [ -f "${dhcpd_prof}" ] && command -v apparmor_parser >/dev/null 2>&1
18 then
19 apparmor_parser --replace --write-cache --skip-read-cache "${dhcpd_prof}" || true
20 fi
21fi
22
23#DEBHELPER#
024
=== added file 'debian/maas-dhcp.postrm'
--- debian/maas-dhcp.postrm 1970-01-01 00:00:00 +0000
+++ debian/maas-dhcp.postrm 2015-06-03 20:01:10 +0000
@@ -0,0 +1,17 @@
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
11 if [ "$1" = "purge" ]; then
12 rm -rf /etc/maas/dhcpd.conf
13 rm -rf /etc/maas/dhcpd6.conf
14 fi
15fi
16
17#DEBHELPER#
018
=== added file 'debian/maas-dhcp.preinst'
--- debian/maas-dhcp.preinst 1970-01-01 00:00:00 +0000
+++ debian/maas-dhcp.preinst 2015-06-03 20:01:10 +0000
@@ -0,0 +1,16 @@
1#!/bin/sh
2
3set -e
4
5. /usr/share/debconf/confmodule
6
7if [ "$1" = "upgrade" ] && dpkg --compare-versions "$2" lt 1.7.0~beta6+bzr3232-0ubuntu1; then
8 if [ -f /etc/init/maas-dhcp-server.conf ]; then
9 invoke-rc.d maas-dhcp-server stop
10 fi
11 if [ -f /etc/init/maas-dhcpv6-server.conf ]; then
12 invoke-rc.d maas-dhcpv6-server stop
13 fi
14fi
15
16#DEBHELPER#
017
=== added file 'debian/maas-dns.dirs'
--- debian/maas-dns.dirs 1970-01-01 00:00:00 +0000
+++ debian/maas-dns.dirs 2015-06-03 20:01:10 +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 2015-06-03 20:01:10 +0000
@@ -0,0 +1,78 @@
1#!/bin/sh
2
3set -e
4
5edit_named_options() {
6 # Remove any existing MAAS-related include line from
7 # /etc/bind/named.conf.local, then re-add it.
8 sed -i '/^include\s.*maas/d' /etc/bind/named.conf.local
9 maas-region-admin get_named_conf --edit --config_path /etc/bind/named.conf.local
10
11 # Add a line in /etc/bind/named.conf.options that includes the
12 # /etc/named/maas/named.conf.options.inside.maas file.
13 maas-region-admin edit_named_options --config-path /etc/bind/named.conf.options
14}
15
16fix_dns_permissions() {
17 if [ -d /etc/bind/maas ]; then
18 chown maas:root /etc/bind/maas
19 chown -R maas:maas /etc/bind/maas/*
20 fi
21 if [ -f /etc/bind/maas/named.conf.maas ]; then
22 chown maas:maas /etc/bind/maas/named.conf.maas
23 chmod 644 /etc/bind/maas/named.conf.maas
24 fi
25 if [ -f /etc/bind/maas/named.conf.options.inside.maas ]; then
26 chown maas:maas /etc/bind/maas/named.conf.options.inside.maas
27 chmod 644 /etc/bind/maas/named.conf.options.inside.maas
28 fi
29 if [ -f /etc/bind/maas/rndc.conf.maas ]; then
30 chown maas:root /etc/bind/maas/rndc.conf.maas
31 chmod 600 /etc/bind/maas/rndc.conf.maas
32 fi
33 if [ -f /etc/bind/maas/named.conf.rndc.maas ]; then
34 chown maas:bind /etc/bind/maas/named.conf.rndc.maas
35 chmod 640 /etc/bind/maas/named.conf.rndc.maas
36 fi
37}
38
39# This handles installs and re-configuration
40if ([ "$1" = "configure" ] && [ -z "$2" ]) || [ -n "$DEBCONF_RECONFIGURE" ]; then
41 # If /etc/bind/maas is empty, set_up_dns.
42 if [ ! "$(ls -A /etc/bind/maas)" ]; then
43 maas-region-admin set_up_dns
44 fi
45
46 # Fix permissions.
47 fix_dns_permissions
48
49 edit_named_options
50
51elif [ "$1" = "configure" ]; then
52 # Fix permissions
53 fix_dns_permissions
54
55 # If the /etc/bind/named.conf.options is not set up yet, do it now.
56 # This might happen because of an upgrade from an older package.
57 should_edit_named_options=0
58
59 # If the MAAS include statement doesn't exist in named.conf.local, we need to add it.
60 grep -qs '^include\s.*maas' /etc/bind/named.conf.local || should_edit_named_options=1
61
62 # If the 'forwarders' option exists in named.conf.options, it needs to be removed.
63 grep -qs "forwarders" /etc/bind/named.conf.options && should_edit_named_options=1
64
65 # If the 'dnssec-validation' option exists in named.conf.options, it needs to be removed.
66 grep -qs "dnssec-validation" /etc/bind/named.conf.options && should_edit_named_options=1
67
68 # If the include file for the custom MAAS named.conf.options doesn't exist, it needs to be added.
69 grep -qs "named.conf.options.inside.maas" /etc/bind/named.conf.options || should_edit_named_options=1
70
71 if [ $should_edit_named_options -eq 1 ]; then
72 edit_named_options
73 fi
74fi
75
76invoke-rc.d bind9 restart || true
77
78#DEBHELPER#
079
=== added file 'debian/maas-dns.postrm'
--- debian/maas-dns.postrm 1970-01-01 00:00:00 +0000
+++ debian/maas-dns.postrm 2015-06-03 20:01:10 +0000
@@ -0,0 +1,25 @@
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 sed -i '/^include.*\"\/etc\/bind\/maas\/named.conf.options.inside.maas\"\;$/d' \
10 /etc/bind/named.conf.options
11 fi
12fi
13
14if [ "$1" = "purge" ]; then
15 # Remove zone files
16 if [ -d /etc/bind/maas ]; then
17 rm -rf /etc/bind/maas
18 fi
19fi
20
21if [ -x /usr/sbin/invoke-rc.d ]; then
22 invoke-rc.d bind9 restart || true
23fi
24
25#DEBHELPER#
026
=== added file 'debian/maas-proxy.dirs'
--- debian/maas-proxy.dirs 1970-01-01 00:00:00 +0000
+++ debian/maas-proxy.dirs 2015-06-03 20:01:10 +0000
@@ -0,0 +1,1 @@
1var/log/maas/proxy
02
=== added file 'debian/maas-proxy.install'
--- debian/maas-proxy.install 1970-01-01 00:00:00 +0000
+++ debian/maas-proxy.install 2015-06-03 20:01:10 +0000
@@ -0,0 +1,3 @@
1debian/extras/maas-proxy.conf etc/maas/
2debian/extras/maas-proxy-common.sh usr/share/maas/
3debian/extras/squid3.override etc/init/
04
=== added file 'debian/maas-proxy.logrotate'
--- debian/maas-proxy.logrotate 1970-01-01 00:00:00 +0000
+++ debian/maas-proxy.logrotate 2015-06-03 20:01:10 +0000
@@ -0,0 +1,24 @@
1#
2# Logrotate fragment for squid-deb-proxy.
3#
4/var/log/maas/proxy/*.log {
5 daily
6 compress
7 delaycompress
8 rotate 2
9 missingok
10 nocreate
11 sharedscripts
12 postrotate
13 if [ -x /usr/sbin/squid ]; then
14 SQUID=/usr/sbin/squid
15 elif [ -x /usr/sbin/squid3 ]; then
16 SQUID=/usr/sbin/squid3
17 else
18 echo "No squid binary found"
19 exit 1
20 fi
21
22 test ! -e /var/run/maas-proxy.pid || $SQUID -f /etc/maas/maas-proxy.conf -k rotate
23 endscript
24}
025
=== added file 'debian/maas-proxy.maas-proxy.service'
--- debian/maas-proxy.maas-proxy.service 1970-01-01 00:00:00 +0000
+++ debian/maas-proxy.maas-proxy.service 2015-06-03 20:01:10 +0000
@@ -0,0 +1,15 @@
1[Unit]
2Description=MAAS Proxy
3Requires=network-online.target
4After=network-online.target
5ConditionPathExists=/etc/maas/maas-proxy.conf
6
7[Service]
8ExecStartPre=/bin/mkdir -p /run/maas/proxy
9ExecStartPre=/bin/sh -ec '\
10 . /usr/share/maas/maas-proxy-common.sh; \
11 pre_start'
12ExecStart=/usr/sbin/squid3 -N -f /etc/maas/maas-proxy.conf
13
14[Install]
15WantedBy=multi-user.target
016
=== added file 'debian/maas-proxy.maas-proxy.upstart'
--- debian/maas-proxy.maas-proxy.upstart 1970-01-01 00:00:00 +0000
+++ debian/maas-proxy.maas-proxy.upstart 2015-06-03 20:01:10 +0000
@@ -0,0 +1,24 @@
1# maas-proxy - a caching proxy
2#
3
4description "maas-proxy"
5
6start on (local-filesystems and net-device-up IFACE!=lo)
7stop on runlevel [!2345]
8
9pre-start script
10 . /usr/share/maas/maas-proxy-common.sh
11 pre_start
12end script
13
14script
15 if [ -x /usr/sbin/squid ]; then
16 SQUID=/usr/sbin/squid
17 elif [ -x /usr/sbin/squid3 ]; then
18 SQUID=/usr/sbin/squid3
19 else
20 echo "No squid binary found"
21 exit 1
22 fi
23 exec $SQUID -N -f /etc/maas/maas-proxy.conf
24end script
025
=== added file 'debian/maas-proxy.postinst'
--- debian/maas-proxy.postinst 1970-01-01 00:00:00 +0000
+++ debian/maas-proxy.postinst 2015-06-03 20:01:10 +0000
@@ -0,0 +1,22 @@
1#!/bin/sh
2
3set -e
4
5if [ "$1" = "configure" ]
6then
7 # Stop the squid3 instance that came with the isc-dhcp-server package.
8 # We run our own squid3 instances.
9 if [ -d /run/systemd/system ]; then
10 systemctl stop squid3 >/dev/null || true
11 systemctl disable squid3 >/dev/null || true
12 else
13 invoke-rc.d squid3 stop
14 fi
15
16 # Ensure log folder is created.
17 mkdir -p /var/log/maas/proxy
18 chown -R proxy:proxy /var/log/maas/proxy
19
20fi
21
22#DEBHELPER#
023
=== added file 'debian/maas-proxy.postrm'
--- debian/maas-proxy.postrm 1970-01-01 00:00:00 +0000
+++ debian/maas-proxy.postrm 2015-06-03 20:01:10 +0000
@@ -0,0 +1,12 @@
1#!/bin/sh
2
3set -e
4
5if [ "$1" = "purge" ]; then
6 rm -rf /var/cache/maas-proxy
7 rm -rf /var/log/maas/proxy
8 rm -rf /var/spool/maas-proxy
9 rm -f /etc/maas/maas-proxy.conf
10fi
11
12#DEBHELPER#
013
=== added file 'debian/maas-region-controller-min.apport'
--- debian/maas-region-controller-min.apport 1970-01-01 00:00:00 +0000
+++ debian/maas-region-controller-min.apport 2015-06-03 20:01:10 +0000
@@ -0,0 +1,63 @@
1#!/usr/bin/python
2
3'''apport hook for maas-region-controller
4
5(c) 2012-2014 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
15import os.path
16import subprocess
17import tempfile
18
19from apport.hookutils import (
20 attach_conffiles,
21 attach_file,
22 attach_file_if_exists,
23 attach_related_packages,
24)
25
26
27def attach_journal_logs(report, key, *units):
28 """Capture logs from systemd's journal."""
29 if os.path.exists("/bin/journalctl"):
30 cmd = ['/bin/journalctl', '--utc', '--since=-24hours']
31 cmd.extend("--unit=%s" % unit for unit in units)
32 with tempfile.NamedTemporaryFile() as logfile:
33 subprocess.call(cmd, stdout=logfile, stderr=logfile)
34 attach_file(report, logfile.name, key)
35
36
37def add_info(report, ui):
38 response = ui.yesno(
39 "The contents of your /etc/maas/maas_local_settings.py, "
40 "/etc/maas/pserv.yaml files may help developers diagnose your bug "
41 "more quickly. However, it may contain sensitive information. Do "
42 "you want to include it in your bug report?")
43
44 if response is None: # user cancelled
45 raise StopIteration
46 elif response is True:
47 attach_conffiles(report, 'maas')
48
49 # Attaching log files (Upstart).
50 attach_file_if_exists(
51 report, '/var/log/maas/regiond.log', 'MAASRegionLog')
52 attach_file_if_exists(
53 report, '/var/log/maas/clusterd.log', 'MAASClusterLog')
54
55 # Attaching log files (systemd). These will overwrite the logs above on a
56 # system where systemd is available.
57 attach_journal_logs(
58 report, "MAASRegionLog", "maas-regiond", "maas-regiond-worker@*")
59 attach_journal_logs(
60 report, "MAASClusterLog", "maas-clusterd")
61
62 # Attaching related packages info
63 attach_related_packages(report, ['python-django-maas', 'apparmor'])
064
=== added file 'debian/maas-region-controller-min.install'
--- debian/maas-region-controller-min.install 1970-01-01 00:00:00 +0000
+++ debian/maas-region-controller-min.install 2015-06-03 20:01:10 +0000
@@ -0,0 +1,34 @@
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 new preseed files
14debian/tmp/etc/maas/preseeds
15
16# Install templates
17debian/tmp/etc/maas/templates/dns
18debian/tmp/etc/maas/templates/commissioning-user-data
19debian/tmp/etc/maas/templates/deployment-user-data
20
21# Install driver configuration file
22debian/tmp/etc/maas/drivers.yaml
23
24# Install winrm certificate generation script
25debian/tmp/usr/bin/maas-generate-winrm-cert
26
27# Install twisted plugins
28twisted/plugins/maasregiond.py usr/share/pyshared/twisted/plugins
29
30# Install all other stuff
31debian/extras/maas-region-admin usr/sbin
32debian/extras/20-maas.conf etc/rsyslog.d
33debian/extras/maas_remote_syslog_compress etc/cron.d
34debian/extras/99-maas usr/share/maas/conf
035
=== added file 'debian/maas-region-controller-min.links'
--- debian/maas-region-controller-min.links 1970-01-01 00:00:00 +0000
+++ debian/maas-region-controller-min.links 2015-06-03 20:01:10 +0000
@@ -0,0 +1,8 @@
1etc/maas/maas_local_settings.py usr/share/maas/maas_local_settings.py
2
3# dh-systemd does not yet appear to fully grok template units, so we
4# install unit dependencies directly instead.
5lib/systemd/system/maas-regiond-worker@.service lib/systemd/system/maas-regiond.service.wants/maas-regiond-worker@1.service
6lib/systemd/system/maas-regiond-worker@.service lib/systemd/system/maas-regiond.service.wants/maas-regiond-worker@2.service
7lib/systemd/system/maas-regiond-worker@.service lib/systemd/system/maas-regiond.service.wants/maas-regiond-worker@3.service
8lib/systemd/system/maas-regiond-worker@.service lib/systemd/system/maas-regiond.service.wants/maas-regiond-worker@4.service
09
=== added file 'debian/maas-region-controller-min.lintian-overrides'
--- debian/maas-region-controller-min.lintian-overrides 1970-01-01 00:00:00 +0000
+++ debian/maas-region-controller-min.lintian-overrides 2015-06-03 20:01:10 +0000
@@ -0,0 +1,6 @@
1maas-region-controller-min: binary-without-manpage usr/sbin/maas
2maas-region-controller-min: script-not-executable etc/maas/templates/commissioning-user-data/snippets/maas_ipmi_autodetect.py
3maas-region-controller-min: script-not-executable etc/maas/templates/commissioning-user-data/snippets/maas_signal.py
4maas-region-controller-min: script-not-executable etc/maas/templates/commissioning-user-data/user_data.template
5maas-region-controller-min: script-not-executable etc/maas/templates/commissioning-user-data/snippets/maas_get.py
6maas-region-controller-min: script-not-executable etc/maas/templates/deployment-user-data/maas_configure_interfaces.py
07
=== added file 'debian/maas-region-controller-min.logrotate'
--- debian/maas-region-controller-min.logrotate 1970-01-01 00:00:00 +0000
+++ debian/maas-region-controller-min.logrotate 2015-06-03 20:01:10 +0000
@@ -0,0 +1,15 @@
1/var/log/maas/regiond.log {
2 rotate 5
3 weekly
4 compress
5 missingok
6 # copytruncate may lose log messages at the moment of rotation, but
7 # there is no better way to integrate twistd and logrotate.
8 copytruncate
9 # The logs are all owned by the `maas` user, so drop privs.
10 su maas maas
11 # Don't rotate unless the log is at least 10MB.
12 minsize 10M
13 # Force rotation if the log grows beyond 50MB.
14 maxsize 50M
15}
016
=== added file 'debian/maas-region-controller-min.maas-regiond-worker.upstart'
--- debian/maas-region-controller-min.maas-regiond-worker.upstart 1970-01-01 00:00:00 +0000
+++ debian/maas-region-controller-min.maas-regiond-worker.upstart 2015-06-03 20:01:10 +0000
@@ -0,0 +1,25 @@
1description "MAAS Region Controller (Worker)"
2author "Gavin Panella <gavin.panella@canonical.com>"
3
4# This instance job is started by the parent `maas-regiond` job, and
5# stops when that job is stopped. This is differentiated from its
6# siblings by the $core instance argument.
7
8instance $core
9
10stop on stopping maas-regiond
11
12setuid maas
13setgid maas
14
15respawn
16
17kill timeout 15
18
19env DJANGO_SETTINGS_MODULE=maas.settings
20env PYTHONPATH=/usr/share/maas
21env LOGFILE=/var/log/maas/regiond.log
22
23script
24 exec /usr/bin/twistd --nodaemon --pidfile= maas-regiond >> ${LOGFILE} 2>&1
25end script
026
=== added file 'debian/maas-region-controller-min.maas-regiond-worker@.service'
--- debian/maas-region-controller-min.maas-regiond-worker@.service 1970-01-01 00:00:00 +0000
+++ debian/maas-region-controller-min.maas-regiond-worker@.service 2015-06-03 20:01:10 +0000
@@ -0,0 +1,27 @@
1[Unit]
2Description=MAAS Region Controller (Worker %i)
3Documentation=https://maas.ubuntu.com/
4Requires=network-online.target
5After=network-online.target
6Requires=postgresql.service
7After=postgresql.service
8PartOf=maas-regiond.service
9# This will go away one we support new config files.
10ConditionPathExists=/etc/maas/maas_local_settings.py
11
12[Service]
13User=maas
14Group=maas
15Restart=always
16Environment="DJANGO_SETTINGS_MODULE=maas.settings"
17Environment="PYTHONPATH=/usr/share/maas:/usr/lib/django16"
18Environment="LOGFILE=/var/log/maas/regiond.log"
19# Logs go to the journal; read them with:
20# journalctl -u maas-regiond-worker@*
21# Logs also go to $LOGFILE for backward compatibility. The journal
22# should now be preferred as $LOGFILE will be removed in MAAS 1.9.
23ExecStart=/bin/sh -c \
24 'exec twistd --nodaemon --pidfile= maas-regiond 2>&1 | tee -a $LOGFILE'
25
26[Install]
27WantedBy=maas-regiond.service
028
=== added file 'debian/maas-region-controller-min.maas-regiond.service'
--- debian/maas-region-controller-min.maas-regiond.service 1970-01-01 00:00:00 +0000
+++ debian/maas-region-controller-min.maas-regiond.service 2015-06-03 20:01:10 +0000
@@ -0,0 +1,24 @@
1[Unit]
2Description=MAAS Region Controller
3Documentation=https://maas.ubuntu.com/
4
5[Service]
6Type=oneshot
7RemainAfterExit=yes
8# systemd.service(5) clearly states that ExecStart can be specified zero
9# times when Type=oneshot, but it does appears to be needed at present.
10ExecStart=/bin/true
11
12#
13# The maas-region-controller-min package configures four workers. This
14# should work for most people. However:
15#
16# * `systemctl start maas-regiond-worker@x` (where 'x' can be anything,
17# though integers >= 5 seem logical) will start an additional worker.
18#
19# * `systemctl enable maas-regiond-worker@x` will configure that worker
20# so that it's persistent across reboots.
21#
22
23[Install]
24WantedBy=multi-user.target
025
=== added file 'debian/maas-region-controller-min.maas-regiond.upstart'
--- debian/maas-region-controller-min.maas-regiond.upstart 1970-01-01 00:00:00 +0000
+++ debian/maas-region-controller-min.maas-regiond.upstart 2015-06-03 20:01:10 +0000
@@ -0,0 +1,17 @@
1description "MAAS Region Controller"
2author "Gavin Panella <gavin.panella@canonical.com>"
3
4# This starts multiple instances of `maas-regiond-worker` and does
5# nothing else itself; there is no main script so this runs "forever".
6# By default, it launches four workers.
7
8start on filesystem and net-device-up
9stop on runlevel [016]
10
11respawn
12
13pre-start script
14 for core in $(seq 4); do
15 start maas-regiond-worker core=${core}
16 done
17end script
018
=== added file 'debian/maas-region-controller-min.maintscript'
--- debian/maas-region-controller-min.maintscript 1970-01-01 00:00:00 +0000
+++ debian/maas-region-controller-min.maintscript 2015-06-03 20:01:10 +0000
@@ -0,0 +1,6 @@
1rm_conffile /etc/maas/txlongpoll.yaml 1.7.0~beta4+bzr3124-0ubuntu1
2rm_conffile /etc/init/maas-txlongpoll.conf 1.7.0~beta4+bzr3124-0ubuntu1
3rm_conffile /etc/init/maas-region-celery.conf 1.7.0~beta4+bzr3124-0ubuntu1
4rm_conffile /etc/maas/maas_local_celerconfig.py 1.7.0~beta4+bzr3124-0ubuntu1
5rm_conffile /usr/share/maas/maas_local_celerconfig.py 1.7.0~beta4+bzr3124-0ubuntu1
6rm_conffile /etc/maas/maas_local_celeryconfig.py 1.7.0~beta4+bzr3124-0ubuntu1
07
=== added file 'debian/maas-region-controller-min.postinst'
--- debian/maas-region-controller-min.postinst 1970-01-01 00:00:00 +0000
+++ debian/maas-region-controller-min.postinst 2015-06-03 20:01:10 +0000
@@ -0,0 +1,136 @@
1#!/bin/sh
2
3set -e
4
5. /usr/share/debconf/confmodule
6db_version 2.0
7
8RELEASE=`lsb_release -rs` || RELEASE=""
9
10configure_region_http() {
11 case $RELEASE in
12 12.04|12.10|13.04)
13 # handle apache configs
14 if [ -e /etc/maas/maas-http.conf -a \
15 ! -e /etc/apache2/conf.d/maas-http.conf ]; then
16 ln -sf /etc/maas/maas-http.conf /etc/apache2/conf.d/maas-http.conf
17 fi
18 ;;
19 *)
20 # handle apache configs
21 if [ -e /etc/maas/maas-http.conf -a \
22 ! -e /etc/apache2/conf-enabled/maas-http.conf ]; then
23 ln -sf /etc/maas/maas-http.conf /etc/apache2/conf-enabled/maas-http.conf
24 fi
25 ;;
26 esac
27 # enable apache modules needed
28 a2enmod proxy_http
29 a2enmod expires
30 a2enmod rewrite
31}
32
33configure_logging() {
34 # Give appropriate permissions
35 if [ ! -f /var/log/maas/regiond.log ]; then
36 touch /var/log/maas/regiond.log
37 fi
38 chown maas:maas /var/log/maas/regiond.log
39
40 # Create log directory base
41 mkdir -p /var/log/maas/rsyslog
42 chown -R syslog:syslog /var/log/maas/rsyslog
43 # Make sure rsyslog reads our config
44 invoke-rc.d rsyslog restart
45
46 # apache2 log symlinks
47 ln -sf /var/log/apache2 /var/log/maas/
48}
49
50configure_maas_default_url() {
51 local ipaddr="$1"
52
53 if grep -qs "^DEFAULT_MAAS_URL\ \= \"[a-zA-Z0-9:/.]\{0,\}\"$" /etc/maas/maas_local_settings.py; then
54 sed -i "s/^DEFAULT_MAAS_URL\ \= \"[a-zA-Z0-9:/.]\{0,\}\"$/DEFAULT_MAAS_URL = \"http:\/\/$ipaddr\/MAAS\"/" /etc/maas/maas_local_settings.py
55 fi
56}
57
58get_default_route_ip() {
59 while read Iface Destination Gateway Flags RefCnt Use Metric Mask MTU Window IRTT; do
60 [ "$Mask" = "00000000" ] && break
61 done < /proc/net/route
62 interface="$Iface"
63 ipaddr=$(LC_ALL=C /sbin/ip -4 addr list dev "$interface" scope global)
64 ipaddr=${ipaddr#* inet }
65 ipaddr=${ipaddr%%/*}
66 echo $ipaddr
67}
68
69if [ "$1" = "configure" ] && [ -z "$2" ]; then
70 #########################################################
71 ################ Folder Permissions ####################
72 #########################################################
73 mkdir -p /var/lib/maas/media/storage
74 chown -R maas:maas /var/lib/maas/
75
76 # Config will contain credentials, so should be readable
77 # by the application but nobody else.
78 chown root:maas /etc/maas/maas_local_settings.py
79 chmod 0640 /etc/maas/maas_local_settings.py
80
81 #########################################################
82 ################ Configure Apache2 ####################
83 #########################################################
84 configure_region_http
85
86 #########################################################
87 ########## Configure DEFAULT_MAAS_URL #################
88 #########################################################
89
90 # Obtain IP address of default route and change DEFAULT_MAAS_URL
91 # if default-maas-url has not been preseeded.
92 db_get maas/default-maas-url
93 ipaddr="$RET"
94 if [ -z "$RET" ]; then
95 ipaddr=$(get_default_route_ip)
96 fi
97 # Set the IP address of the interface with default route
98 if [ -n "$ipaddr" ]; then
99 configure_maas_default_url "$ipaddr"
100 db_set maas/default-maas-url "$ipaddr"
101 fi
102
103 #########################################################
104 ################ Configure Logging ####################
105 #########################################################
106 configure_logging
107
108elif [ -n "$DEBCONF_RECONFIGURE" ]; then
109 # Set the IP address of the interface with default route
110 db_get maas/default-maas-url
111 ipaddr="$RET"
112 if [ -n "$ipaddr" ]; then
113 configure_maas_default_url "$ipaddr"
114 fi
115
116elif [ "$1" = "configure" ] && dpkg --compare-versions "$2" gt 0.1+bzr266+dfsg-0ubuntu1; then
117 # Logging changed at r2611, ensure it is set up.
118 configure_logging
119
120 # If upgrading to any later package version, then upgrade db.
121 invoke-rc.d apache2 stop || true
122
123 # make sure maas http config is symlinked
124 configure_region_http
125
126 # we need to regenerate the passwords and update configs.
127 db_get maas/default-maas-url
128 ipaddr="$RET"
129 configure_maas_default_url "$ipaddr"
130fi
131
132invoke-rc.d apache2 restart || true
133
134db_stop
135
136#DEBHELPER#
0137
=== added file 'debian/maas-region-controller-min.postrm'
--- debian/maas-region-controller-min.postrm 1970-01-01 00:00:00 +0000
+++ debian/maas-region-controller-min.postrm 2015-06-03 20:01:10 +0000
@@ -0,0 +1,42 @@
1#!/bin/sh
2
3set -e
4
5. /usr/share/debconf/confmodule
6
7RELEASE=`lsb_release -rs` || RELEASE=""
8
9case "$1" in
10 purge)
11 rm -rf /var/log/maas
12 rm -rf /var/lib/maas
13 case $RELEASE in
14 12.04|12.10|13.04)
15 if [ -h /etc/apache2/conf.d/maas-http.conf ]; then
16 rm -rf /etc/apache2/conf.d/maas-http.conf
17 fi
18 ;;
19 *)
20 if [ -h /etc/apache2/conf-enabled/maas-http.conf ]; then
21 rm -rf /etc/apache2/conf-enabled/maas-http.conf
22 fi
23 ;;
24 esac
25
26 # Restarting apache2
27 if [ -x /usr/sbin/invoke-rc.d ]; then
28 invoke-rc.d apache2 restart || true
29 fi
30
31 # Delete symlink
32 if [ -L /etc/squid-deb-proxy/mirror-dstdomain.acl.d/99-maas ]; then
33 rm -rf /etc/squid-deb-proxy/mirror-dstdomain.acl.d/99-maas
34 fi
35
36 # Delete any remaining / leftover file
37 rm -rf /usr/share/maas/maas/
38esac
39
40#DEBHELPER#
41
42db_stop
043
=== added file 'debian/maas-region-controller-min.preinst'
--- debian/maas-region-controller-min.preinst 1970-01-01 00:00:00 +0000
+++ debian/maas-region-controller-min.preinst 2015-06-03 20:01:10 +0000
@@ -0,0 +1,35 @@
1#!/bin/sh
2
3set -e
4
5. /usr/share/debconf/confmodule
6
7if [ "$1" = "upgrade" ] && dpkg --compare-versions "$2" lt 1.7.0~beta4+bzr3127-0ubuntu1; then
8
9 if [ -f /etc/init/maas-txlongpoll.conf ]; then
10 invoke-rc.d maas-txlongpoll stop
11 fi
12
13 if [ -f /var/log/maas/txlongpoll.log ]; then
14 rm -rf /var/log/maas/txlongpoll.log
15 fi
16
17 if [ -f /etc/init/maas-region-celery.conf ]; then
18 invoke-rc.d maas-region-celery stop
19 fi
20
21 if [ -f /var/log/maas/celery-region.log ]; then
22 rm -rf /var/log/maas/celery-region.log
23 fi
24
25fi
26
27
28if [ "$1" = "upgrade" ] && dpkg --compare-versions "$2" lt 1.8.0~alpha1+bzr3463-0ubuntu1; then
29
30 if [ -f /var/log/maas/maas-django.log ]; then
31 rm -rf /var/log/maas/maas-django.log
32 fi
33
34fi
35#DEBHELPER#
036
=== added file 'debian/maas-region-controller-min.prerm'
--- debian/maas-region-controller-min.prerm 1970-01-01 00:00:00 +0000
+++ debian/maas-region-controller-min.prerm 2015-06-03 20:01:10 +0000
@@ -0,0 +1,9 @@
1#!/bin/sh
2
3set -e
4
5. /usr/share/debconf/confmodule
6
7#DEBHELPER#
8
9invoke-rc.d apache2 stop || true
010
=== added file 'debian/maas-region-controller-min.templates'
--- debian/maas-region-controller-min.templates 1970-01-01 00:00:00 +0000
+++ debian/maas-region-controller-min.templates 2015-06-03 20:01:10 +0000
@@ -0,0 +1,22 @@
1Template: maas/installation-note
2Type: note
3Default: false
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/maas-region-controller.config'
--- debian/maas-region-controller.config 1970-01-01 00:00:00 +0000
+++ debian/maas-region-controller.config 2015-06-03 20:01:10 +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.postinst'
--- debian/maas-region-controller.postinst 1970-01-01 00:00:00 +0000
+++ debian/maas-region-controller.postinst 2015-06-03 20:01:10 +0000
@@ -0,0 +1,151 @@
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-region-admin syncdb --noinput
16 maas-region-admin migrate maasserver --noinput
17 maas-region-admin migrate metadataserver --noinput
18
19 # This command makes some assumptions about how postgresql works,
20 # so don't assume the package is broken if it fails.
21 maas-region-admin purge_unused_images || true
22}
23
24restart_postgresql(){
25 invoke-rc.d --force postgresql restart || true
26}
27
28configure_maas_database() {
29 local dbc_dbpass="$1"
30 if grep -qs "^\ \{1,\} 'PASSWORD': '[a-zA-Z0-9]\{0,\}',$" /etc/maas/maas_local_settings.py; then
31 sed -i "s/^\ \{1,\} 'PASSWORD': '[a-zA-Z0-9]\{0,\}',$/ 'PASSWORD': '"$dbc_dbpass"',/" \
32 /etc/maas/maas_local_settings.py
33 fi
34}
35
36configure_maas_default_url() {
37 local ipaddr="$1"
38
39 if grep -qs "^DEFAULT_MAAS_URL\ \= \"[a-zA-Z0-9:/.]\{0,\}\"$" /etc/maas/maas_local_settings.py; then
40 sed -i "s/^DEFAULT_MAAS_URL\ \= \"[a-zA-Z0-9:/.]\{0,\}\"$/DEFAULT_MAAS_URL = \"http:\/\/"$ipaddr"\/MAAS\"/" \
41 /etc/maas/maas_local_settings.py
42 fi
43}
44
45get_default_route_ip() {
46 while read Iface Destination Gateway Flags RefCnt Use Metric Mask MTU Window IRTT; do
47 [ "$Mask" = "00000000" ] && break
48 done < /proc/net/route
49 interface="$Iface"
50 ipaddr=$(LC_ALL=C /sbin/ip -4 addr list dev "$interface" scope global)
51 ipaddr=${ipaddr#* inet }
52 ipaddr=${ipaddr%%/*}
53 echo $ipaddr
54}
55
56
57if [ "$1" = "configure" ] && [ -z "$2" ]; then
58 #########################################################
59 ################ Folder Permissions ####################
60 #########################################################
61 mkdir -p /var/lib/maas/media/storage
62 chown -R maas:maas /var/lib/maas/
63
64 # Config will contain credentials, so should be readable
65 # by the application but nobody else.
66 chown root:maas /etc/maas/maas_local_settings.py
67 chmod 0640 /etc/maas/maas_local_settings.py
68
69 #########################################################
70 ########## Configure DEFAULT_MAAS_URL #################
71 #########################################################
72
73 # Obtain IP address of default route and change DEFAULT_MAAS_URL
74 # if default-maas-url has not been preseeded.
75 db_get maas/default-maas-url
76 ipaddr="$RET"
77 if [ -z "$RET" ]; then
78 ipaddr=$(get_default_route_ip)
79 fi
80 # Set the IP address of the interface with default route
81 if [ -n "$ipaddr" ]; then
82 configure_maas_default_url "$ipaddr"
83 db_subst maas/installation-note MAAS_URL "$ipaddr"
84 db_set maas/default-maas-url "$ipaddr"
85 fi
86
87 #########################################################
88 ################ Configure Database ###################
89 #########################################################
90
91 # Need to for postgresql start so it doesn't fail on the installer
92 restart_postgresql
93
94 # Create the database
95 dbc_go maas-region-controller $@
96 configure_maas_database "$dbc_dbpass"
97
98 # Only syncdb if we have selected to install it with dbconfig-common.
99 db_get maas-region-controller/dbconfig-install
100 if [ "$RET" = "true" ]; then
101 maas_sync_migrate_db
102 fi
103
104 # Display installation note
105 db_input low maas/installation-note || true
106 db_go
107
108elif [ -n "$DEBCONF_RECONFIGURE" ]; then
109 # Set the IP address of the interface with default route
110 db_get maas/default-maas-url
111 ipaddr="$RET"
112 if [ -n "$ipaddr" ]; then
113 configure_maas_default_url "$ipaddr"
114 fi
115
116elif [ "$1" = "configure" ] && dpkg --compare-versions "$2" gt 0.1+bzr266+dfsg-0ubuntu1; then
117 # If upgrading to any later package version, then upgrade db.
118 invoke-rc.d apache2 stop || true
119
120 # make sure postgresql is running
121 restart_postgresql
122
123 # we need to regenerate the passwords and update configs.
124 db_get maas/default-maas-url
125 ipaddr="$RET"
126 configure_maas_default_url "$ipaddr"
127 # handle database upgrade
128 if [ -f /etc/dbconfig-common/maas-region-controller.conf ]; then
129 # source dbconfig-common db config for maas-region-controller
130 # before upgrading database, otherwise a new config is written
131 # but the password is no longer preserved.
132 . /etc/dbconfig-common/maas-region-controller.conf
133 else
134 dbc_go maas-region-controller $@
135 fi
136 configure_maas_database "$dbc_dbpass"
137
138 maas_sync_migrate_db
139
140fi
141
142invoke-rc.d maas-regiond restart || true
143invoke-rc.d apache2 restart || true
144
145if [ -f /etc/init/maas-clusterd.conf ]; then
146 invoke-rc.d maas-clusterd restart || true
147fi
148
149db_stop
150
151#DEBHELPER#
0152
=== added file 'debian/maas-region-controller.postrm'
--- debian/maas-region-controller.postrm 1970-01-01 00:00:00 +0000
+++ debian/maas-region-controller.postrm 2015-06-03 20:01:10 +0000
@@ -0,0 +1,47 @@
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
43esac
44
45#DEBHELPER#
46
47db_stop
048
=== added file 'debian/maas-region-controller.prerm'
--- debian/maas-region-controller.prerm 1970-01-01 00:00:00 +0000
+++ debian/maas-region-controller.prerm 2015-06-03 20:01:10 +0000
@@ -0,0 +1,13 @@
1#!/bin/sh
2
3set -e
4
5. /usr/share/debconf/confmodule
6
7#DEBHELPER#
8
9invoke-rc.d apache2 stop || true
10invoke-rc.d maas-regiond stop || true
11
12. /usr/share/dbconfig-common/dpkg/prerm.pgsql
13dbc_go maas-region-controller $@
014
=== added file 'debian/maintscript'
--- debian/maintscript 1970-01-01 00:00:00 +0000
+++ debian/maintscript 2015-06-03 20:01:10 +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 2015-06-03 20:01:10 +0000
@@ -0,0 +1,17 @@
1Index: maas-1.8.0~alpha1+bzr3486.orig/contrib/maas_local_settings.py
2===================================================================
3--- maas-1.8.0~alpha1+bzr3486.orig.orig/contrib/maas_local_settings.py 2015-01-23 09:50:03.185579822 -0500
4+++ maas-1.8.0~alpha1+bzr3486.orig/contrib/maas_local_settings.py 2015-01-23 09:50:03.181579822 -0500
5@@ -14,9 +14,9 @@
6 'default': {
7 # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' etc.
8 'ENGINE': 'django.db.backends.postgresql_psycopg2',
9- 'NAME': '',
10- 'USER': '',
11- 'PASSWORD': '',
12+ 'NAME': 'maasdb',
13+ 'USER': 'maas',
14+ 'PASSWORD': 'maas',
15 'HOST': 'localhost',
16 }
17 }
018
=== 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 2015-06-03 20:01:10 +0000
@@ -0,0 +1,18 @@
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
6=== modified file 'etc/maas/pserv.yaml'
7Index: maas-1.8.0~beta5+bzr3849.orig/etc/maas/pserv.yaml
8===================================================================
9--- maas-1.8.0~beta5+bzr3849.orig.orig/etc/maas/pserv.yaml 2015-04-29 02:40:55.703960406 -0400
10+++ maas-1.8.0~beta5+bzr3849.orig/etc/maas/pserv.yaml 2015-04-29 02:41:10.567959953 -0400
11@@ -18,7 +18,6 @@
12 # resource_root: /var/lib/maas/boot-resources/current/
13
14 # port: 69
15- port: 5244
16 ## The URL to be contacted to generate PXE configurations.
17 # generator: http://localhost/MAAS/api/1.0/pxeconfig/
18 generator: http://localhost:5240/MAAS/api/1.0/pxeconfig/
019
=== added file 'debian/patches/series'
--- debian/patches/series 1970-01-01 00:00:00 +0000
+++ debian/patches/series 2015-06-03 20:01:10 +0000
@@ -0,0 +1,2 @@
101-fix-database-settings.patch
202-pserv-config.patch
03
=== 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 2015-06-03 20:01:10 +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 2015-06-03 20:01:10 +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 2015-06-03 20:01:10 +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 2015-06-03 20:01:10 +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 2015-06-03 20:01:10 +0000
@@ -0,0 +1,5 @@
1debian/tmp/usr/lib/python*/dist-packages/provisioningserver
2
3# Install other stuff
4debian/extras/maas-provision usr/sbin
5debian/extras/maas-probe-dhcp usr/sbin
06
=== 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 2015-06-03 20:01:10 +0000
@@ -0,0 +1,2 @@
1python-maas-provisioningserver: binary-without-manpage usr/sbin/maas-provision
2python-maas-provisioningserver: binary-without-manpage usr/sbin/maas-probe-dhcp
03
=== added file 'debian/rules'
--- debian/rules 1970-01-01 00:00:00 +0000
+++ debian/rules 2015-06-03 20:01:10 +0000
@@ -0,0 +1,77 @@
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,systemd --buildsystem=python_distutils
10
11override_dh_installinit:
12 # maas-clusterd
13 dh_systemd_enable --name maas-clusterd
14 dh_installinit --name maas-clusterd
15 dh_systemd_start --name maas-clusterd
16 # maas-regiond
17 dh_systemd_enable --name maas-regiond
18 dh_installinit --name maas-regiond
19 dh_systemd_start --name maas-regiond
20 # maas-regiond-worker
21 dh_installinit --no-start --name maas-regiond-worker # Upstart
22 dh_installinit --no-start --name maas-regiond-worker@ # systemd
23 # maas-dhcpd
24 dh_systemd_enable --name maas-dhcpd
25 dh_installinit --name maas-dhcpd
26 dh_systemd_start --name maas-dhcpd
27 # maas-dhcpd6
28 dh_systemd_enable --name maas-dhcpd6
29 dh_installinit --name maas-dhcpd6
30 dh_systemd_start --name maas-dhcpd6
31 # maas-proxy
32 dh_systemd_enable --name maas-proxy
33 dh_installinit --name maas-proxy
34 dh_systemd_start --name maas-proxy
35
36override_dh_auto_build:
37 dh_auto_build
38
39 mkdir -p $(BUILDHOME)
40 HOME=$(BUILDHOME) PYTHONPATH=$(CURDIR)/src/ $(PYTHON) \
41 $(CURDIR)/src/maasserver/utils/jsenums.py \
42 $(py_enums) > $(BUILDHOME)/enums.js
43
44override_dh_auto_install:
45 dh_auto_install
46
47 # Move static files
48 install -d -m 755 $(CURDIR)/debian/tmp/usr/share/maas/web/static
49 mv $(CURDIR)/debian/tmp/usr/lib/python*/*-packages/maasserver/static \
50 $(CURDIR)/debian/tmp/usr/share/maas/web/
51
52 # Remove scss directory from static files
53 rm -rf $(CURDIR)/debian/tmp/usr/share/maas/web/scss
54
55 # Install built enums.js file.
56 cp $(BUILDHOME)/enums.js $(CURDIR)/debian/tmp/usr/share/maas/web/static/js/
57
58 # install the apparmor profile
59 install -d -m 755 $(CURDIR)/debian/tmp/etc/apparmor.d/dhcpd.d
60 install -m 644 $(CURDIR)/debian/maas-dhcp.apparmor \
61 $(CURDIR)/debian/tmp/etc/apparmor.d/dhcpd.d/maas
62
63 dh_install --list-missing
64
65override_dh_auto_clean:
66 dh_auto_clean
67 rm -rf $(BUILDHOME)
68 rm -rf src/*.egg-info
69
70DEB_DEBIAN_DIR=$(dir $(firstword $(MAKEFILE_LIST)))
71REV=$(shell dpkg-parsechangelog -l$(DEB_DEBIAN_DIR)/changelog \
72 | sed -rne 's,^Version: .*[+~]bzr([0-9]+).*,\1,p')
73VER=$(shell dpkg-parsechangelog -l$(DEB_DEBIAN_DIR)/changelog \
74 | sed -rne 's,^Version: ([^-]+).*,\1,p')
75get-orig-source:
76 bzr export -r $(REV) --root=maas-$(VER).orig \
77 maas_$(VER).orig.tar.gz lp:maas
078
=== added directory 'debian/source'
=== added file 'debian/source/format'
--- debian/source/format 1970-01-01 00:00:00 +0000
+++ debian/source/format 2015-06-03 20:01:10 +0000
@@ -0,0 +1,1 @@
13.0 (quilt)
02
=== added file 'debian/watch'
--- debian/watch 1970-01-01 00:00:00 +0000
+++ debian/watch 2015-06-03 20:01:10 +0000
@@ -0,0 +1,3 @@
1version=3
2opts=dversionmangle=s/\.dfsg// \
3http://launchpad.net/maas/+download https://launchpad.net/maas/.*/maas-(.*).tar.*