Merge lp:~andreserl/maas/missing_dep into lp:~maas-committers/maas/trunk

Proposed by Andres Rodriguez
Status: Superseded
Proposed branch: lp:~andreserl/maas/missing_dep
Merge into: lp:~maas-committers/maas/trunk
Diff against target: 4824 lines (+4394/-0)
85 files modified
debian/changelog (+1964/-0)
debian/compat (+1/-0)
debian/control (+294/-0)
debian/copyright (+45/-0)
debian/extras/20-maas.conf (+32/-0)
debian/extras/99-maas-region-sudoers (+7/-0)
debian/extras/99-maas-sudoers (+14/-0)
debian/extras/isc-dhcp-server.override (+1/-0)
debian/extras/maas (+13/-0)
debian/extras/maas-probe-dhcp (+7/-0)
debian/extras/maas-proxy-common.sh (+23/-0)
debian/extras/maas-rack (+76/-0)
debian/extras/maas-region (+67/-0)
debian/extras/maas_remote_syslog_compress (+2/-0)
debian/extras/squid3.override (+1/-0)
debian/maas-cli.install (+1/-0)
debian/maas-cli.links (+1/-0)
debian/maas-cli.lintian-overrides (+1/-0)
debian/maas-common.dirs (+2/-0)
debian/maas-common.install (+1/-0)
debian/maas-common.logrotate (+9/-0)
debian/maas-common.maintscript (+2/-0)
debian/maas-common.postinst (+38/-0)
debian/maas-common.postrm (+21/-0)
debian/maas-common.templates (+53/-0)
debian/maas-dhcp.apparmor (+10/-0)
debian/maas-dhcp.dirs (+2/-0)
debian/maas-dhcp.install (+1/-0)
debian/maas-dhcp.maas-dhcpd.service (+28/-0)
debian/maas-dhcp.maas-dhcpd6.service (+28/-0)
debian/maas-dhcp.maintscript (+2/-0)
debian/maas-dhcp.postinst (+35/-0)
debian/maas-dhcp.postrm (+16/-0)
debian/maas-dhcp.preinst (+16/-0)
debian/maas-dns.dirs (+1/-0)
debian/maas-dns.postinst (+61/-0)
debian/maas-dns.postrm (+25/-0)
debian/maas-proxy.dirs (+2/-0)
debian/maas-proxy.install (+1/-0)
debian/maas-proxy.logrotate (+24/-0)
debian/maas-proxy.maas-proxy.service (+16/-0)
debian/maas-proxy.postinst (+28/-0)
debian/maas-proxy.postrm (+12/-0)
debian/maas-rack-controller.config (+36/-0)
debian/maas-rack-controller.dirs (+4/-0)
debian/maas-rack-controller.install (+14/-0)
debian/maas-rack-controller.links (+1/-0)
debian/maas-rack-controller.lintian-overrides (+1/-0)
debian/maas-rack-controller.logrotate (+15/-0)
debian/maas-rack-controller.maas-rackd.service (+27/-0)
debian/maas-rack-controller.maintscript (+9/-0)
debian/maas-rack-controller.postinst (+168/-0)
debian/maas-rack-controller.postrm (+50/-0)
debian/maas-rack-controller.preinst (+56/-0)
debian/maas-rack-controller.templates (+14/-0)
debian/maas-rack-udeb.postinst (+77/-0)
debian/maas-rack-udeb.templates (+34/-0)
debian/maas-region-api.apport (+72/-0)
debian/maas-region-api.install (+27/-0)
debian/maas-region-api.links (+8/-0)
debian/maas-region-api.lintian-overrides (+5/-0)
debian/maas-region-api.logrotate (+15/-0)
debian/maas-region-api.maas-regiond-worker@.service (+27/-0)
debian/maas-region-api.maas-regiond.service (+24/-0)
debian/maas-region-api.maintscript (+7/-0)
debian/maas-region-api.postinst (+80/-0)
debian/maas-region-api.postrm (+49/-0)
debian/maas-region-api.preinst (+34/-0)
debian/maas-region-api.prerm (+9/-0)
debian/maas-region-controller.config (+47/-0)
debian/maas-region-controller.postinst (+165/-0)
debian/maas-region-controller.postrm (+22/-0)
debian/maas-region-controller.prerm (+13/-0)
debian/maas-region-controller.templates (+24/-0)
debian/maas-region-udeb.postinst (+82/-0)
debian/maas-region-udeb.templates (+29/-0)
debian/maintscript (+2/-0)
debian/po/POTFILES.in (+2/-0)
debian/po/templates.pot (+68/-0)
debian/python3-django-maas.install (+2/-0)
debian/python3-maas-client.install (+2/-0)
debian/python3-maas-provisioningserver.install (+1/-0)
debian/rules (+84/-0)
debian/source/format (+1/-0)
debian/watch (+3/-0)
To merge this branch: bzr merge lp:~andreserl/maas/missing_dep
Reviewer Review Type Date Requested Status
MAAS Maintainers Pending
Review via email: mp+292062@code.launchpad.net

This proposal has been superseded by a proposal from 2016-04-16.

To post a comment you must log in.

Unmerged revisions

485. By Andres Rodriguez

fix missing dep

484. By Andres Rodriguez

[r=andreserl][bug=][author=andreserl] Open beta3
Release beta2

483. By LaMont Jones

[r=andreserl][bug=][author=lamont] Common debconf templates need to be delivered by all packages that use them.

482. By Blake Rouse

[r=andreserl][bug=1569568][author=blake-rouse] Allow reloading of apparmor profile to fail on postrm.

481. By LaMont Jones

[r=andreserl][bug=1568847][author=lamont] Only try to create the squid cache if we have a config file.

480. By Andres Rodriguez

[r=andreserl][bug=][author=andreserl] debian/control: Change arch to all for udeb's

479. By Andres Rodriguez

[r=andreserl][bug=][author=andreserl] Fix changelog

478. By Andres Rodriguez

[r=andreserl,lamont][bug=1553261,1561954][author=andreserl] Add maas-region-udeb and maas-rack-udeb to be used as part of the Ubuntu Server Installer (LP: #1561954)

477. By Andres Rodriguez

[r=lamont][bug=][author=andreserl] Release 2.0.0~beta1+bzr4873-0ubuntu1
Open 2.0.0~beta2+bzr4873-0ubuntu1

476. By LaMont Jones

[r=lamont][bug=1565139][author=lamont] maas-proxy's service file needs to know how to do reloads, too.

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 2016-04-16 02:29:52 +0000
@@ -0,0 +1,1964 @@
1maas (2.0.0~beta2+bzr4920-0ubuntu3) UNRELEASED; urgency=medium
2
3 * UNRELEASED
4
5 -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 15 Apr 2016 22:27:56 -0400
6
7maas (2.0.0~beta2+bzr4920-0ubuntu2) xenial; urgency=medium
8
9 * debian/control: Add missing dep on python3-httplib2
10
11 -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 15 Apr 2016 22:23:55 -0400
12
13maas (2.0.0~beta2+bzr4920-0ubuntu1) xenial; urgency=medium
14
15 * New upstream release, 2.0.0 beta 2 bzr4920 (Standing FFe LP: #1553261)
16 * Only create the squid cache if we have a configuration file.
17 LP: #1568847
18 * Re-add shared debconf templates.
19
20 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 07 Apr 2016 18:22:00 -0400
21
22maas (2.0.0~beta1+bzr4873-0ubuntu2) xenial; urgency=medium
23
24 * Add maas-region-udeb and maas-rack-udeb to be used as part of the
25 Ubuntu Server Installer (LP: #1561954)
26 - ensure maas-rack-controller and maas-region-controller can be fully
27 preseeded.
28
29 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 05 Apr 2016 17:02:32 -0400
30
31maas (2.0.0~beta1+bzr4873-0ubuntu1) xenial; urgency=medium
32
33 * New upstream release, 2.0.0 beta 1 bzr4873 (Standing FFe LP: #1553261)
34 - DHCP Snippets WebUI.
35 - Ensure proxy configuration ACL's subnets MAAS knows about.
36 - DNS High Availability.
37 * debian/control: Move 'maascli' package install to
38 python3-maas-client (LP: #1563859)
39 * Improve way on how upgrades ensures correct permissions
40 and ownership (LP: #1563799 , LP: #1563779)
41 * Improve the way how removals clean the system (LP: #1563337)
42 * Reflect new names and website for systemd units (LP: #1563807)
43 * maas-proxy now uses a custom-built config, instead of a boilerplate.
44 LP: #1379567
45
46 -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 28 Mar 2016 16:47:58 -0400
47
48maas (2.0.0~alpha4+bzr4843-0ubuntu1) xenial; urgency=medium
49
50 * New upstream release, 2.0.0 alpha 4 bzr4843 (Standing FFe LP: #1553261)
51 - DHCP Snippets backend and API.
52 - Rack controller WebUI Served VLANs & Service Tracking
53 - Rsyslog during enlistment/commissioning.
54 * Ensure /etc/maas/templates/power gets removed on upgrade
55 * debian/control: Update homepage and package descriptions.
56 (LP: #1562036, LP: #1562034, LP: #1562062)
57 * Rename maas-reigon-controller-min to maas-region-api (LP: #1562069)
58
59 -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 23 Mar 2016 12:27:27 -0400
60
61maas (2.0.0~alpha3+bzr4810-0ubuntu1) xenial; urgency=medium
62
63 * New upstream release, 2.0.0 bzr 4810 (Standing FFe LP: #1553261)
64 - New Networks WebUI
65 + Add Fabrics and Spaces details page.
66 + Actions to Add/Remove Fabrics, VLANs, Spaces, Subnets.
67 - Storage WebUI
68 + Mount options
69 + Swap Partitions
70 - WebUI to change a Machine's domain.
71 - Rack Controller details page now shows 'Server VLANs'
72 - Add maas-rack support-dump command.
73 - Fixes:
74 + python3-maas-client API 2.0 no loger use op but MAASClient.post
75 requires it (LP: #1555393)
76 + Fail to commission when Fabric on Machine Interface doesn't match
77 Rack Controller Fabric. (LP: #1554566)
78 + TFTP back-end crashes (LP: #1553848)
79 + Can't deploy a node, no interfaces on rack controller (LP: #1554999)
80 * Update dhcpd permissions to conform with most recent paranoia described
81 on LP: 1543794, so capability dac_override is not granted.
82 * Update versioned depend on isc-dhcp-server
83
84 -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 14 Mar 2016 18:34:53 -0400
85
86maas (2.0.0~alpha2+bzr4776-0ubuntu1) xenial; urgency=medium
87
88 * New usptream release, 2.0.0 bzr 4776 (LP: #1553261).
89 * maas-dns Depends: bind9 >= 1:9.10.3.dfsg.P2-5 for better system time.
90 LP: #1553176.
91 * debian/extras/maas-{region,rack}: Replace maas-region-admin
92 and maas-provision, respectively (LP: #1553791)
93 * debian/maas-region-controller.postrm: Correctly handle removal by
94 dbconfig-common. (LP: #1553648)
95 * debian/extras/99-maas-region-sudoers: Allow running systemctl for
96 bind9 and maas-proxy to support service tracking. (LP: #1555308)
97
98 -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 01 Feb 2016 18:18:52 +0100
99
100maas (2.0.0~alpha1+bzr4736-0ubuntu1) xenial; urgency=medium
101
102 * New usptream release, 2.0.0 bzr 4736 (LP: #1553261):
103 - Deprecate Cluster Controllers in favor of Rack Controllers.
104 - Deprecate API 1.0 in favor if API 2.0.
105 - DHCP & Rack Controller High Availability.
106 - Networking - IP Ranges.
107 - Networking - DNS.
108 - BMC Model.
109 * Rename maas-cluster* to maas-rack* and handle the upgrade path.
110 * Fix installation of init scripts and daemon systemd units.
111 * Allow 'dhcpd' to access /usr/sbin/maas-provision via
112 sudoers file (LP: #1552775)
113 * debian/extras/maas: Replace shell wrapper with python. (LP: #1553605)
114 * debian/control: Depends on iproute2 instead. (LP: #1553647)
115
116 -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 01 Feb 2016 18:18:52 +0100
117
118maas (1.10.0+bzr4572-0ubuntu2) xenial; urgency=medium
119
120 * debian/maas-region-controller.config: Ensure we truly preseed db
121 setting so we always use localhost and it never asks the user.
122 * debian/control: Suggests on python3-pyvmomi
123
124 -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 01 Feb 2016 17:04:27 +0100
125
126maas (1.10.0+bzr4572-0ubuntu1) xenial; urgency=medium
127
128 * New upstram release, 1.10.0 bzr 4572:
129 - Support python3, drop support for python2.
130 - Support django 1.8+.
131 * debian/control:
132 - Remove all Upstart related services.
133 - Remove python-django16 dependency.
134 - Add python-petname dependency.
135 - Change dependency python-django-piston to python-django-piston3.
136 - Depends on dbconfig-pgsql instead of dbconfig-common.
137 * debian/maas-region-controller.config:
138 - Preseed dbconfig common to not ask for PG server to use.
139 * debian/maas-region-controller-min.maas-regiond-worker@.service: Don't
140 depend on postgresql.service anymore, as it would prevent regiond
141 to run on machines with a remote PostgreSQL.
142 * debian/rules: Refactor installation of init scripts so that they are
143 correctly handled, and maas-regiond is not started on install.
144
145 -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 13 Nov 2015 13:13:42 +0000
146
147maas (1.9.0~rc1+bzr4496-0ubuntu1) wily; urgency=medium
148
149 * New upstream release, 1.9.0 rc1, bzr4496
150 - MAAS uses wrong IP for DNS record (creates against the
151 bond). (LP: #LP: #1515498)
152 - Local archive ignored for deployment. Works for commissioning
153 and enlistment. (LP: #1515671)
154 - Fix handling of multiple StaticIPAddress rows with empty IP
155 addresses. (LP: #1513485)
156 - Lease parser failure - doesn't update IP on the PXE
157 NIC. (LP: #1513485)
158 - Cannot claim sticky IP address for device with
159 parent. (LP: #1514486)
160 - Cluster downloads boot-images from managed network (pxe) instead
161 of network used to connect to Region. (LP: #1514883)
162 - Updating/modifying/assigning vlans, spaces, fabrics, subnets
163 doesn't allow specifying names and lock to ID's. (LP: #1510917)
164 - MAAS should prevent deploying nodes with PXE interface
165 'unconfigured'. (LP: #1513095)
166 - MTU should be a set on the VLAN, and able to override on the
167 interface. (LP: #1508056)
168 - Internal Server Error when creating/editing cluster interface
169 when the Cluster is disconnected. (LP: #1439476)
170 - Non-interactive way to change password. (LP: #1510224)
171 - When a bond is created all IP address associated with the bond
172 members should be removed. (LP: #1513111)
173 - MAAS does not provide a dump of the config it passes to curtin for
174 networking and storage. (LP: #1487135)
175 - MAAS should not offer EXT3, rather VFAT, EXT2, EXT4. (LP: #1512959)
176 - Network constraints for juju. (LP: #1505031)
177 - Creating a partition or a Volume Group on the whole disk leaves
178 free space. (LP: #1509535)
179 - Should not allow partitions to be created on bcache
180 device. (LP: #1511493)
181 - Storage section should only be editable when Ready or
182 Allocated. (LP: #1503475)
183 - maasserver.api.tests.test_fannetworks.TestFanNetworksAPI.test_read
184 fails randomly. (LP: #1512832)
185 - creating a logical volume on a partition that is too small almost
186 works, resulting in strange error messages. (LP: #1508754)
187 - [UI] Keep selected nodes selected after action. (LP: #1503925)
188 - [UI] Refresh UI cache after an upgrade to avoid seeing
189 garbage. (LP: #1515380)
190 - [UI] Boot disk is not lighted nor can be changed. (LP: #1510106)
191 - [UI] Can't remove / delete a partition with a filesystem under
192 'Available disks and partitions'. (LP: #1510118)
193 - [UI] Creating a partition should allow to select filesystem and
194 mountpoint. (LP: #1510153)
195 - [UI] When selecting a device, ensure padding between buttons is
196 20px. (LP: #1510468)
197 - [UI] Misaligned mount point column on used disks table. (LP: #1510455)
198 - [UI] Align the individual storage actions with the name field,
199 rather than the tickbox. (LP: #1510469)
200 - [UI] can't add physical interface. (LP: #1503479)
201 - [UI] Containers (lxc, kvm) data missing on node details. (LP: #1503474)
202 - [UI] Unable to unmount a filesystem in the UI. (LP: #1513271)
203 - [UI] Animation missing on show members and select node. (LP: #1503536)
204 - [UI] Add tooltips to icons. (LP: #1510482)
205 - [UI] Add tooltips to inactive buttons. (LP: #1510486)
206
207 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 05 Nov 2015 08:29:06 -0500
208
209maas (1.9.0~beta2+bzr4456-0ubuntu1) wily; urgency=medium
210
211 * New upstream release, 1.9.0 beta2, bzr4456:
212 - New capabilities for subnets, vlan, spaces and
213 fabrics. (LP: #LP: #1511257)
214 - Upgrade left a PXE NIC"s on nodes without a subnet associated
215 causing deploy issues. (LP: #LP: #1509077)
216 - DNS record doesn't get created against the PXE
217 interface (LP: #1512109)
218 - bcache cache_mode setting not configured on
219 servers (LP: #1510334)
220 - Administrators unable to delete users using the API (LP: #1510210)
221 - Can create a VolumeGroup (vg0) without having created
222 a partition on the boot disk (LP: #1509536)
223 - set-boot-disk yields in a machine not being able to
224 deploy (LP: #1501400)
225 - Deploying Other OS' (CentOS, Windows) should not configure
226 custom storage (LP: #1504956)
227 - Add RAID 10 support (LP: #1509164)
228 - MAAS should download grub from grub-efi-amd64-signed package
229 instead of the archive path (LP: #1511437)
230 - Fails to deploy with UEFI (LP: #1510120)
231 - previous owner of node can use oauth creds to retrieve current
232 owner's user-data (LP: #1507586)
233 - IP range validation for too small ranges (LP: #1507630)
234 - test__calls_update_host_maps_for_next_ip_managed_subnet
235 can fail randomly (LP: #1507630)
236 - No way to disable maas-proxy (LP: #1511071)
237 - [UI] HWE naming needs to be clearer (LP: #1505034))
238 - [UI] Angular $digest loop issue on node details page (LP: #1509476)
239 - [UI] New nodes interfaces doesn't show which interface is the
240 PXE interface (LP: #1509473)
241 - [UI] When partitioning, there should be 20px padding between
242 the sizing fields (LP: #1510471)
243 - [UI] On the available table, add model and serial to the
244 name column (LP: #1510467)
245 - [UI] On the available table, change “available space” to
246 “size” for consistency (LP: #1510466)
247 - [UI] when formatting/mounting, the button says “Format & Mount”
248 this should just be “Mount” (LP: #1510472)
249 - [UI] Tickbox on create bond networking (LP: #1503533)
250 - [UI] On the file system table, change name to “File system”
251 (lower case S) (LP: #1510447)
252 - [UI] When creating bcache and raid, remove the empty column
253 between the config fields. (LP: #1510474)
254 - [UI] On the available table, make sure all buttons are
255 lowercase (LP: #1510488)
256 - [UI] Subnets filter doesn't show network, it shows name
257 instead (LP: #1511174)
258 - [UI] can't edit / add storage tags (LP: #1509417)
259 - [UI] Hover state for networking doesn't work (LP: #1510891)
260 - [UI] change "edit tag" link to icon storage (LP: #1510458)
261 - [UI] Can no longer see the IP address PXE interface gets
262 on commissioning (LP: #1510629)
263 * debian/control: Bump Dep on python-curtin to > 0.1.0~bzr275.
264
265 -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 28 Oct 2015 21:20:39 -0400
266
267maas (1.9.0~beta1+bzr4417-0ubuntu1) wily; urgency=medium
268
269 * New upstream release, 1.9.0 beta1, bzr4415:
270 - Various UI fixes and improvements
271 - Add ability to create LVM.
272 - Add ability to create RAID.
273
274 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 22 Oct 2015 14:05:50 -0400
275
276maas (1.9.0~alpha5+bzr4398-0ubuntu1) wily; urgency=medium
277
278 * New upstream release, 1.9.0 Alpha 5, bzr4398:
279 - Various UI fixes and improvements.
280 - Add ability to create partitions in the UI.
281 - Add ability to create Bcache (create cache sets and backing devices).
282 - Check and warns users about missing power driver tools (LP: #1381000).
283 - Add fabric class_type.
284
285 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 15 Oct 2015 21:22:44 -0700
286
287maas (1.9.0~alpha4+bzr4371-0ubuntu1) wily; urgency=medium
288
289 * New upstream release, 1.9.0 Alpha 4, bzr4371:
290 - Various UI fixes and improvements.
291 - Various concurrency issues fixed.
292 - Do not create MBR bigger than 2 TiB, otherwise MAAS will fail to
293 deploy on disks larger than 2 TiB.
294 - Fix broken migration due to missing import (LP: #1504340)
295
296 -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 07 Oct 2015 13:02:53 -0700
297
298maas (1.9.0~alpha3+bzr4355-0ubuntu1) wily; urgency=medium
299
300 * New upstream release, 1.9.0 Alpha 3, bzr4355
301 - Node network configuration (VLAN, aliases, bond's).
302 - Subnets page.
303 - Mount, Unmount filesystems. Formatting, unformatting.
304 - Create partitions.
305 - Checks for missing power drivers tool and warns the users.
306 * debian/control: Recommends on apache2.
307
308 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 29 Sep 2015 12:53:36 -0400
309
310maas (1.9.0~alpha2+bzr4322-0ubuntu1) wily; urgency=medium
311
312 * New upstream release, 1.9.0 Alpha 2, bzr4322:
313 - Native support for Network Configuration (IP assignment, VLANs, bonds)
314 - First class support for CentOS
315 - Status updates from curtin/cloud-init
316 - Support for fabrics, spaces, subnets and fans.
317 - Support for commissioning actions.
318
319 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 01 Sep 2015 19:04:39 -0400
320
321maas (1.9.0~alpha1+bzr4221-0ubuntu1) wily; urgency=medium
322
323 * New upstream release, 1.9.0 Alpha 1, bzr4218:
324 - Native storage support (Flat, LVM, bcache, RAID).
325 - New config files (regiond.conf, clusterd.conf)
326 - New Python Power Drivers.
327 - Better support for HWE Kernels.
328
329 [ Scott Moser ]
330 * maas-proxy: sync apt specific squid config with squid-deb-proxy
331 (LP: #1474417)
332
333 [ Raphaël Badin ]
334 * Enable proxy_wstunnel module.
335 * Drop dependency on python-iscpy: the code has been integrated into
336 MAAS. (LP: #1413388).
337
338 [ Gavin Panella ]
339 * Use new local configuration support for the cluster.
340
341 [ Andres Rodriguez ]
342 * Refactor maas-dns upgrade code so it doesn't break local DNS config
343 and it gets migrated (LP: #1413388)
344 - debian/maas-region-controller.postinst: Ensure DNS config
345 migration is always run.
346 * debian/control: Make maas-dns a Dependy of maas-region-controller.
347 * Update the location of dhcpd.conf and dhcpd6.conf to be /var/lib/maas/
348 and handle upgrades. (LP: #1482857)
349 * Move /etc/maas/maas-proxy.conf to /usr/share/maas/maas-proxy.conf as
350 this is not a config we want users to modify. (LP: #1482859)
351 * Move /etc/maas/maas-http.conf to /usr/share/maas/maas-http.conf as
352 this is not a config we want users to modify. (LP: #1482858)
353 * debian/control:
354 - Add missing dependency on python-curtin.
355 - Drop python-lockfile as it is no longer used.
356 - Depend on python-curtin >= 0.1.0~bzr247.
357
358 -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 12 Jun 2015 14:16:47 -0400
359
360maas (1.8.0+bzr4001-0ubuntu1) trusty; urgency=medium
361
362 * New upstream release, 1.8.0.
363
364 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 09 Jun 2015 20:57:42 -0400
365
366maas (1.8.0~rc3+bzr4000-0ubuntu1) trusty; urgency=medium
367
368 * New upstream release, 1.8.0 RC3 bzr4000.
369
370 [ Raphaël Badin ]
371 * Remove unused dependencies: python-amqp and python-txamqp.
372
373 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 04 Jun 2015 16:32:02 -0400
374
375maas (1.8.0~rc2+bzr3989-0ubuntu1) trusty; urgency=medium
376
377 * New upstream release, 1.8.0 RC2 bzr3983.
378
379 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 02 Jun 2015 09:27:54 -0400
380
381maas (1.8.0~rc1+bzr3972-0ubuntu1) trusty; urgency=medium
382
383 * New upstream release, 1.8.0 RC1 bzr3972.
384 * debian/copyright: Add copyright headers for ng-tags-input.js.
385 * debian/control: Bump Standards-Version
386
387 -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 27 May 2015 20:16:40 -0400
388
389maas (1.8.0~beta8+bzr3951-0ubuntu1) trusty; urgency=medium
390
391 * New upstream release, 1.8.0 beta 8 bzr3951.
392
393 [ Raphaël Badin ]
394 * debian/extras/99-maas-sudoers: Allow maas to check the status of
395 maas-dhcpd and maas-dhcp6 and start these services (LP: #1457708).
396
397 [ Andres Rodriguez ]
398 * debian/rules: Ensure maas-regiond-worker is not started in packaging.
399
400 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 21 May 2015 19:18:22 -0400
401
402maas (1.8.0~beta7+bzr3926-0ubuntu1) trusty; urgency=medium
403
404 * New upstream release, 1.8.0 beta 7 bzr3926.
405
406 [ Andres Rodriguez ]
407 * debian/{maas-cluster-controller,maas-common,
408 maas-region-controller-min}.postinst: Cleaned up to correctly create
409 log dir permissions (LP: #1457191)
410
411 [ Gavin Panella ]
412 * Create maas-regiond workers for systemd.
413
414 -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 20 May 2015 17:03:13 -0400
415
416maas (1.8.0~beta6+bzr3891-0ubuntu1) trusty; urgency=medium
417
418 * New upstream release, 1.8.0 beta 6 bzr3904:
419
420 [ Gavin Panella ]
421 * Drop the use of daemontools in favor of having upstart track
422 thread processes:
423 - d/maas-region-controller-min.maas-regiond.upstart: Drop use of
424 daemontools; use maas-regiond-worker
425 - d/maas-region-controller-min.maas-regiond-worker.upstart: Add.
426 - d/control: Drop depends on daemontools.
427
428 [ Andres Rodriguez ]
429 * debian/maas-common.{postinst,logrotate}: Create maas.log if non-existent
430 and add log rotation, provided maas.log exists both in the Region
431 and in the Cluster (LP: #1381603)
432
433 -- Andres Rodriguez <andreserl@ubuntu.com> Sat, 09 May 2015 15:03:17 +0100
434
435maas (1.8.0~beta5+bzr3867-0ubuntu1) trusty; urgency=medium
436
437 * New upstream release, 1.8.0 Beta 5 bzr3867.
438
439 [ Andres Rodriguez ]
440 * d/p/02-pserv.yaml: Fix config file (LP: #1449862)
441
442 [ Mike Pontillo ]
443 * Run DNS reconfiguration if either 'forwarders' or 'dnssec-validation'
444 keywords exist in named.conf.options (LP: #1384334)
445
446 -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 24 Apr 2015 18:55:47 -0400
447
448maas (1.8.0~beta4+bzr3844-0ubuntu1) trusty; urgency=medium
449
450 * New upstream release. 1.8.0 Beta 4 bzr2344
451 * debian/maas-dhcpd.maas-dhcpd.service: Remove whitespace in unit that
452 was making systemd crash (LP: #1446699)
453 * debian/maas-proxy.maas-proxy.service: Fix proxy to correctly run
454 pre-start script.
455 * debian/maas-dns.postinst: Ensure permissions are fixed also on upgrade.
456
457 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 21 Apr 2015 13:00:49 -0400
458
459maas (1.8.0~beta3+bzr3825-0ubuntu1) trusty; urgency=medium
460
461 * New upstream release. 1.8.0 Beta3 bzr3825 (LP: #1432666):
462 - Fixx issues with concurrent DB access and the isolation level
463 that made MAAS unusable in highload environments.
464
465 [ Gavin Panella ]
466 * Run one maas-regiond per CPU core.
467
468 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 16 Apr 2015 21:26:21 +0200
469
470maas (1.8.0~beta2+bzr3814-0ubuntu1) trusty; urgency=medium
471
472 * New upstream release. 1.8.0 Beta2 bzr3814.
473
474 [ Andres Rodriguez ]
475 * Restart apache2 after the region is restarted on a install. (LP: #1438782)
476
477 [ Mike Pontillo ]
478 * Stop maas-clusterd in prerm so that database purge succeeds (LP: #1044559)
479
480 -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 06 Apr 2015 11:00:00 -0400
481
482maas (1.8.0~beta1+bzr3777-0ubuntu1) trusty; urgency=medium
483
484 * New upstream release. 1.8.0 Beta1 bzr 3777.
485
486 [ Mike Pontillo ]
487 * debian/extras/maas-region-admin: Fix Path setting.
488 * debian/control: Properly depend on python-apt
489
490 [ Andres Rodriguez ]
491 * debian/maas-dhcp.maas-dhcpd[6].service: Fix units to correctly run
492 in vivid.
493 * debian/maas-proxy.maas-proxy.service: Fix unit to use correct daemon.
494
495 -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 30 Mar 2015 19:17:47 -0400
496
497maas (1.8.0~alpha9+bzr3750-0ubuntu1) trusty; urgency=medium
498
499 * New upstream release. MAAS 1.9.0 Alpha 9 bzr3692:
500 - fix bulk actions for isolation level changes.
501 - fix commissioning related isolation level / transaction issues.
502
503 [ Andres Rodriguez ]
504 * Make sure MAAS works with python-django16 in vivid.
505
506 [Gavin Panella]
507 * debian/extras/99-maas-sudoers
508 debian/maas-cluster-controller.install
509 - Do not install maas-import-pxe-files; it is no longer used, and is
510 not present in upstream.
511
512 -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 20 Mar 2015 20:27:02 -0400
513
514maas (1.8.0~alpha8+bzr3692-0ubuntu1) trusty; urgency=medium
515
516 * New upstream release, 1.8.0~alpha8 bzr 3692:
517 - Fix bulk actions to not fail due to transaction errors.
518
519 [ Steve Langasek ]
520 * Depend on pxelinux for pxelinux.0, not on syslinux-dev. (LP: #1433697)
521
522 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 17 Mar 2015 18:46:41 -0400
523
524maas (1.8.0~alpha7+bzr3664-0ubuntu1) trusty; urgency=medium
525
526 * New upstream release, 1.8.0~alpha7 bzr3664
527
528 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 10 Mar 2015 16:36:40 -0400
529
530maas (1.8.0~alpha6+bzr3625-0ubuntu1) trusty; urgency=medium
531
532 * New upstream release, 1.8.0~alpha6 bzr3625:
533 - Add ability to select OS when we Deploy via a bulk action.
534
535 -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 06 Mar 2015 18:10:46 -0500
536
537maas (1.8.0~alpha5+bzr3609-0ubuntu1) trusty; urgency=medium
538
539 * New upstream release, 1.8.0~alpha5 bzr3601:
540 - Add new 'Devices' page in the WebUI.
541 - Add support for VMWare's vSphere.
542 * debian/control:
543 - Add Depends on python-pyvmomi; Drop Depends on python-pyscss.
544
545 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 05 Mar 2015 11:31:14 -0500
546
547maas (1.8.0~alpha4+bzr3581-0ubuntu1) trusty; urgency=medium
548
549 * New upstream release, 1.8.0~alpha4 bzr3581:
550 - Adds new 'Add Hardware' button on the WebUI.
551 - Adds new 'Add Chassis' button on the WebUI.
552
553 -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 27 Feb 2015 19:50:00 -0500
554
555maas (1.8.0~alpha3+bzr3568-0ubuntu1) trusty; urgency=medium
556
557 * New upstream release, 1.8.0~alpha3 bzr3568
558 - Adds support for Microsoft OCP Chassis.
559 * debian/control:
560 - Add python-bson as a depends.
561 - Remove python-pyscss as a build dependency.
562
563 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 24 Feb 2015 15:47:07 -0500
564
565maas (1.8.0~alpha2+bzr3545-0ubuntu1) trusty; urgency=medium
566
567 * New upstream release, 1.8.0~alpha2 bzr3545
568 * debian/control:
569 - Depends on libjs-angularjs (LP: #1423457)
570 - Depends on ubuntu-cloudimage-keyring for region (LP: #1424287)
571
572 -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 18 Feb 2015 16:31:02 -0500
573
574maas (1.8.0~alpha1+bzr3523-0ubuntu1) trusty; urgency=medium
575
576 * New upstream release, 1.8.0~alpha1 bzr3523
577
578 [ Blake Rouse ]
579 * debian/control: added python-pyscss as a build dependency.
580 * debian/rules: build scss files to maas-styles.css and remove scss files
581 from the static files directory.
582
583 [ Jeroen Vermeulen ]
584 * debian/maas-cluster-controller.postinst: configure MAAS_URL through new
585 "maas-provision configure-maas-url" sub-command instead of with "sed".
586
587 [ Andres Rodriguez ]
588 * Set 'maas' homedir to '/var/lib/maas' (LP: #1399016):
589 - debian/maas-common.postinst: Do not try to update 'maas'
590 home user dir on upgrade.
591 * debian/control: Tighten Dependency versioning of some packages.
592 * debian/maas-region-controller-min.preinst: Handle upgrades to remove
593 legacy files.
594 * debian/maas-region-controller{-min}.postinst: Simplify postinsts.
595 * Drop depends on python-celery, python-oops, python-oops-twisted,
596 python-oops-datedir-repo, python-oosp-wsgi
597 * Drop maas-cluster-http.conf; Drop depends on apache2 for
598 maas-cluster-controller.
599
600 [ Gavin Panella ]
601 * debian/maas-region-controller-min.maas-regiond.upstart
602 - Upstart script for the new maas-regiond.
603 - Use setuid/setgid to drop root privs before running script.
604 - Don't write a pid file.
605 * debian/maas-cluster-controller.maas-clusterd.upstart
606 - Start maas-clusterd; it's no longer called maas-pserv.
607 * debian/maas-region-controller-min.install
608 - Don't install wsgi.py; it's no longer used.
609 * debian/rules
610 - Install maas-regiond plugin.
611 * debian/maas-region-controller-min.apport
612 debian/maas-region-controller-min.logrotate
613 debian/maas-region-controller-min.postinst
614 debian/maas-region-controller.postinst
615 - Change maas-django.log to regiond.log.
616 * debian/maas-region-controller.postinst
617 - Restart maas-regiond after installation.
618 - a2enmod rewrite module (LP: #1236544)
619 * debian/maas-region-controller.postinst
620 - Restart maas-regiond after installation.
621 * debian/control
622 debian/maas-region-controller-min.postinst
623 debian/maas-region-controller.postinst
624 - mod_wsgi is no longer used.
625 * debian/maas-region-controller-min.logrotate
626 - No longer used; maas-regiond uses rotatelogs.
627 - a2enmod rewrite module (LP: #1236544)
628 * debian/patches/01-fix-database-settings.patch
629 - Move STATIC_ROOT setting upstream.
630 - Simplify database configuration hunk.
631 * debian/maas-cluster-controller.logrotate
632 debian/maas-region-controller.logrotate
633 - Use copytruncate; even though it's sub-optimal, this is currently
634 the best way to integrate logrotate with twistd.
635 - Limit the size of the logs to 50MB, but don't rotate unless
636 they're more than 10MB.
637 - Drop privileges and run as maas/maas.
638 * debian/maas-region-controller-min.maas-regiond.upstart
639 debian/maas-cluster-controller.maas-clusterd.upstart
640 - Redirect stdout and stderr from twistd directly to the daemon's
641 respective log file.
642 * debian/maas-region-controller-min.apport
643 - pserv.log has been renamed to clusterd.log.
644
645 -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 14 Nov 2014 09:04:29 -0500
646
647maas (1.7.0+bzr3299-0ubuntu1) utopic; urgency=medium
648
649 * New upstream release, 1.7.0.
650
651 -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 14 Nov 2014 08:38:39 -0500
652
653maas (1.7.0~rc3+bzr3299-0ubuntu1) utopic; urgency=medium
654
655 * New upstream release, RC3 bzr 3299
656 - Fix dashboard tooltip messages which had stopped being displayed
657 (LP: #1390434)
658
659 -- Julian Edwards <julian.edwards@canonical.com> Tue, 11 Nov 2014 12:23:07 +1000
660
661maas (1.7.0~rc2+bzr3297-0ubuntu1) utopic; urgency=medium
662
663 * New upstream release, RC2 bzr 3297
664 - Allow marking a node in the DISK_ERASING state as broken (LP: #1388919)
665 - Prevent concurrent allocations of static IP addresses from returning
666 the same clashing address. (LP: #1387262)
667
668 [ Andres Rodriguez ]
669 * debian/maas-cluster-controller.postinst: Make sure that cluster sets
670 the correct permissions for proxy log dir if running on the same
671 system. (LP: #1377964)
672
673 -- Julian Edwards <julian.edwards@canonical.com> Fri, 07 Nov 2014 09:30:52 +1000
674
675maas (1.7.0~rc1+bzr3295-0ubuntu1) trusty; urgency=medium
676
677 * New Upstream Release, RC1 bzr 3295
678 - If using MSCM (Moonshot Chassis Manager) on a M300, do not overwrite
679 power parameters (LP: #1382075)
680 - Do not write DNS hostmaps if its PXE Mac is not on a managed cluster
681 interface. (LP: #1382108)
682 - Show os field in boot source selections API. (LP: #1384383)
683 - Add documentation for new Import Images features (LP: #1384010)
684 - Allow releasing if Failed to Disk Wipe or Release (LP: #1384821)
685 - Handle missing subarch when creating a node via RPC for
686 probe-and-enlist methods (LP: #1384778)
687 - Update default waiting policy for power actions to increase time of
688 wait to handle different type of BMC's (LP: #1384758)
689 - Use HTTP_PROXY to download images if configured (LP: #1384464)
690 - Return 503 response for PowerActionAlreadyInProgress and add a
691 'Retry-after' Header. (LP: #1384001)
692 - Stop ImportResourcesService from crashing when an import fails
693 (LP: #1386722)
694 - Convert TFTP request paths that contain backslashes to forward
695 slashes. (LP: #1387191)
696 - Do not try to delete synced boot images if not new ones are present
697 to handle a weird race. (LP: #1387133)
698 - Fix storage unit shown on the node edit page (LP: #1387431)
699 - Use CompressedAmpList in UpdateLeases to now parse
700 ~3500 leases (LP: #1387515, LP: #1387515)
701 - Updated XPath expression for discovering storage capacity from new
702 lshw changes. (LP: #1387380)
703 - Add sub status field on API.
704 - Generate DNS mappings for the Dynamic IP range. Hostname generation
705 is limited to /16. (LP: #1382190)
706 - Use configured HTTP Proxy to download boot images (LP: #1384464)
707 * debian/extras/maas-proxy-common.sh: Ensure that permissions are correct
708 before starting maas-proxy. (LP: #1382266)
709
710 -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 27 Oct 2014 21:53:43 -0400
711
712maas (1.7.0~beta8+bzr3272-0ubuntu1) utopic; urgency=medium
713
714 * New Upstream Release, Beta 8 bzr 3272.
715 - Maintain backward compatibility with status codes to not break
716 client MAAS API users. (LP: #1383609)
717 - Allow users to disable DHCP NIC scanning during commissioning otherwise
718 this can lead machines not being able to commission (LP: #1383384)
719 - Ensure that MAAS can correctly download, and install HWE Kernels, and
720 not crash in the process. (LP: #1357532, LP: #1382281)
721 - Add a lock to ensure we don't give the same 2 systems to two different
722 users when acquiring a machine. (LP: #1382575)
723
724 [ Michael McCracken ]
725 * debian/maas-dns.postrm: ensure named.conf is cleaned of maas
726 includes (LP: #1346538)
727
728 -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 22 Oct 2014 12:55:08 -0400
729
730maas (1.7.0~beta7+bzr3266-0ubuntu1) utopic; urgency=medium
731
732 * New Upstream Snapshot, Beta 7 bzr3266
733
734 [ Jeroen Vermeulen ]
735 * debian/extras/99-maas-sudoers
736 debian/maas-dhcp.postinst
737 debian/rules
738 - Add second DHCP server instance for IPv6.
739 * debian/maas-region-controller-min.install
740 debian/maas-region-controller-min.lintian-overrides
741 - Install deployment user-data: maas_configure_interfaces.py script.
742 * debian/maas-cluster-controller.links
743 debian/maas-cluster-controller.install
744 debian/maas-cluster-controller.postinst
745 - Reflect Celery removal changes made in trunk r3067.
746 - Don't install celeryconfig_cluster.py any longer.
747 - Don't install maas_local_celeryconfig_cluster.py any longer.
748 - Don't symlink maas_local_celeryconfig_cluster.py from /etc to /usr.
749 - Don't insert UUID into maas_local_celeryconfig_cluster.py.
750
751 [ Andres Rodriguez ]
752 * debian/maas-region-controller-min.postrm: Cleanup lefover files.
753 * debian/maas-dhcp.postrm: Clean leftover configs.
754 * Provide new maas-proxy package that replaces the usage of
755 squid-deb-proxy:
756 - debian/control: New maas-proxy package that replaces the usage
757 of squid-deb-proxy; Drop depends on squid-deb-proxy.
758 - Add upstrart job.
759 - Ensure squid3 is stopped as maas-proxy uses a caching proxy.
760 * Remove Celery references to cluster controller:
761 - Rename upstart job from maas-pserv to maas-cluster; rename
762 maas-cluster-celery to maas-cluster-register. Ensure services
763 are stopped on upgrade.
764 - debian/maintscript: Cleanup config files.
765 - Remove all references to the MAAS celery daemon and config
766 files as we don't use it like that anymore
767 * Move some entries in debian/maintscript to
768 debian/maas-cluster-controller.maintscript
769 * Remove usage of txlongpoll and rabbitmq-server. Handle upgrades
770 to ensure these are removed correctly.
771
772 [ Jason Hobbs ]
773 * debian/maas-region-controller-min.install: Install
774 maas-generate-winrm-cert script.
775
776 [ Raphaël Badin ]
777 * debian/extras/maas-region-admin: Bypass django-admin as it prints
778 spurious messages to stdout (LP: #1365130).
779
780 [Louis Bouchard]
781 * debian/maas-cluster-controller.postinst:
782 - Exclude /var/log/maas/rsyslog when changing ownership
783 (LP: #1346703)
784
785 [Gavin Panella]
786 * debian/maas-cluster-controller.maas-clusterd.upstart:
787 - Don't start-up the cluster controller unless a shared-secret has
788 been installed.
789 * debian/maas-cluster-controller.maas-cluster-register.upstart: Drop.
790
791 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 21 Aug 2014 19:36:30 -0400
792
793maas (1.7.0~beta1+bzr2781-0ubuntu1) utopic; urgency=medium
794
795 * New upstream release, 1.7.0 Beta 1
796
797 [Diogo Matsubara]
798 * debian/control:
799 - maas-cluster-controller depends on syslinux-dev |
800 syslinux-common (LP: #1328659)
801 - python-maas-provisioningserver depends on
802 python-paramiko (LP: #1334401)
803
804 [Jeroen Vermeulen]
805 * debian/extras/99-maas-sudoers:
806 - Let maas user import, including sudo tgt-admin and sudo uec2roottar.
807 * debian/maas-cluster-controller.install:
808 - Stop installing obsolete file bootresources.yaml.
809
810 [ Raphaël Badin ]
811 * debian/control:
812 - maas-cluster-controller depends on python-pexpect
813 * debian/extras/99-maas-sudoers:
814 - Add rule 'maas-dhcp-server stop' job.
815
816 [ Greg Lutostanski ]
817 * debian/control:
818 - maas-cluster-controller depends on grub-common
819 - maas-provisioningserver not maas-cluster-controller depends on
820 python-pexpect (LP: #1352273)
821 - maas-provisioningserver not maas-cluster-controller depends on
822 python-seamicroclient (LP: #1332532)
823
824 [ Gavin Panella ]
825 * debian/maas-cluster-controller.postinst
826 - Allow maas-pserv to bind to all IPv6 addresses too.
827
828 [ Julian Edwards ]
829 * debian/maas-region-controller-min.apport
830 debian/maas-region-controller-min.logrotate
831 debian/maas-region-controller-min.postinst
832 debian/maas-region-controller.postinst
833 - Change the log file name maas.log to maas-django.log
834 * debian/maas-cluster-controller.postinst
835 debian/maas-common.install
836 debian/maas-region-controller-min.postinst
837 debian/maas-region-controller.postinst
838 - Install /var/log/maas/maas.log as a syslog file.
839 - Ensure logging is set up for upgrades
840
841 [ Graham Binns ]
842 * debian/maas-region-controller.postinst:
843 - Add symlinks for squid3, squid-deb-proxy and apache log directories to
844 /var/log/maas.
845
846 [ Andres Rodriguez ]
847 * debian/maas-region-controller.postinst: Force symlink creation
848 for external logs.
849 * debian/maas-region-controller.postinst: Do not change celery's
850 rabbitmq password on upgrade that to not lock remote
851 Cluster Controllers if upgrading from 1.5+. (LP: #1300507)
852
853 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 21 Aug 2014 14:05:40 -0400
854
855maas (1.5+bzr2252-0ubuntu1) trusty; urgency=medium
856
857 * New upstream release
858 - Add support to install Third Party Drivers. In order for this to be
859 used the user will have to go to the Settings page to enable the
860 installation of these drivers. (LP: #1305839)
861 - Use release images instead of daily. (LP: #1306701)
862 - Quote interface name in dhcpd.template, otherwise DHCP server fails
863 to start. (LP: #1306335)
864 - Fix IntegrityError, when multiple processes are trying to register
865 the same component. (LP: #1307415)
866 - Add missing armhf commissioning template (LP: #1307780)
867 * debian/maas-region-controller-min.install: Install drivers.yaml.
868 * debian/maas-region-controller.postinst: No longer show the
869 installation note by default. (LP: #1284652)
870
871 -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 09 Apr 2014 19:02:00 -0400
872
873maas (1.5+bzr2236-0ubuntu1) trusty; urgency=medium
874
875 * New upstream bugfix release.
876 - Fix simplestreams path to use the new data source path. (LP: #1305118)
877 - Fix commissioning_distro_series validation failure. (LP: #1304408)
878 - Fix DB migration 0072_remove_ipmi_autodetec. (LP: #1302156)
879 - Update documentation.
880 * debian/maas-region-controller-min.maas-region-celery.upstart,
881 debian/maas-region-controller-min.maas-txlongpoll.upstart: Fix ISO
882 install by making sure rabbitmq user is really created if it does not
883 exist (LP: #1298559)
884
885 -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 09 Apr 2014 18:36:55 -0400
886
887maas (1.5+bzr2230-0ubuntu1) trusty; urgency=medium
888
889 * New upstream bugfix release:
890 - Fix Cluster Controller to handle deprecated config items gracefull.
891 Otherwise it fails on upgrades. (LP: #1302772)
892 - Fix documentation generation and referencing. (LP: #1302956)
893 - Ensure we PXE boot when we turn on SM15K systems. (LP: #1303915)
894
895 -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 07 Apr 2014 10:26:51 -0400
896
897maas (1.5+bzr2227-0ubuntu1) trusty; urgency=medium
898
899 * New upstream bugfix release:
900 - Fix catching exceptions raised by
901 twisted.conch.ssh.keys.Key.fromString (LP: #1298788)
902 - Fix validationg in default NodeGroupInterface.broadcast_ip making it
903 optional. (LP: #1299374)
904 - Drop install-pxe-bootloader as it conflicts with newer import script.
905 - Remove references to old import script.
906 - Fix changes that cause overwriting of existing entries.
907 - Fix inappropriate ValidationError when defining networks with nested
908 (but non-identical) address ranges. (LP: #1299114)
909 - Fix issue where if a node does not provide an architecture type on dhcp
910 request, or no other boot method is available for that architecture,
911 the node still uses pxelinux.0 to boot. (LP: #1300285)
912 - Take an advisory lock to prevent concurrent creation of the
913 eventloops table. (LP: #1300363)
914 - Remove the cloud_images_archive setting, as it conflicts with new
915 import script. (LP: #1300587)
916 - Add a 'logout confirmation' page. Using this, the logout action is
917 protected against CSRF attacks because it uses a POST request, in
918 conjunction with Django's CSRF protection feature. (LP: #1298790)
919 - Fix cluster listings when dealing with large number of clusters by
920 paginating it. (LP: #1301242)
921 - Change list_boot_images() so that it can cope with a missing boot
922 images directory: this happens if the reporting task runs before the
923 images have been imported. (LP: #213984)
924 - Fix internal server error on fast path installer. (LP: #1293676)
925 - Fix uploading files using maas-cli. (LP: #1187826)
926 - Fix SM15k Invalid Power Control and Fix enlisting machines with
927 2.0 api. (LP: #1302818, LP: #1302819)
928
929 [ Andres Rodriguez ]
930 * debian/maas-cluster-controller.install: Install UEFI templates
931 * debian/maas-cluster-controller.dirs: Create 'boot-resources' dir.
932
933 [ Jason Hobbs ]
934 * debian/extras/99-maas: Allow access to keyserver.ubuntu.com via
935 squid-deb-proxy.
936
937 [Jeroen Vermeulen]
938 * debian/maas-cluster-controller.postinst:
939 - Make the tgt config link point to the new boot-resources dir.
940 * debian/maas-region-controller-min.dirs:
941 - Don't create /var/lib/maas/tftp.
942
943 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 03 Apr 2014 13:45:02 -0400
944
945maas (1.5+bzr2204-0ubuntu1) trusty; urgency=low
946
947 * New upstream release (LP: #1281881)
948
949 [ Andres Rodriguez ]
950 * debian/maas-region-controller-min.templates: Set installation note to false
951 by default.
952 * Check rabbitmqctl is present before running commands:
953 - debian/maas-region-controller-min.maas-region-celery.upstart.
954 - debian/maas-region-controller-min.maas-txlongpoll.upstart.
955 * make sure maas_longpoll rabbitmq user is created/with correct password on
956 a package reconfigure.
957 * debian/maas-dns.postinst: Fix upgrade setup of named.conf.options.
958 * debian/maas-cluster-controller.install: Install UEFI templates (LP: #1299143)
959
960 [ Julian Edwards ]
961 * debian/extas/maas: Echo warning to stderr so json stdout is not polluted
962 * debian/maas-cluster-controller.postinst: Run upgrade-cluster on each
963 upgrade
964 * debian/maas-dns.postinst: Call edit_named_options to add a line in
965 /etc/bind/named.conf.options that includes the
966 /etc/named/maas/named.conf.options.inside.maas file.
967 * debian/control:
968 - maas-dns depends on python-iscpy
969 - maas-cluster-controller depends on python-seamicroclient
970 * debian/maas-cluster-controller.install: Install bootresources.yaml
971
972 [ Dustin Kirkland ]
973 * debian/control: LP: #1297097
974 - clean up package descriptions, modernize, and more clearly/simply
975 explain what each package does
976 - drop "Ubuntu" in front of MAAS, clean up command line/API description
977
978 -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 28 Mar 2014 10:43:53 -0400
979
980maas (1.5+bzr1977-0ubuntu1) trusty; urgency=low
981
982 * New upstream bugfix release.
983 - setup.py: Install missing shell snippet
984
985 -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 19 Feb 2014 16:31:45 -0500
986
987maas (1.5+bzr1976-0ubuntu1) trusty; urgency=low
988
989 * New upstream release.
990 * debian/maas-cluster-controller.postinst: Make sure upgrades handle
991 authbind upgrades too.
992
993 -- Andres Rodriguez <andreserl@ubuntu.com> Sun, 16 Feb 2014 22:56:36 -0500
994
995maas (1.5+bzr1951-0ubuntu1) trusty; urgency=low
996
997 * New upstream release
998 * debian/maas-cluster-controller.postinst: Also authbind port 69.
999 * debian/maas-cluster-controller.maas-pserv.upstart: Export MAAS_URL.
1000
1001 -- Andres Rodriguez <andreserl@ubuntu.com> Sat, 15 Feb 2014 16:16:38 -0500
1002
1003maas (1.5+bzr1948-0ubuntu2) trusty; urgency=low
1004
1005 * debian/maas-cluster-controller.postinst: Make sure generator on
1006 pserv.yaml is updated on upgrade or reconfigure. (LP: #1273197)
1007 * debian/maas-cluster-controller.maas-pserv.upstart: Make sure maas-pserv
1008 is started with authbind.
1009
1010 -- Andres Rodriguez <andreserl@ubuntu.com> Sat, 15 Feb 2014 13:55:20 -0500
1011
1012maas (1.5+bzr1948-0ubuntu1) trusty; urgency=low
1013
1014 * New upstream release.
1015
1016 [ Graham Binns ]
1017 * debian/control: Depends on python-jsonschema.
1018
1019 [ Andres Rodriguez ]
1020 * debian/maas-region-controller-min.posinst: Make txlongpoll.yaml only
1021 readable by the app and not world readeable.
1022 * debian/patches/02-pserv-config.patch: Refreshed.
1023
1024 [ Julian Edwards ]
1025 * debian/extras/maas-cli renamed to debian/extras/maas, and introduce
1026 a deprecation warning in favour of using maas over maas-cli.
1027 * debian/extras/maas renamed to debian/extras/maas-region-admin
1028 * debian/maas-cli.install: install debian/extras/maas
1029 * debian/maas-dns.postinst: Invoke maas-region-admin instead of maas
1030 * debian/maas-region-controller-min.install: install maas-region-admin
1031 instead of maas
1032 * debian/maas-region-controller.postinst: Invoke maas-region-admin instead
1033 of maas
1034 * debian/maas-cli.links: Link from maas to maas-cli for backward compat.
1035
1036 [ Seth Arnold ]
1037 * debian/maas-region-controller-min.postinst: Make sure txlongpoll.yaml
1038 gets correct permissions on upgrade (LP: #1254034)
1039
1040 -- Andres Rodriguez <andreserl@ubuntu.com> Sat, 15 Feb 2014 12:08:23 -0500
1041
1042maas (1.5+bzr1909-0ubuntu1) trusty; urgency=low
1043
1044 * New upstream release.
1045
1046 [ Dustin Kirkland ]
1047 * debian/maas-region-controller-min.postinst: Fix typo in sed. Remove
1048 double quotes. (LP: #1274448)
1049
1050 [ Andres Rodriguez ]
1051 * debian/control: Add depends on python-crochet.
1052 * Get rid of dfsg on the versioning as we no longer strip any code from
1053 the orig tarball.
1054 - debian/rules: Do not strip any files out of the tarball.
1055 * debian/patches/*: Refreshed.
1056
1057 -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 31 Jan 2014 09:38:51 -0500
1058
1059maas (1.4+bzr1853+dfsg-0ubuntu1) trusty; urgency=low
1060
1061 * New upstream release
1062
1063 -- Dustin Kirkland <kirkland@ubuntu.com> Tue, 28 Jan 2014 08:41:41 +0000
1064
1065maas (1.4+bzr1849+dfsg-0ubuntu1) trusty; urgency=low
1066
1067 * New upstream release.
1068
1069 [ Gavin Panella ]
1070 * debian/control: Remove all dependencies on Avahi and DBUS.
1071
1072 -- Julian Edwards <julian.edwards@canonical.com> Tue, 28 Jan 2014 17:12:22 +1000
1073
1074maas (1.4+bzr1820+dfsg-0ubuntu1) trusty; urgency=low
1075
1076 * New upstream Release.
1077
1078 [ Jeroen Vermeulen ]
1079 * Move maas-probe-dhcp from maas-dhcp to python-maas-provisioningserver.
1080
1081 [ Andres Rodriguez ]
1082 * debian/maas-region-controller.postinst: Make sure maas-txlongpoll and
1083 maas-region-celery get restarted.
1084 * debian/control:
1085 - python-maas-provisioningserver Breaks/Replaces for maas-dhcp due to
1086 moving files around packages.
1087 - Suggests ipmitool, libvirt-bin, amtterm.
1088
1089 -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 15 Jan 2014 00:24:58 -0500
1090
1091maas (1.4+bzr1817+dfsg-0ubuntu1) trusty; urgency=low
1092
1093 * New upstream release
1094
1095 [ Andres Rodriguez ]
1096 * debian/maas-dns.postinst: Drop write_dns_config as this is run by
1097 celery jobs.
1098 * debian/maas-region-controller.templates: Rename template to
1099 maas-region-controller-min.templates
1100 * debian/control: Depends on python-amqp; Conflicts on python-librabbitmq.
1101
1102 [ Julian Edwards ]
1103 * New maas-probe-dhcp script to detect DHCP servers
1104 - debian/extras/maas-probe-dhcp: New script
1105 - debian/maas-dhcp.install: Install new maas-probe-dhcp script
1106 - maas-dhcp.lintian-overrides: New maas-probe-dhcp script has no manpage
1107
1108 -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 15 Jan 2014 00:23:44 -0500
1109
1110maas (1.4+bzr1789+dfsg-0ubuntu1) trusty; urgency=low
1111
1112 * New upstream release
1113
1114 [ Jeroen Vermeulen ]
1115 * Keep legacy import_ephemerals config for now.
1116
1117 [ Andres Rodriguez ]
1118 * debian/maas-region-controller.postinst: Allo default-maas-url debconf
1119 option to be preseeded.
1120 * Make use of authbind to allow maas-cluster-celery bind port as non-root.
1121 - debian/control: Depends on authbind for maas-cluster-controller.
1122 - debian/maas-cluster-controller.{postinst,postrm}: Handle creation
1123 and removal of required authbind file.
1124 * Split maas-region-controller into maas-region-controller-min.
1125 - debian/maas-region-controller-min.{postinst,postrm,prerm}: Handle
1126 basic configuration for rsyslogd, squid-deb-proxy, and maas-url.
1127 - debian/control: Depends on maas-region-controller-min, postgresql
1128 and rabbitmq-server for maas-region-controller.
1129
1130 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 10 Oct 2013 17:07:51 -0400
1131
1132maas (1.4+bzr1693+dfsg-0ubuntu1) saucy; urgency=low
1133
1134 * New Upstream Release (LP: #1218526)
1135 - This new upstream release contains fixes and improvements of the
1136 features approved by the FFe above.
1137 - Fixes commissioning failure on Saucy with 'Failed Test' (LP: #1237364)
1138 - Fixes access of static images over http (LP: #1236544)
1139 * d/maas-cluster-controller.postinst: a2enmod version module (LP: #1236544)
1140 * d/control: Bump depends on python-django to 1.4. (LP: #1236572)
1141 * d/maas-dhcp.postinst: Fail gracefully if apparmor_parser fails, allowing
1142 to install maas-dhcp during an ISO install. (LP: #1236786)
1143
1144 -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 04 Oct 2013 12:33:05 -0400
1145
1146maas (1.4+bzr1656+dfsg-0ubuntu2) saucy; urgency=low
1147
1148 * debian/control: Recommends on maas-dns instead of Depends for region
1149 because maas-dns needs the region installed first.
1150
1151 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 03 Oct 2013 10:36:20 -0400
1152
1153maas (1.4+bzr1656+dfsg-0ubuntu1) saucy; urgency=low
1154
1155 [ Andres Rodriguez ]
1156 * New upstream bugfix release.
1157 - Respect filters for ephemerals_script.py.
1158 * debian/control: Depends on ubuntu-cloudimage-keyring instead of
1159 ubuntu-cloud-keyring; depends on python-distro-info.
1160 * debian/control: Remove suggests on maas-dhcp and maas-dns as they are
1161 now dependencies.
1162
1163 [ Scott Moser ]
1164 * debian/control: Bump depends on isc-dhcp-server to 4.2.4
1165 * debian/maas-dhcp.maas-dhcp-server.upstart: Change ownership of leases
1166 file to root:root, and run the daemon as dhcpd:dhcpd.
1167
1168 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 01 Oct 2013 15:26:34 -0400
1169
1170maas (1.4+bzr1655+dfsg-0ubuntu1) saucy; urgency=low
1171
1172 * New Upstream release. (LP: #1218526)
1173 * debian/control:
1174 - Depends on python-djorm-ext-pgarray, python-curtin,
1175 python-simplestreams, ubuntu-cloud-keyring.
1176 - Depends on maas-dns, maas-dhcp to get them seeded and
1177 into main (LP: #1227353)
1178
1179 -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 28 Aug 2013 11:17:44 -0400
1180
1181maas (1.4+bzr1551+dfsg-0ubuntu1) saucy; urgency=low
1182
1183 * New upstream release
1184
1185 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 15 Aug 2013 16:20:41 -0400
1186
1187maas (1.4+bzr1548+dfsg-0ubuntu1) saucy; urgency=low
1188
1189 * New upstream release
1190
1191 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 18 Jul 2013 10:15:10 -0400
1192
1193maas (1.4+bzr1539+dfsg-0ubuntu1) saucy; urgency=low
1194
1195 * New upstream release
1196 * Symlink apache2 config into /etc/apache2/conf-enabled/ instead of
1197 /etc/apache2/conf.d as apache2.4 no longer supports the latter.
1198 - debian/maas-cluster-controller.{postinst,postrm}
1199 - debian/maas-region-controller.{postinst,postrm}
1200 * debian/control: Bump Standards-Version to 3.9.4.
1201 * debian/maas-cluster-controller.lintian-overrides: Remove unneeded
1202 override and add a new one.
1203 * debian/maas-region-controller.lintian-overrides: Add extra overrides.
1204
1205 -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 03 Jul 2013 17:11:02 -0400
1206
1207maas (1.4+bzr1538+dfsg-0ubuntu1) saucy; urgency=low
1208
1209 * New upstream release
1210 * debian/patches/04-setup-dont-user-list-snippets.patch: Drop. Merged
1211 Upstream.
1212
1213 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 13 Jun 2013 20:06:35 -0400
1214
1215maas (1.4+bzr1527+dfsg-0ubuntu1) saucy; urgency=low
1216
1217 * debian/patches/04-setup-dont-user-list-snippets.patch: Drop importing
1218 maasserver modules to list snippets in favor to using glob. Otherwise
1219 we would have to add various non necessary Build-Dependencies.
1220
1221 [ Jeroen Vermeulen ]
1222 * Install templates into /etc/maas/templates/.
1223
1224 -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 03 Jun 2013 17:59:31 -0400
1225
1226maas (1.4+bzr1505+dfsg-0ubuntu1) saucy; urgency=low
1227
1228 * New upstream release
1229
1230 [ Steve Langasek ]
1231 * Add missing dependency on iproute to maas-region-controller, for use of
1232 /sbin/ip in postinst.
1233
1234 [ Julian Edwards ]
1235 * debian/maas-dhcp.maas-dhcp-server.upstart:
1236 - Detect 12.04 as the host OS and install with correct permissions. This
1237 allows the same packaging to be used in the 12.04 backport.
1238
1239 [ Andres Rodriguez ]
1240 * Update packaging to support FPI:
1241 - debian/control: Depends on apache2 for maas-cluster-controller.
1242 - debian/maas-cluster-controller.install: Install http config file.
1243 - debian/maas-cluster-controller.{postinst,postrm}: Handle symlink creation
1244 and deletion.
1245 * debian/maas-region-controller.install: Install preseeds in
1246 etc/maas/preseeds. (LP: #1073463)
1247
1248 [ Jeroen Vermeulen ]
1249 * In the source tree, /etc/maas/pserv.yaml has moved from etc/ to etc/maas/.
1250 * Install templates into /etc/maas/templates/.
1251
1252 -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 03 Jun 2013 16:53:14 -0400
1253
1254maas (1.3+bzr1455+dfsg-0ubuntu1) raring; urgency=low
1255
1256 * New upstream bugfix release.
1257 - Fixes and returns the 'resource_url' with the 'canonical' url for
1258 a file that is fetched using the API (LP: #1154142)
1259
1260 [ Andres Rodriguez ]
1261 * debian/control:
1262 - Change Conflicts/Replaces for Breaks/Replaces.
1263 - Conflicts on tftpd-hpa and dnsmasq.
1264 - Do not pre-depends, but Depends on ${misc:Depends} for 'maas'.
1265
1266 [ Steve Langasek ]
1267 * postinst scripts are never called with 'reconfigure' as the script
1268 argument. Remove references to this (mythical) invocation.
1269 * always call 'set -e' from maintainer scripts instead of passing 'sh -e'
1270 as the interpreter, so that scripts will behave correctly when run via
1271 'sh -x'.
1272 * invoke-rc.d is never allowed to not exist - simplify scripts (and make
1273 them better policy-compliant) by invoking unconditionally. (The only
1274 possible exception is in the postrm, where it's *theoretically* possible
1275 for invoke-rc.d to be missing if the user has completely stripped
1276 down their system; that's a fairly unreasonable corner case, but we
1277 might as well be correct if it ever happens.)
1278 * db_get+db_set is a no-op; don't call db_set to push back a value we just
1279 got from db_get.
1280 * Omit superfluous calls to 'exit 0' at the end of each script.
1281 * Remove maas-cluster-controller prerm script, which called debconf for no
1282 reason.
1283 * Don't invoke debconf in the postrm script either, debhelper already does
1284 this for us.
1285 * Other miscellaneous maintainer script fixes
1286 * debian/maas-common.postinst: call adduser and addgroup unconditionally;
1287 the tools are already designed to DTRT, we don't need to check for the
1288 user/group existence before calling them nor should we worry about
1289 calling them only once on first install.
1290 * debian/maas-common.postrm: delete the maas group, not just the user,
1291 as the comment in the code implies we should do.
1292
1293 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 19 Mar 2013 15:38:22 -0400
1294
1295maas (1.3+bzr1452+dfsg-0ubuntu1) raring; urgency=low
1296
1297 * New upstream release.
1298 - MAAS file storage mechanism is shifting from a single shared
1299 namespace to a per-user namespace. Operators of the majority
1300 of MAAS systems will not notice any change. However, operators
1301 of the most complex installations may find that a new
1302 "shared-environment" user is created, and that some resources
1303 are reassigned to it, such as API credentials and SSH public
1304 keys. This provides a transitional environment that mimics the
1305 behaviour of a shared namespace.
1306
1307 [ Raphaël Badin ]
1308 * debian/control: maas-region-controller depends on bind9utils.
1309 (LP: #1103195)
1310 * debian/maas-dns.postinst: Call write_dns_config.
1311 (LP: #1085865).
1312 * debian/maas-cluster-controller.postinst: Fix the name of the config
1313 file (/etc/maas/pserv.yaml and not /etc/maas/pserv.conf)
1314 (LP: #1083542).
1315 * debian/extras/99-maas-sudoers: Add 'SETENV:' to sudo rule
1316 to allow preserving the environment when running
1317 /usr/sbin/maas-import-pxe-files via sudo.
1318 * debian/maas-dns.postinst: fix permissions and group ownership of
1319 file /etc/bind/maas/named.conf.rndc.maas. (LP: #1066935)
1320 * debian/control: Remove the dependency of maas-cluster-controller
1321 on rabbitmq-server. (LP: #1072744)
1322 * debian/extras/99-maas-sudoers: Add sudo rule for script
1323 /usr/sbin/maas-import-pxe-files.
1324 * debian/maas-cluster-controller.install: Removed commissioning-user-data
1325 script.
1326
1327 [ Julian Edwards ]
1328 * debian/maas-region-controller.install: Remove installation of maas-gc; it
1329 is no longer required as upstream no longer stores files in the filesystem.
1330 (LP: #1069734)
1331 * debian/maas-cluster-controller.postinst: Ensure that /etc/maas/pserv.yaml
1332 is updated when reconfiguring. (LP: #1081212)
1333
1334 [ Jeroen Vermeulen ]
1335 * debian/maas-cluster-controller.install: Install import scripts.
1336 * debian/maas-cluster-controller.postinst: Configure tgt (the iSCSI server)
1337 so the import script can install files to it.
1338 * debian/maas-cluster-controller.postrm: Clean up tgt config.
1339 * debian/maas-region-controller.install: Move import scripts out to the
1340 cluster controller, and drop the maas-import-isos compatibility script.
1341 * debian/maas-region-controller.postinst: Remove tgt config.
1342 * debian/maas-region-controller.postrm: Remove tgt config cleanup.
1343 * Bump code revision to include latest user_data.template fixes.
1344
1345 [ Gavin Panella ]
1346 * debian/extras/99-maas: squashfs image download is no longer needed.
1347 * debian/maas-cluster-controller.install: maas-import-squashfs and its
1348 configuration file are no longer part of upstream.
1349 * debian/maas-cluster-controller.install: The maas-import-pxe-files cron
1350 task is no longer used.
1351 * debian/maas-cluster-controller.postinst: Remove leading comment
1352 markers from the 'generator' line in pserv.yaml.
1353
1354 [ Andres Rodriguez ]
1355 * debian/control:
1356 - maas-cluster-controller Conflicts with tftpd-hpa (LP: #1076028)
1357 - maas-dns: Conflicts with dnsmasq
1358 - maas-cluster-controller Conflicts/Replaces maas-region-controller as
1359 import scripts are no longer shipped in the region.
1360 - debian/control: Depends on distro-info for maas-cluster-controller
1361 instead of maas-region-controller (LP: #1103194)
1362 * debian/maas-cluster-controller.config: If URL has been detected,
1363 add /MAAS if it doesn't contain it. This helps upgrades from versions
1364 where DEFAULT_MAAS_URL didn't use /MAAS.
1365
1366 -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 04 Mar 2013 11:49:44 -0500
1367
1368maas (0.1+bzr1269+dfsg-0ubuntu1) quantal-proposed; urgency=low
1369
1370 * New upstream bugfix release
1371 - Fixes commissioning failing to set memory attribute. (LP: #1064638)
1372 - Fixes node listing by adding pagination (LP: #1064672)
1373 - Changes default bind rndc key which breaks initscripts (LP: #1066938)
1374 - Fixes invalid DNS config once node is enlisted (LP: #1066958)
1375 - Reference documentation link to correct URL (LP: #1067261)
1376
1377 [ Andres Rodriguez ]
1378 * debian/rules: Change upstream branch.
1379
1380 [ Gavin Panella ]
1381 * debian/maas-dns.postinst: Remove MAAS-related include lines from named's
1382 config before adding a new one (LP: #1066929)
1383
1384 [ Raphael Badin ]
1385 * debian/extras/maas-region-celeryd: Remove whitespace that affects DNS
1386 rabbitmq queue. (LP: #1067929)
1387
1388 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 16 Oct 2012 10:31:37 -0400
1389
1390maas (0.1+bzr1264+dfsg-0ubuntu2) quantal; urgency=low
1391
1392 * Fix MAAS not working after CD/preseed install (LP: #1065763)
1393 - debian/extras/maas-region-celeryd: Add wrapper to run celery from
1394 the upstart job.
1395 - debian/extras/maas-region-controller.maas-region-celery.upstart: Create
1396 rabbitmq user if it does not exists.
1397 * debian/control: Remove unneeded deps on python-txtftp for some binary pkgs.
1398 * debian/maas-region-controller.postinst: Minor fix referencing variable.
1399
1400 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 11 Oct 2012 17:38:08 -0400
1401
1402maas (0.1+bzr1264+dfsg-0ubuntu1) quantal; urgency=low
1403
1404 * New upstream release.
1405
1406 [ Raphaël Badin ]
1407 * debian/maas-region-controller.postinst: Enable proxy_http module.
1408 * debian/maas-cluster-controller.postinst: Create /var/lib/maas. (LP: #1065062)
1409
1410 [ Andres Rodriguez ]
1411 * Install maas-provision with python-maas-provisioningserver (LP: #1065171):
1412 - debian/python-maas-provisioningserver.install: Install
1413 - debian/control: Add Conflicts/Replaces with maas-cluster-controller
1414 to handle upgrades.
1415 * debian/patches/04-fix-ipmi-enlistment.patch: Drop. Merged Upstream.
1416 * debian/control: Depends on maas-region-controller for maas-dns.
1417 * debian/maas-region-controller.postinst: Set the correct host for
1418 BROKER_URL (LP: #1065080)
1419 * Handle creation of user/group in maas-common.
1420 * debian/maas-region-controller.config: Always source dbconfig scripts.
1421
1422 -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 10 Oct 2012 11:17:21 -0400
1423
1424maas (0.1+bzr1243+dfsg-0ubuntu3) quantal; urgency=low
1425
1426 * 04-fix-ipmi-enlistment.patch: retry maas-enlist without power parameters
1427 on failure. This allows enlistment to continue working with Precise
1428 ephemeral images before the Precise SRU for maas-enlist lands.
1429 (LP: #1064922).
1430
1431 -- Robie Basak <robie.basak@canonical.com> Wed, 10 Oct 2012 13:29:16 +0000
1432
1433maas (0.1+bzr1243+dfsg-0ubuntu2) quantal; urgency=low
1434
1435 * debian/patches/99-ipmi-user-too-long.patch: Fix username too long for
1436 IPMI user created on enlistment (LP: #1064832)
1437
1438 -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 10 Oct 2012 01:00:29 -0400
1439
1440maas (0.1+bzr1243+dfsg-0ubuntu1) quantal; urgency=low
1441
1442 * New upstream release. (LP: #1064596)
1443 * debian/patches/99-temporary-fix-constraints.patch: Dropped.
1444 * debian/control:
1445 - ${python:Depends} for maas-common.
1446 - Add missing Depends for python-maas-provisioningserver (LP: #1064542)
1447 * debian/maas-cluster-controller.postinst: Create /var/log/maas if it
1448 doesn't exist (LP: #1064539)
1449
1450 -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 08 Oct 2012 17:02:56 -0400
1451
1452maas (0.1+bzr1223+dfsg-0ubuntu1) quantal; urgency=low
1453
1454 * New upstream release. (LP: #1062518)
1455
1456 [ Julian Edwards ]
1457 * Split packaging of 'maas' into maas-{region,cluster}-controller
1458 - debian/control: Update accordingly.
1459 - debian/*.install: Move files accordingly
1460 - debian/*.{postinst,postrm,preinst}: Move files accordingly.
1461 * Ensure isc-dhcp-server is disabled when installing maas-dhcp.
1462 * Ensure maas-dns creates the maas user before trying to chown files.
1463 * Make maas-cluster-controller autoconfigure itself when upgrading from the
1464 old maas package. (LP: #1059416)
1465 * Add missing prerm file for maas-cluster-controller so that .pyc files
1466 are cleaned up. (LP: #1059973)
1467
1468 [ Raphaël Badin ]
1469 * Install maas_local_celeryconfig.py in /etc/maas and symlink to
1470 /usr/share/maas.
1471 * debian/maas.postinst: Create rabbitmq celery user/vhost.
1472 * debian/maas.postinst: Update BROKER_URL in maas_local_celeryconfig.py.
1473 * Use maas_local_celeryconfig_cluster.py as the local celery
1474 configuration file for the cluster worker.
1475 * debian/maas-region-controller.maas-region-celery.upstart: Add region
1476 worker upstart script.
1477 * Rename cluster worker upstart script into
1478 maas-cluster-controller.maas-clluster-celery.upstart.
1479 * maas-cluster-controller.maas-celery.upstart: use "celeryconfig_cluster"
1480 as the Celery config module.
1481 * debian/maas-common.install: Install celeryconfig_common.py.
1482 * debian/maas-cluster-controller.install: Install celeryconfig_cluster.py.
1483 * debian/maas-region-controller.install: Install celeryconfig.py.
1484 * Split celery config into cluster and region configs.
1485 * Add region celeryd upstart config.
1486 * Define CELERY_CONFIG_MODULE in
1487 maas-cluster-controller.maas-cluster-celery.upstart
1488
1489 [ Jeroen Vermeulen ]
1490 * Make maas_local_celery_config.py non-world readable.
1491 * Make maas_local_celeryconfig_cluster.py non-world readable.
1492 * Set root:maas ownership of local cluster config only *after*
1493 the maas user/group have been created
1494
1495 [ Andres Rodriguez ]
1496 * debian/maas.postinst:
1497 - Always restart apache2.
1498 - Handle upgrades for new upstream release.
1499 - Handle upgrades for celery rabbitmq worker.
1500 * Add binary package to install client tool.
1501 - debian/extras/maas-cli: Add binary.
1502 - debian/maas-cli.install: Add. Install maascli and apiclient.
1503 - debian/control: Add binary package.
1504 * debian/control:
1505 - Depends on freeipmi-tools instead of ipmitool.
1506 - Conflicts/Replaces on maas for python-maas-client.
1507 - Depends on python-netifaces, python-lxml.
1508 * Add python-maas-client binary package:
1509 - debian/python-maas-client.install: Add. Install 'apiclient' python module.
1510 - debian/control: Add package. python-django-maas and maas-cli now
1511 Depend on it.
1512 * debian/rules: Install maas-dhcp-server upstart job.
1513 * debian/maas.postrm: Remove celery worker rabbitmq user and host.
1514 * debian/extras/99-maas-sudoers: Add for maas-dhcp-server upstart job
1515 instead of isc-dhcp-server (LP: #1055951)
1516 * debian/maas-region-controller.postinst: Cleanup upgrade rules.
1517 * debian/maas-cluster-controller.postinst: Fix 'local' usage.
1518 * debian/maas-common.install: Install celeryconfig in appropriate location.
1519 * debian/maas-cluster-controller.postrm: Add and delete maas user.
1520 * debian/maas-dhcp.postinst: Stop isc-dhcp-server not isc_dhcp_server.
1521 * debian/maas-region-controller.postinst:
1522 - Always update passwords on upgrade. No longer check versioning. (LP: #1060094).
1523 - Add MAAS server to allowed mirror in squid-deb-proxy
1524 - Source dbconfig conf file for maas-region-controller on upgrade because
1525 it writes a new config file and no longer preservers the previous password.
1526 * debian/maas-cluster-controller.maas-cluster-celery.upstart: Remove set{uid/gid}.
1527 * debian/maas-region-controller.install: Install maas-import-squashfs
1528 * Handle removal of non existant files (LP: #1059556):
1529 - debian/maintscript: Added to handle removal of conffiles.
1530 - debian/control: Add Pre-depends and bump debhelper version.
1531 * update po files for the templates.
1532 * debian/extras/99-maas: Install in usr/share/maas/conf and symlink to the
1533 appropriate etc dir.
1534 * debian/maas-cluster-controller.config: Source debconf at the beginning of the
1535 script. (LP: #1063857)
1536 * debian/patches/99-temporary-fix-constraints.patch: Fix constraints maaping
1537 when deploying with juju. Temporary until it gets merged upstream
1538
1539 [ Robie Basak ]
1540 * Add maas-cluster-controller dependency on uuid-runtime, needed for uuidgen
1541 by postinst.
1542
1543 [ Scott Moser ]
1544 * debian/maas-dhcp.{install,apparmor,postrm} install apparmor profile into
1545 /etc/apparmor.d/dhcpd.d (LP: #1049177), and update apparmor profile for
1546 /usr/sbin/dhcpd on install/remove
1547 * get the ip address for the dhcp server in config
1548
1549 [ Diogo Matsubara ]
1550 * Add initial tests to be run by autotests:
1551 - debian/control: XS-Testsuite: autopkgtest
1552 - debian/tests/control: Add
1553 - debian/tests/maas-package-test: Add
1554 - tests/maas-integration.py: Add
1555
1556 -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 08 Oct 2012 13:10:23 -0400
1557
1558maas (0.1+bzr971+dfsg-0ubuntu2) quantal; urgency=low
1559
1560 * debian/extras/99-maas-sudoers: Add missing rule for
1561 maas-provision. (LP: #1046397)
1562
1563 -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 05 Sep 2012 12:36:58 -0400
1564
1565maas (0.1+bzr971+dfsg-0ubuntu1) quantal; urgency=low
1566
1567 * New upstream release (LP: #1044367)
1568
1569 [ Julian Edwards ]
1570 * Fix 02-pserv-config.patch to handle new default tftp directory
1571
1572 [ Andres Rodriguez ]
1573 * debian/maas.postinst:
1574 - include '/MAAS' for DEFAULT_MAAS_URL.(LP: #1033956)
1575 - Update bzr version to safely upgrade.
1576 * Add maas-dns package that configures DNS in MAAS (LP: #1030860)
1577 * Remove cobbler related bits
1578 - debian/maas.postinst: Drop cobbler configuration
1579 - debian/maas.install: Drop installation of snippets/preseeds.
1580 - debian/control:
1581 + Drop Depends on maas-provision. (LP: #975473)
1582 + Depends on bind9utils.
1583 + Depends on python-lockfile (LP: #1037400)
1584 Add necessary Conflicts/Replaces. Add conflicts to tftpd-hpa and dnsmasq.
1585 Depends on isc-dhcp-server for maas-dhcp, and syslinux-common.
1586 - debian/extras/maas-provision: Add missing "$@" (LP: #1040462)
1587 - debian/patches:
1588 + 02-pserv-config.patch: Updated. Do not patch cobbler related bits.
1589 patch tftp config to default.
1590 * maas-dhcp: Re-add to handle initial configuration of MAAS DHCP server.
1591 * Allow restart of 'isc-dhcp-server' by adding a sudoers file:
1592 - debian/extras/99-maas-sudoers: Added.
1593 - debian/maas.install: Install 99-maas-sudoers
1594 * Minor improvements on dbconfig-common handling:
1595 - debian/maas.config: Only call dbc_go when scripts present.
1596 - debian/maas.postrm: Only call dbc_go when config file exists.
1597 * debian/maas.maas-celery.upstart: Enable Beat and set scheduler db file.
1598 * debian/maas-dns.postinst: Set correct permissions. (LP: #1042868)
1599 * debian/maas-dhcp.config:
1600 - Ask whether we want to enable DHCP (LP: #1044229)
1601 - Add debconf question for network interfaces
1602 * debian/maas.prerm: Stop services before removing database (LP: #1044559)
1603
1604 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 02 Aug 2012 09:01:43 -0400
1605
1606maas (0.1+bzr777+dfsg-0ubuntu1) quantal-proposed; urgency=low
1607
1608 * New upstream release
1609 * Only run 'maas' command as root. (LP: #974046)
1610 - debian/extras/maas: Check id.
1611 - debian/maas.install: Install in 'sbin'.
1612 * debian/maas.postinst:
1613 - restart apache2 after everything gets processed.
1614 - Update version to handle upgrades.
1615 * debian/extras/maas-provision: Add wrapper to access 'maasprovisiong'
1616 command line.
1617 * debian/patches/99_temporary_fix_path.patch: Dropped. No longer needed.
1618
1619 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 17 Jul 2012 08:28:36 -0400
1620
1621maas (0.1+bzr745+dfsg-0ubuntu2) quantal; urgency=low
1622
1623 * debian/control: Build-Dep on python-django instead of
1624 python-django-configglue
1625
1626 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 17 Jul 2012 08:24:25 -0400
1627
1628maas (0.1+bzr745+dfsg-0ubuntu1) quantal; urgency=low
1629
1630 * New Upstream Release
1631 * debian/patches:
1632 - 99_power_fixes.patch: Dropped. Merged Upstream.
1633 - 99_enums_js.patch: Dropped. No longer needed.
1634 * Automatically build enums.js:
1635 - debian/control: Build-Depends on python-django-configglue
1636 - debian/rules: Build and install enums.js.
1637 * debian/maas.postinst: Update version to handle upgrades
1638
1639 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 12 Jul 2012 16:34:11 -0400
1640
1641maas (0.1+bzr740+dfsg-0ubuntu1) quantal; urgency=low
1642
1643 * New upstream release
1644 * debian/control: Depends on python-txtftp.
1645 * debian/rules: Do not ship python-tx-tftp.
1646 * debian/maas.postinst: Update version to upgrade successfully.
1647 * debian/patches:
1648 - 02-pserv-config.patch: Refreshed.
1649 - 99_enums_js.patch: Updated.
1650 - 99_power_fixes.patch: Added temporarily to enable IPMI
1651 - 99_temporary_fix_path.patch: Added temporarily to not fail when
1652 importing celeryconfig
1653
1654 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 03 Jul 2012 17:54:49 -0400
1655
1656maas (0.1+bzr709+dfsg-0ubuntu1) quantal; urgency=low
1657
1658 * New Upstream release
1659 * debian/control:
1660 - Depends on python-celery, python-tempita, libjs-yui3-{full,min},
1661 libjs-raphael
1662 * debian/maas.install:
1663 - Install apiclient, celeryconfig.py, maas-import-pxe-files, preseeds_v2.
1664 - Update to install various files from chroot, rather tha manually copy
1665 them from the source.
1666 * debian/maas.links: symlink celeryconfig.py
1667 * debian/maas.maas-celery.upstart: Add job.
1668 * debian/rules:
1669 - Install celery upstart job.
1670 - Do not install jslibs as packages are now used.
1671 - Drop copying of maas_local_settings_sample.py as source now ships
1672 a maas_local_settings.py
1673 * debian/patches:
1674 - 04-maas-http-fix.patch: Drop. Merged upstream.
1675 - 01-fix-database-settings.patch: Refreshed.
1676 - 99_enums_js.patch: Added until creation of enum.js / build process
1677 is fixed.
1678 * debian/maas.postinst: Update bzr version to correctly handle upgrades.
1679
1680 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 03 Jul 2012 17:42:37 -0400
1681
1682maas (0.1+bzr482+dfsg-0ubuntu1) precise; urgency=low
1683
1684 * New upstream release (Fixes LP: #981103)
1685 * debian/maas.postinst:
1686 - Make sure rabbitmq and postgresql are started on upgrade (LP: #981282)
1687 - Handle upgrades from any lower than 0.1+bzr462+dfsg-0ubuntu1 to
1688 correctly re-generate passwords, and not have db sync/migrate issues
1689 as config has changed upstream.
1690 - Correctly set Passwords for PSERV, otherwise it won't set new passwords.
1691 * Allow MAAS_DEFAULT_URL reconfiguration. (LP: #980970)
1692 - debian/maas.config: Add reconfigure validation to correctly allow it,
1693 and ask a question.
1694 - debian/maas.postinst: Reconfigure DEFAULT_MAAS_URL as well as cobbler
1695 server and next_server for PXE/Provisioning.
1696 - debian/maas.templates: Add debconf question and update info.
1697 * Do not lose MAAS_DEFAULT_URL settings on upgrade (LP: #984309)
1698 * debian/maas.postinst:
1699 - Set cobbler password in between quotes (LP: #984427)
1700 - Do not change permissions to maas.log (LP: #980915)
1701 * no longer use maas-cloudimg2ephemeral, but rather use premade images
1702 at http://maas.ubuntu.com
1703
1704 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 17 Apr 2012 23:44:46 -0700
1705
1706maas (0.1+bzr462+dfsg-0ubuntu1) precise; urgency=low
1707
1708 * New upstream release (LP: #980240)
1709
1710 [ Scott Moser ]
1711 * add dependency on distro-info (LP: #949442)
1712 * debian/control: add dependency on tgt for ephemeral iscsi environment
1713
1714 [ Andres Rodriguez ]
1715 * Make package lintian clean:
1716 - maas{-dhcp}.lintian-overrides: Add to make lintian clean.
1717 - debian/control: Add missing dependencies; correct section and desc.
1718 - debian/maas.postinst: Do not use absolute path for rabbitmqctl.
1719 - debian/patches: Add headers to all patches.
1720 * debian/maas-dhcp.postrm: Added to disable dnsmasq in cobbler on removal.
1721 * debian/maas.config: Do not set a password with pwgen as it is not an
1722 essential package; allow dbconfig-common to create a password instead by
1723 creating an empty question. (LP: #977475)
1724 * Run MAAS, pserv, txlongpoll as non-root user. (LP: #975436)
1725 - debian/maas.postinst: Create user/group; set correct permissions for
1726 directories.
1727 - debian/maas.postrm: Remove user/group; restart apache2.
1728 - debian/maas.maas-{pserv,txlongpoll}.upstart: Update to run as non-root
1729 'maas' user.
1730 * debian/patches/01-fix-database-settings.patch: Remove adding of PSERV_URL.
1731 * debian/maas.postinst:
1732 - Handle config file upgrade from versions lower than 0.1+bzr445+dfsg-0ubuntu1,
1733 by creating new passwords and updating accordingly
1734 - use local variables in functions.
1735 - Handle maas tgt configuration for upgrades from 0.1+bzr459+dfsg-0ubuntu1.
1736 * debian/extras/99-maas: Add squid-deb-proxy file to enable PPAs. (LP: #979383)
1737 * debian/maas.install: Install missing commissioning-user-data script.
1738
1739 [ Dave Walker (Daviey) ]
1740 * debian/patches/02-pserv-config.patch: Refreshed to apply to updated config.
1741
1742 [ Gavin Panella ]
1743 * debian/maas.postinst: Update pserv.yaml and maas_local_settings.py to use
1744 password.
1745
1746 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 12 Apr 2012 16:37:53 -0400
1747
1748maas (0.1+bzr415+dfsg-0ubuntu2) precise; urgency=low
1749
1750 * debian/maas-dhcp.{config,postinst}:
1751 - Fix not setting new values on fresh install. (LP: #975321)
1752 - Fix unsetting domain, otherwise, even if disabled, it will always be set.
1753 * debian/control: Depends on maas for maas-dhcp.
1754
1755 -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 06 Apr 2012 15:30:44 -0400
1756
1757maas (0.1+bzr415+dfsg-0ubuntu1) precise; urgency=low
1758
1759 * debian/control: Update package descriptions; Suggests maas-dhcp for maas
1760 and add a maas-dhcp binary.
1761 * Add maas-dhcp package to configure a DHCP server.
1762 - debian/maas-dhcp.config: Add to ask debconf questions about range,
1763 gateway, and domain.
1764 - debian/maas-dhcp.postinst: Handle update of config values.
1765 - debian/maas-dhcp.templates: Debconf questions.
1766 * debian/po: Update for templates.
1767 * Add message telling MAAS URL after installation.
1768 - debian/maas.templates: Add message.
1769 - debian/maas.postinst: Display message.
1770 * debian/maas.config: Hide dbconfig-install question.
1771
1772 -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 04 Apr 2012 14:47:13 -0400
1773
1774maas (0.1+bzr400+dfsg-0ubuntu1) precise; urgency=low
1775
1776 * debian/patches/{02-pserv-config,03-txlongpoll-config}.patch: Refreshed.
1777 * debian/maas.install: Install maas-gc cronjob.
1778 * Add apport hook.
1779 - debian/maas.apport: Add hook.
1780 - debian/rules: Install with apport.
1781 * debian/maas.logrotate: Add logrotate for txlongpoll and pserv logs.
1782 * Create 'var/lib/media/maas/storage' on postinst to have right permissions.
1783 - debian/maas.dirs: Drop dir creation.
1784 - debian/maas.postinst: Create dir with correct permissions.
1785 - debian/maas.postrm: Remove dir on purge.
1786
1787 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 03 Apr 2012 14:50:34 -0400
1788
1789maas (0.1+bzr378+dfsg-0ubuntu1) precise; urgency=low
1790
1791 * maas.dirs: Create var/lib/maas/media/storage for juju storage.
1792 * maas.postinst:
1793 - Give correct permissions to above dir.
1794 - stop apache2 before db upgrade, and restart after.
1795
1796 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 29 Mar 2012 19:28:13 -0400
1797
1798maas (0.1+bzr363+dfsg-0ubuntu1) precise; urgency=low
1799
1800 [ Dave Walker (Daviey) ]
1801 * debian/control: Add openssh-server as a Recommends, and wrap-and-sort.
1802
1803 [ Andres Rodriguez ]
1804 * debian/maas.postinst:
1805 - Do not start apache with apache2ctl. Use invoke-rc.d instead to not
1806 fail in the installer.
1807 - For start of postgresql before creating the DB, otherwise it will
1808 fail in the installer.
1809 - Add check of invoke-rc.d for syslog.
1810 - Add check of invoke-rc.d for rabbitmq-server; Add check for rabbitmqctl
1811 - Add db_stop, in case invoke-rc.d fails.
1812 * debian/control: Tight python-django-maas dependency.
1813 * debian/postrm: Add check for rabbitmqctl.
1814 * debian/maas.maas-txlongpoll.upstart: Create rabbitmq longpoll user/vhost
1815 and set permissions if they don't exist. Start on rabbitmq-server-running.
1816
1817 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 27 Mar 2012 14:49:56 -0400
1818
1819maas (0.1+bzr338+dfsg-0ubuntu1) precise; urgency=low
1820
1821 [ Dave Walker (Daviey) ]
1822 * d/patches/03-txlongpoll-config.patch: Resolve typo error from prior patch.
1823 - LP: #961031
1824
1825 [ Andres Rodriguez ]
1826 * debian/maas.config: Don't allow reconfigure.
1827 * debian/maas.postinst: Don't allow reconfigure. Run sync/migrate db on
1828 all upgrades.
1829
1830 [ Scott Moser ]
1831 * add rsylog config for logging node boots (LP: 960149)
1832
1833 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 22 Mar 2012 10:56:58 -0400
1834
1835maas (0.1+bzr315+dfsg-0ubuntu1) precise; urgency=low
1836
1837 * New upstream snapshot.
1838
1839 [ Dave Walker ]
1840 * debian/maas.postinst: Do not import ISO's at install time.
1841 * debian/control:
1842 - Drop run-one, it's not a requirement and currently in universe.
1843 - Drop python-setproctitle, no longer required.
1844
1845 [ Andres Rodriguez ]
1846 * debian/control: Depends on python-avahi, python-dbus, and avahi-daemon.
1847 * debian/maas.postinst:
1848 - Only syncdb if dbconfig db creation was selected.
1849 - Set rabbitmq/longpoll settings
1850 * debian/patches/03-txlongpoll-config.patch: Updated broker settings for
1851 rabbitmq.
1852
1853 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 20 Mar 2012 20:10:58 -0400
1854
1855maas (0.1+bzr300+dfsg-0ubuntu1) precise; urgency=low
1856
1857 * debian/patches:
1858 - 01-fix-database-settings.patch: Update PSERV_URL port.
1859 - 02-pserv-config.patch: Update, and set 'maas' as username.
1860 - 03-longpoll-config.patch: Update.
1861 * debian/maas.install: Install preseeds and snippets.
1862 * debian/maas.postinst:
1863 - Set password for 'maas' cobbler username (in pserv and cobbler).
1864 - Set DEFAULT_MAAS_URL to IP of interface with default gateway.
1865
1866 -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 16 Mar 2012 14:59:16 -0400
1867
1868maas (0.1+bzr295+dfsg-0ubuntu2) precise; urgency=low
1869
1870 * debian/patches:
1871 - 01-fix-database-settings.patch: Update to set PSERV_URL.
1872 - 02-pserv-config.patch: Set port to 8001.
1873 * debian/maas.postinst: Run maas-import-isos on install.
1874 * debian/control: Depends on rabbitmq-server.
1875
1876 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 15 Mar 2012 18:14:08 -0400
1877
1878maas (0.1+bzr295+dfsg-0ubuntu1) precise; urgency=low
1879
1880 * debian/maas.upstart: Specify pidfile and conffile.
1881 * debian/maas.postinst:
1882 - Only run syncdb if dbconfig postinst file exists.
1883 - Fix file permissions.
1884 * debian/maas.{postrm,prerm}: Add dbconfig-common support.
1885 * Add txlongpoll support for packaging:
1886 - debian/control: Depends on python-txlongpoll.
1887 - debian/maas.maas-longpoll.upstart: Added to start txlongpoll.
1888 - debian/maas.install: Install txlongpoll.yaml
1889 * debian/extras/maas: Improvements.
1890 * debian/maas.maas.upstart: Moved from debian/maas.upstart.
1891 * debian/maas.postinst: Touch logfile to set correct permissions (LP: #955400)
1892 * debian/maas.logrotate: Add.
1893 * debian/patches/03-txlongpoll-config.patch: Add default settings.
1894 * debian/maas.config: Only run dbconfig-common on configure/reconfigure.
1895 * Install maas_local_settings.py in /etc/maas and symlink to usr/share/maas
1896 * Update references from MaaS to MAAS.
1897 * Remove podebconf as templates no longer exist.
1898 - debian/po: Remove.
1899 - debian/control: Drop Build-Depends on po-debconf
1900
1901 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 15 Mar 2012 15:28:14 -0400
1902
1903maas (0.1+bzr266+dfsg-0ubuntu1) precise; urgency=low
1904
1905 * Remove support for squid3 and use squid-deb-proxy instead.
1906 * debian/extras/maas: Add to handle syncdb and creation of admin user.
1907 * Add debconf questions to ask for user/pass:
1908 - debian/maas.{template,config}: Add
1909 - debian/maas.postinst: Ask debconf questions.
1910 - debian/po: Add translation templates.i
1911 * debian/maas.postinst: Enable wsgi module; drop squid3 steps.
1912 * debian/maas.postrm: removed.
1913 * debian/patches/01-fix-database-settings.patch: Custom database settings
1914 and static files path.
1915 * debian/{rules,maas.install}: Install maas static files in
1916 'usr/share/maas/web/static'.
1917 * Integrate cobbler:
1918 - debian/maas.install: Install pserv twisted plugin, and config.
1919 - debian/maas.upstart: Created to start plugin daemon.
1920 - debian/patches/02-pserv-config.patch: Custom pserv config.
1921 * Integrate dbconfig-common:
1922 - debian/maas.config: Added and default user/pass and database.
1923 - debian/maas.{postinst,postrm}: Added handling for dbconfig-common
1924 * debian/control: Depends on python-convoy.
1925 * debian/rules: Update path to removal of dsfg files.
1926 * debian/patches/01-fix-database-settings.patch: Updated.
1927
1928 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 13 Mar 2012 14:31:50 -0400
1929
1930maas (0.1+bzr232+dfsg-0ubuntu1) precise; urgency=low
1931
1932 * New upstream snapshot.
1933
1934 [ Dave Walker ]
1935 * debian/control:
1936 - Changed depends from psycopg2 to python-psycopg2 and dropped versioning.
1937 - LP: #937982
1938
1939 [ Andres Rodriguez ]
1940 * debian/maas.install: Install maas-import-isos and related files.
1941 * Integrate squid3 as proxy solution:
1942 - debian/extras/squid.conf: Added
1943 - debian/control: Depend on squid3.
1944 - debian/maas.{postinst,postrm}: Handle installation/removal of custom
1945 squid config file.
1946 * Split into different binary packages (maas,python-django-maas).
1947 - debian/maas.postinst: Handle the apache2 configuration.
1948
1949 -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 07 Mar 2012 12:46:17 -0500
1950
1951maas (0.1+bzr171+dfsg-0ubuntu1) precise; urgency=low
1952
1953 * New upstream snapshot, post 0.1 release.
1954 * debian/control:
1955 - Drop depends on rabbitmq-server, no longer required.
1956 * debian/watch: Introduced watch file.
1957
1958 -- Dave Walker (Daviey) <DaveWalker@ubuntu.com> Thu, 23 Feb 2012 13:08:12 +0000
1959
1960maas (0.1~bzr146+dfsg-0ubuntu1) precise; urgency=low
1961
1962 * Initial release
1963
1964 -- Julian Edwards <julian.edwards@canonical.com> Thu, 16 Jan 2012 15:29:07 +0000
01965
=== added file 'debian/compat'
--- debian/compat 1970-01-01 00:00:00 +0000
+++ debian/compat 2016-04-16 02:29:52 +0000
@@ -0,0 +1,1 @@
17
02
=== added file 'debian/control'
--- debian/control 1970-01-01 00:00:00 +0000
+++ debian/control 2016-04-16 02:29:52 +0000
@@ -0,0 +1,294 @@
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-python,
8 dh-systemd,
9 po-debconf,
10 python3-all,
11 python3-django,
12 python3-setuptools,
13 python3-twisted
14Standards-Version: 3.9.7
15X-Python3-Version: >= 3.5
16Homepage: http://maas.io/
17
18Package: maas
19Architecture: all
20Depends: maas-rack-controller (= ${binary:Version}),
21 maas-region-controller (= ${binary:Version}),
22 python3-django-maas (= ${binary:Version}),
23 ${misc:Depends}
24Description: "Metal as a Service" is a physical cloud and IPAM
25 MAAS runs a software-defined data centre - it turns a collection of physical
26 servers and switches into a bare metal cloud with full open source IP address
27 management (IPAM) and instant provisioning on demand.
28 .
29 MAAS controls the servers through IPMI or another BMC or converged chassis
30 controller such as Cisco UCS. It provides a full inventory of components,
31 and can install Ubuntu, CentOS or Windows very fast on any server under
32 its control. It can also track and provide DHCP and DNS for other devices
33 on the network.
34 .
35 MAAS handles VLANs and fabrics that span many trunked switches, as well as
36 the routing-centric infrastructure typically used for large-scale OpenStack
37 or other scale-out deployments. MAAS manages IP addresses and provides APIs
38 for address assignment and release. MAAS can also allocate IP addresses for
39 containers on machines, and release them when the machine is repurposed. MAAS
40 provides PXE, DHCP, DNS and other low-level services to ensure the cluster
41 works smoothly.
42 .
43 MAAS works with any configuration system, and is recommended by the teams
44 behind both Chef and Juju as a physical provisioning system.
45 .
46 MAAS provides:
47 .
48 * Hardware inventory of servers
49 * Dynamic provisioning based on name or attributes such as disk, RAM, cores,
50 nics, networking, gpu’s or architecture
51 * DNS and DHCP as needed
52 * PXE boot services
53 .
54 This package is a metapackage which installs all of the separate components
55 of MAAS on a single machine.
56
57Package: maas-common
58Architecture: all
59Depends: ${misc:Depends}
60Breaks: maas ( <= 0.1+bzr1048+dfsg-0ubuntu1 )
61Replaces: maas ( <= 0.1+bzr1048+dfsg-0ubuntu1 )
62Description: MAAS server common files
63 This package contains the common files for any MAAS installation.
64
65Package: maas-region-api
66Architecture: all
67Depends: apache2,
68 bind9utils,
69 iproute2,
70 libjs-angularjs,
71 libjs-yui3-full,
72 libjs-yui3-min,
73 maas-common (= ${binary:Version}),
74 maas-proxy (= ${binary:Version}),
75 python3-bson,
76 python3-django,
77 python3-django-maas (= ${binary:Version}),
78 python3-django-piston3,
79 python3-djorm-ext-pgarray,
80 python3-maas-provisioningserver (= ${binary:Version}),
81 python3-petname,
82 python3-requests,
83 rsyslog,
84 ubuntu-cloudimage-keyring,
85 ${misc:Depends},
86 ${python3:Depends}
87Conflicts: maas-region-controller-min
88Replaces: maas-region-controller-min
89Provides: maas-region-controller-min
90Description: Region controller API service for MAAS
91 The MAAS region controller consists of REST API services and a postgres
92 database. This package installs only the API services (maas-regiond).
93 Use it to scale out the API front-end of your MAAS region controller.
94
95Package: maas-region-controller
96Architecture: all
97Depends: dbconfig-pgsql,
98 maas-dns (= ${binary:Version}),
99 maas-region-api (= ${binary:Version}),
100 postgresql (>= 9.1),
101 ${misc:Depends},
102Recommends: openssh-server
103Description: Region Controller for MAAS
104 The MAAS region controller (maas-regiond) is the REST API server for
105 all MAAS clients, and the postgres database that maintains machine
106 state for the entire data centre (or “region”). The region controller
107 an be scaled-out and highly available given the appropriate postgres
108 setup and additional API servers.
109 .
110 This package installs the postgres database and the API server, so it
111 is appropriate for the initial installation of a new MAAS region. To
112 scale out the controller or make it highly available, install
113 maas-region-controller-api on additional servers and ensure the
114 postgres database is HA too.
115
116Package: python3-maas-provisioningserver
117Section: python
118Architecture: all
119Depends: archdetect-deb,
120 lshw,
121 python3-bson,
122 python3-crochet,
123 python3-curtin (>> 0.1.0~bzr351),
124 python3-distro-info,
125 python3-formencode,
126 python3-jsonschema,
127 python3-lxml,
128 python3-maas-client (= ${binary:Version}),
129 python3-netifaces,
130 python3-oauth,
131 python3-oauthlib,
132 python3-paramiko,
133 python3-pexpect,
134 python3-pyparsing,
135 python3-pyvmomi,
136 python3-seamicroclient,
137 python3-simplejson,
138 python3-simplestreams,
139 python3-tempita,
140 python3-twisted,
141 python3-txtftp,
142 python3-yaml,
143 python3-zope.interface,
144 isc-dhcp-client,
145 iproute2,
146 ${misc:Depends},
147 ${python3:Depends}
148Description: MAAS server provisioning libraries (Python 3)
149 This package provides the MAAS provisioning server python libraries.
150 .
151 This package contains Python 3 libraries.
152
153Package: maas-cli
154Architecture: all
155Depends: python3-maas-client (= ${binary:Version}),
156 ${misc:Depends},
157 ${python3:Depends}
158Conflicts: maas-region-controller-min (<= 1.5+bzr1909-0ubuntu1)
159Replaces: maas-region-controller-min (<= 1.5+bzr1909-0ubuntu1)
160Description: MAAS client and command-line interface
161 This package contains the 'maas' command-line interface, which
162 talks to the MAAS region controller REST API. Use the maas command
163 to login to MAAS and drive the data centre entirely from the
164 command-line.
165
166Package: python3-maas-client
167Section: python
168Architecture: all
169Depends: python3-httplib2,
170 python3-oauth,
171 ${misc:Depends},
172 ${python3:Depends}
173Breaks: python-maas-client, maas-cli ( <= 2.0.0~alpha4+bzr4843-0ubuntu1 )
174Replaces: python-maas-client, maas-cli ( <= 2.0.0~alpha4+bzr4843-0ubuntu1 )
175Description: MAAS python API client (Python 3)
176 This package contains the MAAS client API Python modules.
177 .
178 This package contains Python 3 modules.
179
180Package: maas-rack-controller
181Architecture: all
182Depends: authbind,
183 bind9utils,
184 distro-info,
185 freeipmi-tools,
186 grub-common,
187 maas-cli (=${binary:Version}),
188 maas-common (=${binary:Version}),
189 maas-dhcp (=${binary:Version}),
190 pxelinux | syslinux-common (<< 3:6.00~pre4+dfsg-5),
191 python3-httplib2,
192 python3-maas-provisioningserver (=${binary:Version}),
193 python3-netaddr,
194 python3-tempita,
195 python3-twisted,
196 python3-zope.interface,
197 rsyslog,
198 syslinux-common,
199 tgt,
200 uuid-runtime,
201 wget,
202 ${misc:Depends},
203 ${python3:Depends}
204Suggests: amtterm, ipmitool, libvirt-bin, wsmancli
205Conflicts: tftpd-hpa
206Breaks: python-maas-provisioningserver,
207 maas-cluster-controller
208Replaces: python-maas-provisioningserver,
209 maas-cluster-controller
210Description: Rack Controller for MAAS
211 The MAAS rack controller (maas-rackd) provides highly available, fast
212 and local broadcast services to the machines provisioned by MAAS. You
213 need a MAAS rack controller attached to each fabric (which is a set of
214 trunked switches). You can attach multiple rack controllers to these
215 physical networks for high availability, with secondary rack controllers
216 automatically stepping to provide these services if the primary rack
217 controller fails.
218 .
219 A common configuration is to have a rack controller in each rack, with
220 a fast primary network interface to the rack switch and secondary
221 network interfaces on one or two other nearby racks for high
222 availability redundancy.
223 .
224 This package depends on the necessary components to provide iSCSI,
225 DHCP, TFTP and power management.
226
227Package: python3-django-maas
228Section: python
229Architecture: all
230Depends: python3-apt,
231 python3-convoy,
232 python3-crochet,
233 python3-curtin (>> 0.1.0~bzr275),
234 python3-lxml,
235 python3-maas-client (= ${binary:Version}),
236 python3-netaddr,
237 python3-psycopg2,
238 python3-sphinx,
239 python3-tempita,
240 python3-twisted,
241 python3-zope.interface,
242 ${misc:Depends},
243 ${python3:Depends}
244Breaks: python-django-maas
245Replaces: python-django-maas
246Description: MAAS server Django web framework (Python 3)
247 This package provides the Django web framework for MAAS.
248 .
249 This package contains Python 3 modules.
250
251Package: maas-dhcp
252Architecture: all
253Depends: isc-dhcp-server (>= 4.3.3-5ubuntu10~), ${misc:Depends}
254Description: MAAS DHCP server
255 This package installs and configures a DHCP server that can be used by
256 MAAS, and enhances the overall MAAS user experience.
257
258Package: maas-dns
259Architecture: all
260Depends: bind9 (>= 1:9.10.3.dfsg.P2-5~),
261 maas-region-api (= ${binary:Version}),
262 ${misc:Depends}
263Conflicts: dnsmasq
264Description: MAAS DNS server
265 This package installs and configures a DNS server that can be used by
266 MAAS, and enhances the overall MAAS user experience.
267
268Package: maas-proxy
269Architecture: all
270Depends: squid3, ${misc:Depends}
271Conflicts: squid-deb-proxy
272Description: MAAS Caching Proxy
273 This package installs and configures a Caching Proxy server that can be
274 used by MAAS. It enhances the overall MAAS user experience.
275
276Package: maas-region-udeb
277Package-Type: udeb
278Section: debian-installer
279Architecture: all
280Depends:
281 ${shlibs:Depends},
282 ${misc:Depends}
283XB-Installer-Menu-Item: 2350
284Description: Install a MAAS server (installer integration)
285
286Package: maas-rack-udeb
287Package-Type: udeb
288Section: debian-installer
289Architecture: all
290Depends:
291 ${shlibs:Depends},
292 ${misc:Depends}
293XB-Installer-Menu-Item: 2350
294Description: Install a MAAS Rack controller (installer integration)
0295
=== added file 'debian/copyright'
--- debian/copyright 1970-01-01 00:00:00 +0000
+++ debian/copyright 2016-04-16 02:29:52 +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 2016-04-16 02:29:52 +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-region-sudoers'
--- debian/extras/99-maas-region-sudoers 1970-01-01 00:00:00 +0000
+++ debian/extras/99-maas-region-sudoers 2016-04-16 02:29:52 +0000
@@ -0,0 +1,7 @@
1maas ALL= NOPASSWD: /bin/systemctl status bind9
2maas ALL= NOPASSWD: /bin/systemctl start bind9
3maas ALL= NOPASSWD: /bin/systemctl status maas-proxy
4maas ALL= NOPASSWD: /bin/systemctl start maas-proxy
5maas ALL= NOPASSWD: /bin/systemctl reload maas-proxy
6maas ALL= NOPASSWD: /bin/systemctl restart maas-proxy
7maas ALL= NOPASSWD: /bin/systemctl stop maas-proxy
08
=== added file 'debian/extras/99-maas-sudoers'
--- debian/extras/99-maas-sudoers 1970-01-01 00:00:00 +0000
+++ debian/extras/99-maas-sudoers 2016-04-16 02:29:52 +0000
@@ -0,0 +1,14 @@
1maas ALL= NOPASSWD: /bin/systemctl status maas-dhcpd
2maas ALL= NOPASSWD: /bin/systemctl start maas-dhcpd
3maas ALL= NOPASSWD: /bin/systemctl restart maas-dhcpd
4maas ALL= NOPASSWD: /bin/systemctl stop maas-dhcpd
5maas ALL= NOPASSWD: /bin/systemctl status maas-dhcpd6
6maas ALL= NOPASSWD: /bin/systemctl start maas-dhcpd6
7maas ALL= NOPASSWD: /bin/systemctl restart maas-dhcpd6
8maas ALL= NOPASSWD: /bin/systemctl stop maas-dhcpd6
9maas ALL= NOPASSWD: /bin/systemctl status tgt
10maas ALL= NOPASSWD: /bin/systemctl start tgt
11maas ALL= NOPASSWD: /usr/sbin/maas-rack
12maas ALL= NOPASSWD: SETENV: /usr/sbin/tgt-admin, /usr/bin/uec2roottar
13maas ALL= NOPASSWD: /usr/bin/lshw
14maas ALL= NOPASSWD: /sbin/blockdev
015
=== 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 2016-04-16 02:29:52 +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 2016-04-16 02:29:52 +0000
@@ -0,0 +1,13 @@
1#!/usr/bin/env python3
2
3import sys
4import maascli
5
6if sys.argv[0].split('/')[-1:] == "maas-cli":
7 sys.stderr.write("""
8 WARNING: The maas-cli command is deprecated and will be removed in a future
9 version. From now on please use 'maas' instead.
10""")
11
12sys.exit(maascli.main())
13
014
=== added file 'debian/extras/maas-probe-dhcp'
--- debian/extras/maas-probe-dhcp 1970-01-01 00:00:00 +0000
+++ debian/extras/maas-probe-dhcp 2016-04-16 02:29:52 +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/python3 -m provisioningserver.dhcp.probe "$@"
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 2016-04-16 02:29:52 +0000
@@ -0,0 +1,23 @@
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 [ -f /var/lib/maas/maas-proxy.conf ]; then
19 if [ ! -d /var/cache/maas-proxy/00 ]; then
20 $SQUID -z -N -f /var/lib/maas/maas-proxy.conf
21 fi
22 fi
23}
024
=== added file 'debian/extras/maas-rack'
--- debian/extras/maas-rack 1970-01-01 00:00:00 +0000
+++ debian/extras/maas-rack 2016-04-16 02:29:52 +0000
@@ -0,0 +1,76 @@
1#!/usr/bin/python3
2# Copyright 2016 Canonical Ltd. This software is licensed under the
3# GNU Affero General Public License version 3 (see the file LICENSE).
4
5from __future__ import (
6 absolute_import,
7 print_function,
8 unicode_literals,
9)
10
11str = None
12
13__metaclass__ = type
14__all__ = []
15
16import grp
17import os
18import pwd
19import sys
20
21
22def check_users(users):
23 """Check that the runnig user is in users."""
24 uid = os.getuid()
25 for user in users:
26 user_uid = pwd.getpwnam(user)[2]
27 if uid == user_uid:
28 return user
29 raise SystemExit("This utility may only be run as %s." % ", ".join(users))
30
31
32def set_group():
33 # Ensure that we're running as the `maas` group.
34 try:
35 gr_maas = grp.getgrnam("maas")
36 except KeyError:
37 raise SystemExit("No such group: maas")
38 else:
39 os.setegid(gr_maas.gr_gid)
40
41
42def set_umask():
43 # Prevent creation of world-readable (or writable, executable) files.
44 os.umask(0o007)
45
46
47def run():
48 # Run the main provisioning script.
49 from provisioningserver.__main__ import main
50 main()
51
52
53def main():
54 if 'maas-provision' in sys.argv[0]:
55 sys.stderr.write(
56 "WARNING: The maas-provision command is deprecated and will be "
57 "removed in a future version. From now on please use 'maas-rack' "
58 "instead.\n")
59
60 # Allow dhcpd user to call dhcp-notify.
61 users = ["root"]
62 if len(sys.argv) > 1:
63 if sys.argv[1] == "dhcp-notify":
64 users.append("dhcpd")
65
66 # Only set the group and umask when running as root.
67 if check_users(users) == "root":
68 set_group()
69 set_umask()
70
71 # Run the script.
72 run()
73
74
75if __name__ == "__main__":
76 main()
077
=== added file 'debian/extras/maas-region'
--- debian/extras/maas-region 1970-01-01 00:00:00 +0000
+++ debian/extras/maas-region 2016-04-16 02:29:52 +0000
@@ -0,0 +1,67 @@
1#!/usr/bin/python3
2# Copyright 2016 Canonical Ltd. This software is licensed under the
3# GNU Affero General Public License version 3 (see the file LICENSE).
4
5from __future__ import (
6 absolute_import,
7 print_function,
8 unicode_literals,
9)
10
11str = None
12
13__metaclass__ = type
14__all__ = []
15
16import grp
17import os
18import sys
19
20
21def check_user():
22 # At present, only root should execute this.
23 if os.getuid() != 0:
24 raise SystemExit("This utility may only be run as root.")
25
26
27def set_group():
28 # Ensure that we're running as the `maas` group.
29 try:
30 gr_maas = grp.getgrnam("maas")
31 except KeyError:
32 raise SystemExit("No such group: maas")
33 else:
34 os.setegid(gr_maas.gr_gid)
35
36
37def set_umask():
38 # Prevent creation of world-readable (or writable, executable) files.
39 os.umask(0o007)
40
41
42def run():
43 # Force the production MAAS Django configuration.
44 os.environ.setdefault("DJANGO_SETTINGS_MODULE", "maas.settings")
45
46 # The Django configuration lives outside of sys.path.
47 sys.path.append('/usr/share/maas')
48
49 # Let Django do the rest.
50 from django.core import management
51 management.execute_from_command_line()
52
53
54def main():
55 if 'maas-region-admin' in sys.argv[0]:
56 sys.stderr.write(
57 "WARNING: The maas-region-admin command is deprecated and will be "
58 "removed in a future version. From now on please use 'maas-region' "
59 "instead.\n")
60 check_user()
61 set_group()
62 set_umask()
63 run()
64
65
66if __name__ == "__main__":
67 main()
068
=== 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 2016-04-16 02:29:52 +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 2016-04-16 02:29:52 +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 2016-04-16 02:29:52 +0000
@@ -0,0 +1,1 @@
1debian/extras/maas usr/bin
02
=== added file 'debian/maas-cli.links'
--- debian/maas-cli.links 1970-01-01 00:00:00 +0000
+++ debian/maas-cli.links 2016-04-16 02:29:52 +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 2016-04-16 02:29:52 +0000
@@ -0,0 +1,1 @@
1maas-cli: binary-without-manpage usr/bin/maas-cli
02
=== added file 'debian/maas-common.dirs'
--- debian/maas-common.dirs 1970-01-01 00:00:00 +0000
+++ debian/maas-common.dirs 2016-04-16 02:29:52 +0000
@@ -0,0 +1,2 @@
1var/log/maas
2var/lib/maas
03
=== added file 'debian/maas-common.install'
--- debian/maas-common.install 1970-01-01 00:00:00 +0000
+++ debian/maas-common.install 2016-04-16 02:29:52 +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 2016-04-16 02:29:52 +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 2016-04-16 02:29:52 +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 2016-04-16 02:29:52 +0000
@@ -0,0 +1,38 @@
1#!/bin/sh
2
3set -e
4
5configure_logging() {
6 # Logging directory (/var/log/maas)
7 chown maas:maas /var/log/maas/
8
9 if [ ! -f /var/log/maas/maas.log ]; then
10 touch /var/log/maas/maas.log
11 fi
12 chown syslog:syslog /var/log/maas/maas.log
13}
14
15configure_lib_dir() {
16 # Ensure lib dir has correct permissions
17 chown maas:maas /var/lib/maas/
18
19 if [ -d /var/lib/maas/gnupg ]; then
20 chown -R maas:maas /var/lib/maas/gnupg
21 fi
22}
23
24add_user_group(){
25 local user="maas"
26 local group="maas"
27 local home="/var/lib/maas"
28 addgroup --quiet --system "$group" || true
29 adduser --quiet --system --group --home "$home" "$user" || true
30}
31
32ln -sf /usr/share/maas/maas-rsyslog.conf /etc/rsyslog.d/99-maas.conf
33
34add_user_group
35configure_logging
36configure_lib_dir
37
38#DEBHELPER#
039
=== added file 'debian/maas-common.postrm'
--- debian/maas-common.postrm 1970-01-01 00:00:00 +0000
+++ debian/maas-common.postrm 2016-04-16 02:29:52 +0000
@@ -0,0 +1,21 @@
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
12 rm -rf /var/log/maas/maas.log
13 rm -rf /var/lib/maas/gnupg
14 rm -rf /var/lib/maas/secret
15 rm -rf /var/lib/maas/maas_id
16
17esac
18
19rm -f /etc/rsyslog.d/99-maas.conf
20
21#DEBHELPER#
022
=== added file 'debian/maas-common.templates'
--- debian/maas-common.templates 1970-01-01 00:00:00 +0000
+++ debian/maas-common.templates 2016-04-16 02:29:52 +0000
@@ -0,0 +1,53 @@
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.
23
24Template: maas/username
25Type: string
26_Description: Ubuntu MAAS username
27 The Ubuntu MAAS server requires the administrator to create a
28 username and password combination.
29 .
30 Please provide the username for the MAAS account.
31
32Template: maas/password
33Type: password
34_Description: Ubuntu MAAS password
35 The Ubuntu MAAS server requires the administrator to create a
36 username and password combination.
37 .
38 Please provide the password for the MAAS account.
39
40Template: maas-rack-controller/maas-url
41Type: string
42_Description: Ubuntu MAAS API address:
43 The MAAS cluster controller and nodes need to contact the MAAS region
44 controller API. Set the URL at which they can reach the MAAS API remotely,
45 e.g. "http://192.168.1.1/MAAS".
46 Since nodes must be able to access this URL, localhost or 127.0.0.1 are not
47 useful values here.
48
49Template: maas-rack-controller/shared-secret
50Type: password
51_Description: MAAS Cluster Controller Shared Secret:
52 The MAAS Cluster Controller needs to contact the MAAS server
53 with a share secret. Set the shared secret here.
054
=== added file 'debian/maas-dhcp.apparmor'
--- debian/maas-dhcp.apparmor 1970-01-01 00:00:00 +0000
+++ debian/maas-dhcp.apparmor 2016-04-16 02:29:52 +0000
@@ -0,0 +1,10 @@
1/run/maas/dhcp/ r,
2/run/maas/dhcp/** r,
3/run/maas/dhcp/*.pid lrw,
4/run/maas/dhcp/*.trace lrw,
5/run/maas/dhcp/*.leases* lrw,
6/var/lib/maas/dhcp/dhcpd*.leases* lrw,
7/var/lib/maas/dhcpd.conf r,
8/var/lib/maas/dhcpd6.conf r,
9/usr/sbin/maas-dhcp-helper Ux,
10/tmp/maas-dhcpd-* r,
011
=== added file 'debian/maas-dhcp.dirs'
--- debian/maas-dhcp.dirs 1970-01-01 00:00:00 +0000
+++ debian/maas-dhcp.dirs 2016-04-16 02:29:52 +0000
@@ -0,0 +1,2 @@
1var/lib/maas
2var/lib/maas/dhcp
03
=== added file 'debian/maas-dhcp.install'
--- debian/maas-dhcp.install 1970-01-01 00:00:00 +0000
+++ debian/maas-dhcp.install 2016-04-16 02:29:52 +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 2016-04-16 02:29:52 +0000
@@ -0,0 +1,28 @@
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
7BindsTo=maas-rackd.service
8ConditionPathExists=/var/lib/maas/dhcpd.conf
9ConditionPathExists=/var/lib/maas/dhcpd-interfaces
10
11[Service]
12# Allow dhcp server to write lease and pid file as 'dhcpd' user
13ExecStartPre=/bin/mkdir -p /run/maas/dhcp
14# The leases files need to be root:dhcpd even when dropping privileges
15ExecStartPre=/bin/mkdir -p /var/lib/maas/dhcp
16# Start the daemon
17ExecStart=/bin/sh -ec '\
18 INTERFACES=$(cat /var/lib/maas/dhcpd-interfaces); \
19 LEASES_FILE=/var/lib/maas/dhcp/dhcpd.leases; \
20 [ -e $LEASES_FILE ] || touch $LEASES_FILE; \
21 /usr/sbin/maas-dhcp-helper clean $LEASES_FILE; \
22 chown root:dhcpd /var/lib/maas/dhcp $LEASES_FILE; \
23 chmod 775 /var/lib/maas/dhcp ; chmod 664 $LEASES_FILE; \
24 exec dhcpd -user dhcpd -group dhcpd -f -q -4 -pf /run/maas/dhcp/dhcpd.pid \
25 -cf /var/lib/maas/dhcpd.conf -lf $LEASES_FILE $INTERFACES'
26
27[Install]
28WantedBy=multi-user.target
029
=== 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 2016-04-16 02:29:52 +0000
@@ -0,0 +1,28 @@
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
7BindsTo=maas-rackd.service
8ConditionPathExists=/var/lib/maas/dhcpd6.conf
9ConditionPathExists=/var/lib/maas/dhcpd-interfaces
10
11[Service]
12# Allow dhcp server to write lease and pid file as 'dhcpd' user
13ExecStartPre=/bin/mkdir -p /run/maas/dhcp
14# The leases files need to be root:dhcpd even when dropping privileges
15ExecStartPre=/bin/mkdir -p /var/lib/maas/dhcp
16# Start the daemon
17ExecStart=/bin/sh -ec '\
18 INTERFACES=$(cat /var/lib/maas/dhcpd6-interfaces); \
19 LEASES_FILE=/var/lib/maas/dhcp/dhcpd6.leases; \
20 [ -e $LEASES_FILE ] || touch $LEASES_FILE; \
21 /usr/sbin/maas-dhcp-helper clean $LEASES_FILE; \
22 chown root:dhcpd /var/lib/maas/dhcp $LEASES_FILE; \
23 chmod 775 /var/lib/maas/dhcp ; chmod 664 $LEASES_FILE; \
24 exec dhcpd -user dhcpd -group dhcpd -f -6 -pf /run/maas/dhcp/dhcpd6.pid \
25 -cf /var/lib/maas/dhcpd6.conf -lf $LEASES_FILE $INTERFACES'
26
27[Install]
28WantedBy=multi-user.target
029
=== added file 'debian/maas-dhcp.maintscript'
--- debian/maas-dhcp.maintscript 1970-01-01 00:00:00 +0000
+++ debian/maas-dhcp.maintscript 2016-04-16 02:29:52 +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 2016-04-16 02:29:52 +0000
@@ -0,0 +1,35 @@
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 systemctl stop isc-dhcp-server >/dev/null || true
10 systemctl disable isc-dhcp-server >/dev/null || true
11 systemctl stop isc-dhcp-server6 >/dev/null || true
12 systemctl disable isc-dhcp-server6 >/dev/null || true
13
14 dhcpd_prof="/etc/apparmor.d/usr.sbin.dhcpd"
15 if [ -f "${dhcpd_prof}" ] && command -v apparmor_parser >/dev/null 2>&1
16 then
17 apparmor_parser --replace --write-cache --skip-read-cache "${dhcpd_prof}" || true
18 fi
19
20 # Starting from 1.9, these config files are no longer stored in
21 # /etc/maas, but are stored in /var/lib/maas. Note that these
22 # are created automatically by MAAS. On upgrades, however, these
23 # need to be moved to not break DHCP.
24 if [ -f /etc/maas/dhcpd.conf ]; then
25 mv /etc/maas/dhcpd.conf /var/lib/maas/
26 fi
27 if [ -f /etc/maas/dhcpd6.conf ]; then
28 mv /etc/maas/dhcpd6.conf /var/lib/maas/
29 fi
30
31 # Ensure ownership is correct
32 chown root:dhcpd /var/lib/maas/dhcp
33fi
34
35#DEBHELPER#
036
=== added file 'debian/maas-dhcp.postrm'
--- debian/maas-dhcp.postrm 1970-01-01 00:00:00 +0000
+++ debian/maas-dhcp.postrm 2016-04-16 02:29:52 +0000
@@ -0,0 +1,16 @@
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}" || true
10 fi
11 if [ "$1" = "purge" ]; then
12 rm -rf /var/lib/maas/dhcp
13 fi
14fi
15
16#DEBHELPER#
017
=== added file 'debian/maas-dhcp.preinst'
--- debian/maas-dhcp.preinst 1970-01-01 00:00:00 +0000
+++ debian/maas-dhcp.preinst 2016-04-16 02:29:52 +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 2016-04-16 02:29:52 +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 2016-04-16 02:29:52 +0000
@@ -0,0 +1,61 @@
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 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 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 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 # ensure that DNS config is included
56 edit_named_options
57fi
58
59invoke-rc.d bind9 restart || true
60
61#DEBHELPER#
062
=== added file 'debian/maas-dns.postrm'
--- debian/maas-dns.postrm 1970-01-01 00:00:00 +0000
+++ debian/maas-dns.postrm 2016-04-16 02:29:52 +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 2016-04-16 02:29:52 +0000
@@ -0,0 +1,2 @@
1var/log/maas/proxy
2var/lib/maas
03
=== added file 'debian/maas-proxy.install'
--- debian/maas-proxy.install 1970-01-01 00:00:00 +0000
+++ debian/maas-proxy.install 2016-04-16 02:29:52 +0000
@@ -0,0 +1,1 @@
1debian/extras/maas-proxy-common.sh usr/share/maas/
02
=== added file 'debian/maas-proxy.logrotate'
--- debian/maas-proxy.logrotate 1970-01-01 00:00:00 +0000
+++ debian/maas-proxy.logrotate 2016-04-16 02:29:52 +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 /var/lib/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 2016-04-16 02:29:52 +0000
@@ -0,0 +1,16 @@
1[Unit]
2Description=MAAS Proxy
3Requires=network-online.target
4After=network-online.target
5ConditionPathExists=/var/lib/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 /var/lib/maas/maas-proxy.conf
13ExecReload=/usr/sbin/squid3 -k reconfigure
14
15[Install]
16WantedBy=multi-user.target
017
=== added file 'debian/maas-proxy.postinst'
--- debian/maas-proxy.postinst 1970-01-01 00:00:00 +0000
+++ debian/maas-proxy.postinst 2016-04-16 02:29:52 +0000
@@ -0,0 +1,28 @@
1#!/bin/sh
2
3set -e
4
5if [ "$1" = "configure" ]
6then
7 # Stop the squid3 instance that came with the squid3 package.
8 # We run our own squid3 instances.
9 # Handle both versions of the name, for safety.
10 for SQUID in squid squid3; do
11 systemctl stop ${SQUID} >/dev/null 2>&1 || true
12 systemctl disable ${SQUID} >/dev/null 2>&1 || true
13 done
14
15 # Ensure log folder is created.
16 mkdir -p /var/log/maas/proxy
17 chown -R proxy:proxy /var/log/maas/proxy
18
19 # maas-proxy.conf is now generated by MAAS itself and if we are
20 # upgrading from an earlier version that used to ship maas-proxy.conf
21 # in /etc/maas, it is safe to remove
22 if [ -f /etc/maas/maas-proxy.conf ]; then
23 rm /etc/maas/maas-proxy.conf
24 fi
25
26fi
27
28#DEBHELPER#
029
=== added file 'debian/maas-proxy.postrm'
--- debian/maas-proxy.postrm 1970-01-01 00:00:00 +0000
+++ debian/maas-proxy.postrm 2016-04-16 02:29:52 +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 -rf /var/lib/maas/maas-proxy.conf
10fi
11
12#DEBHELPER#
013
=== added file 'debian/maas-rack-controller.config'
--- debian/maas-rack-controller.config 1970-01-01 00:00:00 +0000
+++ debian/maas-rack-controller.config 2016-04-16 02:29:52 +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-rack-controller/maas-url || true
13 if [ -z "$RET" ]; then
14 # Attempt to pre-populate if installing on the region controller.
15 if [ -f /usr/sbin/maas-region ]; then
16 url=$(maas-region local_config_get --maas-url --plain)
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-rack-controller/maas-url "$url"
23 else
24 # Will only get here if dbconf value not already set, or
25 # /etc/maas/regiond.conf doesn't exist.
26 db_input medium maas-rack-controller/maas-url || true
27 db_go
28 fi
29 fi
30fi
31
32if [ "$1" = "reconfigure" ]; then
33 db_input high maas-rack-controller/maas-url || true
34 db_go
35fi
36#DEBHELPER#
037
=== added file 'debian/maas-rack-controller.dirs'
--- debian/maas-rack-controller.dirs 1970-01-01 00:00:00 +0000
+++ debian/maas-rack-controller.dirs 2016-04-16 02:29:52 +0000
@@ -0,0 +1,4 @@
1etc/maas
2var/lib/maas
3var/lib/maas/boot-resources
4var/log/maas
05
=== added file 'debian/maas-rack-controller.install'
--- debian/maas-rack-controller.install 1970-01-01 00:00:00 +0000
+++ debian/maas-rack-controller.install 2016-04-16 02:29:52 +0000
@@ -0,0 +1,14 @@
1# Install templates
2debian/tmp/etc/maas/templates/pxe
3debian/tmp/etc/maas/templates/uefi
4
5# Install uec2roottar
6debian/tmp/usr/bin/uec2roottar
7
8# Install maas-dhcp-helper
9debian/tmp/usr/sbin/maas-dhcp-helper
10
11# Install all other stuff
12debian/extras/99-maas-sudoers etc/sudoers.d
13debian/extras/maas-probe-dhcp usr/sbin
14debian/extras/maas-rack usr/sbin
015
=== added file 'debian/maas-rack-controller.links'
--- debian/maas-rack-controller.links 1970-01-01 00:00:00 +0000
+++ debian/maas-rack-controller.links 2016-04-16 02:29:52 +0000
@@ -0,0 +1,1 @@
1usr/sbin/maas-rack usr/sbin/maas-provision
02
=== added file 'debian/maas-rack-controller.lintian-overrides'
--- debian/maas-rack-controller.lintian-overrides 1970-01-01 00:00:00 +0000
+++ debian/maas-rack-controller.lintian-overrides 2016-04-16 02:29:52 +0000
@@ -0,0 +1,1 @@
1maas-rack-controller: binary-without-manpage usr/bin/uec2roottar usr/sbin/maas-dhcp-helper
02
=== added file 'debian/maas-rack-controller.logrotate'
--- debian/maas-rack-controller.logrotate 1970-01-01 00:00:00 +0000
+++ debian/maas-rack-controller.logrotate 2016-04-16 02:29:52 +0000
@@ -0,0 +1,15 @@
1/var/log/maas/rackd.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-rack-controller.maas-rackd.service'
--- debian/maas-rack-controller.maas-rackd.service 1970-01-01 00:00:00 +0000
+++ debian/maas-rack-controller.maas-rackd.service 2016-04-16 02:29:52 +0000
@@ -0,0 +1,27 @@
1[Unit]
2Description=MAAS Rack Controller
3Documentation=https://maas.io/
4Requires=network-online.target
5After=network-online.target
6
7[Service]
8User=maas
9Group=maas
10Restart=always
11RestartSec=10s
12Environment="LOGFILE=/var/log/maas/rackd.log"
13# Prevent maas-dhcpd and maas-dhcpd6 from starting until maas-rackd
14# has regenerated the configurations and told the services to start.
15ExecStartPre=/bin/rm -f /var/lib/maas/dhcpd.sock
16ExecStartPre=/bin/rm -f /var/lib/maas/dhcpd.conf
17ExecStartPre=/bin/rm -f /var/lib/maas/dhcpd6.conf
18# Logs go to the journal; read them with
19# journalctl -u maas-rackd
20# Logs also go to $LOGFILE for backward compatibility. The journal
21# should now be preferred as the $LOGFILE will be removed in MAAS 1.9.
22ExecStart=/bin/sh -c \
23 'exec /usr/bin/authbind --deep /usr/bin/twistd3 --nodaemon --pidfile= \
24 maas-rackd 2>&1 | tee -a $LOGFILE'
25
26[Install]
27WantedBy=multi-user.target
028
=== added file 'debian/maas-rack-controller.maintscript'
--- debian/maas-rack-controller.maintscript 1970-01-01 00:00:00 +0000
+++ debian/maas-rack-controller.maintscript 2016-04-16 02:29:52 +0000
@@ -0,0 +1,9 @@
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
8rm_conffile /etc/init/maas-clusterd.conf 2.0.0~alpha1+bzr4635-0ubuntu1
9rm_conffile /lib/systemd/system/maas-clusterd.service 2.0.0~alpha1+bzr4635-0ubuntu1
010
=== added file 'debian/maas-rack-controller.postinst'
--- debian/maas-rack-controller.postinst 1970-01-01 00:00:00 +0000
+++ debian/maas-rack-controller.postinst 2016-04-16 02:29:52 +0000
@@ -0,0 +1,168 @@
1#!/bin/sh
2
3set -e
4
5. /usr/share/debconf/confmodule
6db_version 2.0
7
8RELEASE=`lsb_release -rs` || RELEASE=""
9
10configure_logging() {
11 # Give appropriate permissions
12 if [ ! -f /var/log/maas/rackd.log ]; then
13 touch /var/log/maas/rackd.log
14 fi
15 chown maas:maas /var/log/maas/rackd.log
16}
17
18configure_libdir() {
19 # create var dir
20 if [ ! -d /var/lib/maas/boot-resources ]; then
21 mkdir -p /var/lib/maas/boot-resources
22 fi
23 # Ensure /var/lib/maas/boot-resources has correct ownership
24 chown -R maas:maas /var/lib/maas/boot-resources
25
26 # If /var/lib/maas/secret exists, ensure ownership and
27 # permissions are correct
28 if [ -f /var/lib/maas/secret ]; then
29 chown maas:maas /var/lib/maas/secret
30 chmod 0640 /var/lib/maas/secret
31 fi
32
33 if [ -f /var/lib/maas/maas_id ]; then
34 chown maas:maas /var/lib/maas/maas_id
35 fi
36
37 # Ensure dhcpd related files have the correct permissions
38 if [ -f /var/lib/maas/dhcpd.conf ]; then
39 chown root:maas /var/lib/maas/dhcpd.conf
40 fi
41 if [ -f /var/lib/maas/dhcpd-interfaces ]; then
42 chown root:maas /var/lib/maas/dhcpd-interfaces
43 fi
44 if [ -f /var/lib/maas/dhcpd6.conf ]; then
45 chown maas:maas /var/lib/maas/dhcpd6.conf
46 fi
47 if [ -f /var/lib/maas/dhcpd6-interfaces ]; then
48 chown maas:maas /var/lib/maas/dhcpd6-interfaces
49 fi
50 if [ -S /var/lib/maas/dhcpd.sock ]; then
51 chown maas:maas /var/lib/maas/dhcpd.sock
52 fi
53}
54
55configure_maas_tgt() {
56 # Ensure that iSCSI targets get re-defined on reboot.
57 # Creates a softlink in /etc/tgt/conf.d/ that points to the current
58 # boot images' tgt configuration.
59 mkdir -p /etc/tgt/conf.d
60 ln -sf /var/lib/maas/boot-resources/current/maas.tgt /etc/tgt/conf.d/maas.conf
61}
62
63extract_cluster_uuid(){
64 # Extract ClUSTER_UUID setting from config file $1. This will work
65 # on the old the cluster config file (which is shell).
66 awk '{ split($1,array,"\"")} END{print array[2] }' "$1"
67}
68
69extract_maas_url(){
70 # Extract the MAAS_URL setting from the config file $1.
71 grep -Eo "https?://[^ ]+" "$1" | cut -d"\"" -f1
72}
73
74configure_cluster_uuid(){
75 # This will configure a UUID if one has not previously been set.
76 maas-rack config --init
77}
78
79configure_cluster_authbind() {
80 MAAS_UID="`id -u maas`"
81 if [ ! -f "/etc/authbind/byuid/$MAAS_UID" ]; then
82 if [ ! -d "/etc/authbind/byuid" ]; then
83 mkdir -p /etc/authbind/byuid
84 chmod 755 /etc/authbind
85 chmod 755 /etc/authbind/byuid
86 fi
87 fi
88 echo '0.0.0.0/0:68,69' >/etc/authbind/byuid/$MAAS_UID
89 echo '::/0,68-69' >>/etc/authbind/byuid/$MAAS_UID
90 chown maas:maas /etc/authbind/byuid/$MAAS_UID
91 chmod 700 /etc/authbind/byuid/$MAAS_UID
92}
93
94configure_maas_url(){
95 # Get the MAAS URL on configure/reconfigure and write it to the conf files.
96 db_get maas-rack-controller/maas-url || true
97 if [ -n "$RET" ]; then
98 maas-rack config --region-url "$RET"
99 fi
100}
101
102configure_shared_secret() {
103 db_get maas-rack-controller/shared-secret || true
104 if [ -n "$RET" ]; then
105 echo "$RET" | maas-rack install-shared-secret
106 chown maas:maas /var/lib/maas/secret
107 chmod 0640 /var/lib/maas/secret
108 fi
109}
110
111upgrade_from_cluster_controller() {
112 # If we are upgrading from an older (1.7, 1.8) version, then we need
113 # to obtain the cluster UUID from the old configuration file and set
114 # it with the new configuration tool.
115 if [ -f /etc/maas/maas_cluster.conf ]; then
116 uuid=$(extract_cluster_uuid /etc/maas/maas_cluster.conf)
117 maas-rack config --uuid "$uuid"
118 maas_url=$(extract_maas_url /etc/maas/maas_cluster.conf)
119 maas-rack config --region-url "$maas_url"
120 db_set maas-rack-controller/maas-url "$maas_url"
121 mv /etc/maas/maas_cluster.conf /etc/maas/maas_cluster.conf.maas-old
122 mv /etc/maas/pserv.yaml /etc/maas/pserv.yaml.maas-old
123 fi
124 # If we are upgrading from (1.9, 1.10) version, then we need to obtain
125 # the maas_url and set it to debconf. Otherwise, the config file used
126 # is exactly the same.
127 if [ -f /etc/maas/clusterd.conf.1.10 ]; then
128 mv /etc/maas/clusterd.conf.1.10 /etc/maas/rackd.conf
129 maas_url=$(extract_maas_url /etc/maas/rackd.conf)
130 db_set maas-rack-controller/maas-url "$maas_url"
131 fi
132}
133
134# Unconditionally ensure that there is at least an empty configuration
135# file. This does *not* overwrite any existing configuration.
136maas-rack config
137
138if [ "$1" = "configure" ] && [ -z "$2" ]; then
139 configure_logging
140 configure_libdir
141 configure_maas_tgt
142 configure_maas_url
143 configure_cluster_uuid
144 configure_cluster_authbind
145 maas-rack upgrade-cluster
146 upgrade_from_cluster_controller
147 configure_shared_secret
148
149elif [ -n "$DEBCONF_RECONFIGURE" ]; then
150 configure_maas_url
151 # Only ask for a shared secret when the region is not installed
152 # on the same system.
153 if [ ! -f /usr/sbin/maas-region ]; then
154 db_input high maas-rack-controller/shared-secret
155 db_go
156 fi
157 configure_shared_secret
158
159elif [ "$1" = "configure" ] && dpkg --compare-versions "$2" gt 0.1+bzr266+dfsg-0ubuntu1; then
160 configure_logging
161 configure_libdir
162 configure_cluster_authbind
163 maas-rack upgrade-cluster
164fi
165
166db_stop
167
168#DEBHELPER#
0169
=== added file 'debian/maas-rack-controller.postrm'
--- debian/maas-rack-controller.postrm 1970-01-01 00:00:00 +0000
+++ debian/maas-rack-controller.postrm 2016-04-16 02:29:52 +0000
@@ -0,0 +1,50 @@
1#!/bin/sh
2
3set -e
4
5#DEBHELPER#
6
7RELEASE=`lsb_release -rs` || RELEASE=""
8
9case "$1" in
10 purge)
11 # remove logfile as it wasn't installed by packaging
12 rm -rf /var/log/maas/rackd.log*
13
14 # remove var directories provided it will always have files
15 # not installed or tracked by packaging
16 rm -rf /var/lib/maas/boot-resources
17
18 # remove files that were created by the rack controller
19 rm -rf /var/lib/maas/dhcpd.sock
20 rm -rf /var/lib/maas/dhcpd.conf
21 rm -rf /var/lib/maas/dhcpd-interfaces
22 rm -rf /var/lib/maas/dhcpd6.conf
23 rm -rf /var/lib/maas/dhcpd6-interfaces
24
25 # Delete symlink for iSCSI config.
26 if [ -L /etc/tgt/conf.d/maas.conf ]; then
27 rm -rf /etc/tgt/conf.d/maas.conf
28 fi
29
30 # Remove authbind
31 MAAS_UID="`id -u maas`"
32 if [ -f "/etc/authbind/byuid/$MAAS_UID" ]; then
33 rm -rf /etc/authbind/byuid/$MAAS_UID
34 fi
35
36 # Remove rackd.conf file
37 rm -rf /etc/maas/rackd.conf
38
39 # Deleting old config files if they exist
40 if [ -f /etc/maas/pserv.yaml.maas-old ]; then
41 rm -rf /etc/maas/pserv.yaml.maas-old
42 fi
43 if [ -f /etc/maas/maas_cluster.conf.maas-old ]; then
44 rm -rf /etc/maas/maas_cluster.conf.maas-old
45 fi
46 if [ -f /etc/maas/templates/dhcp.maas-old ]; then
47 rm -rf /etc/maas/templates/dhcp.maas-old
48 fi
49
50esac
051
=== added file 'debian/maas-rack-controller.preinst'
--- debian/maas-rack-controller.preinst 1970-01-01 00:00:00 +0000
+++ debian/maas-rack-controller.preinst 2016-04-16 02:29:52 +0000
@@ -0,0 +1,56 @@
1#!/bin/sh
2
3set -e
4
5. /usr/share/debconf/confmodule
6
7if [ "$1" = "install" ]; then
8 if [ -f /etc/init/maas-pserv.conf ]; then
9 invoke-rc.d maas-pserv stop
10 fi
11
12 if [ -f /etc/init/maas-cluster-celery.conf ]; then
13 invoke-rc.d maas-cluster-celery stop
14 fi
15
16 if [ -f /var/log/maas/celery.log ]; then
17 rm -rf /var/log/maas/celery.log
18 fi
19
20 if [ -f /etc/init/maas-cluster.conf ]; then
21 invoke-rc.d maas-cluster stop
22 fi
23
24 if [ -f /var/log/maas/pserv.log ]; then
25 rm -rf /var/log/maas/pserv.log
26 fi
27
28 if [ -f /etc/apache2/conf-enabled/maas-cluster-http.conf ]; then
29 rm -rf /etc/apache2/conf-enabled/maas-cluster-http.conf
30 fi
31
32 if [ -f /etc/init/maas-clusterd.conf ] || [ -f /lib/systemd/system/maas-clusterd.service ]; then
33 invoke-rc.d maas-clusterd stop
34 fi
35
36 if [ -f /etc/maas/clusterd.conf ]; then
37 mv /etc/maas/clusterd.conf /etc/maas/clusterd.conf.1.10
38 fi
39
40 if [ -f /var/log/maas/clusterd.log ]; then
41 mv /var/log/maas/clusterd.log /var/log/maas/rackd.log
42 fi
43
44fi
45
46if [ "$1" = "install" ] || [ "$1" = "upgrade" ]; then
47 if [ -d /etc/maas/templates/power ]; then
48 rm -rf /etc/maas/templates/power
49 fi
50
51 if [ -d /etc/maas/templates/dhcp ]; then
52 mv /etc/maas/templates/dhcp /etc/maas/templates/dhcp.maas-old
53 fi
54fi
55
56#DEBHELPER#
057
=== added file 'debian/maas-rack-controller.templates'
--- debian/maas-rack-controller.templates 1970-01-01 00:00:00 +0000
+++ debian/maas-rack-controller.templates 2016-04-16 02:29:52 +0000
@@ -0,0 +1,14 @@
1Template: maas-rack-controller/maas-url
2Type: string
3_Description: Ubuntu MAAS API address:
4 The MAAS cluster controller and nodes need to contact the MAAS region
5 controller API. Set the URL at which they can reach the MAAS API remotely,
6 e.g. "http://192.168.1.1/MAAS".
7 Since nodes must be able to access this URL, localhost or 127.0.0.1 are not
8 useful values here.
9
10Template: maas-rack-controller/shared-secret
11Type: password
12_Description: MAAS Cluster Controller Shared Secret:
13 The MAAS Cluster Controller needs to contact the MAAS server
14 with a share secret. Set the shared secret here.
015
=== added file 'debian/maas-rack-udeb.postinst'
--- debian/maas-rack-udeb.postinst 1970-01-01 00:00:00 +0000
+++ debian/maas-rack-udeb.postinst 2016-04-16 02:29:52 +0000
@@ -0,0 +1,77 @@
1#!/bin/sh -e
2
3# Source debconf library.
4. /usr/share/debconf/confmodule
5db_version 2.0
6
7# This conf script is capable of backing up
8db_capb backup
9
10logfile=/var/lib/preseed/log
11set_question () {
12 echo "$1 $2 $3 $4" >>"$logfile"
13 if ! db_fget "$2" seen; then
14 db_register debian-installer/dummy "$2"
15 db_subst "$2" ID "$2"
16 db_fget "$2" seen
17 fi
18 if [ "$RET" = false ]; then
19 db_set "$2" "$4"
20 db_fset "$2" seen true
21 fi
22}
23
24STATE=1
25while [ "$STATE" != 0 -a "$STATE" != 4 ]; do
26 case "$STATE" in
27 1)
28 # This is a confirmation that we want to install MAAS. If we don't
29 # then we exit the MAAS installation process
30 db_input high maas-rack-udeb/rack-confirmation || true
31 ;;
32 2)
33 #Ask for MAAS url
34 db_get maas-rack-udeb/rack-confirmation
35 if [ "$RET" != "true" ]; then
36 break
37 fi
38 db_input critical maas-rack-udeb/maas-url || true
39 ;;
40
41 3)
42 # Ask for Shared Secret
43 db_input critical maas-rack-udeb/shared-secret || true
44 ;;
45
46 esac
47
48 if db_go; then
49 STATE=$(($STATE + 1))
50 else
51 STATE=$(($STATE - 1))
52 fi
53done
54db_capb
55
56db_get maas-rack-udeb/rack-confirmation
57if [ "$RET" != "true" ]; then
58 # MAAS rack controller won't be installed
59 exit 0
60fi
61
62db_get maas-rack-udeb/maas-url
63url="$RET"
64if [ -n "$url" ]; then
65 set_question maas-rack-controller maas-rack-controller/maas-url string "$url"
66fi
67
68db_get maas-rack-udeb/shared-secret
69secret="$RET"
70if [ -n "$secret" ]; then
71 set_question maas-rack-controller maas-rack-controller/shared-secret password "$secret"
72fi
73
74# Tell the package manager that we will be installing MAAS Rack Controller
75db_set pkgsel/include maas-rack-controller
76set_question tasksel tasksel/first multiselect "standard, server"
77exit 0
078
=== added file 'debian/maas-rack-udeb.templates'
--- debian/maas-rack-udeb.templates 1970-01-01 00:00:00 +0000
+++ debian/maas-rack-udeb.templates 2016-04-16 02:29:52 +0000
@@ -0,0 +1,34 @@
1Template: debian-installer/maas-rack-udeb/title
2Type: text
3_Description: Install your Metal as a Service (MAAS) Rack Controller
4
5Template: maas-rack-udeb/rack-confirmation
6Type: boolean
7_Description: Would you like to proceed with the installation of your MAAS Rack Controller?
8 The MAAS rack controller (maas-rackd) provides highly available, fast
9 and local broadcast services to the machines provisioned by MAAS. You
10 need a MAAS rack controller attached to each fabric (which is a set of
11 trunked switches). You can attach multiple rack controllers to these
12 physical networks for high availability, with secondary rack controllers
13 automatically stepping to provide these services if the primary rack
14 controller fails.
15 .
16 By choosing to install a MAAS Rack controller, you will have to connect
17 it to a Region controller to service your machines.
18
19Template: maas-rack-udeb/maas-url
20Type: string
21_Description: Ubuntu MAAS Region API address:
22 The MAAS rack controller and nodes need to contact the MAAS region
23 controller API. Set the URL at which they can reach the MAAS API remotely,
24 e.g. "http://192.168.1.1:5240/MAAS".
25 .
26 Since nodes must be able to access this URL, localhost or 127.0.0.1 are not
27 useful values here.
28
29Template: maas-rack-udeb/shared-secret
30Type: password
31_Description: MAAS Rack Controller shared secret:
32 The MAAS Rack Controller needs to contact the MAAS server
33 with a share secret. This shared secret can be found on
34 the MAAS Region Controller server under /var/lib/maas/secret.
035
=== added file 'debian/maas-region-api.apport'
--- debian/maas-region-api.apport 1970-01-01 00:00:00 +0000
+++ debian/maas-region-api.apport 2016-04-16 02:29:52 +0000
@@ -0,0 +1,72 @@
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 /etc/maas/regiond.conf and /etc/maas/rackd.conf "
40 "may help developers diagnose your bug more quickly. However, it may "
41 "contain sensitive information. Do you want to include it in your bug "
42 "report?")
43
44 if response is None:
45 # The user cancelled.
46 raise StopIteration
47 elif response is True:
48 # The user agreed to include the configuration files.
49 attach_conffiles(report, 'maas')
50 attach_file_if_exists(
51 report, '/etc/maas/regiond.conf', 'MAASRegionConfig')
52 attach_file_if_exists(
53 report, '/etc/maas/rackd.conf', 'MAASClusterConfig')
54 else:
55 # The user declined to include the configuration files.
56 pass
57
58 # Attaching log files (Upstart).
59 attach_file_if_exists(
60 report, '/var/log/maas/regiond.log', 'MAASRegionLog')
61 attach_file_if_exists(
62 report, '/var/log/maas/rackd.log', 'MAASClusterLog')
63
64 # Attaching log files (systemd). These will overwrite the logs above on a
65 # system where systemd is available.
66 attach_journal_logs(
67 report, "MAASRegionLog", "maas-regiond", "maas-regiond-worker@*")
68 attach_journal_logs(
69 report, "MAASClusterLog", "maas-rackd")
70
71 # Attaching related packages info
72 attach_related_packages(report, ['python-django-maas', 'apparmor'])
073
=== added file 'debian/maas-region-api.install'
--- debian/maas-region-api.install 1970-01-01 00:00:00 +0000
+++ debian/maas-region-api.install 2016-04-16 02:29:52 +0000
@@ -0,0 +1,27 @@
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/usr/share/maas/maas-http.conf
9
10# Install new preseed files
11debian/tmp/etc/maas/preseeds
12
13# Install templates
14debian/tmp/etc/maas/templates/dns
15debian/tmp/etc/maas/templates/commissioning-user-data
16
17# Install driver configuration file
18debian/tmp/etc/maas/drivers.yaml
19
20# Install winrm certificate generation script
21debian/tmp/usr/bin/maas-generate-winrm-cert
22
23# Install all other stuff
24debian/extras/maas-region usr/sbin
25debian/extras/20-maas.conf etc/rsyslog.d
26debian/extras/maas_remote_syslog_compress etc/cron.d
27debian/extras/99-maas-region-sudoers etc/sudoers.d
028
=== added file 'debian/maas-region-api.links'
--- debian/maas-region-api.links 1970-01-01 00:00:00 +0000
+++ debian/maas-region-api.links 2016-04-16 02:29:52 +0000
@@ -0,0 +1,8 @@
1# dh-systemd does not yet appear to fully grok template units, so we
2# install unit dependencies directly instead.
3lib/systemd/system/maas-regiond-worker@.service lib/systemd/system/maas-regiond.service.wants/maas-regiond-worker@1.service
4lib/systemd/system/maas-regiond-worker@.service lib/systemd/system/maas-regiond.service.wants/maas-regiond-worker@2.service
5lib/systemd/system/maas-regiond-worker@.service lib/systemd/system/maas-regiond.service.wants/maas-regiond-worker@3.service
6lib/systemd/system/maas-regiond-worker@.service lib/systemd/system/maas-regiond.service.wants/maas-regiond-worker@4.service
7
8usr/sbin/maas-region usr/sbin/maas-region-admin
09
=== added file 'debian/maas-region-api.lintian-overrides'
--- debian/maas-region-api.lintian-overrides 1970-01-01 00:00:00 +0000
+++ debian/maas-region-api.lintian-overrides 2016-04-16 02:29:52 +0000
@@ -0,0 +1,5 @@
1maas-region-api: binary-without-manpage usr/sbin/maas
2maas-region-api: script-not-executable etc/maas/templates/commissioning-user-data/snippets/maas_ipmi_autodetect.py
3maas-region-api: script-not-executable etc/maas/templates/commissioning-user-data/snippets/maas_signal.py
4maas-region-api: script-not-executable etc/maas/templates/commissioning-user-data/user_data.template
5maas-region-api: script-not-executable etc/maas/templates/commissioning-user-data/snippets/maas_get.py
06
=== added file 'debian/maas-region-api.logrotate'
--- debian/maas-region-api.logrotate 1970-01-01 00:00:00 +0000
+++ debian/maas-region-api.logrotate 2016-04-16 02:29:52 +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-api.maas-regiond-worker@.service'
--- debian/maas-region-api.maas-regiond-worker@.service 1970-01-01 00:00:00 +0000
+++ debian/maas-region-api.maas-regiond-worker@.service 2016-04-16 02:29:52 +0000
@@ -0,0 +1,27 @@
1[Unit]
2Description=MAAS Region Controller (Worker %i)
3Documentation=https://maas.io/
4Requires=network-online.target
5After=network-online.target
6PartOf=maas-regiond.service
7# This will go away one we support new config files.
8ConditionPathExists=/etc/maas/regiond.conf
9
10[Service]
11User=maas
12Group=maas
13Restart=always
14RestartSec=10s
15Environment="MAAS_REGIOND_WORKER_ID=%i"
16Environment="DJANGO_SETTINGS_MODULE=maas.settings"
17Environment="PYTHONPATH=/usr/share/maas"
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 twistd3 --nodaemon --pidfile= maas-regiond 2>&1 | tee -a $LOGFILE'
25
26[Install]
27WantedBy=maas-regiond.service
028
=== added file 'debian/maas-region-api.maas-regiond.service'
--- debian/maas-region-api.maas-regiond.service 1970-01-01 00:00:00 +0000
+++ debian/maas-region-api.maas-regiond.service 2016-04-16 02:29:52 +0000
@@ -0,0 +1,24 @@
1[Unit]
2Description=MAAS Region Controller
3Documentation=https://maas.io/
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-api 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-api.maintscript'
--- debian/maas-region-api.maintscript 1970-01-01 00:00:00 +0000
+++ debian/maas-region-api.maintscript 2016-04-16 02:29:52 +0000
@@ -0,0 +1,7 @@
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
7rm_conffile /etc/maas/maas-http.conf 1.9.0~alpha1+bzr4190-0ubuntu1
08
=== added file 'debian/maas-region-api.postinst'
--- debian/maas-region-api.postinst 1970-01-01 00:00:00 +0000
+++ debian/maas-region-api.postinst 2016-04-16 02:29:52 +0000
@@ -0,0 +1,80 @@
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 # handle apache configs
12 if [ -e /usr/share/maas/maas-http.conf -a \
13 ! -e /etc/apache2/conf-enabled/maas-http.conf ]; then
14 ln -sf /usr/share/maas/maas-http.conf /etc/apache2/conf-enabled/maas-http.conf
15 fi
16
17 # enable apache modules needed
18 a2enmod proxy_http
19 a2enmod proxy_wstunnel
20 a2enmod expires
21 a2enmod rewrite
22}
23
24configure_logging() {
25 # Give appropriate permissions
26 if [ ! -f /var/log/maas/regiond.log ]; then
27 touch /var/log/maas/regiond.log
28 fi
29 chown maas:maas /var/log/maas/regiond.log
30
31 # Create log directory base
32 mkdir -p /var/log/maas/rsyslog
33 chown -R syslog:syslog /var/log/maas/rsyslog
34 # Make sure rsyslog reads our config
35 invoke-rc.d rsyslog restart
36
37 # apache2 log symlinks
38 ln -sf /var/log/apache2 /var/log/maas/
39}
40
41configure_libdir() {
42 # If /var/lib/maas/secret exists, ensure ownership and
43 # permissions are correct
44 if [ -f /var/lib/maas/secret ]; then
45 chown maas:maas /var/lib/maas/secret
46 chmod 0640 /var/lib/maas/secret
47 fi
48
49 if [ -f /var/lib/maas/maas_id ]; then
50 chown maas:maas /var/lib/maas/maas_id
51 fi
52}
53
54# Unconditionally ensure that there is at least an empty configuration
55# file. This does *not* overwrite any existing configuration.
56maas-region local_config_set
57
58if [ "$1" = "configure" ] && [ -z "$2" ]; then
59 configure_region_http
60 configure_logging
61 configure_libdir
62
63elif [ "$1" = "configure" ] && dpkg --compare-versions "$2" gt 0.1+bzr266+dfsg-0ubuntu1; then
64 # Logging changed at r2611, ensure it is set up.
65 configure_logging
66 configure_libdir
67
68 # If upgrading to any later package version, then upgrade db.
69 invoke-rc.d apache2 stop || true
70
71 # make sure maas http config is symlinked
72 configure_region_http
73
74fi
75
76invoke-rc.d apache2 restart || true
77
78db_stop
79
80#DEBHELPER#
081
=== added file 'debian/maas-region-api.postrm'
--- debian/maas-region-api.postrm 1970-01-01 00:00:00 +0000
+++ debian/maas-region-api.postrm 2016-04-16 02:29:52 +0000
@@ -0,0 +1,49 @@
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 # Remove logging files & foldesr
12 rm -rf /var/log/maas/regiond.log*
13 rm -rf /var/log/maas/apache2
14 rm -rf /var/log/maas/rsyslog
15
16 # Remove libgdir related files
17 rm -rf /var/lib/maas/media
18
19 case $RELEASE in
20 12.04|12.10|13.04)
21 if [ -h /etc/apache2/conf.d/maas-http.conf ]; then
22 rm -rf /etc/apache2/conf.d/maas-http.conf
23 fi
24 ;;
25 *)
26 if [ -h /etc/apache2/conf-enabled/maas-http.conf ]; then
27 rm -rf /etc/apache2/conf-enabled/maas-http.conf
28 fi
29 ;;
30 esac
31
32 # Restarting apache2
33 if [ -x /usr/sbin/invoke-rc.d ]; then
34 invoke-rc.d apache2 restart || true
35 fi
36
37 # Delete symlink
38 if [ -L /etc/squid-deb-proxy/mirror-dstdomain.acl.d/99-maas ]; then
39 rm -rf /etc/squid-deb-proxy/mirror-dstdomain.acl.d/99-maas
40 fi
41
42 # Delete any remaining / leftover file
43 rm -rf /usr/share/maas/maas/
44 rm -rf /etc/maas/regiond.conf
45esac
46
47#DEBHELPER#
48
49db_stop
050
=== added file 'debian/maas-region-api.preinst'
--- debian/maas-region-api.preinst 1970-01-01 00:00:00 +0000
+++ debian/maas-region-api.preinst 2016-04-16 02:29:52 +0000
@@ -0,0 +1,34 @@
1#!/bin/sh
2
3set -e
4
5. /usr/share/debconf/confmodule
6
7if [ "$1" = "install" ] || [ "$1" = "upgrade" ]; 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
25 if [ -f /var/log/maas/maas-django.log ]; then
26 rm -rf /var/log/maas/maas-django.log
27 fi
28
29 if [ -d /var/lib/maas/media ]; then
30 rm -rf /var/lib/maas/media
31 fi
32
33fi
34#DEBHELPER#
035
=== added file 'debian/maas-region-api.prerm'
--- debian/maas-region-api.prerm 1970-01-01 00:00:00 +0000
+++ debian/maas-region-api.prerm 2016-04-16 02:29:52 +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.config'
--- debian/maas-region-controller.config 1970-01-01 00:00:00 +0000
+++ debian/maas-region-controller.config 2016-04-16 02:29:52 +0000
@@ -0,0 +1,47 @@
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 set_question maas-region-controller/remote/host "localhost"
31
32 dbc_dbname="maasdb"
33 dbc_dbuser="maas"
34 dbc_remove="true"
35
36 dbc_go maas-region-controller $@
37
38elif [ -n "$DEBCONF_RECONFIGURE" ]; then
39 db_get maas/default-maas-url || true
40 if [ -z "$RET" ]; then
41 ipaddr=$(maas-region local_config_get --maas-url --plain)
42 db_set maas/default-maas-url "$ipaddr"
43 fi
44 db_input low maas/default-maas-url || true
45 db_go
46
47fi
048
=== added file 'debian/maas-region-controller.postinst'
--- debian/maas-region-controller.postinst 1970-01-01 00:00:00 +0000
+++ debian/maas-region-controller.postinst 2016-04-16 02:29:52 +0000
@@ -0,0 +1,165 @@
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 dbupgrade
16}
17
18restart_postgresql(){
19 invoke-rc.d --force postgresql restart || true
20}
21
22configure_maas_default_url() {
23 local ipaddr="$1"
24 maas-region local_config_set \
25 --maas-url "http://${ipaddr}/MAAS"
26}
27
28get_default_route_ip() {
29 while read Iface Destination Gateway Flags RefCnt Use Metric Mask MTU Window IRTT
30 do
31 [ "$Mask" = "00000000" ] && break
32 done < /proc/net/route
33 interface="$Iface"
34 ipaddr=$(LC_ALL=C /sbin/ip -4 addr list dev "$interface" scope global)
35 ipaddr=${ipaddr#* inet }
36 ipaddr=${ipaddr%%/*}
37 echo $ipaddr
38}
39
40extract_default_maas_url() {
41 # Extract DEFAULT_MAAS_URL IP/host setting from config file $1.
42 grep "^DEFAULT_MAAS_URL" "$1" | cut -d"/" -f3
43}
44
45configure_migrate_maas_dns() {
46 # This only runs on upgrade. We only run this if the
47 # there are forwarders to migrate or no
48 # named.conf.options.inside.maas are present.
49 maas-region edit_named_options \
50 --migrate-conflicting-options --config-path \
51 /etc/bind/named.conf.options
52 invoke-rc.d bind9 restart || true
53}
54
55if [ "$1" = "configure" ] && [ -z "$2" ]; then
56 #########################################################
57 ########## Configure DEFAULT_MAAS_URL #################
58 #########################################################
59
60 # Obtain IP address of default route and change DEFAULT_MAAS_URL
61 # if default-maas-url has not been preseeded.
62 db_get maas/default-maas-url
63 ipaddr="$RET"
64 if [ -z "$RET" ]; then
65 ipaddr=$(get_default_route_ip)
66 fi
67 # Set the IP address of the interface with default route
68 if [ -n "$ipaddr" ]; then
69 configure_maas_default_url "$ipaddr"
70 db_subst maas/installation-note MAAS_URL "$ipaddr"
71 db_set maas/default-maas-url "$ipaddr"
72 fi
73
74 #########################################################
75 ################ Configure Database ###################
76 #########################################################
77
78 # Need to for postgresql start so it doesn't fail on the installer
79 restart_postgresql
80
81 # Create the database
82 dbc_go maas-region-controller $@
83 maas-region local_config_set \
84 --database-host "localhost" --database-name "$dbc_dbname" \
85 --database-user "$dbc_dbuser" --database-pass "$dbc_dbpass"
86
87 # Only syncdb if we have selected to install it with dbconfig-common.
88 db_get maas-region-controller/dbconfig-install
89 if [ "$RET" = "true" ]; then
90 maas_sync_migrate_db
91 configure_migrate_maas_dns
92 fi
93
94 db_get maas/username
95 username="$RET"
96 if [ -n "$username" ]; then
97 db_get maas/password
98 password="$RET"
99 if [ -n "$password" ]; then
100 maas-region createadmin --username "$username" --password "$password" --email "$username@maas"
101 fi
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 # If the version we are upgrading from ("$2") is less than
124 # 1.9.0~alpha1+bzr4038-0ubuntu1 then we need migrate to new
125 # config file.
126 if dpkg --compare-versions "$2" lt 1.9.0~alpha1+bzr4038-0ubuntu1 && [ -f /etc/maas/maas_local_settings.py ]; then
127 ipaddr=$(extract_default_maas_url /etc/maas/maas_local_settings.py)
128 if [ -n "$ipaddr" ]; then
129 configure_maas_default_url "$ipaddr"
130 db_set maas/default-maas-url "$ipaddr"
131 fi
132 # handle database upgrade
133 if [ -f /etc/dbconfig-common/maas-region-controller.conf ]; then
134 # source dbconfig-common db config for maas-region-controller
135 # before upgrading database, otherwise a new config is written
136 # but the password is no longer preserved.
137 . /etc/dbconfig-common/maas-region-controller.conf
138 else
139 dbc_go maas-region-controller $@
140 fi
141
142 # Reconfigure the config file.
143 maas-region local_config_set \
144 --database-host "localhost" --database-name "$dbc_dbname" \
145 --database-user "$dbc_dbuser" --database-pass "$dbc_dbpass"
146
147 mv /etc/maas/maas_local_settings.py /etc/maas/maas_local_settings.py.maas-old
148 fi
149
150 maas_sync_migrate_db
151
152 configure_migrate_maas_dns
153fi
154
155systemctl enable maas-regiond >/dev/null || true
156systemctl restart maas-regiond >/dev/null || true
157invoke-rc.d apache2 restart || true
158
159if [ -f /lib/systemd/system/maas-rackd.service ]; then
160 systemctl restart maas-rackd >/dev/null || true
161fi
162
163db_stop
164
165#DEBHELPER#
0166
=== added file 'debian/maas-region-controller.postrm'
--- debian/maas-region-controller.postrm 1970-01-01 00:00:00 +0000
+++ debian/maas-region-controller.postrm 2016-04-16 02:29:52 +0000
@@ -0,0 +1,22 @@
1#!/bin/sh
2
3set -e
4
5. /usr/share/debconf/confmodule
6
7RELEASE=`lsb_release -rs` || RELEASE=""
8
9if [ -f /usr/share/dbconfig-common/dpkg/postrm ]; then
10 . /usr/share/dbconfig-common/dpkg/postrm.pgsql
11 dbc_go maas-region-controller $@
12fi
13
14case "$1" in
15 purge)
16 # Deleting old/new config files
17 rm -rf /etc/maas/maas_local_settings.py.maas-old
18esac
19
20#DEBHELPER#
21
22db_stop
023
=== added file 'debian/maas-region-controller.prerm'
--- debian/maas-region-controller.prerm 1970-01-01 00:00:00 +0000
+++ debian/maas-region-controller.prerm 2016-04-16 02:29:52 +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/maas-region-controller.templates'
--- debian/maas-region-controller.templates 1970-01-01 00:00:00 +0000
+++ debian/maas-region-controller.templates 2016-04-16 02:29:52 +0000
@@ -0,0 +1,24 @@
1Template: maas/default-maas-url
2Type: string
3_Description: Ubuntu MAAS PXE/Provisioning network address:
4 The Ubuntu MAAS Server automatically detects the IP address
5 that is used for PXE and provisioning. However, it needs to be
6 in the same network as the clients. If the automatically
7 detected address is not in the same network as the clients, it
8 must be changed.
9
10Template: maas/username
11Type: string
12_Description: Ubuntu MAAS username
13 The Ubuntu MAAS server requires the administrator to create a
14 username and password combination.
15 .
16 Please provide the username for the MAAS account.
17
18Template: maas/password
19Type: password
20_Description: Ubuntu MAAS password
21 The Ubuntu MAAS server requires the administrator to create a
22 username and password combination.
23 .
24 Please provide the password for the MAAS account.
025
=== added file 'debian/maas-region-udeb.postinst'
--- debian/maas-region-udeb.postinst 1970-01-01 00:00:00 +0000
+++ debian/maas-region-udeb.postinst 2016-04-16 02:29:52 +0000
@@ -0,0 +1,82 @@
1#!/bin/sh -e
2
3# Source debconf library.
4. /usr/share/debconf/confmodule
5db_version 2.0
6
7# This conf script is capable of backing up
8db_capb backup
9
10logfile=/var/lib/preseed/log
11set_question () {
12 echo "$1 $2 $3 $4" >>"$logfile"
13 if ! db_fget "$2" seen; then
14 db_register debian-installer/dummy "$2"
15 db_subst "$2" ID "$2"
16 db_fget "$2" seen
17 fi
18 if [ "$RET" = false ]; then
19 db_set "$2" "$4"
20 db_fset "$2" seen true
21 fi
22}
23
24
25STATE=1
26while [ "$STATE" != 0 -a "$STATE" != 4 ]; do
27 case "$STATE" in
28 1)
29 # This is a confirmation that we want to install MAAS. If we don't
30 # then we exit the MAAS installation process
31 db_input high maas-region-udeb/maas-confirmation || true
32 ;;
33
34 2)
35 # Ask for username
36 db_get maas-region-udeb/maas-confirmation
37 if [ "$RET" != "true" ]; then
38 break
39 fi
40 db_input critical maas-region-udeb/username || true
41 ;;
42
43 3)
44 # Ask for password
45 db_get maas-region-udeb/username
46 if [ -n "$RET" ]; then
47 db_input critical maas-region-udeb/password || true
48 fi
49 ;;
50
51 esac
52
53 if db_go; then
54 STATE=$(($STATE + 1))
55 else
56 STATE=$(($STATE - 1))
57 fi
58done
59db_capb
60
61db_get maas-region-udeb/maas-confirmation
62if [ "$RET" != "true" ]; then
63 # MAAS won't be installed
64 exit 0
65fi
66# Only preseed username/password combination if both have been
67# input in the installer. If no $password has been input, do not
68# preseed
69db_get maas-region-udeb/username
70username="$RET"
71if [ -n "$username" ]; then
72 db_get maas-region-udeb/password
73 password="$RET"
74 if [ -n "$password" ]; then
75 set_question maas-region-controller maas/username string "$username"
76 set_question maas-region-controller maas/password password "$password"
77 fi
78fi
79# Tell the package manager that we will be installing MAAS
80db_set pkgsel/include maas
81set_question tasksel tasksel/first multiselect "standard, server"
82exit 0
083
=== added file 'debian/maas-region-udeb.templates'
--- debian/maas-region-udeb.templates 1970-01-01 00:00:00 +0000
+++ debian/maas-region-udeb.templates 2016-04-16 02:29:52 +0000
@@ -0,0 +1,29 @@
1Template: debian-installer/maas-region-udeb/title
2Type: text
3_Description: Install your Metal as a Service (MAAS)
4
5Template: maas-region-udeb/maas-confirmation
6Type: boolean
7_Description: Would you like to proceed with the installation of your MAAS?
8 MAAS runs a software-defined data centre - it turns a collection of physical
9 servers and switches into a bare metal cloud with full open source IP address
10 management (IPAM) and instant provisioning on demand.
11 .
12 By choosing to install MAAS, a MAAS Region Controller API server and PostgreSQL
13 database will be installed.
14
15Template: maas-region-udeb/username
16Type: string
17_Description: Username for your MAAS administrator account:
18 MAAS requires an administrative account to be created before you can use MAAS.
19 Please enter the username for the administrator. If no username is provided,
20 you will have to create one before you are able to use MAAS.
21
22Template: maas-region-udeb/password
23Type: password
24_Description: Choose a password for the MAAS administrator account:
25 MAAS requires an administrative account to be created before you can use MAAS.
26 Please enter the password for the administrator's account.
27 .
28 If the password is not entered, your MAAS installation will proceed, but no
29 administrator's account will be created.
030
=== added file 'debian/maintscript'
--- debian/maintscript 1970-01-01 00:00:00 +0000
+++ debian/maintscript 2016-04-16 02:29:52 +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/series'
=== 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 2016-04-16 02:29:52 +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 2016-04-16 02:29:52 +0000
@@ -0,0 +1,68 @@
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 ""
069
=== added file 'debian/python3-django-maas.install'
--- debian/python3-django-maas.install 1970-01-01 00:00:00 +0000
+++ debian/python3-django-maas.install 2016-04-16 02:29:52 +0000
@@ -0,0 +1,2 @@
1debian/tmp/usr/lib/python3*/dist-packages/maasserver
2debian/tmp/usr/lib/python3*/dist-packages/metadataserver
03
=== added file 'debian/python3-maas-client.install'
--- debian/python3-maas-client.install 1970-01-01 00:00:00 +0000
+++ debian/python3-maas-client.install 2016-04-16 02:29:52 +0000
@@ -0,0 +1,2 @@
1debian/tmp/usr/lib/python3*/dist-packages/apiclient
2debian/tmp/usr/lib/python3*/dist-packages/maascli
03
=== added file 'debian/python3-maas-provisioningserver.install'
--- debian/python3-maas-provisioningserver.install 1970-01-01 00:00:00 +0000
+++ debian/python3-maas-provisioningserver.install 2016-04-16 02:29:52 +0000
@@ -0,0 +1,1 @@
1debian/tmp/usr/lib/python3*/dist-packages/provisioningserver
02
=== added file 'debian/rules'
--- debian/rules 1970-01-01 00:00:00 +0000
+++ debian/rules 2016-04-16 02:29:52 +0000
@@ -0,0 +1,84 @@
1#!/usr/bin/make -f
2
3BUILDHOME = $(CURDIR)/debian/build
4PYTHON3 = $(shell py3versions -d)
5# Python enum modules.
6py_enums := $(wildcard src/*/enum.py)
7
8%:
9 dh $@ --with python3,apport,systemd --buildsystem=pybuild
10
11override_dh_auto_test:
12 # do nothing as we don't want the tests to run because they require
13 # internet access
14
15override_dh_installinit:
16 dh_installinit -p maas-region-api --name=maas-regiond --no-start
17 dh_installinit -p maas-region-api --name=maas-regiond-worker@ --no-start
18 dh_installinit -p maas-rack-controller --name=maas-rackd
19 dh_installinit -p maas-proxy --name=maas-proxy
20 dh_installinit -p maas-dhcp --name=maas-dhcpd
21 dh_installinit -p maas-dhcp --name=maas-dhcpd6
22
23override_dh_systemd_enable:
24 dh_systemd_enable -p maas-region-api --name=maas-regiond
25 dh_systemd_enable -p maas-rack-controller --name=maas-rackd
26 dh_systemd_enable -p maas-proxy --name=maas-proxy
27 dh_systemd_enable -p maas-dhcp --name=maas-dhcpd
28 dh_systemd_enable -p maas-dhcp --name=maas-dhcpd6
29
30override_dh_systemd_start:
31 dh_systemd_start -p maas-region-api --no-start maas-regiond.service
32 dh_systemd_start -p maas-rack-controller maas-rackd.service
33 dh_systemd_start -p maas-proxy maas-proxy.service
34 dh_systemd_start -p maas-dhcp maas-dhcpd.service
35 dh_systemd_start -p maas-dhcp maas-dhcpd6.service
36
37override_dh_auto_build:
38 dh_auto_build
39
40 mkdir -p $(BUILDHOME)
41 HOME=$(BUILDHOME) PYTHONPATH=$(CURDIR)/src/ $(PYTHON3) \
42 $(CURDIR)/src/maasserver/utils/jsenums.py \
43 $(py_enums) > $(BUILDHOME)/enums.js
44
45override_dh_auto_install:
46 dh_auto_install
47
48 # Move static files
49 install -d -m 755 $(CURDIR)/debian/tmp/usr/share/maas/web/static
50 mv $(CURDIR)/debian/tmp/usr/lib/python*/*-packages/maasserver/static \
51 $(CURDIR)/debian/tmp/usr/share/maas/web/
52
53 # Remove scss directory from static files
54 rm -rf $(CURDIR)/debian/tmp/usr/share/maas/web/scss
55
56 # Install built enums.js file.
57 cp $(BUILDHOME)/enums.js $(CURDIR)/debian/tmp/usr/share/maas/web/static/js/
58
59 # install the apparmor profile
60 install -d -m 755 $(CURDIR)/debian/tmp/etc/apparmor.d/dhcpd.d
61 install -m 644 $(CURDIR)/debian/maas-dhcp.apparmor \
62 $(CURDIR)/debian/tmp/etc/apparmor.d/dhcpd.d/maas
63
64 # install python3 twisted plugins
65 set -ex; for python in $(PYTHON3); do \
66 dh_install twisted/plugins/maasregiond.py usr/lib/$$python/dist-packages/twisted/plugins -pmaas-region-api; \
67 dh_install twisted/plugins/maasrackd.py usr/lib/$$python/dist-packages/twisted/plugins -pmaas-rack-controller; \
68 done
69
70 dh_install --list-missing
71
72override_dh_auto_clean:
73 dh_auto_clean
74 rm -rf $(BUILDHOME)
75 rm -rf src/*.egg-info
76
77DEB_DEBIAN_DIR=$(dir $(firstword $(MAKEFILE_LIST)))
78REV=$(shell dpkg-parsechangelog -l$(DEB_DEBIAN_DIR)/changelog \
79 | sed -rne 's,^Version: .*[+~]bzr([0-9]+).*,\1,p')
80VER=$(shell dpkg-parsechangelog -l$(DEB_DEBIAN_DIR)/changelog \
81 | sed -rne 's,^Version: ([^-]+).*,\1,p')
82get-orig-source:
83 bzr export -r $(REV) --root=maas-$(VER).orig \
84 maas_$(VER).orig.tar.gz lp:maas
085
=== added directory 'debian/source'
=== added file 'debian/source/format'
--- debian/source/format 1970-01-01 00:00:00 +0000
+++ debian/source/format 2016-04-16 02:29:52 +0000
@@ -0,0 +1,1 @@
13.0 (quilt)
02
=== added file 'debian/watch'
--- debian/watch 1970-01-01 00:00:00 +0000
+++ debian/watch 2016-04-16 02:29:52 +0000
@@ -0,0 +1,3 @@
1version=3
2opts=dversionmangle=s/\.dfsg// \
3http://launchpad.net/maas/+download https://launchpad.net/maas/.*/maas-(.*).tar.*