Merge lp:~andreserl/maas/missing_dep into lp:~maas-committers/maas/trunk
- missing_dep
- Merge into trunk
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 |
Related bugs: |
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.
Commit message
Description of the change
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
1 | === added directory 'debian' |
2 | === added file 'debian/changelog' |
3 | --- debian/changelog 1970-01-01 00:00:00 +0000 |
4 | +++ debian/changelog 2016-04-16 02:29:52 +0000 |
5 | @@ -0,0 +1,1964 @@ |
6 | +maas (2.0.0~beta2+bzr4920-0ubuntu3) UNRELEASED; urgency=medium |
7 | + |
8 | + * UNRELEASED |
9 | + |
10 | + -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 15 Apr 2016 22:27:56 -0400 |
11 | + |
12 | +maas (2.0.0~beta2+bzr4920-0ubuntu2) xenial; urgency=medium |
13 | + |
14 | + * debian/control: Add missing dep on python3-httplib2 |
15 | + |
16 | + -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 15 Apr 2016 22:23:55 -0400 |
17 | + |
18 | +maas (2.0.0~beta2+bzr4920-0ubuntu1) xenial; urgency=medium |
19 | + |
20 | + * New upstream release, 2.0.0 beta 2 bzr4920 (Standing FFe LP: #1553261) |
21 | + * Only create the squid cache if we have a configuration file. |
22 | + LP: #1568847 |
23 | + * Re-add shared debconf templates. |
24 | + |
25 | + -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 07 Apr 2016 18:22:00 -0400 |
26 | + |
27 | +maas (2.0.0~beta1+bzr4873-0ubuntu2) xenial; urgency=medium |
28 | + |
29 | + * Add maas-region-udeb and maas-rack-udeb to be used as part of the |
30 | + Ubuntu Server Installer (LP: #1561954) |
31 | + - ensure maas-rack-controller and maas-region-controller can be fully |
32 | + preseeded. |
33 | + |
34 | + -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 05 Apr 2016 17:02:32 -0400 |
35 | + |
36 | +maas (2.0.0~beta1+bzr4873-0ubuntu1) xenial; urgency=medium |
37 | + |
38 | + * New upstream release, 2.0.0 beta 1 bzr4873 (Standing FFe LP: #1553261) |
39 | + - DHCP Snippets WebUI. |
40 | + - Ensure proxy configuration ACL's subnets MAAS knows about. |
41 | + - DNS High Availability. |
42 | + * debian/control: Move 'maascli' package install to |
43 | + python3-maas-client (LP: #1563859) |
44 | + * Improve way on how upgrades ensures correct permissions |
45 | + and ownership (LP: #1563799 , LP: #1563779) |
46 | + * Improve the way how removals clean the system (LP: #1563337) |
47 | + * Reflect new names and website for systemd units (LP: #1563807) |
48 | + * maas-proxy now uses a custom-built config, instead of a boilerplate. |
49 | + LP: #1379567 |
50 | + |
51 | + -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 28 Mar 2016 16:47:58 -0400 |
52 | + |
53 | +maas (2.0.0~alpha4+bzr4843-0ubuntu1) xenial; urgency=medium |
54 | + |
55 | + * New upstream release, 2.0.0 alpha 4 bzr4843 (Standing FFe LP: #1553261) |
56 | + - DHCP Snippets backend and API. |
57 | + - Rack controller WebUI Served VLANs & Service Tracking |
58 | + - Rsyslog during enlistment/commissioning. |
59 | + * Ensure /etc/maas/templates/power gets removed on upgrade |
60 | + * debian/control: Update homepage and package descriptions. |
61 | + (LP: #1562036, LP: #1562034, LP: #1562062) |
62 | + * Rename maas-reigon-controller-min to maas-region-api (LP: #1562069) |
63 | + |
64 | + -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 23 Mar 2016 12:27:27 -0400 |
65 | + |
66 | +maas (2.0.0~alpha3+bzr4810-0ubuntu1) xenial; urgency=medium |
67 | + |
68 | + * New upstream release, 2.0.0 bzr 4810 (Standing FFe LP: #1553261) |
69 | + - New Networks WebUI |
70 | + + Add Fabrics and Spaces details page. |
71 | + + Actions to Add/Remove Fabrics, VLANs, Spaces, Subnets. |
72 | + - Storage WebUI |
73 | + + Mount options |
74 | + + Swap Partitions |
75 | + - WebUI to change a Machine's domain. |
76 | + - Rack Controller details page now shows 'Server VLANs' |
77 | + - Add maas-rack support-dump command. |
78 | + - Fixes: |
79 | + + python3-maas-client API 2.0 no loger use op but MAASClient.post |
80 | + requires it (LP: #1555393) |
81 | + + Fail to commission when Fabric on Machine Interface doesn't match |
82 | + Rack Controller Fabric. (LP: #1554566) |
83 | + + TFTP back-end crashes (LP: #1553848) |
84 | + + Can't deploy a node, no interfaces on rack controller (LP: #1554999) |
85 | + * Update dhcpd permissions to conform with most recent paranoia described |
86 | + on LP: 1543794, so capability dac_override is not granted. |
87 | + * Update versioned depend on isc-dhcp-server |
88 | + |
89 | + -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 14 Mar 2016 18:34:53 -0400 |
90 | + |
91 | +maas (2.0.0~alpha2+bzr4776-0ubuntu1) xenial; urgency=medium |
92 | + |
93 | + * New usptream release, 2.0.0 bzr 4776 (LP: #1553261). |
94 | + * maas-dns Depends: bind9 >= 1:9.10.3.dfsg.P2-5 for better system time. |
95 | + LP: #1553176. |
96 | + * debian/extras/maas-{region,rack}: Replace maas-region-admin |
97 | + and maas-provision, respectively (LP: #1553791) |
98 | + * debian/maas-region-controller.postrm: Correctly handle removal by |
99 | + dbconfig-common. (LP: #1553648) |
100 | + * debian/extras/99-maas-region-sudoers: Allow running systemctl for |
101 | + bind9 and maas-proxy to support service tracking. (LP: #1555308) |
102 | + |
103 | + -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 01 Feb 2016 18:18:52 +0100 |
104 | + |
105 | +maas (2.0.0~alpha1+bzr4736-0ubuntu1) xenial; urgency=medium |
106 | + |
107 | + * New usptream release, 2.0.0 bzr 4736 (LP: #1553261): |
108 | + - Deprecate Cluster Controllers in favor of Rack Controllers. |
109 | + - Deprecate API 1.0 in favor if API 2.0. |
110 | + - DHCP & Rack Controller High Availability. |
111 | + - Networking - IP Ranges. |
112 | + - Networking - DNS. |
113 | + - BMC Model. |
114 | + * Rename maas-cluster* to maas-rack* and handle the upgrade path. |
115 | + * Fix installation of init scripts and daemon systemd units. |
116 | + * Allow 'dhcpd' to access /usr/sbin/maas-provision via |
117 | + sudoers file (LP: #1552775) |
118 | + * debian/extras/maas: Replace shell wrapper with python. (LP: #1553605) |
119 | + * debian/control: Depends on iproute2 instead. (LP: #1553647) |
120 | + |
121 | + -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 01 Feb 2016 18:18:52 +0100 |
122 | + |
123 | +maas (1.10.0+bzr4572-0ubuntu2) xenial; urgency=medium |
124 | + |
125 | + * debian/maas-region-controller.config: Ensure we truly preseed db |
126 | + setting so we always use localhost and it never asks the user. |
127 | + * debian/control: Suggests on python3-pyvmomi |
128 | + |
129 | + -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 01 Feb 2016 17:04:27 +0100 |
130 | + |
131 | +maas (1.10.0+bzr4572-0ubuntu1) xenial; urgency=medium |
132 | + |
133 | + * New upstram release, 1.10.0 bzr 4572: |
134 | + - Support python3, drop support for python2. |
135 | + - Support django 1.8+. |
136 | + * debian/control: |
137 | + - Remove all Upstart related services. |
138 | + - Remove python-django16 dependency. |
139 | + - Add python-petname dependency. |
140 | + - Change dependency python-django-piston to python-django-piston3. |
141 | + - Depends on dbconfig-pgsql instead of dbconfig-common. |
142 | + * debian/maas-region-controller.config: |
143 | + - Preseed dbconfig common to not ask for PG server to use. |
144 | + * debian/maas-region-controller-min.maas-regiond-worker@.service: Don't |
145 | + depend on postgresql.service anymore, as it would prevent regiond |
146 | + to run on machines with a remote PostgreSQL. |
147 | + * debian/rules: Refactor installation of init scripts so that they are |
148 | + correctly handled, and maas-regiond is not started on install. |
149 | + |
150 | + -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 13 Nov 2015 13:13:42 +0000 |
151 | + |
152 | +maas (1.9.0~rc1+bzr4496-0ubuntu1) wily; urgency=medium |
153 | + |
154 | + * New upstream release, 1.9.0 rc1, bzr4496 |
155 | + - MAAS uses wrong IP for DNS record (creates against the |
156 | + bond). (LP: #LP: #1515498) |
157 | + - Local archive ignored for deployment. Works for commissioning |
158 | + and enlistment. (LP: #1515671) |
159 | + - Fix handling of multiple StaticIPAddress rows with empty IP |
160 | + addresses. (LP: #1513485) |
161 | + - Lease parser failure - doesn't update IP on the PXE |
162 | + NIC. (LP: #1513485) |
163 | + - Cannot claim sticky IP address for device with |
164 | + parent. (LP: #1514486) |
165 | + - Cluster downloads boot-images from managed network (pxe) instead |
166 | + of network used to connect to Region. (LP: #1514883) |
167 | + - Updating/modifying/assigning vlans, spaces, fabrics, subnets |
168 | + doesn't allow specifying names and lock to ID's. (LP: #1510917) |
169 | + - MAAS should prevent deploying nodes with PXE interface |
170 | + 'unconfigured'. (LP: #1513095) |
171 | + - MTU should be a set on the VLAN, and able to override on the |
172 | + interface. (LP: #1508056) |
173 | + - Internal Server Error when creating/editing cluster interface |
174 | + when the Cluster is disconnected. (LP: #1439476) |
175 | + - Non-interactive way to change password. (LP: #1510224) |
176 | + - When a bond is created all IP address associated with the bond |
177 | + members should be removed. (LP: #1513111) |
178 | + - MAAS does not provide a dump of the config it passes to curtin for |
179 | + networking and storage. (LP: #1487135) |
180 | + - MAAS should not offer EXT3, rather VFAT, EXT2, EXT4. (LP: #1512959) |
181 | + - Network constraints for juju. (LP: #1505031) |
182 | + - Creating a partition or a Volume Group on the whole disk leaves |
183 | + free space. (LP: #1509535) |
184 | + - Should not allow partitions to be created on bcache |
185 | + device. (LP: #1511493) |
186 | + - Storage section should only be editable when Ready or |
187 | + Allocated. (LP: #1503475) |
188 | + - maasserver.api.tests.test_fannetworks.TestFanNetworksAPI.test_read |
189 | + fails randomly. (LP: #1512832) |
190 | + - creating a logical volume on a partition that is too small almost |
191 | + works, resulting in strange error messages. (LP: #1508754) |
192 | + - [UI] Keep selected nodes selected after action. (LP: #1503925) |
193 | + - [UI] Refresh UI cache after an upgrade to avoid seeing |
194 | + garbage. (LP: #1515380) |
195 | + - [UI] Boot disk is not lighted nor can be changed. (LP: #1510106) |
196 | + - [UI] Can't remove / delete a partition with a filesystem under |
197 | + 'Available disks and partitions'. (LP: #1510118) |
198 | + - [UI] Creating a partition should allow to select filesystem and |
199 | + mountpoint. (LP: #1510153) |
200 | + - [UI] When selecting a device, ensure padding between buttons is |
201 | + 20px. (LP: #1510468) |
202 | + - [UI] Misaligned mount point column on used disks table. (LP: #1510455) |
203 | + - [UI] Align the individual storage actions with the name field, |
204 | + rather than the tickbox. (LP: #1510469) |
205 | + - [UI] can't add physical interface. (LP: #1503479) |
206 | + - [UI] Containers (lxc, kvm) data missing on node details. (LP: #1503474) |
207 | + - [UI] Unable to unmount a filesystem in the UI. (LP: #1513271) |
208 | + - [UI] Animation missing on show members and select node. (LP: #1503536) |
209 | + - [UI] Add tooltips to icons. (LP: #1510482) |
210 | + - [UI] Add tooltips to inactive buttons. (LP: #1510486) |
211 | + |
212 | + -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 05 Nov 2015 08:29:06 -0500 |
213 | + |
214 | +maas (1.9.0~beta2+bzr4456-0ubuntu1) wily; urgency=medium |
215 | + |
216 | + * New upstream release, 1.9.0 beta2, bzr4456: |
217 | + - New capabilities for subnets, vlan, spaces and |
218 | + fabrics. (LP: #LP: #1511257) |
219 | + - Upgrade left a PXE NIC"s on nodes without a subnet associated |
220 | + causing deploy issues. (LP: #LP: #1509077) |
221 | + - DNS record doesn't get created against the PXE |
222 | + interface (LP: #1512109) |
223 | + - bcache cache_mode setting not configured on |
224 | + servers (LP: #1510334) |
225 | + - Administrators unable to delete users using the API (LP: #1510210) |
226 | + - Can create a VolumeGroup (vg0) without having created |
227 | + a partition on the boot disk (LP: #1509536) |
228 | + - set-boot-disk yields in a machine not being able to |
229 | + deploy (LP: #1501400) |
230 | + - Deploying Other OS' (CentOS, Windows) should not configure |
231 | + custom storage (LP: #1504956) |
232 | + - Add RAID 10 support (LP: #1509164) |
233 | + - MAAS should download grub from grub-efi-amd64-signed package |
234 | + instead of the archive path (LP: #1511437) |
235 | + - Fails to deploy with UEFI (LP: #1510120) |
236 | + - previous owner of node can use oauth creds to retrieve current |
237 | + owner's user-data (LP: #1507586) |
238 | + - IP range validation for too small ranges (LP: #1507630) |
239 | + - test__calls_update_host_maps_for_next_ip_managed_subnet |
240 | + can fail randomly (LP: #1507630) |
241 | + - No way to disable maas-proxy (LP: #1511071) |
242 | + - [UI] HWE naming needs to be clearer (LP: #1505034)) |
243 | + - [UI] Angular $digest loop issue on node details page (LP: #1509476) |
244 | + - [UI] New nodes interfaces doesn't show which interface is the |
245 | + PXE interface (LP: #1509473) |
246 | + - [UI] When partitioning, there should be 20px padding between |
247 | + the sizing fields (LP: #1510471) |
248 | + - [UI] On the available table, add model and serial to the |
249 | + name column (LP: #1510467) |
250 | + - [UI] On the available table, change “available space” to |
251 | + “size” for consistency (LP: #1510466) |
252 | + - [UI] when formatting/mounting, the button says “Format & Mount” |
253 | + this should just be “Mount” (LP: #1510472) |
254 | + - [UI] Tickbox on create bond networking (LP: #1503533) |
255 | + - [UI] On the file system table, change name to “File system” |
256 | + (lower case S) (LP: #1510447) |
257 | + - [UI] When creating bcache and raid, remove the empty column |
258 | + between the config fields. (LP: #1510474) |
259 | + - [UI] On the available table, make sure all buttons are |
260 | + lowercase (LP: #1510488) |
261 | + - [UI] Subnets filter doesn't show network, it shows name |
262 | + instead (LP: #1511174) |
263 | + - [UI] can't edit / add storage tags (LP: #1509417) |
264 | + - [UI] Hover state for networking doesn't work (LP: #1510891) |
265 | + - [UI] change "edit tag" link to icon storage (LP: #1510458) |
266 | + - [UI] Can no longer see the IP address PXE interface gets |
267 | + on commissioning (LP: #1510629) |
268 | + * debian/control: Bump Dep on python-curtin to > 0.1.0~bzr275. |
269 | + |
270 | + -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 28 Oct 2015 21:20:39 -0400 |
271 | + |
272 | +maas (1.9.0~beta1+bzr4417-0ubuntu1) wily; urgency=medium |
273 | + |
274 | + * New upstream release, 1.9.0 beta1, bzr4415: |
275 | + - Various UI fixes and improvements |
276 | + - Add ability to create LVM. |
277 | + - Add ability to create RAID. |
278 | + |
279 | + -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 22 Oct 2015 14:05:50 -0400 |
280 | + |
281 | +maas (1.9.0~alpha5+bzr4398-0ubuntu1) wily; urgency=medium |
282 | + |
283 | + * New upstream release, 1.9.0 Alpha 5, bzr4398: |
284 | + - Various UI fixes and improvements. |
285 | + - Add ability to create partitions in the UI. |
286 | + - Add ability to create Bcache (create cache sets and backing devices). |
287 | + - Check and warns users about missing power driver tools (LP: #1381000). |
288 | + - Add fabric class_type. |
289 | + |
290 | + -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 15 Oct 2015 21:22:44 -0700 |
291 | + |
292 | +maas (1.9.0~alpha4+bzr4371-0ubuntu1) wily; urgency=medium |
293 | + |
294 | + * New upstream release, 1.9.0 Alpha 4, bzr4371: |
295 | + - Various UI fixes and improvements. |
296 | + - Various concurrency issues fixed. |
297 | + - Do not create MBR bigger than 2 TiB, otherwise MAAS will fail to |
298 | + deploy on disks larger than 2 TiB. |
299 | + - Fix broken migration due to missing import (LP: #1504340) |
300 | + |
301 | + -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 07 Oct 2015 13:02:53 -0700 |
302 | + |
303 | +maas (1.9.0~alpha3+bzr4355-0ubuntu1) wily; urgency=medium |
304 | + |
305 | + * New upstream release, 1.9.0 Alpha 3, bzr4355 |
306 | + - Node network configuration (VLAN, aliases, bond's). |
307 | + - Subnets page. |
308 | + - Mount, Unmount filesystems. Formatting, unformatting. |
309 | + - Create partitions. |
310 | + - Checks for missing power drivers tool and warns the users. |
311 | + * debian/control: Recommends on apache2. |
312 | + |
313 | + -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 29 Sep 2015 12:53:36 -0400 |
314 | + |
315 | +maas (1.9.0~alpha2+bzr4322-0ubuntu1) wily; urgency=medium |
316 | + |
317 | + * New upstream release, 1.9.0 Alpha 2, bzr4322: |
318 | + - Native support for Network Configuration (IP assignment, VLANs, bonds) |
319 | + - First class support for CentOS |
320 | + - Status updates from curtin/cloud-init |
321 | + - Support for fabrics, spaces, subnets and fans. |
322 | + - Support for commissioning actions. |
323 | + |
324 | + -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 01 Sep 2015 19:04:39 -0400 |
325 | + |
326 | +maas (1.9.0~alpha1+bzr4221-0ubuntu1) wily; urgency=medium |
327 | + |
328 | + * New upstream release, 1.9.0 Alpha 1, bzr4218: |
329 | + - Native storage support (Flat, LVM, bcache, RAID). |
330 | + - New config files (regiond.conf, clusterd.conf) |
331 | + - New Python Power Drivers. |
332 | + - Better support for HWE Kernels. |
333 | + |
334 | + [ Scott Moser ] |
335 | + * maas-proxy: sync apt specific squid config with squid-deb-proxy |
336 | + (LP: #1474417) |
337 | + |
338 | + [ Raphaël Badin ] |
339 | + * Enable proxy_wstunnel module. |
340 | + * Drop dependency on python-iscpy: the code has been integrated into |
341 | + MAAS. (LP: #1413388). |
342 | + |
343 | + [ Gavin Panella ] |
344 | + * Use new local configuration support for the cluster. |
345 | + |
346 | + [ Andres Rodriguez ] |
347 | + * Refactor maas-dns upgrade code so it doesn't break local DNS config |
348 | + and it gets migrated (LP: #1413388) |
349 | + - debian/maas-region-controller.postinst: Ensure DNS config |
350 | + migration is always run. |
351 | + * debian/control: Make maas-dns a Dependy of maas-region-controller. |
352 | + * Update the location of dhcpd.conf and dhcpd6.conf to be /var/lib/maas/ |
353 | + and handle upgrades. (LP: #1482857) |
354 | + * Move /etc/maas/maas-proxy.conf to /usr/share/maas/maas-proxy.conf as |
355 | + this is not a config we want users to modify. (LP: #1482859) |
356 | + * Move /etc/maas/maas-http.conf to /usr/share/maas/maas-http.conf as |
357 | + this is not a config we want users to modify. (LP: #1482858) |
358 | + * debian/control: |
359 | + - Add missing dependency on python-curtin. |
360 | + - Drop python-lockfile as it is no longer used. |
361 | + - Depend on python-curtin >= 0.1.0~bzr247. |
362 | + |
363 | + -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 12 Jun 2015 14:16:47 -0400 |
364 | + |
365 | +maas (1.8.0+bzr4001-0ubuntu1) trusty; urgency=medium |
366 | + |
367 | + * New upstream release, 1.8.0. |
368 | + |
369 | + -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 09 Jun 2015 20:57:42 -0400 |
370 | + |
371 | +maas (1.8.0~rc3+bzr4000-0ubuntu1) trusty; urgency=medium |
372 | + |
373 | + * New upstream release, 1.8.0 RC3 bzr4000. |
374 | + |
375 | + [ Raphaël Badin ] |
376 | + * Remove unused dependencies: python-amqp and python-txamqp. |
377 | + |
378 | + -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 04 Jun 2015 16:32:02 -0400 |
379 | + |
380 | +maas (1.8.0~rc2+bzr3989-0ubuntu1) trusty; urgency=medium |
381 | + |
382 | + * New upstream release, 1.8.0 RC2 bzr3983. |
383 | + |
384 | + -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 02 Jun 2015 09:27:54 -0400 |
385 | + |
386 | +maas (1.8.0~rc1+bzr3972-0ubuntu1) trusty; urgency=medium |
387 | + |
388 | + * New upstream release, 1.8.0 RC1 bzr3972. |
389 | + * debian/copyright: Add copyright headers for ng-tags-input.js. |
390 | + * debian/control: Bump Standards-Version |
391 | + |
392 | + -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 27 May 2015 20:16:40 -0400 |
393 | + |
394 | +maas (1.8.0~beta8+bzr3951-0ubuntu1) trusty; urgency=medium |
395 | + |
396 | + * New upstream release, 1.8.0 beta 8 bzr3951. |
397 | + |
398 | + [ Raphaël Badin ] |
399 | + * debian/extras/99-maas-sudoers: Allow maas to check the status of |
400 | + maas-dhcpd and maas-dhcp6 and start these services (LP: #1457708). |
401 | + |
402 | + [ Andres Rodriguez ] |
403 | + * debian/rules: Ensure maas-regiond-worker is not started in packaging. |
404 | + |
405 | + -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 21 May 2015 19:18:22 -0400 |
406 | + |
407 | +maas (1.8.0~beta7+bzr3926-0ubuntu1) trusty; urgency=medium |
408 | + |
409 | + * New upstream release, 1.8.0 beta 7 bzr3926. |
410 | + |
411 | + [ Andres Rodriguez ] |
412 | + * debian/{maas-cluster-controller,maas-common, |
413 | + maas-region-controller-min}.postinst: Cleaned up to correctly create |
414 | + log dir permissions (LP: #1457191) |
415 | + |
416 | + [ Gavin Panella ] |
417 | + * Create maas-regiond workers for systemd. |
418 | + |
419 | + -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 20 May 2015 17:03:13 -0400 |
420 | + |
421 | +maas (1.8.0~beta6+bzr3891-0ubuntu1) trusty; urgency=medium |
422 | + |
423 | + * New upstream release, 1.8.0 beta 6 bzr3904: |
424 | + |
425 | + [ Gavin Panella ] |
426 | + * Drop the use of daemontools in favor of having upstart track |
427 | + thread processes: |
428 | + - d/maas-region-controller-min.maas-regiond.upstart: Drop use of |
429 | + daemontools; use maas-regiond-worker |
430 | + - d/maas-region-controller-min.maas-regiond-worker.upstart: Add. |
431 | + - d/control: Drop depends on daemontools. |
432 | + |
433 | + [ Andres Rodriguez ] |
434 | + * debian/maas-common.{postinst,logrotate}: Create maas.log if non-existent |
435 | + and add log rotation, provided maas.log exists both in the Region |
436 | + and in the Cluster (LP: #1381603) |
437 | + |
438 | + -- Andres Rodriguez <andreserl@ubuntu.com> Sat, 09 May 2015 15:03:17 +0100 |
439 | + |
440 | +maas (1.8.0~beta5+bzr3867-0ubuntu1) trusty; urgency=medium |
441 | + |
442 | + * New upstream release, 1.8.0 Beta 5 bzr3867. |
443 | + |
444 | + [ Andres Rodriguez ] |
445 | + * d/p/02-pserv.yaml: Fix config file (LP: #1449862) |
446 | + |
447 | + [ Mike Pontillo ] |
448 | + * Run DNS reconfiguration if either 'forwarders' or 'dnssec-validation' |
449 | + keywords exist in named.conf.options (LP: #1384334) |
450 | + |
451 | + -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 24 Apr 2015 18:55:47 -0400 |
452 | + |
453 | +maas (1.8.0~beta4+bzr3844-0ubuntu1) trusty; urgency=medium |
454 | + |
455 | + * New upstream release. 1.8.0 Beta 4 bzr2344 |
456 | + * debian/maas-dhcpd.maas-dhcpd.service: Remove whitespace in unit that |
457 | + was making systemd crash (LP: #1446699) |
458 | + * debian/maas-proxy.maas-proxy.service: Fix proxy to correctly run |
459 | + pre-start script. |
460 | + * debian/maas-dns.postinst: Ensure permissions are fixed also on upgrade. |
461 | + |
462 | + -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 21 Apr 2015 13:00:49 -0400 |
463 | + |
464 | +maas (1.8.0~beta3+bzr3825-0ubuntu1) trusty; urgency=medium |
465 | + |
466 | + * New upstream release. 1.8.0 Beta3 bzr3825 (LP: #1432666): |
467 | + - Fixx issues with concurrent DB access and the isolation level |
468 | + that made MAAS unusable in highload environments. |
469 | + |
470 | + [ Gavin Panella ] |
471 | + * Run one maas-regiond per CPU core. |
472 | + |
473 | + -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 16 Apr 2015 21:26:21 +0200 |
474 | + |
475 | +maas (1.8.0~beta2+bzr3814-0ubuntu1) trusty; urgency=medium |
476 | + |
477 | + * New upstream release. 1.8.0 Beta2 bzr3814. |
478 | + |
479 | + [ Andres Rodriguez ] |
480 | + * Restart apache2 after the region is restarted on a install. (LP: #1438782) |
481 | + |
482 | + [ Mike Pontillo ] |
483 | + * Stop maas-clusterd in prerm so that database purge succeeds (LP: #1044559) |
484 | + |
485 | + -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 06 Apr 2015 11:00:00 -0400 |
486 | + |
487 | +maas (1.8.0~beta1+bzr3777-0ubuntu1) trusty; urgency=medium |
488 | + |
489 | + * New upstream release. 1.8.0 Beta1 bzr 3777. |
490 | + |
491 | + [ Mike Pontillo ] |
492 | + * debian/extras/maas-region-admin: Fix Path setting. |
493 | + * debian/control: Properly depend on python-apt |
494 | + |
495 | + [ Andres Rodriguez ] |
496 | + * debian/maas-dhcp.maas-dhcpd[6].service: Fix units to correctly run |
497 | + in vivid. |
498 | + * debian/maas-proxy.maas-proxy.service: Fix unit to use correct daemon. |
499 | + |
500 | + -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 30 Mar 2015 19:17:47 -0400 |
501 | + |
502 | +maas (1.8.0~alpha9+bzr3750-0ubuntu1) trusty; urgency=medium |
503 | + |
504 | + * New upstream release. MAAS 1.9.0 Alpha 9 bzr3692: |
505 | + - fix bulk actions for isolation level changes. |
506 | + - fix commissioning related isolation level / transaction issues. |
507 | + |
508 | + [ Andres Rodriguez ] |
509 | + * Make sure MAAS works with python-django16 in vivid. |
510 | + |
511 | + [Gavin Panella] |
512 | + * debian/extras/99-maas-sudoers |
513 | + debian/maas-cluster-controller.install |
514 | + - Do not install maas-import-pxe-files; it is no longer used, and is |
515 | + not present in upstream. |
516 | + |
517 | + -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 20 Mar 2015 20:27:02 -0400 |
518 | + |
519 | +maas (1.8.0~alpha8+bzr3692-0ubuntu1) trusty; urgency=medium |
520 | + |
521 | + * New upstream release, 1.8.0~alpha8 bzr 3692: |
522 | + - Fix bulk actions to not fail due to transaction errors. |
523 | + |
524 | + [ Steve Langasek ] |
525 | + * Depend on pxelinux for pxelinux.0, not on syslinux-dev. (LP: #1433697) |
526 | + |
527 | + -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 17 Mar 2015 18:46:41 -0400 |
528 | + |
529 | +maas (1.8.0~alpha7+bzr3664-0ubuntu1) trusty; urgency=medium |
530 | + |
531 | + * New upstream release, 1.8.0~alpha7 bzr3664 |
532 | + |
533 | + -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 10 Mar 2015 16:36:40 -0400 |
534 | + |
535 | +maas (1.8.0~alpha6+bzr3625-0ubuntu1) trusty; urgency=medium |
536 | + |
537 | + * New upstream release, 1.8.0~alpha6 bzr3625: |
538 | + - Add ability to select OS when we Deploy via a bulk action. |
539 | + |
540 | + -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 06 Mar 2015 18:10:46 -0500 |
541 | + |
542 | +maas (1.8.0~alpha5+bzr3609-0ubuntu1) trusty; urgency=medium |
543 | + |
544 | + * New upstream release, 1.8.0~alpha5 bzr3601: |
545 | + - Add new 'Devices' page in the WebUI. |
546 | + - Add support for VMWare's vSphere. |
547 | + * debian/control: |
548 | + - Add Depends on python-pyvmomi; Drop Depends on python-pyscss. |
549 | + |
550 | + -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 05 Mar 2015 11:31:14 -0500 |
551 | + |
552 | +maas (1.8.0~alpha4+bzr3581-0ubuntu1) trusty; urgency=medium |
553 | + |
554 | + * New upstream release, 1.8.0~alpha4 bzr3581: |
555 | + - Adds new 'Add Hardware' button on the WebUI. |
556 | + - Adds new 'Add Chassis' button on the WebUI. |
557 | + |
558 | + -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 27 Feb 2015 19:50:00 -0500 |
559 | + |
560 | +maas (1.8.0~alpha3+bzr3568-0ubuntu1) trusty; urgency=medium |
561 | + |
562 | + * New upstream release, 1.8.0~alpha3 bzr3568 |
563 | + - Adds support for Microsoft OCP Chassis. |
564 | + * debian/control: |
565 | + - Add python-bson as a depends. |
566 | + - Remove python-pyscss as a build dependency. |
567 | + |
568 | + -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 24 Feb 2015 15:47:07 -0500 |
569 | + |
570 | +maas (1.8.0~alpha2+bzr3545-0ubuntu1) trusty; urgency=medium |
571 | + |
572 | + * New upstream release, 1.8.0~alpha2 bzr3545 |
573 | + * debian/control: |
574 | + - Depends on libjs-angularjs (LP: #1423457) |
575 | + - Depends on ubuntu-cloudimage-keyring for region (LP: #1424287) |
576 | + |
577 | + -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 18 Feb 2015 16:31:02 -0500 |
578 | + |
579 | +maas (1.8.0~alpha1+bzr3523-0ubuntu1) trusty; urgency=medium |
580 | + |
581 | + * New upstream release, 1.8.0~alpha1 bzr3523 |
582 | + |
583 | + [ Blake Rouse ] |
584 | + * debian/control: added python-pyscss as a build dependency. |
585 | + * debian/rules: build scss files to maas-styles.css and remove scss files |
586 | + from the static files directory. |
587 | + |
588 | + [ Jeroen Vermeulen ] |
589 | + * debian/maas-cluster-controller.postinst: configure MAAS_URL through new |
590 | + "maas-provision configure-maas-url" sub-command instead of with "sed". |
591 | + |
592 | + [ Andres Rodriguez ] |
593 | + * Set 'maas' homedir to '/var/lib/maas' (LP: #1399016): |
594 | + - debian/maas-common.postinst: Do not try to update 'maas' |
595 | + home user dir on upgrade. |
596 | + * debian/control: Tighten Dependency versioning of some packages. |
597 | + * debian/maas-region-controller-min.preinst: Handle upgrades to remove |
598 | + legacy files. |
599 | + * debian/maas-region-controller{-min}.postinst: Simplify postinsts. |
600 | + * Drop depends on python-celery, python-oops, python-oops-twisted, |
601 | + python-oops-datedir-repo, python-oosp-wsgi |
602 | + * Drop maas-cluster-http.conf; Drop depends on apache2 for |
603 | + maas-cluster-controller. |
604 | + |
605 | + [ Gavin Panella ] |
606 | + * debian/maas-region-controller-min.maas-regiond.upstart |
607 | + - Upstart script for the new maas-regiond. |
608 | + - Use setuid/setgid to drop root privs before running script. |
609 | + - Don't write a pid file. |
610 | + * debian/maas-cluster-controller.maas-clusterd.upstart |
611 | + - Start maas-clusterd; it's no longer called maas-pserv. |
612 | + * debian/maas-region-controller-min.install |
613 | + - Don't install wsgi.py; it's no longer used. |
614 | + * debian/rules |
615 | + - Install maas-regiond plugin. |
616 | + * debian/maas-region-controller-min.apport |
617 | + debian/maas-region-controller-min.logrotate |
618 | + debian/maas-region-controller-min.postinst |
619 | + debian/maas-region-controller.postinst |
620 | + - Change maas-django.log to regiond.log. |
621 | + * debian/maas-region-controller.postinst |
622 | + - Restart maas-regiond after installation. |
623 | + - a2enmod rewrite module (LP: #1236544) |
624 | + * debian/maas-region-controller.postinst |
625 | + - Restart maas-regiond after installation. |
626 | + * debian/control |
627 | + debian/maas-region-controller-min.postinst |
628 | + debian/maas-region-controller.postinst |
629 | + - mod_wsgi is no longer used. |
630 | + * debian/maas-region-controller-min.logrotate |
631 | + - No longer used; maas-regiond uses rotatelogs. |
632 | + - a2enmod rewrite module (LP: #1236544) |
633 | + * debian/patches/01-fix-database-settings.patch |
634 | + - Move STATIC_ROOT setting upstream. |
635 | + - Simplify database configuration hunk. |
636 | + * debian/maas-cluster-controller.logrotate |
637 | + debian/maas-region-controller.logrotate |
638 | + - Use copytruncate; even though it's sub-optimal, this is currently |
639 | + the best way to integrate logrotate with twistd. |
640 | + - Limit the size of the logs to 50MB, but don't rotate unless |
641 | + they're more than 10MB. |
642 | + - Drop privileges and run as maas/maas. |
643 | + * debian/maas-region-controller-min.maas-regiond.upstart |
644 | + debian/maas-cluster-controller.maas-clusterd.upstart |
645 | + - Redirect stdout and stderr from twistd directly to the daemon's |
646 | + respective log file. |
647 | + * debian/maas-region-controller-min.apport |
648 | + - pserv.log has been renamed to clusterd.log. |
649 | + |
650 | + -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 14 Nov 2014 09:04:29 -0500 |
651 | + |
652 | +maas (1.7.0+bzr3299-0ubuntu1) utopic; urgency=medium |
653 | + |
654 | + * New upstream release, 1.7.0. |
655 | + |
656 | + -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 14 Nov 2014 08:38:39 -0500 |
657 | + |
658 | +maas (1.7.0~rc3+bzr3299-0ubuntu1) utopic; urgency=medium |
659 | + |
660 | + * New upstream release, RC3 bzr 3299 |
661 | + - Fix dashboard tooltip messages which had stopped being displayed |
662 | + (LP: #1390434) |
663 | + |
664 | + -- Julian Edwards <julian.edwards@canonical.com> Tue, 11 Nov 2014 12:23:07 +1000 |
665 | + |
666 | +maas (1.7.0~rc2+bzr3297-0ubuntu1) utopic; urgency=medium |
667 | + |
668 | + * New upstream release, RC2 bzr 3297 |
669 | + - Allow marking a node in the DISK_ERASING state as broken (LP: #1388919) |
670 | + - Prevent concurrent allocations of static IP addresses from returning |
671 | + the same clashing address. (LP: #1387262) |
672 | + |
673 | + [ Andres Rodriguez ] |
674 | + * debian/maas-cluster-controller.postinst: Make sure that cluster sets |
675 | + the correct permissions for proxy log dir if running on the same |
676 | + system. (LP: #1377964) |
677 | + |
678 | + -- Julian Edwards <julian.edwards@canonical.com> Fri, 07 Nov 2014 09:30:52 +1000 |
679 | + |
680 | +maas (1.7.0~rc1+bzr3295-0ubuntu1) trusty; urgency=medium |
681 | + |
682 | + * New Upstream Release, RC1 bzr 3295 |
683 | + - If using MSCM (Moonshot Chassis Manager) on a M300, do not overwrite |
684 | + power parameters (LP: #1382075) |
685 | + - Do not write DNS hostmaps if its PXE Mac is not on a managed cluster |
686 | + interface. (LP: #1382108) |
687 | + - Show os field in boot source selections API. (LP: #1384383) |
688 | + - Add documentation for new Import Images features (LP: #1384010) |
689 | + - Allow releasing if Failed to Disk Wipe or Release (LP: #1384821) |
690 | + - Handle missing subarch when creating a node via RPC for |
691 | + probe-and-enlist methods (LP: #1384778) |
692 | + - Update default waiting policy for power actions to increase time of |
693 | + wait to handle different type of BMC's (LP: #1384758) |
694 | + - Use HTTP_PROXY to download images if configured (LP: #1384464) |
695 | + - Return 503 response for PowerActionAlreadyInProgress and add a |
696 | + 'Retry-after' Header. (LP: #1384001) |
697 | + - Stop ImportResourcesService from crashing when an import fails |
698 | + (LP: #1386722) |
699 | + - Convert TFTP request paths that contain backslashes to forward |
700 | + slashes. (LP: #1387191) |
701 | + - Do not try to delete synced boot images if not new ones are present |
702 | + to handle a weird race. (LP: #1387133) |
703 | + - Fix storage unit shown on the node edit page (LP: #1387431) |
704 | + - Use CompressedAmpList in UpdateLeases to now parse |
705 | + ~3500 leases (LP: #1387515, LP: #1387515) |
706 | + - Updated XPath expression for discovering storage capacity from new |
707 | + lshw changes. (LP: #1387380) |
708 | + - Add sub status field on API. |
709 | + - Generate DNS mappings for the Dynamic IP range. Hostname generation |
710 | + is limited to /16. (LP: #1382190) |
711 | + - Use configured HTTP Proxy to download boot images (LP: #1384464) |
712 | + * debian/extras/maas-proxy-common.sh: Ensure that permissions are correct |
713 | + before starting maas-proxy. (LP: #1382266) |
714 | + |
715 | + -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 27 Oct 2014 21:53:43 -0400 |
716 | + |
717 | +maas (1.7.0~beta8+bzr3272-0ubuntu1) utopic; urgency=medium |
718 | + |
719 | + * New Upstream Release, Beta 8 bzr 3272. |
720 | + - Maintain backward compatibility with status codes to not break |
721 | + client MAAS API users. (LP: #1383609) |
722 | + - Allow users to disable DHCP NIC scanning during commissioning otherwise |
723 | + this can lead machines not being able to commission (LP: #1383384) |
724 | + - Ensure that MAAS can correctly download, and install HWE Kernels, and |
725 | + not crash in the process. (LP: #1357532, LP: #1382281) |
726 | + - Add a lock to ensure we don't give the same 2 systems to two different |
727 | + users when acquiring a machine. (LP: #1382575) |
728 | + |
729 | + [ Michael McCracken ] |
730 | + * debian/maas-dns.postrm: ensure named.conf is cleaned of maas |
731 | + includes (LP: #1346538) |
732 | + |
733 | + -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 22 Oct 2014 12:55:08 -0400 |
734 | + |
735 | +maas (1.7.0~beta7+bzr3266-0ubuntu1) utopic; urgency=medium |
736 | + |
737 | + * New Upstream Snapshot, Beta 7 bzr3266 |
738 | + |
739 | + [ Jeroen Vermeulen ] |
740 | + * debian/extras/99-maas-sudoers |
741 | + debian/maas-dhcp.postinst |
742 | + debian/rules |
743 | + - Add second DHCP server instance for IPv6. |
744 | + * debian/maas-region-controller-min.install |
745 | + debian/maas-region-controller-min.lintian-overrides |
746 | + - Install deployment user-data: maas_configure_interfaces.py script. |
747 | + * debian/maas-cluster-controller.links |
748 | + debian/maas-cluster-controller.install |
749 | + debian/maas-cluster-controller.postinst |
750 | + - Reflect Celery removal changes made in trunk r3067. |
751 | + - Don't install celeryconfig_cluster.py any longer. |
752 | + - Don't install maas_local_celeryconfig_cluster.py any longer. |
753 | + - Don't symlink maas_local_celeryconfig_cluster.py from /etc to /usr. |
754 | + - Don't insert UUID into maas_local_celeryconfig_cluster.py. |
755 | + |
756 | + [ Andres Rodriguez ] |
757 | + * debian/maas-region-controller-min.postrm: Cleanup lefover files. |
758 | + * debian/maas-dhcp.postrm: Clean leftover configs. |
759 | + * Provide new maas-proxy package that replaces the usage of |
760 | + squid-deb-proxy: |
761 | + - debian/control: New maas-proxy package that replaces the usage |
762 | + of squid-deb-proxy; Drop depends on squid-deb-proxy. |
763 | + - Add upstrart job. |
764 | + - Ensure squid3 is stopped as maas-proxy uses a caching proxy. |
765 | + * Remove Celery references to cluster controller: |
766 | + - Rename upstart job from maas-pserv to maas-cluster; rename |
767 | + maas-cluster-celery to maas-cluster-register. Ensure services |
768 | + are stopped on upgrade. |
769 | + - debian/maintscript: Cleanup config files. |
770 | + - Remove all references to the MAAS celery daemon and config |
771 | + files as we don't use it like that anymore |
772 | + * Move some entries in debian/maintscript to |
773 | + debian/maas-cluster-controller.maintscript |
774 | + * Remove usage of txlongpoll and rabbitmq-server. Handle upgrades |
775 | + to ensure these are removed correctly. |
776 | + |
777 | + [ Jason Hobbs ] |
778 | + * debian/maas-region-controller-min.install: Install |
779 | + maas-generate-winrm-cert script. |
780 | + |
781 | + [ Raphaël Badin ] |
782 | + * debian/extras/maas-region-admin: Bypass django-admin as it prints |
783 | + spurious messages to stdout (LP: #1365130). |
784 | + |
785 | + [Louis Bouchard] |
786 | + * debian/maas-cluster-controller.postinst: |
787 | + - Exclude /var/log/maas/rsyslog when changing ownership |
788 | + (LP: #1346703) |
789 | + |
790 | + [Gavin Panella] |
791 | + * debian/maas-cluster-controller.maas-clusterd.upstart: |
792 | + - Don't start-up the cluster controller unless a shared-secret has |
793 | + been installed. |
794 | + * debian/maas-cluster-controller.maas-cluster-register.upstart: Drop. |
795 | + |
796 | + -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 21 Aug 2014 19:36:30 -0400 |
797 | + |
798 | +maas (1.7.0~beta1+bzr2781-0ubuntu1) utopic; urgency=medium |
799 | + |
800 | + * New upstream release, 1.7.0 Beta 1 |
801 | + |
802 | + [Diogo Matsubara] |
803 | + * debian/control: |
804 | + - maas-cluster-controller depends on syslinux-dev | |
805 | + syslinux-common (LP: #1328659) |
806 | + - python-maas-provisioningserver depends on |
807 | + python-paramiko (LP: #1334401) |
808 | + |
809 | + [Jeroen Vermeulen] |
810 | + * debian/extras/99-maas-sudoers: |
811 | + - Let maas user import, including sudo tgt-admin and sudo uec2roottar. |
812 | + * debian/maas-cluster-controller.install: |
813 | + - Stop installing obsolete file bootresources.yaml. |
814 | + |
815 | + [ Raphaël Badin ] |
816 | + * debian/control: |
817 | + - maas-cluster-controller depends on python-pexpect |
818 | + * debian/extras/99-maas-sudoers: |
819 | + - Add rule 'maas-dhcp-server stop' job. |
820 | + |
821 | + [ Greg Lutostanski ] |
822 | + * debian/control: |
823 | + - maas-cluster-controller depends on grub-common |
824 | + - maas-provisioningserver not maas-cluster-controller depends on |
825 | + python-pexpect (LP: #1352273) |
826 | + - maas-provisioningserver not maas-cluster-controller depends on |
827 | + python-seamicroclient (LP: #1332532) |
828 | + |
829 | + [ Gavin Panella ] |
830 | + * debian/maas-cluster-controller.postinst |
831 | + - Allow maas-pserv to bind to all IPv6 addresses too. |
832 | + |
833 | + [ Julian Edwards ] |
834 | + * debian/maas-region-controller-min.apport |
835 | + debian/maas-region-controller-min.logrotate |
836 | + debian/maas-region-controller-min.postinst |
837 | + debian/maas-region-controller.postinst |
838 | + - Change the log file name maas.log to maas-django.log |
839 | + * debian/maas-cluster-controller.postinst |
840 | + debian/maas-common.install |
841 | + debian/maas-region-controller-min.postinst |
842 | + debian/maas-region-controller.postinst |
843 | + - Install /var/log/maas/maas.log as a syslog file. |
844 | + - Ensure logging is set up for upgrades |
845 | + |
846 | + [ Graham Binns ] |
847 | + * debian/maas-region-controller.postinst: |
848 | + - Add symlinks for squid3, squid-deb-proxy and apache log directories to |
849 | + /var/log/maas. |
850 | + |
851 | + [ Andres Rodriguez ] |
852 | + * debian/maas-region-controller.postinst: Force symlink creation |
853 | + for external logs. |
854 | + * debian/maas-region-controller.postinst: Do not change celery's |
855 | + rabbitmq password on upgrade that to not lock remote |
856 | + Cluster Controllers if upgrading from 1.5+. (LP: #1300507) |
857 | + |
858 | + -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 21 Aug 2014 14:05:40 -0400 |
859 | + |
860 | +maas (1.5+bzr2252-0ubuntu1) trusty; urgency=medium |
861 | + |
862 | + * New upstream release |
863 | + - Add support to install Third Party Drivers. In order for this to be |
864 | + used the user will have to go to the Settings page to enable the |
865 | + installation of these drivers. (LP: #1305839) |
866 | + - Use release images instead of daily. (LP: #1306701) |
867 | + - Quote interface name in dhcpd.template, otherwise DHCP server fails |
868 | + to start. (LP: #1306335) |
869 | + - Fix IntegrityError, when multiple processes are trying to register |
870 | + the same component. (LP: #1307415) |
871 | + - Add missing armhf commissioning template (LP: #1307780) |
872 | + * debian/maas-region-controller-min.install: Install drivers.yaml. |
873 | + * debian/maas-region-controller.postinst: No longer show the |
874 | + installation note by default. (LP: #1284652) |
875 | + |
876 | + -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 09 Apr 2014 19:02:00 -0400 |
877 | + |
878 | +maas (1.5+bzr2236-0ubuntu1) trusty; urgency=medium |
879 | + |
880 | + * New upstream bugfix release. |
881 | + - Fix simplestreams path to use the new data source path. (LP: #1305118) |
882 | + - Fix commissioning_distro_series validation failure. (LP: #1304408) |
883 | + - Fix DB migration 0072_remove_ipmi_autodetec. (LP: #1302156) |
884 | + - Update documentation. |
885 | + * debian/maas-region-controller-min.maas-region-celery.upstart, |
886 | + debian/maas-region-controller-min.maas-txlongpoll.upstart: Fix ISO |
887 | + install by making sure rabbitmq user is really created if it does not |
888 | + exist (LP: #1298559) |
889 | + |
890 | + -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 09 Apr 2014 18:36:55 -0400 |
891 | + |
892 | +maas (1.5+bzr2230-0ubuntu1) trusty; urgency=medium |
893 | + |
894 | + * New upstream bugfix release: |
895 | + - Fix Cluster Controller to handle deprecated config items gracefull. |
896 | + Otherwise it fails on upgrades. (LP: #1302772) |
897 | + - Fix documentation generation and referencing. (LP: #1302956) |
898 | + - Ensure we PXE boot when we turn on SM15K systems. (LP: #1303915) |
899 | + |
900 | + -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 07 Apr 2014 10:26:51 -0400 |
901 | + |
902 | +maas (1.5+bzr2227-0ubuntu1) trusty; urgency=medium |
903 | + |
904 | + * New upstream bugfix release: |
905 | + - Fix catching exceptions raised by |
906 | + twisted.conch.ssh.keys.Key.fromString (LP: #1298788) |
907 | + - Fix validationg in default NodeGroupInterface.broadcast_ip making it |
908 | + optional. (LP: #1299374) |
909 | + - Drop install-pxe-bootloader as it conflicts with newer import script. |
910 | + - Remove references to old import script. |
911 | + - Fix changes that cause overwriting of existing entries. |
912 | + - Fix inappropriate ValidationError when defining networks with nested |
913 | + (but non-identical) address ranges. (LP: #1299114) |
914 | + - Fix issue where if a node does not provide an architecture type on dhcp |
915 | + request, or no other boot method is available for that architecture, |
916 | + the node still uses pxelinux.0 to boot. (LP: #1300285) |
917 | + - Take an advisory lock to prevent concurrent creation of the |
918 | + eventloops table. (LP: #1300363) |
919 | + - Remove the cloud_images_archive setting, as it conflicts with new |
920 | + import script. (LP: #1300587) |
921 | + - Add a 'logout confirmation' page. Using this, the logout action is |
922 | + protected against CSRF attacks because it uses a POST request, in |
923 | + conjunction with Django's CSRF protection feature. (LP: #1298790) |
924 | + - Fix cluster listings when dealing with large number of clusters by |
925 | + paginating it. (LP: #1301242) |
926 | + - Change list_boot_images() so that it can cope with a missing boot |
927 | + images directory: this happens if the reporting task runs before the |
928 | + images have been imported. (LP: #213984) |
929 | + - Fix internal server error on fast path installer. (LP: #1293676) |
930 | + - Fix uploading files using maas-cli. (LP: #1187826) |
931 | + - Fix SM15k Invalid Power Control and Fix enlisting machines with |
932 | + 2.0 api. (LP: #1302818, LP: #1302819) |
933 | + |
934 | + [ Andres Rodriguez ] |
935 | + * debian/maas-cluster-controller.install: Install UEFI templates |
936 | + * debian/maas-cluster-controller.dirs: Create 'boot-resources' dir. |
937 | + |
938 | + [ Jason Hobbs ] |
939 | + * debian/extras/99-maas: Allow access to keyserver.ubuntu.com via |
940 | + squid-deb-proxy. |
941 | + |
942 | + [Jeroen Vermeulen] |
943 | + * debian/maas-cluster-controller.postinst: |
944 | + - Make the tgt config link point to the new boot-resources dir. |
945 | + * debian/maas-region-controller-min.dirs: |
946 | + - Don't create /var/lib/maas/tftp. |
947 | + |
948 | + -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 03 Apr 2014 13:45:02 -0400 |
949 | + |
950 | +maas (1.5+bzr2204-0ubuntu1) trusty; urgency=low |
951 | + |
952 | + * New upstream release (LP: #1281881) |
953 | + |
954 | + [ Andres Rodriguez ] |
955 | + * debian/maas-region-controller-min.templates: Set installation note to false |
956 | + by default. |
957 | + * Check rabbitmqctl is present before running commands: |
958 | + - debian/maas-region-controller-min.maas-region-celery.upstart. |
959 | + - debian/maas-region-controller-min.maas-txlongpoll.upstart. |
960 | + * make sure maas_longpoll rabbitmq user is created/with correct password on |
961 | + a package reconfigure. |
962 | + * debian/maas-dns.postinst: Fix upgrade setup of named.conf.options. |
963 | + * debian/maas-cluster-controller.install: Install UEFI templates (LP: #1299143) |
964 | + |
965 | + [ Julian Edwards ] |
966 | + * debian/extas/maas: Echo warning to stderr so json stdout is not polluted |
967 | + * debian/maas-cluster-controller.postinst: Run upgrade-cluster on each |
968 | + upgrade |
969 | + * debian/maas-dns.postinst: Call edit_named_options to add a line in |
970 | + /etc/bind/named.conf.options that includes the |
971 | + /etc/named/maas/named.conf.options.inside.maas file. |
972 | + * debian/control: |
973 | + - maas-dns depends on python-iscpy |
974 | + - maas-cluster-controller depends on python-seamicroclient |
975 | + * debian/maas-cluster-controller.install: Install bootresources.yaml |
976 | + |
977 | + [ Dustin Kirkland ] |
978 | + * debian/control: LP: #1297097 |
979 | + - clean up package descriptions, modernize, and more clearly/simply |
980 | + explain what each package does |
981 | + - drop "Ubuntu" in front of MAAS, clean up command line/API description |
982 | + |
983 | + -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 28 Mar 2014 10:43:53 -0400 |
984 | + |
985 | +maas (1.5+bzr1977-0ubuntu1) trusty; urgency=low |
986 | + |
987 | + * New upstream bugfix release. |
988 | + - setup.py: Install missing shell snippet |
989 | + |
990 | + -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 19 Feb 2014 16:31:45 -0500 |
991 | + |
992 | +maas (1.5+bzr1976-0ubuntu1) trusty; urgency=low |
993 | + |
994 | + * New upstream release. |
995 | + * debian/maas-cluster-controller.postinst: Make sure upgrades handle |
996 | + authbind upgrades too. |
997 | + |
998 | + -- Andres Rodriguez <andreserl@ubuntu.com> Sun, 16 Feb 2014 22:56:36 -0500 |
999 | + |
1000 | +maas (1.5+bzr1951-0ubuntu1) trusty; urgency=low |
1001 | + |
1002 | + * New upstream release |
1003 | + * debian/maas-cluster-controller.postinst: Also authbind port 69. |
1004 | + * debian/maas-cluster-controller.maas-pserv.upstart: Export MAAS_URL. |
1005 | + |
1006 | + -- Andres Rodriguez <andreserl@ubuntu.com> Sat, 15 Feb 2014 16:16:38 -0500 |
1007 | + |
1008 | +maas (1.5+bzr1948-0ubuntu2) trusty; urgency=low |
1009 | + |
1010 | + * debian/maas-cluster-controller.postinst: Make sure generator on |
1011 | + pserv.yaml is updated on upgrade or reconfigure. (LP: #1273197) |
1012 | + * debian/maas-cluster-controller.maas-pserv.upstart: Make sure maas-pserv |
1013 | + is started with authbind. |
1014 | + |
1015 | + -- Andres Rodriguez <andreserl@ubuntu.com> Sat, 15 Feb 2014 13:55:20 -0500 |
1016 | + |
1017 | +maas (1.5+bzr1948-0ubuntu1) trusty; urgency=low |
1018 | + |
1019 | + * New upstream release. |
1020 | + |
1021 | + [ Graham Binns ] |
1022 | + * debian/control: Depends on python-jsonschema. |
1023 | + |
1024 | + [ Andres Rodriguez ] |
1025 | + * debian/maas-region-controller-min.posinst: Make txlongpoll.yaml only |
1026 | + readable by the app and not world readeable. |
1027 | + * debian/patches/02-pserv-config.patch: Refreshed. |
1028 | + |
1029 | + [ Julian Edwards ] |
1030 | + * debian/extras/maas-cli renamed to debian/extras/maas, and introduce |
1031 | + a deprecation warning in favour of using maas over maas-cli. |
1032 | + * debian/extras/maas renamed to debian/extras/maas-region-admin |
1033 | + * debian/maas-cli.install: install debian/extras/maas |
1034 | + * debian/maas-dns.postinst: Invoke maas-region-admin instead of maas |
1035 | + * debian/maas-region-controller-min.install: install maas-region-admin |
1036 | + instead of maas |
1037 | + * debian/maas-region-controller.postinst: Invoke maas-region-admin instead |
1038 | + of maas |
1039 | + * debian/maas-cli.links: Link from maas to maas-cli for backward compat. |
1040 | + |
1041 | + [ Seth Arnold ] |
1042 | + * debian/maas-region-controller-min.postinst: Make sure txlongpoll.yaml |
1043 | + gets correct permissions on upgrade (LP: #1254034) |
1044 | + |
1045 | + -- Andres Rodriguez <andreserl@ubuntu.com> Sat, 15 Feb 2014 12:08:23 -0500 |
1046 | + |
1047 | +maas (1.5+bzr1909-0ubuntu1) trusty; urgency=low |
1048 | + |
1049 | + * New upstream release. |
1050 | + |
1051 | + [ Dustin Kirkland ] |
1052 | + * debian/maas-region-controller-min.postinst: Fix typo in sed. Remove |
1053 | + double quotes. (LP: #1274448) |
1054 | + |
1055 | + [ Andres Rodriguez ] |
1056 | + * debian/control: Add depends on python-crochet. |
1057 | + * Get rid of dfsg on the versioning as we no longer strip any code from |
1058 | + the orig tarball. |
1059 | + - debian/rules: Do not strip any files out of the tarball. |
1060 | + * debian/patches/*: Refreshed. |
1061 | + |
1062 | + -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 31 Jan 2014 09:38:51 -0500 |
1063 | + |
1064 | +maas (1.4+bzr1853+dfsg-0ubuntu1) trusty; urgency=low |
1065 | + |
1066 | + * New upstream release |
1067 | + |
1068 | + -- Dustin Kirkland <kirkland@ubuntu.com> Tue, 28 Jan 2014 08:41:41 +0000 |
1069 | + |
1070 | +maas (1.4+bzr1849+dfsg-0ubuntu1) trusty; urgency=low |
1071 | + |
1072 | + * New upstream release. |
1073 | + |
1074 | + [ Gavin Panella ] |
1075 | + * debian/control: Remove all dependencies on Avahi and DBUS. |
1076 | + |
1077 | + -- Julian Edwards <julian.edwards@canonical.com> Tue, 28 Jan 2014 17:12:22 +1000 |
1078 | + |
1079 | +maas (1.4+bzr1820+dfsg-0ubuntu1) trusty; urgency=low |
1080 | + |
1081 | + * New upstream Release. |
1082 | + |
1083 | + [ Jeroen Vermeulen ] |
1084 | + * Move maas-probe-dhcp from maas-dhcp to python-maas-provisioningserver. |
1085 | + |
1086 | + [ Andres Rodriguez ] |
1087 | + * debian/maas-region-controller.postinst: Make sure maas-txlongpoll and |
1088 | + maas-region-celery get restarted. |
1089 | + * debian/control: |
1090 | + - python-maas-provisioningserver Breaks/Replaces for maas-dhcp due to |
1091 | + moving files around packages. |
1092 | + - Suggests ipmitool, libvirt-bin, amtterm. |
1093 | + |
1094 | + -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 15 Jan 2014 00:24:58 -0500 |
1095 | + |
1096 | +maas (1.4+bzr1817+dfsg-0ubuntu1) trusty; urgency=low |
1097 | + |
1098 | + * New upstream release |
1099 | + |
1100 | + [ Andres Rodriguez ] |
1101 | + * debian/maas-dns.postinst: Drop write_dns_config as this is run by |
1102 | + celery jobs. |
1103 | + * debian/maas-region-controller.templates: Rename template to |
1104 | + maas-region-controller-min.templates |
1105 | + * debian/control: Depends on python-amqp; Conflicts on python-librabbitmq. |
1106 | + |
1107 | + [ Julian Edwards ] |
1108 | + * New maas-probe-dhcp script to detect DHCP servers |
1109 | + - debian/extras/maas-probe-dhcp: New script |
1110 | + - debian/maas-dhcp.install: Install new maas-probe-dhcp script |
1111 | + - maas-dhcp.lintian-overrides: New maas-probe-dhcp script has no manpage |
1112 | + |
1113 | + -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 15 Jan 2014 00:23:44 -0500 |
1114 | + |
1115 | +maas (1.4+bzr1789+dfsg-0ubuntu1) trusty; urgency=low |
1116 | + |
1117 | + * New upstream release |
1118 | + |
1119 | + [ Jeroen Vermeulen ] |
1120 | + * Keep legacy import_ephemerals config for now. |
1121 | + |
1122 | + [ Andres Rodriguez ] |
1123 | + * debian/maas-region-controller.postinst: Allo default-maas-url debconf |
1124 | + option to be preseeded. |
1125 | + * Make use of authbind to allow maas-cluster-celery bind port as non-root. |
1126 | + - debian/control: Depends on authbind for maas-cluster-controller. |
1127 | + - debian/maas-cluster-controller.{postinst,postrm}: Handle creation |
1128 | + and removal of required authbind file. |
1129 | + * Split maas-region-controller into maas-region-controller-min. |
1130 | + - debian/maas-region-controller-min.{postinst,postrm,prerm}: Handle |
1131 | + basic configuration for rsyslogd, squid-deb-proxy, and maas-url. |
1132 | + - debian/control: Depends on maas-region-controller-min, postgresql |
1133 | + and rabbitmq-server for maas-region-controller. |
1134 | + |
1135 | + -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 10 Oct 2013 17:07:51 -0400 |
1136 | + |
1137 | +maas (1.4+bzr1693+dfsg-0ubuntu1) saucy; urgency=low |
1138 | + |
1139 | + * New Upstream Release (LP: #1218526) |
1140 | + - This new upstream release contains fixes and improvements of the |
1141 | + features approved by the FFe above. |
1142 | + - Fixes commissioning failure on Saucy with 'Failed Test' (LP: #1237364) |
1143 | + - Fixes access of static images over http (LP: #1236544) |
1144 | + * d/maas-cluster-controller.postinst: a2enmod version module (LP: #1236544) |
1145 | + * d/control: Bump depends on python-django to 1.4. (LP: #1236572) |
1146 | + * d/maas-dhcp.postinst: Fail gracefully if apparmor_parser fails, allowing |
1147 | + to install maas-dhcp during an ISO install. (LP: #1236786) |
1148 | + |
1149 | + -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 04 Oct 2013 12:33:05 -0400 |
1150 | + |
1151 | +maas (1.4+bzr1656+dfsg-0ubuntu2) saucy; urgency=low |
1152 | + |
1153 | + * debian/control: Recommends on maas-dns instead of Depends for region |
1154 | + because maas-dns needs the region installed first. |
1155 | + |
1156 | + -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 03 Oct 2013 10:36:20 -0400 |
1157 | + |
1158 | +maas (1.4+bzr1656+dfsg-0ubuntu1) saucy; urgency=low |
1159 | + |
1160 | + [ Andres Rodriguez ] |
1161 | + * New upstream bugfix release. |
1162 | + - Respect filters for ephemerals_script.py. |
1163 | + * debian/control: Depends on ubuntu-cloudimage-keyring instead of |
1164 | + ubuntu-cloud-keyring; depends on python-distro-info. |
1165 | + * debian/control: Remove suggests on maas-dhcp and maas-dns as they are |
1166 | + now dependencies. |
1167 | + |
1168 | + [ Scott Moser ] |
1169 | + * debian/control: Bump depends on isc-dhcp-server to 4.2.4 |
1170 | + * debian/maas-dhcp.maas-dhcp-server.upstart: Change ownership of leases |
1171 | + file to root:root, and run the daemon as dhcpd:dhcpd. |
1172 | + |
1173 | + -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 01 Oct 2013 15:26:34 -0400 |
1174 | + |
1175 | +maas (1.4+bzr1655+dfsg-0ubuntu1) saucy; urgency=low |
1176 | + |
1177 | + * New Upstream release. (LP: #1218526) |
1178 | + * debian/control: |
1179 | + - Depends on python-djorm-ext-pgarray, python-curtin, |
1180 | + python-simplestreams, ubuntu-cloud-keyring. |
1181 | + - Depends on maas-dns, maas-dhcp to get them seeded and |
1182 | + into main (LP: #1227353) |
1183 | + |
1184 | + -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 28 Aug 2013 11:17:44 -0400 |
1185 | + |
1186 | +maas (1.4+bzr1551+dfsg-0ubuntu1) saucy; urgency=low |
1187 | + |
1188 | + * New upstream release |
1189 | + |
1190 | + -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 15 Aug 2013 16:20:41 -0400 |
1191 | + |
1192 | +maas (1.4+bzr1548+dfsg-0ubuntu1) saucy; urgency=low |
1193 | + |
1194 | + * New upstream release |
1195 | + |
1196 | + -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 18 Jul 2013 10:15:10 -0400 |
1197 | + |
1198 | +maas (1.4+bzr1539+dfsg-0ubuntu1) saucy; urgency=low |
1199 | + |
1200 | + * New upstream release |
1201 | + * Symlink apache2 config into /etc/apache2/conf-enabled/ instead of |
1202 | + /etc/apache2/conf.d as apache2.4 no longer supports the latter. |
1203 | + - debian/maas-cluster-controller.{postinst,postrm} |
1204 | + - debian/maas-region-controller.{postinst,postrm} |
1205 | + * debian/control: Bump Standards-Version to 3.9.4. |
1206 | + * debian/maas-cluster-controller.lintian-overrides: Remove unneeded |
1207 | + override and add a new one. |
1208 | + * debian/maas-region-controller.lintian-overrides: Add extra overrides. |
1209 | + |
1210 | + -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 03 Jul 2013 17:11:02 -0400 |
1211 | + |
1212 | +maas (1.4+bzr1538+dfsg-0ubuntu1) saucy; urgency=low |
1213 | + |
1214 | + * New upstream release |
1215 | + * debian/patches/04-setup-dont-user-list-snippets.patch: Drop. Merged |
1216 | + Upstream. |
1217 | + |
1218 | + -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 13 Jun 2013 20:06:35 -0400 |
1219 | + |
1220 | +maas (1.4+bzr1527+dfsg-0ubuntu1) saucy; urgency=low |
1221 | + |
1222 | + * debian/patches/04-setup-dont-user-list-snippets.patch: Drop importing |
1223 | + maasserver modules to list snippets in favor to using glob. Otherwise |
1224 | + we would have to add various non necessary Build-Dependencies. |
1225 | + |
1226 | + [ Jeroen Vermeulen ] |
1227 | + * Install templates into /etc/maas/templates/. |
1228 | + |
1229 | + -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 03 Jun 2013 17:59:31 -0400 |
1230 | + |
1231 | +maas (1.4+bzr1505+dfsg-0ubuntu1) saucy; urgency=low |
1232 | + |
1233 | + * New upstream release |
1234 | + |
1235 | + [ Steve Langasek ] |
1236 | + * Add missing dependency on iproute to maas-region-controller, for use of |
1237 | + /sbin/ip in postinst. |
1238 | + |
1239 | + [ Julian Edwards ] |
1240 | + * debian/maas-dhcp.maas-dhcp-server.upstart: |
1241 | + - Detect 12.04 as the host OS and install with correct permissions. This |
1242 | + allows the same packaging to be used in the 12.04 backport. |
1243 | + |
1244 | + [ Andres Rodriguez ] |
1245 | + * Update packaging to support FPI: |
1246 | + - debian/control: Depends on apache2 for maas-cluster-controller. |
1247 | + - debian/maas-cluster-controller.install: Install http config file. |
1248 | + - debian/maas-cluster-controller.{postinst,postrm}: Handle symlink creation |
1249 | + and deletion. |
1250 | + * debian/maas-region-controller.install: Install preseeds in |
1251 | + etc/maas/preseeds. (LP: #1073463) |
1252 | + |
1253 | + [ Jeroen Vermeulen ] |
1254 | + * In the source tree, /etc/maas/pserv.yaml has moved from etc/ to etc/maas/. |
1255 | + * Install templates into /etc/maas/templates/. |
1256 | + |
1257 | + -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 03 Jun 2013 16:53:14 -0400 |
1258 | + |
1259 | +maas (1.3+bzr1455+dfsg-0ubuntu1) raring; urgency=low |
1260 | + |
1261 | + * New upstream bugfix release. |
1262 | + - Fixes and returns the 'resource_url' with the 'canonical' url for |
1263 | + a file that is fetched using the API (LP: #1154142) |
1264 | + |
1265 | + [ Andres Rodriguez ] |
1266 | + * debian/control: |
1267 | + - Change Conflicts/Replaces for Breaks/Replaces. |
1268 | + - Conflicts on tftpd-hpa and dnsmasq. |
1269 | + - Do not pre-depends, but Depends on ${misc:Depends} for 'maas'. |
1270 | + |
1271 | + [ Steve Langasek ] |
1272 | + * postinst scripts are never called with 'reconfigure' as the script |
1273 | + argument. Remove references to this (mythical) invocation. |
1274 | + * always call 'set -e' from maintainer scripts instead of passing 'sh -e' |
1275 | + as the interpreter, so that scripts will behave correctly when run via |
1276 | + 'sh -x'. |
1277 | + * invoke-rc.d is never allowed to not exist - simplify scripts (and make |
1278 | + them better policy-compliant) by invoking unconditionally. (The only |
1279 | + possible exception is in the postrm, where it's *theoretically* possible |
1280 | + for invoke-rc.d to be missing if the user has completely stripped |
1281 | + down their system; that's a fairly unreasonable corner case, but we |
1282 | + might as well be correct if it ever happens.) |
1283 | + * db_get+db_set is a no-op; don't call db_set to push back a value we just |
1284 | + got from db_get. |
1285 | + * Omit superfluous calls to 'exit 0' at the end of each script. |
1286 | + * Remove maas-cluster-controller prerm script, which called debconf for no |
1287 | + reason. |
1288 | + * Don't invoke debconf in the postrm script either, debhelper already does |
1289 | + this for us. |
1290 | + * Other miscellaneous maintainer script fixes |
1291 | + * debian/maas-common.postinst: call adduser and addgroup unconditionally; |
1292 | + the tools are already designed to DTRT, we don't need to check for the |
1293 | + user/group existence before calling them nor should we worry about |
1294 | + calling them only once on first install. |
1295 | + * debian/maas-common.postrm: delete the maas group, not just the user, |
1296 | + as the comment in the code implies we should do. |
1297 | + |
1298 | + -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 19 Mar 2013 15:38:22 -0400 |
1299 | + |
1300 | +maas (1.3+bzr1452+dfsg-0ubuntu1) raring; urgency=low |
1301 | + |
1302 | + * New upstream release. |
1303 | + - MAAS file storage mechanism is shifting from a single shared |
1304 | + namespace to a per-user namespace. Operators of the majority |
1305 | + of MAAS systems will not notice any change. However, operators |
1306 | + of the most complex installations may find that a new |
1307 | + "shared-environment" user is created, and that some resources |
1308 | + are reassigned to it, such as API credentials and SSH public |
1309 | + keys. This provides a transitional environment that mimics the |
1310 | + behaviour of a shared namespace. |
1311 | + |
1312 | + [ Raphaël Badin ] |
1313 | + * debian/control: maas-region-controller depends on bind9utils. |
1314 | + (LP: #1103195) |
1315 | + * debian/maas-dns.postinst: Call write_dns_config. |
1316 | + (LP: #1085865). |
1317 | + * debian/maas-cluster-controller.postinst: Fix the name of the config |
1318 | + file (/etc/maas/pserv.yaml and not /etc/maas/pserv.conf) |
1319 | + (LP: #1083542). |
1320 | + * debian/extras/99-maas-sudoers: Add 'SETENV:' to sudo rule |
1321 | + to allow preserving the environment when running |
1322 | + /usr/sbin/maas-import-pxe-files via sudo. |
1323 | + * debian/maas-dns.postinst: fix permissions and group ownership of |
1324 | + file /etc/bind/maas/named.conf.rndc.maas. (LP: #1066935) |
1325 | + * debian/control: Remove the dependency of maas-cluster-controller |
1326 | + on rabbitmq-server. (LP: #1072744) |
1327 | + * debian/extras/99-maas-sudoers: Add sudo rule for script |
1328 | + /usr/sbin/maas-import-pxe-files. |
1329 | + * debian/maas-cluster-controller.install: Removed commissioning-user-data |
1330 | + script. |
1331 | + |
1332 | + [ Julian Edwards ] |
1333 | + * debian/maas-region-controller.install: Remove installation of maas-gc; it |
1334 | + is no longer required as upstream no longer stores files in the filesystem. |
1335 | + (LP: #1069734) |
1336 | + * debian/maas-cluster-controller.postinst: Ensure that /etc/maas/pserv.yaml |
1337 | + is updated when reconfiguring. (LP: #1081212) |
1338 | + |
1339 | + [ Jeroen Vermeulen ] |
1340 | + * debian/maas-cluster-controller.install: Install import scripts. |
1341 | + * debian/maas-cluster-controller.postinst: Configure tgt (the iSCSI server) |
1342 | + so the import script can install files to it. |
1343 | + * debian/maas-cluster-controller.postrm: Clean up tgt config. |
1344 | + * debian/maas-region-controller.install: Move import scripts out to the |
1345 | + cluster controller, and drop the maas-import-isos compatibility script. |
1346 | + * debian/maas-region-controller.postinst: Remove tgt config. |
1347 | + * debian/maas-region-controller.postrm: Remove tgt config cleanup. |
1348 | + * Bump code revision to include latest user_data.template fixes. |
1349 | + |
1350 | + [ Gavin Panella ] |
1351 | + * debian/extras/99-maas: squashfs image download is no longer needed. |
1352 | + * debian/maas-cluster-controller.install: maas-import-squashfs and its |
1353 | + configuration file are no longer part of upstream. |
1354 | + * debian/maas-cluster-controller.install: The maas-import-pxe-files cron |
1355 | + task is no longer used. |
1356 | + * debian/maas-cluster-controller.postinst: Remove leading comment |
1357 | + markers from the 'generator' line in pserv.yaml. |
1358 | + |
1359 | + [ Andres Rodriguez ] |
1360 | + * debian/control: |
1361 | + - maas-cluster-controller Conflicts with tftpd-hpa (LP: #1076028) |
1362 | + - maas-dns: Conflicts with dnsmasq |
1363 | + - maas-cluster-controller Conflicts/Replaces maas-region-controller as |
1364 | + import scripts are no longer shipped in the region. |
1365 | + - debian/control: Depends on distro-info for maas-cluster-controller |
1366 | + instead of maas-region-controller (LP: #1103194) |
1367 | + * debian/maas-cluster-controller.config: If URL has been detected, |
1368 | + add /MAAS if it doesn't contain it. This helps upgrades from versions |
1369 | + where DEFAULT_MAAS_URL didn't use /MAAS. |
1370 | + |
1371 | + -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 04 Mar 2013 11:49:44 -0500 |
1372 | + |
1373 | +maas (0.1+bzr1269+dfsg-0ubuntu1) quantal-proposed; urgency=low |
1374 | + |
1375 | + * New upstream bugfix release |
1376 | + - Fixes commissioning failing to set memory attribute. (LP: #1064638) |
1377 | + - Fixes node listing by adding pagination (LP: #1064672) |
1378 | + - Changes default bind rndc key which breaks initscripts (LP: #1066938) |
1379 | + - Fixes invalid DNS config once node is enlisted (LP: #1066958) |
1380 | + - Reference documentation link to correct URL (LP: #1067261) |
1381 | + |
1382 | + [ Andres Rodriguez ] |
1383 | + * debian/rules: Change upstream branch. |
1384 | + |
1385 | + [ Gavin Panella ] |
1386 | + * debian/maas-dns.postinst: Remove MAAS-related include lines from named's |
1387 | + config before adding a new one (LP: #1066929) |
1388 | + |
1389 | + [ Raphael Badin ] |
1390 | + * debian/extras/maas-region-celeryd: Remove whitespace that affects DNS |
1391 | + rabbitmq queue. (LP: #1067929) |
1392 | + |
1393 | + -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 16 Oct 2012 10:31:37 -0400 |
1394 | + |
1395 | +maas (0.1+bzr1264+dfsg-0ubuntu2) quantal; urgency=low |
1396 | + |
1397 | + * Fix MAAS not working after CD/preseed install (LP: #1065763) |
1398 | + - debian/extras/maas-region-celeryd: Add wrapper to run celery from |
1399 | + the upstart job. |
1400 | + - debian/extras/maas-region-controller.maas-region-celery.upstart: Create |
1401 | + rabbitmq user if it does not exists. |
1402 | + * debian/control: Remove unneeded deps on python-txtftp for some binary pkgs. |
1403 | + * debian/maas-region-controller.postinst: Minor fix referencing variable. |
1404 | + |
1405 | + -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 11 Oct 2012 17:38:08 -0400 |
1406 | + |
1407 | +maas (0.1+bzr1264+dfsg-0ubuntu1) quantal; urgency=low |
1408 | + |
1409 | + * New upstream release. |
1410 | + |
1411 | + [ Raphaël Badin ] |
1412 | + * debian/maas-region-controller.postinst: Enable proxy_http module. |
1413 | + * debian/maas-cluster-controller.postinst: Create /var/lib/maas. (LP: #1065062) |
1414 | + |
1415 | + [ Andres Rodriguez ] |
1416 | + * Install maas-provision with python-maas-provisioningserver (LP: #1065171): |
1417 | + - debian/python-maas-provisioningserver.install: Install |
1418 | + - debian/control: Add Conflicts/Replaces with maas-cluster-controller |
1419 | + to handle upgrades. |
1420 | + * debian/patches/04-fix-ipmi-enlistment.patch: Drop. Merged Upstream. |
1421 | + * debian/control: Depends on maas-region-controller for maas-dns. |
1422 | + * debian/maas-region-controller.postinst: Set the correct host for |
1423 | + BROKER_URL (LP: #1065080) |
1424 | + * Handle creation of user/group in maas-common. |
1425 | + * debian/maas-region-controller.config: Always source dbconfig scripts. |
1426 | + |
1427 | + -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 10 Oct 2012 11:17:21 -0400 |
1428 | + |
1429 | +maas (0.1+bzr1243+dfsg-0ubuntu3) quantal; urgency=low |
1430 | + |
1431 | + * 04-fix-ipmi-enlistment.patch: retry maas-enlist without power parameters |
1432 | + on failure. This allows enlistment to continue working with Precise |
1433 | + ephemeral images before the Precise SRU for maas-enlist lands. |
1434 | + (LP: #1064922). |
1435 | + |
1436 | + -- Robie Basak <robie.basak@canonical.com> Wed, 10 Oct 2012 13:29:16 +0000 |
1437 | + |
1438 | +maas (0.1+bzr1243+dfsg-0ubuntu2) quantal; urgency=low |
1439 | + |
1440 | + * debian/patches/99-ipmi-user-too-long.patch: Fix username too long for |
1441 | + IPMI user created on enlistment (LP: #1064832) |
1442 | + |
1443 | + -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 10 Oct 2012 01:00:29 -0400 |
1444 | + |
1445 | +maas (0.1+bzr1243+dfsg-0ubuntu1) quantal; urgency=low |
1446 | + |
1447 | + * New upstream release. (LP: #1064596) |
1448 | + * debian/patches/99-temporary-fix-constraints.patch: Dropped. |
1449 | + * debian/control: |
1450 | + - ${python:Depends} for maas-common. |
1451 | + - Add missing Depends for python-maas-provisioningserver (LP: #1064542) |
1452 | + * debian/maas-cluster-controller.postinst: Create /var/log/maas if it |
1453 | + doesn't exist (LP: #1064539) |
1454 | + |
1455 | + -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 08 Oct 2012 17:02:56 -0400 |
1456 | + |
1457 | +maas (0.1+bzr1223+dfsg-0ubuntu1) quantal; urgency=low |
1458 | + |
1459 | + * New upstream release. (LP: #1062518) |
1460 | + |
1461 | + [ Julian Edwards ] |
1462 | + * Split packaging of 'maas' into maas-{region,cluster}-controller |
1463 | + - debian/control: Update accordingly. |
1464 | + - debian/*.install: Move files accordingly |
1465 | + - debian/*.{postinst,postrm,preinst}: Move files accordingly. |
1466 | + * Ensure isc-dhcp-server is disabled when installing maas-dhcp. |
1467 | + * Ensure maas-dns creates the maas user before trying to chown files. |
1468 | + * Make maas-cluster-controller autoconfigure itself when upgrading from the |
1469 | + old maas package. (LP: #1059416) |
1470 | + * Add missing prerm file for maas-cluster-controller so that .pyc files |
1471 | + are cleaned up. (LP: #1059973) |
1472 | + |
1473 | + [ Raphaël Badin ] |
1474 | + * Install maas_local_celeryconfig.py in /etc/maas and symlink to |
1475 | + /usr/share/maas. |
1476 | + * debian/maas.postinst: Create rabbitmq celery user/vhost. |
1477 | + * debian/maas.postinst: Update BROKER_URL in maas_local_celeryconfig.py. |
1478 | + * Use maas_local_celeryconfig_cluster.py as the local celery |
1479 | + configuration file for the cluster worker. |
1480 | + * debian/maas-region-controller.maas-region-celery.upstart: Add region |
1481 | + worker upstart script. |
1482 | + * Rename cluster worker upstart script into |
1483 | + maas-cluster-controller.maas-clluster-celery.upstart. |
1484 | + * maas-cluster-controller.maas-celery.upstart: use "celeryconfig_cluster" |
1485 | + as the Celery config module. |
1486 | + * debian/maas-common.install: Install celeryconfig_common.py. |
1487 | + * debian/maas-cluster-controller.install: Install celeryconfig_cluster.py. |
1488 | + * debian/maas-region-controller.install: Install celeryconfig.py. |
1489 | + * Split celery config into cluster and region configs. |
1490 | + * Add region celeryd upstart config. |
1491 | + * Define CELERY_CONFIG_MODULE in |
1492 | + maas-cluster-controller.maas-cluster-celery.upstart |
1493 | + |
1494 | + [ Jeroen Vermeulen ] |
1495 | + * Make maas_local_celery_config.py non-world readable. |
1496 | + * Make maas_local_celeryconfig_cluster.py non-world readable. |
1497 | + * Set root:maas ownership of local cluster config only *after* |
1498 | + the maas user/group have been created |
1499 | + |
1500 | + [ Andres Rodriguez ] |
1501 | + * debian/maas.postinst: |
1502 | + - Always restart apache2. |
1503 | + - Handle upgrades for new upstream release. |
1504 | + - Handle upgrades for celery rabbitmq worker. |
1505 | + * Add binary package to install client tool. |
1506 | + - debian/extras/maas-cli: Add binary. |
1507 | + - debian/maas-cli.install: Add. Install maascli and apiclient. |
1508 | + - debian/control: Add binary package. |
1509 | + * debian/control: |
1510 | + - Depends on freeipmi-tools instead of ipmitool. |
1511 | + - Conflicts/Replaces on maas for python-maas-client. |
1512 | + - Depends on python-netifaces, python-lxml. |
1513 | + * Add python-maas-client binary package: |
1514 | + - debian/python-maas-client.install: Add. Install 'apiclient' python module. |
1515 | + - debian/control: Add package. python-django-maas and maas-cli now |
1516 | + Depend on it. |
1517 | + * debian/rules: Install maas-dhcp-server upstart job. |
1518 | + * debian/maas.postrm: Remove celery worker rabbitmq user and host. |
1519 | + * debian/extras/99-maas-sudoers: Add for maas-dhcp-server upstart job |
1520 | + instead of isc-dhcp-server (LP: #1055951) |
1521 | + * debian/maas-region-controller.postinst: Cleanup upgrade rules. |
1522 | + * debian/maas-cluster-controller.postinst: Fix 'local' usage. |
1523 | + * debian/maas-common.install: Install celeryconfig in appropriate location. |
1524 | + * debian/maas-cluster-controller.postrm: Add and delete maas user. |
1525 | + * debian/maas-dhcp.postinst: Stop isc-dhcp-server not isc_dhcp_server. |
1526 | + * debian/maas-region-controller.postinst: |
1527 | + - Always update passwords on upgrade. No longer check versioning. (LP: #1060094). |
1528 | + - Add MAAS server to allowed mirror in squid-deb-proxy |
1529 | + - Source dbconfig conf file for maas-region-controller on upgrade because |
1530 | + it writes a new config file and no longer preservers the previous password. |
1531 | + * debian/maas-cluster-controller.maas-cluster-celery.upstart: Remove set{uid/gid}. |
1532 | + * debian/maas-region-controller.install: Install maas-import-squashfs |
1533 | + * Handle removal of non existant files (LP: #1059556): |
1534 | + - debian/maintscript: Added to handle removal of conffiles. |
1535 | + - debian/control: Add Pre-depends and bump debhelper version. |
1536 | + * update po files for the templates. |
1537 | + * debian/extras/99-maas: Install in usr/share/maas/conf and symlink to the |
1538 | + appropriate etc dir. |
1539 | + * debian/maas-cluster-controller.config: Source debconf at the beginning of the |
1540 | + script. (LP: #1063857) |
1541 | + * debian/patches/99-temporary-fix-constraints.patch: Fix constraints maaping |
1542 | + when deploying with juju. Temporary until it gets merged upstream |
1543 | + |
1544 | + [ Robie Basak ] |
1545 | + * Add maas-cluster-controller dependency on uuid-runtime, needed for uuidgen |
1546 | + by postinst. |
1547 | + |
1548 | + [ Scott Moser ] |
1549 | + * debian/maas-dhcp.{install,apparmor,postrm} install apparmor profile into |
1550 | + /etc/apparmor.d/dhcpd.d (LP: #1049177), and update apparmor profile for |
1551 | + /usr/sbin/dhcpd on install/remove |
1552 | + * get the ip address for the dhcp server in config |
1553 | + |
1554 | + [ Diogo Matsubara ] |
1555 | + * Add initial tests to be run by autotests: |
1556 | + - debian/control: XS-Testsuite: autopkgtest |
1557 | + - debian/tests/control: Add |
1558 | + - debian/tests/maas-package-test: Add |
1559 | + - tests/maas-integration.py: Add |
1560 | + |
1561 | + -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 08 Oct 2012 13:10:23 -0400 |
1562 | + |
1563 | +maas (0.1+bzr971+dfsg-0ubuntu2) quantal; urgency=low |
1564 | + |
1565 | + * debian/extras/99-maas-sudoers: Add missing rule for |
1566 | + maas-provision. (LP: #1046397) |
1567 | + |
1568 | + -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 05 Sep 2012 12:36:58 -0400 |
1569 | + |
1570 | +maas (0.1+bzr971+dfsg-0ubuntu1) quantal; urgency=low |
1571 | + |
1572 | + * New upstream release (LP: #1044367) |
1573 | + |
1574 | + [ Julian Edwards ] |
1575 | + * Fix 02-pserv-config.patch to handle new default tftp directory |
1576 | + |
1577 | + [ Andres Rodriguez ] |
1578 | + * debian/maas.postinst: |
1579 | + - include '/MAAS' for DEFAULT_MAAS_URL.(LP: #1033956) |
1580 | + - Update bzr version to safely upgrade. |
1581 | + * Add maas-dns package that configures DNS in MAAS (LP: #1030860) |
1582 | + * Remove cobbler related bits |
1583 | + - debian/maas.postinst: Drop cobbler configuration |
1584 | + - debian/maas.install: Drop installation of snippets/preseeds. |
1585 | + - debian/control: |
1586 | + + Drop Depends on maas-provision. (LP: #975473) |
1587 | + + Depends on bind9utils. |
1588 | + + Depends on python-lockfile (LP: #1037400) |
1589 | + Add necessary Conflicts/Replaces. Add conflicts to tftpd-hpa and dnsmasq. |
1590 | + Depends on isc-dhcp-server for maas-dhcp, and syslinux-common. |
1591 | + - debian/extras/maas-provision: Add missing "$@" (LP: #1040462) |
1592 | + - debian/patches: |
1593 | + + 02-pserv-config.patch: Updated. Do not patch cobbler related bits. |
1594 | + patch tftp config to default. |
1595 | + * maas-dhcp: Re-add to handle initial configuration of MAAS DHCP server. |
1596 | + * Allow restart of 'isc-dhcp-server' by adding a sudoers file: |
1597 | + - debian/extras/99-maas-sudoers: Added. |
1598 | + - debian/maas.install: Install 99-maas-sudoers |
1599 | + * Minor improvements on dbconfig-common handling: |
1600 | + - debian/maas.config: Only call dbc_go when scripts present. |
1601 | + - debian/maas.postrm: Only call dbc_go when config file exists. |
1602 | + * debian/maas.maas-celery.upstart: Enable Beat and set scheduler db file. |
1603 | + * debian/maas-dns.postinst: Set correct permissions. (LP: #1042868) |
1604 | + * debian/maas-dhcp.config: |
1605 | + - Ask whether we want to enable DHCP (LP: #1044229) |
1606 | + - Add debconf question for network interfaces |
1607 | + * debian/maas.prerm: Stop services before removing database (LP: #1044559) |
1608 | + |
1609 | + -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 02 Aug 2012 09:01:43 -0400 |
1610 | + |
1611 | +maas (0.1+bzr777+dfsg-0ubuntu1) quantal-proposed; urgency=low |
1612 | + |
1613 | + * New upstream release |
1614 | + * Only run 'maas' command as root. (LP: #974046) |
1615 | + - debian/extras/maas: Check id. |
1616 | + - debian/maas.install: Install in 'sbin'. |
1617 | + * debian/maas.postinst: |
1618 | + - restart apache2 after everything gets processed. |
1619 | + - Update version to handle upgrades. |
1620 | + * debian/extras/maas-provision: Add wrapper to access 'maasprovisiong' |
1621 | + command line. |
1622 | + * debian/patches/99_temporary_fix_path.patch: Dropped. No longer needed. |
1623 | + |
1624 | + -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 17 Jul 2012 08:28:36 -0400 |
1625 | + |
1626 | +maas (0.1+bzr745+dfsg-0ubuntu2) quantal; urgency=low |
1627 | + |
1628 | + * debian/control: Build-Dep on python-django instead of |
1629 | + python-django-configglue |
1630 | + |
1631 | + -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 17 Jul 2012 08:24:25 -0400 |
1632 | + |
1633 | +maas (0.1+bzr745+dfsg-0ubuntu1) quantal; urgency=low |
1634 | + |
1635 | + * New Upstream Release |
1636 | + * debian/patches: |
1637 | + - 99_power_fixes.patch: Dropped. Merged Upstream. |
1638 | + - 99_enums_js.patch: Dropped. No longer needed. |
1639 | + * Automatically build enums.js: |
1640 | + - debian/control: Build-Depends on python-django-configglue |
1641 | + - debian/rules: Build and install enums.js. |
1642 | + * debian/maas.postinst: Update version to handle upgrades |
1643 | + |
1644 | + -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 12 Jul 2012 16:34:11 -0400 |
1645 | + |
1646 | +maas (0.1+bzr740+dfsg-0ubuntu1) quantal; urgency=low |
1647 | + |
1648 | + * New upstream release |
1649 | + * debian/control: Depends on python-txtftp. |
1650 | + * debian/rules: Do not ship python-tx-tftp. |
1651 | + * debian/maas.postinst: Update version to upgrade successfully. |
1652 | + * debian/patches: |
1653 | + - 02-pserv-config.patch: Refreshed. |
1654 | + - 99_enums_js.patch: Updated. |
1655 | + - 99_power_fixes.patch: Added temporarily to enable IPMI |
1656 | + - 99_temporary_fix_path.patch: Added temporarily to not fail when |
1657 | + importing celeryconfig |
1658 | + |
1659 | + -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 03 Jul 2012 17:54:49 -0400 |
1660 | + |
1661 | +maas (0.1+bzr709+dfsg-0ubuntu1) quantal; urgency=low |
1662 | + |
1663 | + * New Upstream release |
1664 | + * debian/control: |
1665 | + - Depends on python-celery, python-tempita, libjs-yui3-{full,min}, |
1666 | + libjs-raphael |
1667 | + * debian/maas.install: |
1668 | + - Install apiclient, celeryconfig.py, maas-import-pxe-files, preseeds_v2. |
1669 | + - Update to install various files from chroot, rather tha manually copy |
1670 | + them from the source. |
1671 | + * debian/maas.links: symlink celeryconfig.py |
1672 | + * debian/maas.maas-celery.upstart: Add job. |
1673 | + * debian/rules: |
1674 | + - Install celery upstart job. |
1675 | + - Do not install jslibs as packages are now used. |
1676 | + - Drop copying of maas_local_settings_sample.py as source now ships |
1677 | + a maas_local_settings.py |
1678 | + * debian/patches: |
1679 | + - 04-maas-http-fix.patch: Drop. Merged upstream. |
1680 | + - 01-fix-database-settings.patch: Refreshed. |
1681 | + - 99_enums_js.patch: Added until creation of enum.js / build process |
1682 | + is fixed. |
1683 | + * debian/maas.postinst: Update bzr version to correctly handle upgrades. |
1684 | + |
1685 | + -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 03 Jul 2012 17:42:37 -0400 |
1686 | + |
1687 | +maas (0.1+bzr482+dfsg-0ubuntu1) precise; urgency=low |
1688 | + |
1689 | + * New upstream release (Fixes LP: #981103) |
1690 | + * debian/maas.postinst: |
1691 | + - Make sure rabbitmq and postgresql are started on upgrade (LP: #981282) |
1692 | + - Handle upgrades from any lower than 0.1+bzr462+dfsg-0ubuntu1 to |
1693 | + correctly re-generate passwords, and not have db sync/migrate issues |
1694 | + as config has changed upstream. |
1695 | + - Correctly set Passwords for PSERV, otherwise it won't set new passwords. |
1696 | + * Allow MAAS_DEFAULT_URL reconfiguration. (LP: #980970) |
1697 | + - debian/maas.config: Add reconfigure validation to correctly allow it, |
1698 | + and ask a question. |
1699 | + - debian/maas.postinst: Reconfigure DEFAULT_MAAS_URL as well as cobbler |
1700 | + server and next_server for PXE/Provisioning. |
1701 | + - debian/maas.templates: Add debconf question and update info. |
1702 | + * Do not lose MAAS_DEFAULT_URL settings on upgrade (LP: #984309) |
1703 | + * debian/maas.postinst: |
1704 | + - Set cobbler password in between quotes (LP: #984427) |
1705 | + - Do not change permissions to maas.log (LP: #980915) |
1706 | + * no longer use maas-cloudimg2ephemeral, but rather use premade images |
1707 | + at http://maas.ubuntu.com |
1708 | + |
1709 | + -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 17 Apr 2012 23:44:46 -0700 |
1710 | + |
1711 | +maas (0.1+bzr462+dfsg-0ubuntu1) precise; urgency=low |
1712 | + |
1713 | + * New upstream release (LP: #980240) |
1714 | + |
1715 | + [ Scott Moser ] |
1716 | + * add dependency on distro-info (LP: #949442) |
1717 | + * debian/control: add dependency on tgt for ephemeral iscsi environment |
1718 | + |
1719 | + [ Andres Rodriguez ] |
1720 | + * Make package lintian clean: |
1721 | + - maas{-dhcp}.lintian-overrides: Add to make lintian clean. |
1722 | + - debian/control: Add missing dependencies; correct section and desc. |
1723 | + - debian/maas.postinst: Do not use absolute path for rabbitmqctl. |
1724 | + - debian/patches: Add headers to all patches. |
1725 | + * debian/maas-dhcp.postrm: Added to disable dnsmasq in cobbler on removal. |
1726 | + * debian/maas.config: Do not set a password with pwgen as it is not an |
1727 | + essential package; allow dbconfig-common to create a password instead by |
1728 | + creating an empty question. (LP: #977475) |
1729 | + * Run MAAS, pserv, txlongpoll as non-root user. (LP: #975436) |
1730 | + - debian/maas.postinst: Create user/group; set correct permissions for |
1731 | + directories. |
1732 | + - debian/maas.postrm: Remove user/group; restart apache2. |
1733 | + - debian/maas.maas-{pserv,txlongpoll}.upstart: Update to run as non-root |
1734 | + 'maas' user. |
1735 | + * debian/patches/01-fix-database-settings.patch: Remove adding of PSERV_URL. |
1736 | + * debian/maas.postinst: |
1737 | + - Handle config file upgrade from versions lower than 0.1+bzr445+dfsg-0ubuntu1, |
1738 | + by creating new passwords and updating accordingly |
1739 | + - use local variables in functions. |
1740 | + - Handle maas tgt configuration for upgrades from 0.1+bzr459+dfsg-0ubuntu1. |
1741 | + * debian/extras/99-maas: Add squid-deb-proxy file to enable PPAs. (LP: #979383) |
1742 | + * debian/maas.install: Install missing commissioning-user-data script. |
1743 | + |
1744 | + [ Dave Walker (Daviey) ] |
1745 | + * debian/patches/02-pserv-config.patch: Refreshed to apply to updated config. |
1746 | + |
1747 | + [ Gavin Panella ] |
1748 | + * debian/maas.postinst: Update pserv.yaml and maas_local_settings.py to use |
1749 | + password. |
1750 | + |
1751 | + -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 12 Apr 2012 16:37:53 -0400 |
1752 | + |
1753 | +maas (0.1+bzr415+dfsg-0ubuntu2) precise; urgency=low |
1754 | + |
1755 | + * debian/maas-dhcp.{config,postinst}: |
1756 | + - Fix not setting new values on fresh install. (LP: #975321) |
1757 | + - Fix unsetting domain, otherwise, even if disabled, it will always be set. |
1758 | + * debian/control: Depends on maas for maas-dhcp. |
1759 | + |
1760 | + -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 06 Apr 2012 15:30:44 -0400 |
1761 | + |
1762 | +maas (0.1+bzr415+dfsg-0ubuntu1) precise; urgency=low |
1763 | + |
1764 | + * debian/control: Update package descriptions; Suggests maas-dhcp for maas |
1765 | + and add a maas-dhcp binary. |
1766 | + * Add maas-dhcp package to configure a DHCP server. |
1767 | + - debian/maas-dhcp.config: Add to ask debconf questions about range, |
1768 | + gateway, and domain. |
1769 | + - debian/maas-dhcp.postinst: Handle update of config values. |
1770 | + - debian/maas-dhcp.templates: Debconf questions. |
1771 | + * debian/po: Update for templates. |
1772 | + * Add message telling MAAS URL after installation. |
1773 | + - debian/maas.templates: Add message. |
1774 | + - debian/maas.postinst: Display message. |
1775 | + * debian/maas.config: Hide dbconfig-install question. |
1776 | + |
1777 | + -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 04 Apr 2012 14:47:13 -0400 |
1778 | + |
1779 | +maas (0.1+bzr400+dfsg-0ubuntu1) precise; urgency=low |
1780 | + |
1781 | + * debian/patches/{02-pserv-config,03-txlongpoll-config}.patch: Refreshed. |
1782 | + * debian/maas.install: Install maas-gc cronjob. |
1783 | + * Add apport hook. |
1784 | + - debian/maas.apport: Add hook. |
1785 | + - debian/rules: Install with apport. |
1786 | + * debian/maas.logrotate: Add logrotate for txlongpoll and pserv logs. |
1787 | + * Create 'var/lib/media/maas/storage' on postinst to have right permissions. |
1788 | + - debian/maas.dirs: Drop dir creation. |
1789 | + - debian/maas.postinst: Create dir with correct permissions. |
1790 | + - debian/maas.postrm: Remove dir on purge. |
1791 | + |
1792 | + -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 03 Apr 2012 14:50:34 -0400 |
1793 | + |
1794 | +maas (0.1+bzr378+dfsg-0ubuntu1) precise; urgency=low |
1795 | + |
1796 | + * maas.dirs: Create var/lib/maas/media/storage for juju storage. |
1797 | + * maas.postinst: |
1798 | + - Give correct permissions to above dir. |
1799 | + - stop apache2 before db upgrade, and restart after. |
1800 | + |
1801 | + -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 29 Mar 2012 19:28:13 -0400 |
1802 | + |
1803 | +maas (0.1+bzr363+dfsg-0ubuntu1) precise; urgency=low |
1804 | + |
1805 | + [ Dave Walker (Daviey) ] |
1806 | + * debian/control: Add openssh-server as a Recommends, and wrap-and-sort. |
1807 | + |
1808 | + [ Andres Rodriguez ] |
1809 | + * debian/maas.postinst: |
1810 | + - Do not start apache with apache2ctl. Use invoke-rc.d instead to not |
1811 | + fail in the installer. |
1812 | + - For start of postgresql before creating the DB, otherwise it will |
1813 | + fail in the installer. |
1814 | + - Add check of invoke-rc.d for syslog. |
1815 | + - Add check of invoke-rc.d for rabbitmq-server; Add check for rabbitmqctl |
1816 | + - Add db_stop, in case invoke-rc.d fails. |
1817 | + * debian/control: Tight python-django-maas dependency. |
1818 | + * debian/postrm: Add check for rabbitmqctl. |
1819 | + * debian/maas.maas-txlongpoll.upstart: Create rabbitmq longpoll user/vhost |
1820 | + and set permissions if they don't exist. Start on rabbitmq-server-running. |
1821 | + |
1822 | + -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 27 Mar 2012 14:49:56 -0400 |
1823 | + |
1824 | +maas (0.1+bzr338+dfsg-0ubuntu1) precise; urgency=low |
1825 | + |
1826 | + [ Dave Walker (Daviey) ] |
1827 | + * d/patches/03-txlongpoll-config.patch: Resolve typo error from prior patch. |
1828 | + - LP: #961031 |
1829 | + |
1830 | + [ Andres Rodriguez ] |
1831 | + * debian/maas.config: Don't allow reconfigure. |
1832 | + * debian/maas.postinst: Don't allow reconfigure. Run sync/migrate db on |
1833 | + all upgrades. |
1834 | + |
1835 | + [ Scott Moser ] |
1836 | + * add rsylog config for logging node boots (LP: 960149) |
1837 | + |
1838 | + -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 22 Mar 2012 10:56:58 -0400 |
1839 | + |
1840 | +maas (0.1+bzr315+dfsg-0ubuntu1) precise; urgency=low |
1841 | + |
1842 | + * New upstream snapshot. |
1843 | + |
1844 | + [ Dave Walker ] |
1845 | + * debian/maas.postinst: Do not import ISO's at install time. |
1846 | + * debian/control: |
1847 | + - Drop run-one, it's not a requirement and currently in universe. |
1848 | + - Drop python-setproctitle, no longer required. |
1849 | + |
1850 | + [ Andres Rodriguez ] |
1851 | + * debian/control: Depends on python-avahi, python-dbus, and avahi-daemon. |
1852 | + * debian/maas.postinst: |
1853 | + - Only syncdb if dbconfig db creation was selected. |
1854 | + - Set rabbitmq/longpoll settings |
1855 | + * debian/patches/03-txlongpoll-config.patch: Updated broker settings for |
1856 | + rabbitmq. |
1857 | + |
1858 | + -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 20 Mar 2012 20:10:58 -0400 |
1859 | + |
1860 | +maas (0.1+bzr300+dfsg-0ubuntu1) precise; urgency=low |
1861 | + |
1862 | + * debian/patches: |
1863 | + - 01-fix-database-settings.patch: Update PSERV_URL port. |
1864 | + - 02-pserv-config.patch: Update, and set 'maas' as username. |
1865 | + - 03-longpoll-config.patch: Update. |
1866 | + * debian/maas.install: Install preseeds and snippets. |
1867 | + * debian/maas.postinst: |
1868 | + - Set password for 'maas' cobbler username (in pserv and cobbler). |
1869 | + - Set DEFAULT_MAAS_URL to IP of interface with default gateway. |
1870 | + |
1871 | + -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 16 Mar 2012 14:59:16 -0400 |
1872 | + |
1873 | +maas (0.1+bzr295+dfsg-0ubuntu2) precise; urgency=low |
1874 | + |
1875 | + * debian/patches: |
1876 | + - 01-fix-database-settings.patch: Update to set PSERV_URL. |
1877 | + - 02-pserv-config.patch: Set port to 8001. |
1878 | + * debian/maas.postinst: Run maas-import-isos on install. |
1879 | + * debian/control: Depends on rabbitmq-server. |
1880 | + |
1881 | + -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 15 Mar 2012 18:14:08 -0400 |
1882 | + |
1883 | +maas (0.1+bzr295+dfsg-0ubuntu1) precise; urgency=low |
1884 | + |
1885 | + * debian/maas.upstart: Specify pidfile and conffile. |
1886 | + * debian/maas.postinst: |
1887 | + - Only run syncdb if dbconfig postinst file exists. |
1888 | + - Fix file permissions. |
1889 | + * debian/maas.{postrm,prerm}: Add dbconfig-common support. |
1890 | + * Add txlongpoll support for packaging: |
1891 | + - debian/control: Depends on python-txlongpoll. |
1892 | + - debian/maas.maas-longpoll.upstart: Added to start txlongpoll. |
1893 | + - debian/maas.install: Install txlongpoll.yaml |
1894 | + * debian/extras/maas: Improvements. |
1895 | + * debian/maas.maas.upstart: Moved from debian/maas.upstart. |
1896 | + * debian/maas.postinst: Touch logfile to set correct permissions (LP: #955400) |
1897 | + * debian/maas.logrotate: Add. |
1898 | + * debian/patches/03-txlongpoll-config.patch: Add default settings. |
1899 | + * debian/maas.config: Only run dbconfig-common on configure/reconfigure. |
1900 | + * Install maas_local_settings.py in /etc/maas and symlink to usr/share/maas |
1901 | + * Update references from MaaS to MAAS. |
1902 | + * Remove podebconf as templates no longer exist. |
1903 | + - debian/po: Remove. |
1904 | + - debian/control: Drop Build-Depends on po-debconf |
1905 | + |
1906 | + -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 15 Mar 2012 15:28:14 -0400 |
1907 | + |
1908 | +maas (0.1+bzr266+dfsg-0ubuntu1) precise; urgency=low |
1909 | + |
1910 | + * Remove support for squid3 and use squid-deb-proxy instead. |
1911 | + * debian/extras/maas: Add to handle syncdb and creation of admin user. |
1912 | + * Add debconf questions to ask for user/pass: |
1913 | + - debian/maas.{template,config}: Add |
1914 | + - debian/maas.postinst: Ask debconf questions. |
1915 | + - debian/po: Add translation templates.i |
1916 | + * debian/maas.postinst: Enable wsgi module; drop squid3 steps. |
1917 | + * debian/maas.postrm: removed. |
1918 | + * debian/patches/01-fix-database-settings.patch: Custom database settings |
1919 | + and static files path. |
1920 | + * debian/{rules,maas.install}: Install maas static files in |
1921 | + 'usr/share/maas/web/static'. |
1922 | + * Integrate cobbler: |
1923 | + - debian/maas.install: Install pserv twisted plugin, and config. |
1924 | + - debian/maas.upstart: Created to start plugin daemon. |
1925 | + - debian/patches/02-pserv-config.patch: Custom pserv config. |
1926 | + * Integrate dbconfig-common: |
1927 | + - debian/maas.config: Added and default user/pass and database. |
1928 | + - debian/maas.{postinst,postrm}: Added handling for dbconfig-common |
1929 | + * debian/control: Depends on python-convoy. |
1930 | + * debian/rules: Update path to removal of dsfg files. |
1931 | + * debian/patches/01-fix-database-settings.patch: Updated. |
1932 | + |
1933 | + -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 13 Mar 2012 14:31:50 -0400 |
1934 | + |
1935 | +maas (0.1+bzr232+dfsg-0ubuntu1) precise; urgency=low |
1936 | + |
1937 | + * New upstream snapshot. |
1938 | + |
1939 | + [ Dave Walker ] |
1940 | + * debian/control: |
1941 | + - Changed depends from psycopg2 to python-psycopg2 and dropped versioning. |
1942 | + - LP: #937982 |
1943 | + |
1944 | + [ Andres Rodriguez ] |
1945 | + * debian/maas.install: Install maas-import-isos and related files. |
1946 | + * Integrate squid3 as proxy solution: |
1947 | + - debian/extras/squid.conf: Added |
1948 | + - debian/control: Depend on squid3. |
1949 | + - debian/maas.{postinst,postrm}: Handle installation/removal of custom |
1950 | + squid config file. |
1951 | + * Split into different binary packages (maas,python-django-maas). |
1952 | + - debian/maas.postinst: Handle the apache2 configuration. |
1953 | + |
1954 | + -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 07 Mar 2012 12:46:17 -0500 |
1955 | + |
1956 | +maas (0.1+bzr171+dfsg-0ubuntu1) precise; urgency=low |
1957 | + |
1958 | + * New upstream snapshot, post 0.1 release. |
1959 | + * debian/control: |
1960 | + - Drop depends on rabbitmq-server, no longer required. |
1961 | + * debian/watch: Introduced watch file. |
1962 | + |
1963 | + -- Dave Walker (Daviey) <DaveWalker@ubuntu.com> Thu, 23 Feb 2012 13:08:12 +0000 |
1964 | + |
1965 | +maas (0.1~bzr146+dfsg-0ubuntu1) precise; urgency=low |
1966 | + |
1967 | + * Initial release |
1968 | + |
1969 | + -- Julian Edwards <julian.edwards@canonical.com> Thu, 16 Jan 2012 15:29:07 +0000 |
1970 | |
1971 | === added file 'debian/compat' |
1972 | --- debian/compat 1970-01-01 00:00:00 +0000 |
1973 | +++ debian/compat 2016-04-16 02:29:52 +0000 |
1974 | @@ -0,0 +1,1 @@ |
1975 | +7 |
1976 | |
1977 | === added file 'debian/control' |
1978 | --- debian/control 1970-01-01 00:00:00 +0000 |
1979 | +++ debian/control 2016-04-16 02:29:52 +0000 |
1980 | @@ -0,0 +1,294 @@ |
1981 | +Source: maas |
1982 | +Section: net |
1983 | +Priority: optional |
1984 | +Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> |
1985 | +Build-Depends: debhelper (>= 8.1.0~), |
1986 | + dh-apport, |
1987 | + dh-python, |
1988 | + dh-systemd, |
1989 | + po-debconf, |
1990 | + python3-all, |
1991 | + python3-django, |
1992 | + python3-setuptools, |
1993 | + python3-twisted |
1994 | +Standards-Version: 3.9.7 |
1995 | +X-Python3-Version: >= 3.5 |
1996 | +Homepage: http://maas.io/ |
1997 | + |
1998 | +Package: maas |
1999 | +Architecture: all |
2000 | +Depends: maas-rack-controller (= ${binary:Version}), |
2001 | + maas-region-controller (= ${binary:Version}), |
2002 | + python3-django-maas (= ${binary:Version}), |
2003 | + ${misc:Depends} |
2004 | +Description: "Metal as a Service" is a physical cloud and IPAM |
2005 | + MAAS runs a software-defined data centre - it turns a collection of physical |
2006 | + servers and switches into a bare metal cloud with full open source IP address |
2007 | + management (IPAM) and instant provisioning on demand. |
2008 | + . |
2009 | + MAAS controls the servers through IPMI or another BMC or converged chassis |
2010 | + controller such as Cisco UCS. It provides a full inventory of components, |
2011 | + and can install Ubuntu, CentOS or Windows very fast on any server under |
2012 | + its control. It can also track and provide DHCP and DNS for other devices |
2013 | + on the network. |
2014 | + . |
2015 | + MAAS handles VLANs and fabrics that span many trunked switches, as well as |
2016 | + the routing-centric infrastructure typically used for large-scale OpenStack |
2017 | + or other scale-out deployments. MAAS manages IP addresses and provides APIs |
2018 | + for address assignment and release. MAAS can also allocate IP addresses for |
2019 | + containers on machines, and release them when the machine is repurposed. MAAS |
2020 | + provides PXE, DHCP, DNS and other low-level services to ensure the cluster |
2021 | + works smoothly. |
2022 | + . |
2023 | + MAAS works with any configuration system, and is recommended by the teams |
2024 | + behind both Chef and Juju as a physical provisioning system. |
2025 | + . |
2026 | + MAAS provides: |
2027 | + . |
2028 | + * Hardware inventory of servers |
2029 | + * Dynamic provisioning based on name or attributes such as disk, RAM, cores, |
2030 | + nics, networking, gpu’s or architecture |
2031 | + * DNS and DHCP as needed |
2032 | + * PXE boot services |
2033 | + . |
2034 | + This package is a metapackage which installs all of the separate components |
2035 | + of MAAS on a single machine. |
2036 | + |
2037 | +Package: maas-common |
2038 | +Architecture: all |
2039 | +Depends: ${misc:Depends} |
2040 | +Breaks: maas ( <= 0.1+bzr1048+dfsg-0ubuntu1 ) |
2041 | +Replaces: maas ( <= 0.1+bzr1048+dfsg-0ubuntu1 ) |
2042 | +Description: MAAS server common files |
2043 | + This package contains the common files for any MAAS installation. |
2044 | + |
2045 | +Package: maas-region-api |
2046 | +Architecture: all |
2047 | +Depends: apache2, |
2048 | + bind9utils, |
2049 | + iproute2, |
2050 | + libjs-angularjs, |
2051 | + libjs-yui3-full, |
2052 | + libjs-yui3-min, |
2053 | + maas-common (= ${binary:Version}), |
2054 | + maas-proxy (= ${binary:Version}), |
2055 | + python3-bson, |
2056 | + python3-django, |
2057 | + python3-django-maas (= ${binary:Version}), |
2058 | + python3-django-piston3, |
2059 | + python3-djorm-ext-pgarray, |
2060 | + python3-maas-provisioningserver (= ${binary:Version}), |
2061 | + python3-petname, |
2062 | + python3-requests, |
2063 | + rsyslog, |
2064 | + ubuntu-cloudimage-keyring, |
2065 | + ${misc:Depends}, |
2066 | + ${python3:Depends} |
2067 | +Conflicts: maas-region-controller-min |
2068 | +Replaces: maas-region-controller-min |
2069 | +Provides: maas-region-controller-min |
2070 | +Description: Region controller API service for MAAS |
2071 | + The MAAS region controller consists of REST API services and a postgres |
2072 | + database. This package installs only the API services (maas-regiond). |
2073 | + Use it to scale out the API front-end of your MAAS region controller. |
2074 | + |
2075 | +Package: maas-region-controller |
2076 | +Architecture: all |
2077 | +Depends: dbconfig-pgsql, |
2078 | + maas-dns (= ${binary:Version}), |
2079 | + maas-region-api (= ${binary:Version}), |
2080 | + postgresql (>= 9.1), |
2081 | + ${misc:Depends}, |
2082 | +Recommends: openssh-server |
2083 | +Description: Region Controller for MAAS |
2084 | + The MAAS region controller (maas-regiond) is the REST API server for |
2085 | + all MAAS clients, and the postgres database that maintains machine |
2086 | + state for the entire data centre (or “region”). The region controller |
2087 | + an be scaled-out and highly available given the appropriate postgres |
2088 | + setup and additional API servers. |
2089 | + . |
2090 | + This package installs the postgres database and the API server, so it |
2091 | + is appropriate for the initial installation of a new MAAS region. To |
2092 | + scale out the controller or make it highly available, install |
2093 | + maas-region-controller-api on additional servers and ensure the |
2094 | + postgres database is HA too. |
2095 | + |
2096 | +Package: python3-maas-provisioningserver |
2097 | +Section: python |
2098 | +Architecture: all |
2099 | +Depends: archdetect-deb, |
2100 | + lshw, |
2101 | + python3-bson, |
2102 | + python3-crochet, |
2103 | + python3-curtin (>> 0.1.0~bzr351), |
2104 | + python3-distro-info, |
2105 | + python3-formencode, |
2106 | + python3-jsonschema, |
2107 | + python3-lxml, |
2108 | + python3-maas-client (= ${binary:Version}), |
2109 | + python3-netifaces, |
2110 | + python3-oauth, |
2111 | + python3-oauthlib, |
2112 | + python3-paramiko, |
2113 | + python3-pexpect, |
2114 | + python3-pyparsing, |
2115 | + python3-pyvmomi, |
2116 | + python3-seamicroclient, |
2117 | + python3-simplejson, |
2118 | + python3-simplestreams, |
2119 | + python3-tempita, |
2120 | + python3-twisted, |
2121 | + python3-txtftp, |
2122 | + python3-yaml, |
2123 | + python3-zope.interface, |
2124 | + isc-dhcp-client, |
2125 | + iproute2, |
2126 | + ${misc:Depends}, |
2127 | + ${python3:Depends} |
2128 | +Description: MAAS server provisioning libraries (Python 3) |
2129 | + This package provides the MAAS provisioning server python libraries. |
2130 | + . |
2131 | + This package contains Python 3 libraries. |
2132 | + |
2133 | +Package: maas-cli |
2134 | +Architecture: all |
2135 | +Depends: python3-maas-client (= ${binary:Version}), |
2136 | + ${misc:Depends}, |
2137 | + ${python3:Depends} |
2138 | +Conflicts: maas-region-controller-min (<= 1.5+bzr1909-0ubuntu1) |
2139 | +Replaces: maas-region-controller-min (<= 1.5+bzr1909-0ubuntu1) |
2140 | +Description: MAAS client and command-line interface |
2141 | + This package contains the 'maas' command-line interface, which |
2142 | + talks to the MAAS region controller REST API. Use the maas command |
2143 | + to login to MAAS and drive the data centre entirely from the |
2144 | + command-line. |
2145 | + |
2146 | +Package: python3-maas-client |
2147 | +Section: python |
2148 | +Architecture: all |
2149 | +Depends: python3-httplib2, |
2150 | + python3-oauth, |
2151 | + ${misc:Depends}, |
2152 | + ${python3:Depends} |
2153 | +Breaks: python-maas-client, maas-cli ( <= 2.0.0~alpha4+bzr4843-0ubuntu1 ) |
2154 | +Replaces: python-maas-client, maas-cli ( <= 2.0.0~alpha4+bzr4843-0ubuntu1 ) |
2155 | +Description: MAAS python API client (Python 3) |
2156 | + This package contains the MAAS client API Python modules. |
2157 | + . |
2158 | + This package contains Python 3 modules. |
2159 | + |
2160 | +Package: maas-rack-controller |
2161 | +Architecture: all |
2162 | +Depends: authbind, |
2163 | + bind9utils, |
2164 | + distro-info, |
2165 | + freeipmi-tools, |
2166 | + grub-common, |
2167 | + maas-cli (=${binary:Version}), |
2168 | + maas-common (=${binary:Version}), |
2169 | + maas-dhcp (=${binary:Version}), |
2170 | + pxelinux | syslinux-common (<< 3:6.00~pre4+dfsg-5), |
2171 | + python3-httplib2, |
2172 | + python3-maas-provisioningserver (=${binary:Version}), |
2173 | + python3-netaddr, |
2174 | + python3-tempita, |
2175 | + python3-twisted, |
2176 | + python3-zope.interface, |
2177 | + rsyslog, |
2178 | + syslinux-common, |
2179 | + tgt, |
2180 | + uuid-runtime, |
2181 | + wget, |
2182 | + ${misc:Depends}, |
2183 | + ${python3:Depends} |
2184 | +Suggests: amtterm, ipmitool, libvirt-bin, wsmancli |
2185 | +Conflicts: tftpd-hpa |
2186 | +Breaks: python-maas-provisioningserver, |
2187 | + maas-cluster-controller |
2188 | +Replaces: python-maas-provisioningserver, |
2189 | + maas-cluster-controller |
2190 | +Description: Rack Controller for MAAS |
2191 | + The MAAS rack controller (maas-rackd) provides highly available, fast |
2192 | + and local broadcast services to the machines provisioned by MAAS. You |
2193 | + need a MAAS rack controller attached to each fabric (which is a set of |
2194 | + trunked switches). You can attach multiple rack controllers to these |
2195 | + physical networks for high availability, with secondary rack controllers |
2196 | + automatically stepping to provide these services if the primary rack |
2197 | + controller fails. |
2198 | + . |
2199 | + A common configuration is to have a rack controller in each rack, with |
2200 | + a fast primary network interface to the rack switch and secondary |
2201 | + network interfaces on one or two other nearby racks for high |
2202 | + availability redundancy. |
2203 | + . |
2204 | + This package depends on the necessary components to provide iSCSI, |
2205 | + DHCP, TFTP and power management. |
2206 | + |
2207 | +Package: python3-django-maas |
2208 | +Section: python |
2209 | +Architecture: all |
2210 | +Depends: python3-apt, |
2211 | + python3-convoy, |
2212 | + python3-crochet, |
2213 | + python3-curtin (>> 0.1.0~bzr275), |
2214 | + python3-lxml, |
2215 | + python3-maas-client (= ${binary:Version}), |
2216 | + python3-netaddr, |
2217 | + python3-psycopg2, |
2218 | + python3-sphinx, |
2219 | + python3-tempita, |
2220 | + python3-twisted, |
2221 | + python3-zope.interface, |
2222 | + ${misc:Depends}, |
2223 | + ${python3:Depends} |
2224 | +Breaks: python-django-maas |
2225 | +Replaces: python-django-maas |
2226 | +Description: MAAS server Django web framework (Python 3) |
2227 | + This package provides the Django web framework for MAAS. |
2228 | + . |
2229 | + This package contains Python 3 modules. |
2230 | + |
2231 | +Package: maas-dhcp |
2232 | +Architecture: all |
2233 | +Depends: isc-dhcp-server (>= 4.3.3-5ubuntu10~), ${misc:Depends} |
2234 | +Description: MAAS DHCP server |
2235 | + This package installs and configures a DHCP server that can be used by |
2236 | + MAAS, and enhances the overall MAAS user experience. |
2237 | + |
2238 | +Package: maas-dns |
2239 | +Architecture: all |
2240 | +Depends: bind9 (>= 1:9.10.3.dfsg.P2-5~), |
2241 | + maas-region-api (= ${binary:Version}), |
2242 | + ${misc:Depends} |
2243 | +Conflicts: dnsmasq |
2244 | +Description: MAAS DNS server |
2245 | + This package installs and configures a DNS server that can be used by |
2246 | + MAAS, and enhances the overall MAAS user experience. |
2247 | + |
2248 | +Package: maas-proxy |
2249 | +Architecture: all |
2250 | +Depends: squid3, ${misc:Depends} |
2251 | +Conflicts: squid-deb-proxy |
2252 | +Description: MAAS Caching Proxy |
2253 | + This package installs and configures a Caching Proxy server that can be |
2254 | + used by MAAS. It enhances the overall MAAS user experience. |
2255 | + |
2256 | +Package: maas-region-udeb |
2257 | +Package-Type: udeb |
2258 | +Section: debian-installer |
2259 | +Architecture: all |
2260 | +Depends: |
2261 | + ${shlibs:Depends}, |
2262 | + ${misc:Depends} |
2263 | +XB-Installer-Menu-Item: 2350 |
2264 | +Description: Install a MAAS server (installer integration) |
2265 | + |
2266 | +Package: maas-rack-udeb |
2267 | +Package-Type: udeb |
2268 | +Section: debian-installer |
2269 | +Architecture: all |
2270 | +Depends: |
2271 | + ${shlibs:Depends}, |
2272 | + ${misc:Depends} |
2273 | +XB-Installer-Menu-Item: 2350 |
2274 | +Description: Install a MAAS Rack controller (installer integration) |
2275 | |
2276 | === added file 'debian/copyright' |
2277 | --- debian/copyright 1970-01-01 00:00:00 +0000 |
2278 | +++ debian/copyright 2016-04-16 02:29:52 +0000 |
2279 | @@ -0,0 +1,45 @@ |
2280 | +Format: http://dep.debian.net/deps/dep5 |
2281 | +Upstream-Name: maas |
2282 | +Source: https://launchpad.net/maas |
2283 | + |
2284 | +Files: * |
2285 | +Copyright: 2012 Canonical Ltd. |
2286 | +License: AGPL-3.0+ |
2287 | + |
2288 | +Files: debian/* |
2289 | +Copyright: 2012 Canonical Ltd. |
2290 | +License: AGPL-3.0+ |
2291 | + |
2292 | +License: AGPL-3.0+ |
2293 | + This program is free software: you can redistribute it and/or modify |
2294 | + it under the terms of the GNU Affero General Public License as |
2295 | + published by the Free Software Foundation, either version 3 of the |
2296 | + License, or (at your option) any later version. |
2297 | + . |
2298 | + This program is distributed in the hope that it will be useful, |
2299 | + but WITHOUT ANY WARRANTY; without even the implied warranty of |
2300 | + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
2301 | + GNU Affero General Public License for more details. |
2302 | + . |
2303 | + You should have received a copy of the GNU Affero General Public License |
2304 | + along with this program. If not, see <http://www.gnu.org/licenses/>. |
2305 | + |
2306 | +Files: src/maasserver/static/js/angular/3rdparty/ng-tags-input.js |
2307 | +Copyright: Copyright (c) 2013-2015 Michael Benford. |
2308 | +License: MIT |
2309 | + Permission is hereby granted, free of charge, to any person obtaining a copy of |
2310 | + this software and associated documentation files (the "Software"), to deal in |
2311 | + the Software without restriction, including without limitation the rights to |
2312 | + use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of |
2313 | + the Software, and to permit persons to whom the Software is furnished to do so, |
2314 | + subject to the following conditions: |
2315 | + . |
2316 | + The above copyright notice and this permission notice shall be included in all |
2317 | + copies or substantial portions of the Software. |
2318 | + . |
2319 | + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
2320 | + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS |
2321 | + FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR |
2322 | + COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER |
2323 | + IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN |
2324 | + CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
2325 | |
2326 | === added directory 'debian/extras' |
2327 | === added file 'debian/extras/20-maas.conf' |
2328 | --- debian/extras/20-maas.conf 1970-01-01 00:00:00 +0000 |
2329 | +++ debian/extras/20-maas.conf 2016-04-16 02:29:52 +0000 |
2330 | @@ -0,0 +1,32 @@ |
2331 | +# Enable the udp server for installation logging |
2332 | +$ModLoad imudp |
2333 | +$UDPServerRun 514 |
2334 | +$ModLoad imtcp # load TCP listener |
2335 | + |
2336 | +# The following section (certificates) was copied from orchestra, but is |
2337 | +# not used here. In the future, if we needed secure ssl, then re-enable. |
2338 | +# These files were created in the orchestra-logging-server's postinst |
2339 | +# |
2340 | +## make gtls driver the default |
2341 | +#$DefaultNetstreamDriver gtls |
2342 | +# |
2343 | +## certificate files |
2344 | +#$DefaultNetstreamDriverCAFile /var/lib/maas/ssl-cert-orchestra-ca.pem |
2345 | +#$DefaultNetstreamDriverCertFile /var/lib/maas/.ssl/ssl-cert-orchestra.pem |
2346 | +#$DefaultNetstreamDriverKeyFile /var/lib/maas/.ssl/ssl-cert-orchestra-pk.pem |
2347 | +# |
2348 | +#$InputTCPServerStreamDriverMode 1 # run driver in TLS-only mode |
2349 | +#$InputTCPServerStreamDriverAuthMode anon # client is NOT authenticated |
2350 | +#$InputTCPServerRun 10514 # start up listener at port 10514 |
2351 | + |
2352 | +# Reduce message repetition |
2353 | +$RepeatedMsgReduction on |
2354 | +##$RepeatedMsgContainsOrigionalMsg on |
2355 | + |
2356 | +# Message templating |
2357 | +$template MAASboot,"/var/log/maas/rsyslog/%HOSTNAME%/%$YEAR%/%$MONTH%/%$DAY%/messages" |
2358 | + |
2359 | +:fromhost-ip, !isequal, "127.0.0.1" ?MAASboot |
2360 | +# Stop messages that came from anywhere else from going into other places |
2361 | +# like /var/log/syslog. If you want to see these messages there, then comment below |
2362 | +& ~ |
2363 | |
2364 | === added file 'debian/extras/99-maas-region-sudoers' |
2365 | --- debian/extras/99-maas-region-sudoers 1970-01-01 00:00:00 +0000 |
2366 | +++ debian/extras/99-maas-region-sudoers 2016-04-16 02:29:52 +0000 |
2367 | @@ -0,0 +1,7 @@ |
2368 | +maas ALL= NOPASSWD: /bin/systemctl status bind9 |
2369 | +maas ALL= NOPASSWD: /bin/systemctl start bind9 |
2370 | +maas ALL= NOPASSWD: /bin/systemctl status maas-proxy |
2371 | +maas ALL= NOPASSWD: /bin/systemctl start maas-proxy |
2372 | +maas ALL= NOPASSWD: /bin/systemctl reload maas-proxy |
2373 | +maas ALL= NOPASSWD: /bin/systemctl restart maas-proxy |
2374 | +maas ALL= NOPASSWD: /bin/systemctl stop maas-proxy |
2375 | |
2376 | === added file 'debian/extras/99-maas-sudoers' |
2377 | --- debian/extras/99-maas-sudoers 1970-01-01 00:00:00 +0000 |
2378 | +++ debian/extras/99-maas-sudoers 2016-04-16 02:29:52 +0000 |
2379 | @@ -0,0 +1,14 @@ |
2380 | +maas ALL= NOPASSWD: /bin/systemctl status maas-dhcpd |
2381 | +maas ALL= NOPASSWD: /bin/systemctl start maas-dhcpd |
2382 | +maas ALL= NOPASSWD: /bin/systemctl restart maas-dhcpd |
2383 | +maas ALL= NOPASSWD: /bin/systemctl stop maas-dhcpd |
2384 | +maas ALL= NOPASSWD: /bin/systemctl status maas-dhcpd6 |
2385 | +maas ALL= NOPASSWD: /bin/systemctl start maas-dhcpd6 |
2386 | +maas ALL= NOPASSWD: /bin/systemctl restart maas-dhcpd6 |
2387 | +maas ALL= NOPASSWD: /bin/systemctl stop maas-dhcpd6 |
2388 | +maas ALL= NOPASSWD: /bin/systemctl status tgt |
2389 | +maas ALL= NOPASSWD: /bin/systemctl start tgt |
2390 | +maas ALL= NOPASSWD: /usr/sbin/maas-rack |
2391 | +maas ALL= NOPASSWD: SETENV: /usr/sbin/tgt-admin, /usr/bin/uec2roottar |
2392 | +maas ALL= NOPASSWD: /usr/bin/lshw |
2393 | +maas ALL= NOPASSWD: /sbin/blockdev |
2394 | |
2395 | === added file 'debian/extras/isc-dhcp-server.override' |
2396 | --- debian/extras/isc-dhcp-server.override 1970-01-01 00:00:00 +0000 |
2397 | +++ debian/extras/isc-dhcp-server.override 2016-04-16 02:29:52 +0000 |
2398 | @@ -0,0 +1,1 @@ |
2399 | +manual |
2400 | |
2401 | === added file 'debian/extras/maas' |
2402 | --- debian/extras/maas 1970-01-01 00:00:00 +0000 |
2403 | +++ debian/extras/maas 2016-04-16 02:29:52 +0000 |
2404 | @@ -0,0 +1,13 @@ |
2405 | +#!/usr/bin/env python3 |
2406 | + |
2407 | +import sys |
2408 | +import maascli |
2409 | + |
2410 | +if sys.argv[0].split('/')[-1:] == "maas-cli": |
2411 | + sys.stderr.write(""" |
2412 | + WARNING: The maas-cli command is deprecated and will be removed in a future |
2413 | + version. From now on please use 'maas' instead. |
2414 | +""") |
2415 | + |
2416 | +sys.exit(maascli.main()) |
2417 | + |
2418 | |
2419 | === added file 'debian/extras/maas-probe-dhcp' |
2420 | --- debian/extras/maas-probe-dhcp 1970-01-01 00:00:00 +0000 |
2421 | +++ debian/extras/maas-probe-dhcp 2016-04-16 02:29:52 +0000 |
2422 | @@ -0,0 +1,7 @@ |
2423 | +#!/bin/sh |
2424 | +if [ "$(id -u)" != "0" ]; then |
2425 | + echo "This utility may only be run as root." 1>&2 |
2426 | + exit 1 |
2427 | +fi |
2428 | +export PYTHONPATH="/usr/share/maas${PYTHONPATH:+:}${PYTHONPATH}" |
2429 | +exec /usr/bin/python3 -m provisioningserver.dhcp.probe "$@" |
2430 | |
2431 | === added file 'debian/extras/maas-proxy-common.sh' |
2432 | --- debian/extras/maas-proxy-common.sh 1970-01-01 00:00:00 +0000 |
2433 | +++ debian/extras/maas-proxy-common.sh 2016-04-16 02:29:52 +0000 |
2434 | @@ -0,0 +1,23 @@ |
2435 | +pre_start() { |
2436 | + if [ -x /usr/sbin/squid ]; then |
2437 | + SQUID=/usr/sbin/squid |
2438 | + elif [ -x /usr/sbin/squid3 ]; then |
2439 | + SQUID=/usr/sbin/squid3 |
2440 | + else |
2441 | + echo "No squid binary found" |
2442 | + exit 1 |
2443 | + fi |
2444 | + |
2445 | + # ensure all cache dirs are there |
2446 | + install -d -o proxy -g proxy -m 750 /var/cache/maas-proxy/ |
2447 | + install -d -o proxy -g proxy -m 750 /var/log/maas/proxy/ |
2448 | + install -m 750 -o proxy -g proxy -d /var/spool/maas-proxy/ |
2449 | + if [ -d /var/log/maas/proxy ]; then |
2450 | + chown -R proxy:proxy /var/log/maas/proxy |
2451 | + fi |
2452 | + if [ -f /var/lib/maas/maas-proxy.conf ]; then |
2453 | + if [ ! -d /var/cache/maas-proxy/00 ]; then |
2454 | + $SQUID -z -N -f /var/lib/maas/maas-proxy.conf |
2455 | + fi |
2456 | + fi |
2457 | +} |
2458 | |
2459 | === added file 'debian/extras/maas-rack' |
2460 | --- debian/extras/maas-rack 1970-01-01 00:00:00 +0000 |
2461 | +++ debian/extras/maas-rack 2016-04-16 02:29:52 +0000 |
2462 | @@ -0,0 +1,76 @@ |
2463 | +#!/usr/bin/python3 |
2464 | +# Copyright 2016 Canonical Ltd. This software is licensed under the |
2465 | +# GNU Affero General Public License version 3 (see the file LICENSE). |
2466 | + |
2467 | +from __future__ import ( |
2468 | + absolute_import, |
2469 | + print_function, |
2470 | + unicode_literals, |
2471 | +) |
2472 | + |
2473 | +str = None |
2474 | + |
2475 | +__metaclass__ = type |
2476 | +__all__ = [] |
2477 | + |
2478 | +import grp |
2479 | +import os |
2480 | +import pwd |
2481 | +import sys |
2482 | + |
2483 | + |
2484 | +def check_users(users): |
2485 | + """Check that the runnig user is in users.""" |
2486 | + uid = os.getuid() |
2487 | + for user in users: |
2488 | + user_uid = pwd.getpwnam(user)[2] |
2489 | + if uid == user_uid: |
2490 | + return user |
2491 | + raise SystemExit("This utility may only be run as %s." % ", ".join(users)) |
2492 | + |
2493 | + |
2494 | +def set_group(): |
2495 | + # Ensure that we're running as the `maas` group. |
2496 | + try: |
2497 | + gr_maas = grp.getgrnam("maas") |
2498 | + except KeyError: |
2499 | + raise SystemExit("No such group: maas") |
2500 | + else: |
2501 | + os.setegid(gr_maas.gr_gid) |
2502 | + |
2503 | + |
2504 | +def set_umask(): |
2505 | + # Prevent creation of world-readable (or writable, executable) files. |
2506 | + os.umask(0o007) |
2507 | + |
2508 | + |
2509 | +def run(): |
2510 | + # Run the main provisioning script. |
2511 | + from provisioningserver.__main__ import main |
2512 | + main() |
2513 | + |
2514 | + |
2515 | +def main(): |
2516 | + if 'maas-provision' in sys.argv[0]: |
2517 | + sys.stderr.write( |
2518 | + "WARNING: The maas-provision command is deprecated and will be " |
2519 | + "removed in a future version. From now on please use 'maas-rack' " |
2520 | + "instead.\n") |
2521 | + |
2522 | + # Allow dhcpd user to call dhcp-notify. |
2523 | + users = ["root"] |
2524 | + if len(sys.argv) > 1: |
2525 | + if sys.argv[1] == "dhcp-notify": |
2526 | + users.append("dhcpd") |
2527 | + |
2528 | + # Only set the group and umask when running as root. |
2529 | + if check_users(users) == "root": |
2530 | + set_group() |
2531 | + set_umask() |
2532 | + |
2533 | + # Run the script. |
2534 | + run() |
2535 | + |
2536 | + |
2537 | +if __name__ == "__main__": |
2538 | + main() |
2539 | |
2540 | === added file 'debian/extras/maas-region' |
2541 | --- debian/extras/maas-region 1970-01-01 00:00:00 +0000 |
2542 | +++ debian/extras/maas-region 2016-04-16 02:29:52 +0000 |
2543 | @@ -0,0 +1,67 @@ |
2544 | +#!/usr/bin/python3 |
2545 | +# Copyright 2016 Canonical Ltd. This software is licensed under the |
2546 | +# GNU Affero General Public License version 3 (see the file LICENSE). |
2547 | + |
2548 | +from __future__ import ( |
2549 | + absolute_import, |
2550 | + print_function, |
2551 | + unicode_literals, |
2552 | +) |
2553 | + |
2554 | +str = None |
2555 | + |
2556 | +__metaclass__ = type |
2557 | +__all__ = [] |
2558 | + |
2559 | +import grp |
2560 | +import os |
2561 | +import sys |
2562 | + |
2563 | + |
2564 | +def check_user(): |
2565 | + # At present, only root should execute this. |
2566 | + if os.getuid() != 0: |
2567 | + raise SystemExit("This utility may only be run as root.") |
2568 | + |
2569 | + |
2570 | +def set_group(): |
2571 | + # Ensure that we're running as the `maas` group. |
2572 | + try: |
2573 | + gr_maas = grp.getgrnam("maas") |
2574 | + except KeyError: |
2575 | + raise SystemExit("No such group: maas") |
2576 | + else: |
2577 | + os.setegid(gr_maas.gr_gid) |
2578 | + |
2579 | + |
2580 | +def set_umask(): |
2581 | + # Prevent creation of world-readable (or writable, executable) files. |
2582 | + os.umask(0o007) |
2583 | + |
2584 | + |
2585 | +def run(): |
2586 | + # Force the production MAAS Django configuration. |
2587 | + os.environ.setdefault("DJANGO_SETTINGS_MODULE", "maas.settings") |
2588 | + |
2589 | + # The Django configuration lives outside of sys.path. |
2590 | + sys.path.append('/usr/share/maas') |
2591 | + |
2592 | + # Let Django do the rest. |
2593 | + from django.core import management |
2594 | + management.execute_from_command_line() |
2595 | + |
2596 | + |
2597 | +def main(): |
2598 | + if 'maas-region-admin' in sys.argv[0]: |
2599 | + sys.stderr.write( |
2600 | + "WARNING: The maas-region-admin command is deprecated and will be " |
2601 | + "removed in a future version. From now on please use 'maas-region' " |
2602 | + "instead.\n") |
2603 | + check_user() |
2604 | + set_group() |
2605 | + set_umask() |
2606 | + run() |
2607 | + |
2608 | + |
2609 | +if __name__ == "__main__": |
2610 | + main() |
2611 | |
2612 | === added file 'debian/extras/maas_remote_syslog_compress' |
2613 | --- debian/extras/maas_remote_syslog_compress 1970-01-01 00:00:00 +0000 |
2614 | +++ debian/extras/maas_remote_syslog_compress 2016-04-16 02:29:52 +0000 |
2615 | @@ -0,0 +1,2 @@ |
2616 | +# Compress log files not changed in more than 48 hours: |
2617 | +30 4 * * * root find /var/log/maas/rsyslog -type f -mtime +2 -exec bzip2 '{}' \; |
2618 | |
2619 | === added file 'debian/extras/squid3.override' |
2620 | --- debian/extras/squid3.override 1970-01-01 00:00:00 +0000 |
2621 | +++ debian/extras/squid3.override 2016-04-16 02:29:52 +0000 |
2622 | @@ -0,0 +1,1 @@ |
2623 | +manual |
2624 | |
2625 | === added file 'debian/maas-cli.install' |
2626 | --- debian/maas-cli.install 1970-01-01 00:00:00 +0000 |
2627 | +++ debian/maas-cli.install 2016-04-16 02:29:52 +0000 |
2628 | @@ -0,0 +1,1 @@ |
2629 | +debian/extras/maas usr/bin |
2630 | |
2631 | === added file 'debian/maas-cli.links' |
2632 | --- debian/maas-cli.links 1970-01-01 00:00:00 +0000 |
2633 | +++ debian/maas-cli.links 2016-04-16 02:29:52 +0000 |
2634 | @@ -0,0 +1,1 @@ |
2635 | +usr/bin/maas usr/bin/maas-cli |
2636 | |
2637 | === added file 'debian/maas-cli.lintian-overrides' |
2638 | --- debian/maas-cli.lintian-overrides 1970-01-01 00:00:00 +0000 |
2639 | +++ debian/maas-cli.lintian-overrides 2016-04-16 02:29:52 +0000 |
2640 | @@ -0,0 +1,1 @@ |
2641 | +maas-cli: binary-without-manpage usr/bin/maas-cli |
2642 | |
2643 | === added file 'debian/maas-common.dirs' |
2644 | --- debian/maas-common.dirs 1970-01-01 00:00:00 +0000 |
2645 | +++ debian/maas-common.dirs 2016-04-16 02:29:52 +0000 |
2646 | @@ -0,0 +1,2 @@ |
2647 | +var/log/maas |
2648 | +var/lib/maas |
2649 | |
2650 | === added file 'debian/maas-common.install' |
2651 | --- debian/maas-common.install 1970-01-01 00:00:00 +0000 |
2652 | +++ debian/maas-common.install 2016-04-16 02:29:52 +0000 |
2653 | @@ -0,0 +1,1 @@ |
2654 | +debian/tmp/usr/share/maas/maas-rsyslog.conf |
2655 | |
2656 | === added file 'debian/maas-common.logrotate' |
2657 | --- debian/maas-common.logrotate 1970-01-01 00:00:00 +0000 |
2658 | +++ debian/maas-common.logrotate 2016-04-16 02:29:52 +0000 |
2659 | @@ -0,0 +1,9 @@ |
2660 | +/var/log/maas/maas.log |
2661 | +{ |
2662 | + rotate 7 |
2663 | + daily |
2664 | + missingok |
2665 | + notifempty |
2666 | + delaycompress |
2667 | + compress |
2668 | +} |
2669 | |
2670 | === added file 'debian/maas-common.maintscript' |
2671 | --- debian/maas-common.maintscript 1970-01-01 00:00:00 +0000 |
2672 | +++ debian/maas-common.maintscript 2016-04-16 02:29:52 +0000 |
2673 | @@ -0,0 +1,2 @@ |
2674 | +#TODO: Figure out the right version or whether this is needed. |
2675 | +#rm_conffile /usr/share/maas/celeryconfig_common.py 1.7.0~beta3+bzr3043-0ubuntu1 |
2676 | |
2677 | === added file 'debian/maas-common.postinst' |
2678 | --- debian/maas-common.postinst 1970-01-01 00:00:00 +0000 |
2679 | +++ debian/maas-common.postinst 2016-04-16 02:29:52 +0000 |
2680 | @@ -0,0 +1,38 @@ |
2681 | +#!/bin/sh |
2682 | + |
2683 | +set -e |
2684 | + |
2685 | +configure_logging() { |
2686 | + # Logging directory (/var/log/maas) |
2687 | + chown maas:maas /var/log/maas/ |
2688 | + |
2689 | + if [ ! -f /var/log/maas/maas.log ]; then |
2690 | + touch /var/log/maas/maas.log |
2691 | + fi |
2692 | + chown syslog:syslog /var/log/maas/maas.log |
2693 | +} |
2694 | + |
2695 | +configure_lib_dir() { |
2696 | + # Ensure lib dir has correct permissions |
2697 | + chown maas:maas /var/lib/maas/ |
2698 | + |
2699 | + if [ -d /var/lib/maas/gnupg ]; then |
2700 | + chown -R maas:maas /var/lib/maas/gnupg |
2701 | + fi |
2702 | +} |
2703 | + |
2704 | +add_user_group(){ |
2705 | + local user="maas" |
2706 | + local group="maas" |
2707 | + local home="/var/lib/maas" |
2708 | + addgroup --quiet --system "$group" || true |
2709 | + adduser --quiet --system --group --home "$home" "$user" || true |
2710 | +} |
2711 | + |
2712 | +ln -sf /usr/share/maas/maas-rsyslog.conf /etc/rsyslog.d/99-maas.conf |
2713 | + |
2714 | +add_user_group |
2715 | +configure_logging |
2716 | +configure_lib_dir |
2717 | + |
2718 | +#DEBHELPER# |
2719 | |
2720 | === added file 'debian/maas-common.postrm' |
2721 | --- debian/maas-common.postrm 1970-01-01 00:00:00 +0000 |
2722 | +++ debian/maas-common.postrm 2016-04-16 02:29:52 +0000 |
2723 | @@ -0,0 +1,21 @@ |
2724 | +#!/bin/sh |
2725 | + |
2726 | +set -e |
2727 | + |
2728 | +case "$1" in |
2729 | + purge) |
2730 | + # Deleting user/group |
2731 | + if getent passwd maas >/dev/null; then |
2732 | + deluser maas || true |
2733 | + delgroup maas || true |
2734 | + fi |
2735 | + rm -rf /var/log/maas/maas.log |
2736 | + rm -rf /var/lib/maas/gnupg |
2737 | + rm -rf /var/lib/maas/secret |
2738 | + rm -rf /var/lib/maas/maas_id |
2739 | + |
2740 | +esac |
2741 | + |
2742 | +rm -f /etc/rsyslog.d/99-maas.conf |
2743 | + |
2744 | +#DEBHELPER# |
2745 | |
2746 | === added file 'debian/maas-common.templates' |
2747 | --- debian/maas-common.templates 1970-01-01 00:00:00 +0000 |
2748 | +++ debian/maas-common.templates 2016-04-16 02:29:52 +0000 |
2749 | @@ -0,0 +1,53 @@ |
2750 | +Template: maas/installation-note |
2751 | +Type: note |
2752 | +Default: false |
2753 | +_Description: Ubuntu MAAS Server |
2754 | + The Ubuntu MAAS Server has been installed in your system. You |
2755 | + can access the MAAS Web interface here: |
2756 | + . |
2757 | + http://${MAAS_URL}/MAAS |
2758 | + . |
2759 | + If the automatically detected address above is not in the same |
2760 | + network as the MAAS clients, you need to reconfigure it: |
2761 | + . |
2762 | + sudo dpkg-reconfigure maas-region-controller |
2763 | + |
2764 | +Template: maas/default-maas-url |
2765 | +Type: string |
2766 | +_Description: Ubuntu MAAS PXE/Provisioning network address: |
2767 | + The Ubuntu MAAS Server automatically detects the IP address |
2768 | + that is used for PXE and provisioning. However, it needs to be |
2769 | + in the same network as the clients. If the automatically |
2770 | + detected address is not in the same network as the clients, it |
2771 | + must be changed. |
2772 | + |
2773 | +Template: maas/username |
2774 | +Type: string |
2775 | +_Description: Ubuntu MAAS username |
2776 | + The Ubuntu MAAS server requires the administrator to create a |
2777 | + username and password combination. |
2778 | + . |
2779 | + Please provide the username for the MAAS account. |
2780 | + |
2781 | +Template: maas/password |
2782 | +Type: password |
2783 | +_Description: Ubuntu MAAS password |
2784 | + The Ubuntu MAAS server requires the administrator to create a |
2785 | + username and password combination. |
2786 | + . |
2787 | + Please provide the password for the MAAS account. |
2788 | + |
2789 | +Template: maas-rack-controller/maas-url |
2790 | +Type: string |
2791 | +_Description: Ubuntu MAAS API address: |
2792 | + The MAAS cluster controller and nodes need to contact the MAAS region |
2793 | + controller API. Set the URL at which they can reach the MAAS API remotely, |
2794 | + e.g. "http://192.168.1.1/MAAS". |
2795 | + Since nodes must be able to access this URL, localhost or 127.0.0.1 are not |
2796 | + useful values here. |
2797 | + |
2798 | +Template: maas-rack-controller/shared-secret |
2799 | +Type: password |
2800 | +_Description: MAAS Cluster Controller Shared Secret: |
2801 | + The MAAS Cluster Controller needs to contact the MAAS server |
2802 | + with a share secret. Set the shared secret here. |
2803 | |
2804 | === added file 'debian/maas-dhcp.apparmor' |
2805 | --- debian/maas-dhcp.apparmor 1970-01-01 00:00:00 +0000 |
2806 | +++ debian/maas-dhcp.apparmor 2016-04-16 02:29:52 +0000 |
2807 | @@ -0,0 +1,10 @@ |
2808 | +/run/maas/dhcp/ r, |
2809 | +/run/maas/dhcp/** r, |
2810 | +/run/maas/dhcp/*.pid lrw, |
2811 | +/run/maas/dhcp/*.trace lrw, |
2812 | +/run/maas/dhcp/*.leases* lrw, |
2813 | +/var/lib/maas/dhcp/dhcpd*.leases* lrw, |
2814 | +/var/lib/maas/dhcpd.conf r, |
2815 | +/var/lib/maas/dhcpd6.conf r, |
2816 | +/usr/sbin/maas-dhcp-helper Ux, |
2817 | +/tmp/maas-dhcpd-* r, |
2818 | |
2819 | === added file 'debian/maas-dhcp.dirs' |
2820 | --- debian/maas-dhcp.dirs 1970-01-01 00:00:00 +0000 |
2821 | +++ debian/maas-dhcp.dirs 2016-04-16 02:29:52 +0000 |
2822 | @@ -0,0 +1,2 @@ |
2823 | +var/lib/maas |
2824 | +var/lib/maas/dhcp |
2825 | |
2826 | === added file 'debian/maas-dhcp.install' |
2827 | --- debian/maas-dhcp.install 1970-01-01 00:00:00 +0000 |
2828 | +++ debian/maas-dhcp.install 2016-04-16 02:29:52 +0000 |
2829 | @@ -0,0 +1,1 @@ |
2830 | +/debian/tmp/etc/apparmor.d/dhcpd.d/maas |
2831 | |
2832 | === added file 'debian/maas-dhcp.maas-dhcpd.service' |
2833 | --- debian/maas-dhcp.maas-dhcpd.service 1970-01-01 00:00:00 +0000 |
2834 | +++ debian/maas-dhcp.maas-dhcpd.service 2016-04-16 02:29:52 +0000 |
2835 | @@ -0,0 +1,28 @@ |
2836 | +[Unit] |
2837 | +Description=MAAS instance of ISC DHCP server for IPv4 |
2838 | +Documentation=man:dhcpd(8) |
2839 | +Wants=network-online.target |
2840 | +After=network-online.target |
2841 | +After=time-sync.target |
2842 | +BindsTo=maas-rackd.service |
2843 | +ConditionPathExists=/var/lib/maas/dhcpd.conf |
2844 | +ConditionPathExists=/var/lib/maas/dhcpd-interfaces |
2845 | + |
2846 | +[Service] |
2847 | +# Allow dhcp server to write lease and pid file as 'dhcpd' user |
2848 | +ExecStartPre=/bin/mkdir -p /run/maas/dhcp |
2849 | +# The leases files need to be root:dhcpd even when dropping privileges |
2850 | +ExecStartPre=/bin/mkdir -p /var/lib/maas/dhcp |
2851 | +# Start the daemon |
2852 | +ExecStart=/bin/sh -ec '\ |
2853 | + INTERFACES=$(cat /var/lib/maas/dhcpd-interfaces); \ |
2854 | + LEASES_FILE=/var/lib/maas/dhcp/dhcpd.leases; \ |
2855 | + [ -e $LEASES_FILE ] || touch $LEASES_FILE; \ |
2856 | + /usr/sbin/maas-dhcp-helper clean $LEASES_FILE; \ |
2857 | + chown root:dhcpd /var/lib/maas/dhcp $LEASES_FILE; \ |
2858 | + chmod 775 /var/lib/maas/dhcp ; chmod 664 $LEASES_FILE; \ |
2859 | + exec dhcpd -user dhcpd -group dhcpd -f -q -4 -pf /run/maas/dhcp/dhcpd.pid \ |
2860 | + -cf /var/lib/maas/dhcpd.conf -lf $LEASES_FILE $INTERFACES' |
2861 | + |
2862 | +[Install] |
2863 | +WantedBy=multi-user.target |
2864 | |
2865 | === added file 'debian/maas-dhcp.maas-dhcpd6.service' |
2866 | --- debian/maas-dhcp.maas-dhcpd6.service 1970-01-01 00:00:00 +0000 |
2867 | +++ debian/maas-dhcp.maas-dhcpd6.service 2016-04-16 02:29:52 +0000 |
2868 | @@ -0,0 +1,28 @@ |
2869 | +[Unit] |
2870 | +Description=MAAS instance of ISC DHCP server for IPv6 |
2871 | +Documentation=man:dhcpd(8) |
2872 | +Wants=network-online.target |
2873 | +After=network-online.target |
2874 | +After=time-sync.target |
2875 | +BindsTo=maas-rackd.service |
2876 | +ConditionPathExists=/var/lib/maas/dhcpd6.conf |
2877 | +ConditionPathExists=/var/lib/maas/dhcpd-interfaces |
2878 | + |
2879 | +[Service] |
2880 | +# Allow dhcp server to write lease and pid file as 'dhcpd' user |
2881 | +ExecStartPre=/bin/mkdir -p /run/maas/dhcp |
2882 | +# The leases files need to be root:dhcpd even when dropping privileges |
2883 | +ExecStartPre=/bin/mkdir -p /var/lib/maas/dhcp |
2884 | +# Start the daemon |
2885 | +ExecStart=/bin/sh -ec '\ |
2886 | + INTERFACES=$(cat /var/lib/maas/dhcpd6-interfaces); \ |
2887 | + LEASES_FILE=/var/lib/maas/dhcp/dhcpd6.leases; \ |
2888 | + [ -e $LEASES_FILE ] || touch $LEASES_FILE; \ |
2889 | + /usr/sbin/maas-dhcp-helper clean $LEASES_FILE; \ |
2890 | + chown root:dhcpd /var/lib/maas/dhcp $LEASES_FILE; \ |
2891 | + chmod 775 /var/lib/maas/dhcp ; chmod 664 $LEASES_FILE; \ |
2892 | + exec dhcpd -user dhcpd -group dhcpd -f -6 -pf /run/maas/dhcp/dhcpd6.pid \ |
2893 | + -cf /var/lib/maas/dhcpd6.conf -lf $LEASES_FILE $INTERFACES' |
2894 | + |
2895 | +[Install] |
2896 | +WantedBy=multi-user.target |
2897 | |
2898 | === added file 'debian/maas-dhcp.maintscript' |
2899 | --- debian/maas-dhcp.maintscript 1970-01-01 00:00:00 +0000 |
2900 | +++ debian/maas-dhcp.maintscript 2016-04-16 02:29:52 +0000 |
2901 | @@ -0,0 +1,2 @@ |
2902 | +rm_conffile /etc/init/maas-dhcp-server.conf 1.7.0~beta6+bzr3231-0ubuntu1 |
2903 | +rm_conffile /etc/init/maas-dhcpv6-server.conf 1.7.0~beta6+bzr3231-0ubuntu1 |
2904 | |
2905 | === added file 'debian/maas-dhcp.postinst' |
2906 | --- debian/maas-dhcp.postinst 1970-01-01 00:00:00 +0000 |
2907 | +++ debian/maas-dhcp.postinst 2016-04-16 02:29:52 +0000 |
2908 | @@ -0,0 +1,35 @@ |
2909 | +#!/bin/sh |
2910 | + |
2911 | +set -e |
2912 | + |
2913 | +if [ "$1" = "configure" ] |
2914 | +then |
2915 | + # Stop the dhcpd instance that came with the isc-dhcp-server package. |
2916 | + # We run our own dhcpd instances. |
2917 | + systemctl stop isc-dhcp-server >/dev/null || true |
2918 | + systemctl disable isc-dhcp-server >/dev/null || true |
2919 | + systemctl stop isc-dhcp-server6 >/dev/null || true |
2920 | + systemctl disable isc-dhcp-server6 >/dev/null || true |
2921 | + |
2922 | + dhcpd_prof="/etc/apparmor.d/usr.sbin.dhcpd" |
2923 | + if [ -f "${dhcpd_prof}" ] && command -v apparmor_parser >/dev/null 2>&1 |
2924 | + then |
2925 | + apparmor_parser --replace --write-cache --skip-read-cache "${dhcpd_prof}" || true |
2926 | + fi |
2927 | + |
2928 | + # Starting from 1.9, these config files are no longer stored in |
2929 | + # /etc/maas, but are stored in /var/lib/maas. Note that these |
2930 | + # are created automatically by MAAS. On upgrades, however, these |
2931 | + # need to be moved to not break DHCP. |
2932 | + if [ -f /etc/maas/dhcpd.conf ]; then |
2933 | + mv /etc/maas/dhcpd.conf /var/lib/maas/ |
2934 | + fi |
2935 | + if [ -f /etc/maas/dhcpd6.conf ]; then |
2936 | + mv /etc/maas/dhcpd6.conf /var/lib/maas/ |
2937 | + fi |
2938 | + |
2939 | + # Ensure ownership is correct |
2940 | + chown root:dhcpd /var/lib/maas/dhcp |
2941 | +fi |
2942 | + |
2943 | +#DEBHELPER# |
2944 | |
2945 | === added file 'debian/maas-dhcp.postrm' |
2946 | --- debian/maas-dhcp.postrm 1970-01-01 00:00:00 +0000 |
2947 | +++ debian/maas-dhcp.postrm 2016-04-16 02:29:52 +0000 |
2948 | @@ -0,0 +1,16 @@ |
2949 | +#!/bin/sh |
2950 | + |
2951 | +set -e |
2952 | + |
2953 | +if [ "$1" = "remove" ] || [ "$1" = "purge" ]; then |
2954 | + dhcpd_prof="/etc/apparmor.d/usr.sbin.dhcpd" |
2955 | + if [ -f "${dhcpd_prof}" ] && |
2956 | + command -v apparmor_parser >/dev/null 2>&1; then |
2957 | + apparmor_parser --replace --write-cache --skip-read-cache "${dhcpd_prof}" || true |
2958 | + fi |
2959 | + if [ "$1" = "purge" ]; then |
2960 | + rm -rf /var/lib/maas/dhcp |
2961 | + fi |
2962 | +fi |
2963 | + |
2964 | +#DEBHELPER# |
2965 | |
2966 | === added file 'debian/maas-dhcp.preinst' |
2967 | --- debian/maas-dhcp.preinst 1970-01-01 00:00:00 +0000 |
2968 | +++ debian/maas-dhcp.preinst 2016-04-16 02:29:52 +0000 |
2969 | @@ -0,0 +1,16 @@ |
2970 | +#!/bin/sh |
2971 | + |
2972 | +set -e |
2973 | + |
2974 | +. /usr/share/debconf/confmodule |
2975 | + |
2976 | +if [ "$1" = "upgrade" ] && dpkg --compare-versions "$2" lt 1.7.0~beta6+bzr3232-0ubuntu1; then |
2977 | + if [ -f /etc/init/maas-dhcp-server.conf ]; then |
2978 | + invoke-rc.d maas-dhcp-server stop |
2979 | + fi |
2980 | + if [ -f /etc/init/maas-dhcpv6-server.conf ]; then |
2981 | + invoke-rc.d maas-dhcpv6-server stop |
2982 | + fi |
2983 | +fi |
2984 | + |
2985 | +#DEBHELPER# |
2986 | |
2987 | === added file 'debian/maas-dns.dirs' |
2988 | --- debian/maas-dns.dirs 1970-01-01 00:00:00 +0000 |
2989 | +++ debian/maas-dns.dirs 2016-04-16 02:29:52 +0000 |
2990 | @@ -0,0 +1,1 @@ |
2991 | +etc/bind/maas |
2992 | |
2993 | === added file 'debian/maas-dns.postinst' |
2994 | --- debian/maas-dns.postinst 1970-01-01 00:00:00 +0000 |
2995 | +++ debian/maas-dns.postinst 2016-04-16 02:29:52 +0000 |
2996 | @@ -0,0 +1,61 @@ |
2997 | +#!/bin/sh |
2998 | + |
2999 | +set -e |
3000 | + |
3001 | +edit_named_options() { |
3002 | + # Remove any existing MAAS-related include line from |
3003 | + # /etc/bind/named.conf.local, then re-add it. |
3004 | + sed -i '/^include\s.*maas/d' /etc/bind/named.conf.local |
3005 | + maas-region get_named_conf --edit --config_path /etc/bind/named.conf.local |
3006 | + |
3007 | + # Add a line in /etc/bind/named.conf.options that includes the |
3008 | + # /etc/named/maas/named.conf.options.inside.maas file. |
3009 | + maas-region edit_named_options --config-path /etc/bind/named.conf.options |
3010 | +} |
3011 | + |
3012 | +fix_dns_permissions() { |
3013 | + if [ -d /etc/bind/maas ]; then |
3014 | + chown maas:root /etc/bind/maas |
3015 | + chown -R maas:maas /etc/bind/maas/* |
3016 | + fi |
3017 | + if [ -f /etc/bind/maas/named.conf.maas ]; then |
3018 | + chown maas:maas /etc/bind/maas/named.conf.maas |
3019 | + chmod 644 /etc/bind/maas/named.conf.maas |
3020 | + fi |
3021 | + if [ -f /etc/bind/maas/named.conf.options.inside.maas ]; then |
3022 | + chown maas:maas /etc/bind/maas/named.conf.options.inside.maas |
3023 | + chmod 644 /etc/bind/maas/named.conf.options.inside.maas |
3024 | + fi |
3025 | + if [ -f /etc/bind/maas/rndc.conf.maas ]; then |
3026 | + chown maas:root /etc/bind/maas/rndc.conf.maas |
3027 | + chmod 600 /etc/bind/maas/rndc.conf.maas |
3028 | + fi |
3029 | + if [ -f /etc/bind/maas/named.conf.rndc.maas ]; then |
3030 | + chown maas:bind /etc/bind/maas/named.conf.rndc.maas |
3031 | + chmod 640 /etc/bind/maas/named.conf.rndc.maas |
3032 | + fi |
3033 | +} |
3034 | + |
3035 | +# This handles installs and re-configuration |
3036 | +if ([ "$1" = "configure" ] && [ -z "$2" ]) || [ -n "$DEBCONF_RECONFIGURE" ]; then |
3037 | + # If /etc/bind/maas is empty, set_up_dns. |
3038 | + if [ ! "$(ls -A /etc/bind/maas)" ]; then |
3039 | + maas-region set_up_dns |
3040 | + fi |
3041 | + |
3042 | + # Fix permissions. |
3043 | + fix_dns_permissions |
3044 | + |
3045 | + edit_named_options |
3046 | + |
3047 | +elif [ "$1" = "configure" ]; then |
3048 | + # Fix permissions |
3049 | + fix_dns_permissions |
3050 | + |
3051 | + # ensure that DNS config is included |
3052 | + edit_named_options |
3053 | +fi |
3054 | + |
3055 | +invoke-rc.d bind9 restart || true |
3056 | + |
3057 | +#DEBHELPER# |
3058 | |
3059 | === added file 'debian/maas-dns.postrm' |
3060 | --- debian/maas-dns.postrm 1970-01-01 00:00:00 +0000 |
3061 | +++ debian/maas-dns.postrm 2016-04-16 02:29:52 +0000 |
3062 | @@ -0,0 +1,25 @@ |
3063 | +#!/bin/sh |
3064 | + |
3065 | +set -e |
3066 | + |
3067 | +if [ "$1" = "remove" ]; then |
3068 | + if [ -f /etc/bind/named.conf.local ]; then |
3069 | + sed -i '/^include.*\"\/etc\/bind\/maas\/named.conf.maas\"\;$/d' \ |
3070 | + /etc/bind/named.conf.local |
3071 | + sed -i '/^include.*\"\/etc\/bind\/maas\/named.conf.options.inside.maas\"\;$/d' \ |
3072 | + /etc/bind/named.conf.options |
3073 | + fi |
3074 | +fi |
3075 | + |
3076 | +if [ "$1" = "purge" ]; then |
3077 | + # Remove zone files |
3078 | + if [ -d /etc/bind/maas ]; then |
3079 | + rm -rf /etc/bind/maas |
3080 | + fi |
3081 | +fi |
3082 | + |
3083 | +if [ -x /usr/sbin/invoke-rc.d ]; then |
3084 | + invoke-rc.d bind9 restart || true |
3085 | +fi |
3086 | + |
3087 | +#DEBHELPER# |
3088 | |
3089 | === added file 'debian/maas-proxy.dirs' |
3090 | --- debian/maas-proxy.dirs 1970-01-01 00:00:00 +0000 |
3091 | +++ debian/maas-proxy.dirs 2016-04-16 02:29:52 +0000 |
3092 | @@ -0,0 +1,2 @@ |
3093 | +var/log/maas/proxy |
3094 | +var/lib/maas |
3095 | |
3096 | === added file 'debian/maas-proxy.install' |
3097 | --- debian/maas-proxy.install 1970-01-01 00:00:00 +0000 |
3098 | +++ debian/maas-proxy.install 2016-04-16 02:29:52 +0000 |
3099 | @@ -0,0 +1,1 @@ |
3100 | +debian/extras/maas-proxy-common.sh usr/share/maas/ |
3101 | |
3102 | === added file 'debian/maas-proxy.logrotate' |
3103 | --- debian/maas-proxy.logrotate 1970-01-01 00:00:00 +0000 |
3104 | +++ debian/maas-proxy.logrotate 2016-04-16 02:29:52 +0000 |
3105 | @@ -0,0 +1,24 @@ |
3106 | +# |
3107 | +# Logrotate fragment for squid-deb-proxy. |
3108 | +# |
3109 | +/var/log/maas/proxy/*.log { |
3110 | + daily |
3111 | + compress |
3112 | + delaycompress |
3113 | + rotate 2 |
3114 | + missingok |
3115 | + nocreate |
3116 | + sharedscripts |
3117 | + postrotate |
3118 | + if [ -x /usr/sbin/squid ]; then |
3119 | + SQUID=/usr/sbin/squid |
3120 | + elif [ -x /usr/sbin/squid3 ]; then |
3121 | + SQUID=/usr/sbin/squid3 |
3122 | + else |
3123 | + echo "No squid binary found" |
3124 | + exit 1 |
3125 | + fi |
3126 | + |
3127 | + test ! -e /var/run/maas-proxy.pid || $SQUID -f /var/lib/maas/maas-proxy.conf -k rotate |
3128 | + endscript |
3129 | +} |
3130 | |
3131 | === added file 'debian/maas-proxy.maas-proxy.service' |
3132 | --- debian/maas-proxy.maas-proxy.service 1970-01-01 00:00:00 +0000 |
3133 | +++ debian/maas-proxy.maas-proxy.service 2016-04-16 02:29:52 +0000 |
3134 | @@ -0,0 +1,16 @@ |
3135 | +[Unit] |
3136 | +Description=MAAS Proxy |
3137 | +Requires=network-online.target |
3138 | +After=network-online.target |
3139 | +ConditionPathExists=/var/lib/maas/maas-proxy.conf |
3140 | + |
3141 | +[Service] |
3142 | +ExecStartPre=/bin/mkdir -p /run/maas/proxy |
3143 | +ExecStartPre=/bin/sh -ec '\ |
3144 | + . /usr/share/maas/maas-proxy-common.sh; \ |
3145 | + pre_start' |
3146 | +ExecStart=/usr/sbin/squid3 -N -f /var/lib/maas/maas-proxy.conf |
3147 | +ExecReload=/usr/sbin/squid3 -k reconfigure |
3148 | + |
3149 | +[Install] |
3150 | +WantedBy=multi-user.target |
3151 | |
3152 | === added file 'debian/maas-proxy.postinst' |
3153 | --- debian/maas-proxy.postinst 1970-01-01 00:00:00 +0000 |
3154 | +++ debian/maas-proxy.postinst 2016-04-16 02:29:52 +0000 |
3155 | @@ -0,0 +1,28 @@ |
3156 | +#!/bin/sh |
3157 | + |
3158 | +set -e |
3159 | + |
3160 | +if [ "$1" = "configure" ] |
3161 | +then |
3162 | + # Stop the squid3 instance that came with the squid3 package. |
3163 | + # We run our own squid3 instances. |
3164 | + # Handle both versions of the name, for safety. |
3165 | + for SQUID in squid squid3; do |
3166 | + systemctl stop ${SQUID} >/dev/null 2>&1 || true |
3167 | + systemctl disable ${SQUID} >/dev/null 2>&1 || true |
3168 | + done |
3169 | + |
3170 | + # Ensure log folder is created. |
3171 | + mkdir -p /var/log/maas/proxy |
3172 | + chown -R proxy:proxy /var/log/maas/proxy |
3173 | + |
3174 | + # maas-proxy.conf is now generated by MAAS itself and if we are |
3175 | + # upgrading from an earlier version that used to ship maas-proxy.conf |
3176 | + # in /etc/maas, it is safe to remove |
3177 | + if [ -f /etc/maas/maas-proxy.conf ]; then |
3178 | + rm /etc/maas/maas-proxy.conf |
3179 | + fi |
3180 | + |
3181 | +fi |
3182 | + |
3183 | +#DEBHELPER# |
3184 | |
3185 | === added file 'debian/maas-proxy.postrm' |
3186 | --- debian/maas-proxy.postrm 1970-01-01 00:00:00 +0000 |
3187 | +++ debian/maas-proxy.postrm 2016-04-16 02:29:52 +0000 |
3188 | @@ -0,0 +1,12 @@ |
3189 | +#!/bin/sh |
3190 | + |
3191 | +set -e |
3192 | + |
3193 | +if [ "$1" = "purge" ]; then |
3194 | + rm -rf /var/cache/maas-proxy |
3195 | + rm -rf /var/log/maas/proxy |
3196 | + rm -rf /var/spool/maas-proxy |
3197 | + rm -rf /var/lib/maas/maas-proxy.conf |
3198 | +fi |
3199 | + |
3200 | +#DEBHELPER# |
3201 | |
3202 | === added file 'debian/maas-rack-controller.config' |
3203 | --- debian/maas-rack-controller.config 1970-01-01 00:00:00 +0000 |
3204 | +++ debian/maas-rack-controller.config 2016-04-16 02:29:52 +0000 |
3205 | @@ -0,0 +1,36 @@ |
3206 | +#!/bin/sh |
3207 | + |
3208 | +set -e |
3209 | + |
3210 | +. /usr/share/debconf/confmodule |
3211 | +db_version 2.0 |
3212 | + |
3213 | +# Only ask for new installations and reconfiguring. |
3214 | +# XXX Fix to not ask when installing from the CD. |
3215 | +if ([ "$1" = "configure" ] && [ -z "$2" ]); then |
3216 | + |
3217 | + db_get maas-rack-controller/maas-url || true |
3218 | + if [ -z "$RET" ]; then |
3219 | + # Attempt to pre-populate if installing on the region controller. |
3220 | + if [ -f /usr/sbin/maas-region ]; then |
3221 | + url=$(maas-region local_config_get --maas-url --plain) |
3222 | + # If the URL doesn't end in /MAAS then add it. This helps upgrades from |
3223 | + # precise for which the URL didn't contain /MAAS, which is now required |
3224 | + if ! echo $url | grep -qs "/MAAS$"; then |
3225 | + url="${url}/MAAS" |
3226 | + fi |
3227 | + db_set maas-rack-controller/maas-url "$url" |
3228 | + else |
3229 | + # Will only get here if dbconf value not already set, or |
3230 | + # /etc/maas/regiond.conf doesn't exist. |
3231 | + db_input medium maas-rack-controller/maas-url || true |
3232 | + db_go |
3233 | + fi |
3234 | + fi |
3235 | +fi |
3236 | + |
3237 | +if [ "$1" = "reconfigure" ]; then |
3238 | + db_input high maas-rack-controller/maas-url || true |
3239 | + db_go |
3240 | +fi |
3241 | +#DEBHELPER# |
3242 | |
3243 | === added file 'debian/maas-rack-controller.dirs' |
3244 | --- debian/maas-rack-controller.dirs 1970-01-01 00:00:00 +0000 |
3245 | +++ debian/maas-rack-controller.dirs 2016-04-16 02:29:52 +0000 |
3246 | @@ -0,0 +1,4 @@ |
3247 | +etc/maas |
3248 | +var/lib/maas |
3249 | +var/lib/maas/boot-resources |
3250 | +var/log/maas |
3251 | |
3252 | === added file 'debian/maas-rack-controller.install' |
3253 | --- debian/maas-rack-controller.install 1970-01-01 00:00:00 +0000 |
3254 | +++ debian/maas-rack-controller.install 2016-04-16 02:29:52 +0000 |
3255 | @@ -0,0 +1,14 @@ |
3256 | +# Install templates |
3257 | +debian/tmp/etc/maas/templates/pxe |
3258 | +debian/tmp/etc/maas/templates/uefi |
3259 | + |
3260 | +# Install uec2roottar |
3261 | +debian/tmp/usr/bin/uec2roottar |
3262 | + |
3263 | +# Install maas-dhcp-helper |
3264 | +debian/tmp/usr/sbin/maas-dhcp-helper |
3265 | + |
3266 | +# Install all other stuff |
3267 | +debian/extras/99-maas-sudoers etc/sudoers.d |
3268 | +debian/extras/maas-probe-dhcp usr/sbin |
3269 | +debian/extras/maas-rack usr/sbin |
3270 | |
3271 | === added file 'debian/maas-rack-controller.links' |
3272 | --- debian/maas-rack-controller.links 1970-01-01 00:00:00 +0000 |
3273 | +++ debian/maas-rack-controller.links 2016-04-16 02:29:52 +0000 |
3274 | @@ -0,0 +1,1 @@ |
3275 | +usr/sbin/maas-rack usr/sbin/maas-provision |
3276 | |
3277 | === added file 'debian/maas-rack-controller.lintian-overrides' |
3278 | --- debian/maas-rack-controller.lintian-overrides 1970-01-01 00:00:00 +0000 |
3279 | +++ debian/maas-rack-controller.lintian-overrides 2016-04-16 02:29:52 +0000 |
3280 | @@ -0,0 +1,1 @@ |
3281 | +maas-rack-controller: binary-without-manpage usr/bin/uec2roottar usr/sbin/maas-dhcp-helper |
3282 | |
3283 | === added file 'debian/maas-rack-controller.logrotate' |
3284 | --- debian/maas-rack-controller.logrotate 1970-01-01 00:00:00 +0000 |
3285 | +++ debian/maas-rack-controller.logrotate 2016-04-16 02:29:52 +0000 |
3286 | @@ -0,0 +1,15 @@ |
3287 | +/var/log/maas/rackd.log { |
3288 | + rotate 5 |
3289 | + weekly |
3290 | + compress |
3291 | + missingok |
3292 | + # copytruncate may lose log messages at the moment of rotation, but |
3293 | + # there is no better way to integrate twistd and logrotate. |
3294 | + copytruncate |
3295 | + # The logs are all owned by the `maas` user, so drop privs. |
3296 | + su maas maas |
3297 | + # Don't rotate unless the log is at least 10MB. |
3298 | + minsize 10M |
3299 | + # Force rotation if the log grows beyond 50MB. |
3300 | + maxsize 50M |
3301 | +} |
3302 | |
3303 | === added file 'debian/maas-rack-controller.maas-rackd.service' |
3304 | --- debian/maas-rack-controller.maas-rackd.service 1970-01-01 00:00:00 +0000 |
3305 | +++ debian/maas-rack-controller.maas-rackd.service 2016-04-16 02:29:52 +0000 |
3306 | @@ -0,0 +1,27 @@ |
3307 | +[Unit] |
3308 | +Description=MAAS Rack Controller |
3309 | +Documentation=https://maas.io/ |
3310 | +Requires=network-online.target |
3311 | +After=network-online.target |
3312 | + |
3313 | +[Service] |
3314 | +User=maas |
3315 | +Group=maas |
3316 | +Restart=always |
3317 | +RestartSec=10s |
3318 | +Environment="LOGFILE=/var/log/maas/rackd.log" |
3319 | +# Prevent maas-dhcpd and maas-dhcpd6 from starting until maas-rackd |
3320 | +# has regenerated the configurations and told the services to start. |
3321 | +ExecStartPre=/bin/rm -f /var/lib/maas/dhcpd.sock |
3322 | +ExecStartPre=/bin/rm -f /var/lib/maas/dhcpd.conf |
3323 | +ExecStartPre=/bin/rm -f /var/lib/maas/dhcpd6.conf |
3324 | +# Logs go to the journal; read them with |
3325 | +# journalctl -u maas-rackd |
3326 | +# Logs also go to $LOGFILE for backward compatibility. The journal |
3327 | +# should now be preferred as the $LOGFILE will be removed in MAAS 1.9. |
3328 | +ExecStart=/bin/sh -c \ |
3329 | + 'exec /usr/bin/authbind --deep /usr/bin/twistd3 --nodaemon --pidfile= \ |
3330 | + maas-rackd 2>&1 | tee -a $LOGFILE' |
3331 | + |
3332 | +[Install] |
3333 | +WantedBy=multi-user.target |
3334 | |
3335 | === added file 'debian/maas-rack-controller.maintscript' |
3336 | --- debian/maas-rack-controller.maintscript 1970-01-01 00:00:00 +0000 |
3337 | +++ debian/maas-rack-controller.maintscript 2016-04-16 02:29:52 +0000 |
3338 | @@ -0,0 +1,9 @@ |
3339 | +rm_conffile /etc/maas/bootresources.yaml 1.7.0~beta1+bzr2781-0ubuntu1 |
3340 | +rm_conffile /etc/maas/maas_local_celeryconfig_cluster.py 1.7.0~beta3+bzr3043-0ubuntu1 |
3341 | +rm_conffile /etc/init/maas-cluster-celery.conf 1.7.0~beta3+bzr3043-0ubuntu1 |
3342 | +rm_conffile /etc/init/maas-pserv.conf 1.7.0~beta3+bzr3043-0ubuntu1 |
3343 | +rm_conffile /etc/init/maas-cluster.conf 1.7.0~beta6+bzr3231-0ubuntu1 |
3344 | +rm_conffile /etc/init/maas-cluster-register.conf 1.7.0~beta6+bzr3231-0ubuntu1 |
3345 | +rm_conffile /etc/maas/maas-cluster-http.conf 1.8.0~alpha1+bzr3522-0ubuntu1 |
3346 | +rm_conffile /etc/init/maas-clusterd.conf 2.0.0~alpha1+bzr4635-0ubuntu1 |
3347 | +rm_conffile /lib/systemd/system/maas-clusterd.service 2.0.0~alpha1+bzr4635-0ubuntu1 |
3348 | |
3349 | === added file 'debian/maas-rack-controller.postinst' |
3350 | --- debian/maas-rack-controller.postinst 1970-01-01 00:00:00 +0000 |
3351 | +++ debian/maas-rack-controller.postinst 2016-04-16 02:29:52 +0000 |
3352 | @@ -0,0 +1,168 @@ |
3353 | +#!/bin/sh |
3354 | + |
3355 | +set -e |
3356 | + |
3357 | +. /usr/share/debconf/confmodule |
3358 | +db_version 2.0 |
3359 | + |
3360 | +RELEASE=`lsb_release -rs` || RELEASE="" |
3361 | + |
3362 | +configure_logging() { |
3363 | + # Give appropriate permissions |
3364 | + if [ ! -f /var/log/maas/rackd.log ]; then |
3365 | + touch /var/log/maas/rackd.log |
3366 | + fi |
3367 | + chown maas:maas /var/log/maas/rackd.log |
3368 | +} |
3369 | + |
3370 | +configure_libdir() { |
3371 | + # create var dir |
3372 | + if [ ! -d /var/lib/maas/boot-resources ]; then |
3373 | + mkdir -p /var/lib/maas/boot-resources |
3374 | + fi |
3375 | + # Ensure /var/lib/maas/boot-resources has correct ownership |
3376 | + chown -R maas:maas /var/lib/maas/boot-resources |
3377 | + |
3378 | + # If /var/lib/maas/secret exists, ensure ownership and |
3379 | + # permissions are correct |
3380 | + if [ -f /var/lib/maas/secret ]; then |
3381 | + chown maas:maas /var/lib/maas/secret |
3382 | + chmod 0640 /var/lib/maas/secret |
3383 | + fi |
3384 | + |
3385 | + if [ -f /var/lib/maas/maas_id ]; then |
3386 | + chown maas:maas /var/lib/maas/maas_id |
3387 | + fi |
3388 | + |
3389 | + # Ensure dhcpd related files have the correct permissions |
3390 | + if [ -f /var/lib/maas/dhcpd.conf ]; then |
3391 | + chown root:maas /var/lib/maas/dhcpd.conf |
3392 | + fi |
3393 | + if [ -f /var/lib/maas/dhcpd-interfaces ]; then |
3394 | + chown root:maas /var/lib/maas/dhcpd-interfaces |
3395 | + fi |
3396 | + if [ -f /var/lib/maas/dhcpd6.conf ]; then |
3397 | + chown maas:maas /var/lib/maas/dhcpd6.conf |
3398 | + fi |
3399 | + if [ -f /var/lib/maas/dhcpd6-interfaces ]; then |
3400 | + chown maas:maas /var/lib/maas/dhcpd6-interfaces |
3401 | + fi |
3402 | + if [ -S /var/lib/maas/dhcpd.sock ]; then |
3403 | + chown maas:maas /var/lib/maas/dhcpd.sock |
3404 | + fi |
3405 | +} |
3406 | + |
3407 | +configure_maas_tgt() { |
3408 | + # Ensure that iSCSI targets get re-defined on reboot. |
3409 | + # Creates a softlink in /etc/tgt/conf.d/ that points to the current |
3410 | + # boot images' tgt configuration. |
3411 | + mkdir -p /etc/tgt/conf.d |
3412 | + ln -sf /var/lib/maas/boot-resources/current/maas.tgt /etc/tgt/conf.d/maas.conf |
3413 | +} |
3414 | + |
3415 | +extract_cluster_uuid(){ |
3416 | + # Extract ClUSTER_UUID setting from config file $1. This will work |
3417 | + # on the old the cluster config file (which is shell). |
3418 | + awk '{ split($1,array,"\"")} END{print array[2] }' "$1" |
3419 | +} |
3420 | + |
3421 | +extract_maas_url(){ |
3422 | + # Extract the MAAS_URL setting from the config file $1. |
3423 | + grep -Eo "https?://[^ ]+" "$1" | cut -d"\"" -f1 |
3424 | +} |
3425 | + |
3426 | +configure_cluster_uuid(){ |
3427 | + # This will configure a UUID if one has not previously been set. |
3428 | + maas-rack config --init |
3429 | +} |
3430 | + |
3431 | +configure_cluster_authbind() { |
3432 | + MAAS_UID="`id -u maas`" |
3433 | + if [ ! -f "/etc/authbind/byuid/$MAAS_UID" ]; then |
3434 | + if [ ! -d "/etc/authbind/byuid" ]; then |
3435 | + mkdir -p /etc/authbind/byuid |
3436 | + chmod 755 /etc/authbind |
3437 | + chmod 755 /etc/authbind/byuid |
3438 | + fi |
3439 | + fi |
3440 | + echo '0.0.0.0/0:68,69' >/etc/authbind/byuid/$MAAS_UID |
3441 | + echo '::/0,68-69' >>/etc/authbind/byuid/$MAAS_UID |
3442 | + chown maas:maas /etc/authbind/byuid/$MAAS_UID |
3443 | + chmod 700 /etc/authbind/byuid/$MAAS_UID |
3444 | +} |
3445 | + |
3446 | +configure_maas_url(){ |
3447 | + # Get the MAAS URL on configure/reconfigure and write it to the conf files. |
3448 | + db_get maas-rack-controller/maas-url || true |
3449 | + if [ -n "$RET" ]; then |
3450 | + maas-rack config --region-url "$RET" |
3451 | + fi |
3452 | +} |
3453 | + |
3454 | +configure_shared_secret() { |
3455 | + db_get maas-rack-controller/shared-secret || true |
3456 | + if [ -n "$RET" ]; then |
3457 | + echo "$RET" | maas-rack install-shared-secret |
3458 | + chown maas:maas /var/lib/maas/secret |
3459 | + chmod 0640 /var/lib/maas/secret |
3460 | + fi |
3461 | +} |
3462 | + |
3463 | +upgrade_from_cluster_controller() { |
3464 | + # If we are upgrading from an older (1.7, 1.8) version, then we need |
3465 | + # to obtain the cluster UUID from the old configuration file and set |
3466 | + # it with the new configuration tool. |
3467 | + if [ -f /etc/maas/maas_cluster.conf ]; then |
3468 | + uuid=$(extract_cluster_uuid /etc/maas/maas_cluster.conf) |
3469 | + maas-rack config --uuid "$uuid" |
3470 | + maas_url=$(extract_maas_url /etc/maas/maas_cluster.conf) |
3471 | + maas-rack config --region-url "$maas_url" |
3472 | + db_set maas-rack-controller/maas-url "$maas_url" |
3473 | + mv /etc/maas/maas_cluster.conf /etc/maas/maas_cluster.conf.maas-old |
3474 | + mv /etc/maas/pserv.yaml /etc/maas/pserv.yaml.maas-old |
3475 | + fi |
3476 | + # If we are upgrading from (1.9, 1.10) version, then we need to obtain |
3477 | + # the maas_url and set it to debconf. Otherwise, the config file used |
3478 | + # is exactly the same. |
3479 | + if [ -f /etc/maas/clusterd.conf.1.10 ]; then |
3480 | + mv /etc/maas/clusterd.conf.1.10 /etc/maas/rackd.conf |
3481 | + maas_url=$(extract_maas_url /etc/maas/rackd.conf) |
3482 | + db_set maas-rack-controller/maas-url "$maas_url" |
3483 | + fi |
3484 | +} |
3485 | + |
3486 | +# Unconditionally ensure that there is at least an empty configuration |
3487 | +# file. This does *not* overwrite any existing configuration. |
3488 | +maas-rack config |
3489 | + |
3490 | +if [ "$1" = "configure" ] && [ -z "$2" ]; then |
3491 | + configure_logging |
3492 | + configure_libdir |
3493 | + configure_maas_tgt |
3494 | + configure_maas_url |
3495 | + configure_cluster_uuid |
3496 | + configure_cluster_authbind |
3497 | + maas-rack upgrade-cluster |
3498 | + upgrade_from_cluster_controller |
3499 | + configure_shared_secret |
3500 | + |
3501 | +elif [ -n "$DEBCONF_RECONFIGURE" ]; then |
3502 | + configure_maas_url |
3503 | + # Only ask for a shared secret when the region is not installed |
3504 | + # on the same system. |
3505 | + if [ ! -f /usr/sbin/maas-region ]; then |
3506 | + db_input high maas-rack-controller/shared-secret |
3507 | + db_go |
3508 | + fi |
3509 | + configure_shared_secret |
3510 | + |
3511 | +elif [ "$1" = "configure" ] && dpkg --compare-versions "$2" gt 0.1+bzr266+dfsg-0ubuntu1; then |
3512 | + configure_logging |
3513 | + configure_libdir |
3514 | + configure_cluster_authbind |
3515 | + maas-rack upgrade-cluster |
3516 | +fi |
3517 | + |
3518 | +db_stop |
3519 | + |
3520 | +#DEBHELPER# |
3521 | |
3522 | === added file 'debian/maas-rack-controller.postrm' |
3523 | --- debian/maas-rack-controller.postrm 1970-01-01 00:00:00 +0000 |
3524 | +++ debian/maas-rack-controller.postrm 2016-04-16 02:29:52 +0000 |
3525 | @@ -0,0 +1,50 @@ |
3526 | +#!/bin/sh |
3527 | + |
3528 | +set -e |
3529 | + |
3530 | +#DEBHELPER# |
3531 | + |
3532 | +RELEASE=`lsb_release -rs` || RELEASE="" |
3533 | + |
3534 | +case "$1" in |
3535 | + purge) |
3536 | + # remove logfile as it wasn't installed by packaging |
3537 | + rm -rf /var/log/maas/rackd.log* |
3538 | + |
3539 | + # remove var directories provided it will always have files |
3540 | + # not installed or tracked by packaging |
3541 | + rm -rf /var/lib/maas/boot-resources |
3542 | + |
3543 | + # remove files that were created by the rack controller |
3544 | + rm -rf /var/lib/maas/dhcpd.sock |
3545 | + rm -rf /var/lib/maas/dhcpd.conf |
3546 | + rm -rf /var/lib/maas/dhcpd-interfaces |
3547 | + rm -rf /var/lib/maas/dhcpd6.conf |
3548 | + rm -rf /var/lib/maas/dhcpd6-interfaces |
3549 | + |
3550 | + # Delete symlink for iSCSI config. |
3551 | + if [ -L /etc/tgt/conf.d/maas.conf ]; then |
3552 | + rm -rf /etc/tgt/conf.d/maas.conf |
3553 | + fi |
3554 | + |
3555 | + # Remove authbind |
3556 | + MAAS_UID="`id -u maas`" |
3557 | + if [ -f "/etc/authbind/byuid/$MAAS_UID" ]; then |
3558 | + rm -rf /etc/authbind/byuid/$MAAS_UID |
3559 | + fi |
3560 | + |
3561 | + # Remove rackd.conf file |
3562 | + rm -rf /etc/maas/rackd.conf |
3563 | + |
3564 | + # Deleting old config files if they exist |
3565 | + if [ -f /etc/maas/pserv.yaml.maas-old ]; then |
3566 | + rm -rf /etc/maas/pserv.yaml.maas-old |
3567 | + fi |
3568 | + if [ -f /etc/maas/maas_cluster.conf.maas-old ]; then |
3569 | + rm -rf /etc/maas/maas_cluster.conf.maas-old |
3570 | + fi |
3571 | + if [ -f /etc/maas/templates/dhcp.maas-old ]; then |
3572 | + rm -rf /etc/maas/templates/dhcp.maas-old |
3573 | + fi |
3574 | + |
3575 | +esac |
3576 | |
3577 | === added file 'debian/maas-rack-controller.preinst' |
3578 | --- debian/maas-rack-controller.preinst 1970-01-01 00:00:00 +0000 |
3579 | +++ debian/maas-rack-controller.preinst 2016-04-16 02:29:52 +0000 |
3580 | @@ -0,0 +1,56 @@ |
3581 | +#!/bin/sh |
3582 | + |
3583 | +set -e |
3584 | + |
3585 | +. /usr/share/debconf/confmodule |
3586 | + |
3587 | +if [ "$1" = "install" ]; then |
3588 | + if [ -f /etc/init/maas-pserv.conf ]; then |
3589 | + invoke-rc.d maas-pserv stop |
3590 | + fi |
3591 | + |
3592 | + if [ -f /etc/init/maas-cluster-celery.conf ]; then |
3593 | + invoke-rc.d maas-cluster-celery stop |
3594 | + fi |
3595 | + |
3596 | + if [ -f /var/log/maas/celery.log ]; then |
3597 | + rm -rf /var/log/maas/celery.log |
3598 | + fi |
3599 | + |
3600 | + if [ -f /etc/init/maas-cluster.conf ]; then |
3601 | + invoke-rc.d maas-cluster stop |
3602 | + fi |
3603 | + |
3604 | + if [ -f /var/log/maas/pserv.log ]; then |
3605 | + rm -rf /var/log/maas/pserv.log |
3606 | + fi |
3607 | + |
3608 | + if [ -f /etc/apache2/conf-enabled/maas-cluster-http.conf ]; then |
3609 | + rm -rf /etc/apache2/conf-enabled/maas-cluster-http.conf |
3610 | + fi |
3611 | + |
3612 | + if [ -f /etc/init/maas-clusterd.conf ] || [ -f /lib/systemd/system/maas-clusterd.service ]; then |
3613 | + invoke-rc.d maas-clusterd stop |
3614 | + fi |
3615 | + |
3616 | + if [ -f /etc/maas/clusterd.conf ]; then |
3617 | + mv /etc/maas/clusterd.conf /etc/maas/clusterd.conf.1.10 |
3618 | + fi |
3619 | + |
3620 | + if [ -f /var/log/maas/clusterd.log ]; then |
3621 | + mv /var/log/maas/clusterd.log /var/log/maas/rackd.log |
3622 | + fi |
3623 | + |
3624 | +fi |
3625 | + |
3626 | +if [ "$1" = "install" ] || [ "$1" = "upgrade" ]; then |
3627 | + if [ -d /etc/maas/templates/power ]; then |
3628 | + rm -rf /etc/maas/templates/power |
3629 | + fi |
3630 | + |
3631 | + if [ -d /etc/maas/templates/dhcp ]; then |
3632 | + mv /etc/maas/templates/dhcp /etc/maas/templates/dhcp.maas-old |
3633 | + fi |
3634 | +fi |
3635 | + |
3636 | +#DEBHELPER# |
3637 | |
3638 | === added file 'debian/maas-rack-controller.templates' |
3639 | --- debian/maas-rack-controller.templates 1970-01-01 00:00:00 +0000 |
3640 | +++ debian/maas-rack-controller.templates 2016-04-16 02:29:52 +0000 |
3641 | @@ -0,0 +1,14 @@ |
3642 | +Template: maas-rack-controller/maas-url |
3643 | +Type: string |
3644 | +_Description: Ubuntu MAAS API address: |
3645 | + The MAAS cluster controller and nodes need to contact the MAAS region |
3646 | + controller API. Set the URL at which they can reach the MAAS API remotely, |
3647 | + e.g. "http://192.168.1.1/MAAS". |
3648 | + Since nodes must be able to access this URL, localhost or 127.0.0.1 are not |
3649 | + useful values here. |
3650 | + |
3651 | +Template: maas-rack-controller/shared-secret |
3652 | +Type: password |
3653 | +_Description: MAAS Cluster Controller Shared Secret: |
3654 | + The MAAS Cluster Controller needs to contact the MAAS server |
3655 | + with a share secret. Set the shared secret here. |
3656 | |
3657 | === added file 'debian/maas-rack-udeb.postinst' |
3658 | --- debian/maas-rack-udeb.postinst 1970-01-01 00:00:00 +0000 |
3659 | +++ debian/maas-rack-udeb.postinst 2016-04-16 02:29:52 +0000 |
3660 | @@ -0,0 +1,77 @@ |
3661 | +#!/bin/sh -e |
3662 | + |
3663 | +# Source debconf library. |
3664 | +. /usr/share/debconf/confmodule |
3665 | +db_version 2.0 |
3666 | + |
3667 | +# This conf script is capable of backing up |
3668 | +db_capb backup |
3669 | + |
3670 | +logfile=/var/lib/preseed/log |
3671 | +set_question () { |
3672 | + echo "$1 $2 $3 $4" >>"$logfile" |
3673 | + if ! db_fget "$2" seen; then |
3674 | + db_register debian-installer/dummy "$2" |
3675 | + db_subst "$2" ID "$2" |
3676 | + db_fget "$2" seen |
3677 | + fi |
3678 | + if [ "$RET" = false ]; then |
3679 | + db_set "$2" "$4" |
3680 | + db_fset "$2" seen true |
3681 | + fi |
3682 | +} |
3683 | + |
3684 | +STATE=1 |
3685 | +while [ "$STATE" != 0 -a "$STATE" != 4 ]; do |
3686 | + case "$STATE" in |
3687 | + 1) |
3688 | + # This is a confirmation that we want to install MAAS. If we don't |
3689 | + # then we exit the MAAS installation process |
3690 | + db_input high maas-rack-udeb/rack-confirmation || true |
3691 | + ;; |
3692 | + 2) |
3693 | + #Ask for MAAS url |
3694 | + db_get maas-rack-udeb/rack-confirmation |
3695 | + if [ "$RET" != "true" ]; then |
3696 | + break |
3697 | + fi |
3698 | + db_input critical maas-rack-udeb/maas-url || true |
3699 | + ;; |
3700 | + |
3701 | + 3) |
3702 | + # Ask for Shared Secret |
3703 | + db_input critical maas-rack-udeb/shared-secret || true |
3704 | + ;; |
3705 | + |
3706 | + esac |
3707 | + |
3708 | + if db_go; then |
3709 | + STATE=$(($STATE + 1)) |
3710 | + else |
3711 | + STATE=$(($STATE - 1)) |
3712 | + fi |
3713 | +done |
3714 | +db_capb |
3715 | + |
3716 | +db_get maas-rack-udeb/rack-confirmation |
3717 | +if [ "$RET" != "true" ]; then |
3718 | + # MAAS rack controller won't be installed |
3719 | + exit 0 |
3720 | +fi |
3721 | + |
3722 | +db_get maas-rack-udeb/maas-url |
3723 | +url="$RET" |
3724 | +if [ -n "$url" ]; then |
3725 | + set_question maas-rack-controller maas-rack-controller/maas-url string "$url" |
3726 | +fi |
3727 | + |
3728 | +db_get maas-rack-udeb/shared-secret |
3729 | +secret="$RET" |
3730 | +if [ -n "$secret" ]; then |
3731 | + set_question maas-rack-controller maas-rack-controller/shared-secret password "$secret" |
3732 | +fi |
3733 | + |
3734 | +# Tell the package manager that we will be installing MAAS Rack Controller |
3735 | +db_set pkgsel/include maas-rack-controller |
3736 | +set_question tasksel tasksel/first multiselect "standard, server" |
3737 | +exit 0 |
3738 | |
3739 | === added file 'debian/maas-rack-udeb.templates' |
3740 | --- debian/maas-rack-udeb.templates 1970-01-01 00:00:00 +0000 |
3741 | +++ debian/maas-rack-udeb.templates 2016-04-16 02:29:52 +0000 |
3742 | @@ -0,0 +1,34 @@ |
3743 | +Template: debian-installer/maas-rack-udeb/title |
3744 | +Type: text |
3745 | +_Description: Install your Metal as a Service (MAAS) Rack Controller |
3746 | + |
3747 | +Template: maas-rack-udeb/rack-confirmation |
3748 | +Type: boolean |
3749 | +_Description: Would you like to proceed with the installation of your MAAS Rack Controller? |
3750 | + The MAAS rack controller (maas-rackd) provides highly available, fast |
3751 | + and local broadcast services to the machines provisioned by MAAS. You |
3752 | + need a MAAS rack controller attached to each fabric (which is a set of |
3753 | + trunked switches). You can attach multiple rack controllers to these |
3754 | + physical networks for high availability, with secondary rack controllers |
3755 | + automatically stepping to provide these services if the primary rack |
3756 | + controller fails. |
3757 | + . |
3758 | + By choosing to install a MAAS Rack controller, you will have to connect |
3759 | + it to a Region controller to service your machines. |
3760 | + |
3761 | +Template: maas-rack-udeb/maas-url |
3762 | +Type: string |
3763 | +_Description: Ubuntu MAAS Region API address: |
3764 | + The MAAS rack controller and nodes need to contact the MAAS region |
3765 | + controller API. Set the URL at which they can reach the MAAS API remotely, |
3766 | + e.g. "http://192.168.1.1:5240/MAAS". |
3767 | + . |
3768 | + Since nodes must be able to access this URL, localhost or 127.0.0.1 are not |
3769 | + useful values here. |
3770 | + |
3771 | +Template: maas-rack-udeb/shared-secret |
3772 | +Type: password |
3773 | +_Description: MAAS Rack Controller shared secret: |
3774 | + The MAAS Rack Controller needs to contact the MAAS server |
3775 | + with a share secret. This shared secret can be found on |
3776 | + the MAAS Region Controller server under /var/lib/maas/secret. |
3777 | |
3778 | === added file 'debian/maas-region-api.apport' |
3779 | --- debian/maas-region-api.apport 1970-01-01 00:00:00 +0000 |
3780 | +++ debian/maas-region-api.apport 2016-04-16 02:29:52 +0000 |
3781 | @@ -0,0 +1,72 @@ |
3782 | +#!/usr/bin/python |
3783 | + |
3784 | +'''apport hook for maas-region-controller |
3785 | + |
3786 | +(c) 2012-2014 Canonical Ltd. |
3787 | +Author: Andres Rodriguez <andres.rodriguez@canonical.com> |
3788 | + |
3789 | +This program is free software; you can redistribute it and/or modify it |
3790 | +under the terms of the GNU General Public License as published by the |
3791 | +Free Software Foundation; either version 2 of the License, or (at your |
3792 | +option) any later version. See http://www.gnu.org/copyleft/gpl.html for |
3793 | +the full text of the license. |
3794 | +''' |
3795 | + |
3796 | +import os.path |
3797 | +import subprocess |
3798 | +import tempfile |
3799 | + |
3800 | +from apport.hookutils import ( |
3801 | + attach_conffiles, |
3802 | + attach_file, |
3803 | + attach_file_if_exists, |
3804 | + attach_related_packages, |
3805 | +) |
3806 | + |
3807 | + |
3808 | +def attach_journal_logs(report, key, *units): |
3809 | + """Capture logs from systemd's journal.""" |
3810 | + if os.path.exists("/bin/journalctl"): |
3811 | + cmd = ['/bin/journalctl', '--utc', '--since=-24hours'] |
3812 | + cmd.extend("--unit=%s" % unit for unit in units) |
3813 | + with tempfile.NamedTemporaryFile() as logfile: |
3814 | + subprocess.call(cmd, stdout=logfile, stderr=logfile) |
3815 | + attach_file(report, logfile.name, key) |
3816 | + |
3817 | + |
3818 | +def add_info(report, ui): |
3819 | + response = ui.yesno( |
3820 | + "The contents of /etc/maas/regiond.conf and /etc/maas/rackd.conf " |
3821 | + "may help developers diagnose your bug more quickly. However, it may " |
3822 | + "contain sensitive information. Do you want to include it in your bug " |
3823 | + "report?") |
3824 | + |
3825 | + if response is None: |
3826 | + # The user cancelled. |
3827 | + raise StopIteration |
3828 | + elif response is True: |
3829 | + # The user agreed to include the configuration files. |
3830 | + attach_conffiles(report, 'maas') |
3831 | + attach_file_if_exists( |
3832 | + report, '/etc/maas/regiond.conf', 'MAASRegionConfig') |
3833 | + attach_file_if_exists( |
3834 | + report, '/etc/maas/rackd.conf', 'MAASClusterConfig') |
3835 | + else: |
3836 | + # The user declined to include the configuration files. |
3837 | + pass |
3838 | + |
3839 | + # Attaching log files (Upstart). |
3840 | + attach_file_if_exists( |
3841 | + report, '/var/log/maas/regiond.log', 'MAASRegionLog') |
3842 | + attach_file_if_exists( |
3843 | + report, '/var/log/maas/rackd.log', 'MAASClusterLog') |
3844 | + |
3845 | + # Attaching log files (systemd). These will overwrite the logs above on a |
3846 | + # system where systemd is available. |
3847 | + attach_journal_logs( |
3848 | + report, "MAASRegionLog", "maas-regiond", "maas-regiond-worker@*") |
3849 | + attach_journal_logs( |
3850 | + report, "MAASClusterLog", "maas-rackd") |
3851 | + |
3852 | + # Attaching related packages info |
3853 | + attach_related_packages(report, ['python-django-maas', 'apparmor']) |
3854 | |
3855 | === added file 'debian/maas-region-api.install' |
3856 | --- debian/maas-region-api.install 1970-01-01 00:00:00 +0000 |
3857 | +++ debian/maas-region-api.install 2016-04-16 02:29:52 +0000 |
3858 | @@ -0,0 +1,27 @@ |
3859 | +# Install project |
3860 | +debian/tmp/usr/lib/python*/dist-packages/maas usr/share/maas |
3861 | + |
3862 | +# Install static files |
3863 | +debian/tmp/usr/share/maas/web/static |
3864 | + |
3865 | +# Install Apache Config |
3866 | +debian/tmp/usr/share/maas/maas-http.conf |
3867 | + |
3868 | +# Install new preseed files |
3869 | +debian/tmp/etc/maas/preseeds |
3870 | + |
3871 | +# Install templates |
3872 | +debian/tmp/etc/maas/templates/dns |
3873 | +debian/tmp/etc/maas/templates/commissioning-user-data |
3874 | + |
3875 | +# Install driver configuration file |
3876 | +debian/tmp/etc/maas/drivers.yaml |
3877 | + |
3878 | +# Install winrm certificate generation script |
3879 | +debian/tmp/usr/bin/maas-generate-winrm-cert |
3880 | + |
3881 | +# Install all other stuff |
3882 | +debian/extras/maas-region usr/sbin |
3883 | +debian/extras/20-maas.conf etc/rsyslog.d |
3884 | +debian/extras/maas_remote_syslog_compress etc/cron.d |
3885 | +debian/extras/99-maas-region-sudoers etc/sudoers.d |
3886 | |
3887 | === added file 'debian/maas-region-api.links' |
3888 | --- debian/maas-region-api.links 1970-01-01 00:00:00 +0000 |
3889 | +++ debian/maas-region-api.links 2016-04-16 02:29:52 +0000 |
3890 | @@ -0,0 +1,8 @@ |
3891 | +# dh-systemd does not yet appear to fully grok template units, so we |
3892 | +# install unit dependencies directly instead. |
3893 | +lib/systemd/system/maas-regiond-worker@.service lib/systemd/system/maas-regiond.service.wants/maas-regiond-worker@1.service |
3894 | +lib/systemd/system/maas-regiond-worker@.service lib/systemd/system/maas-regiond.service.wants/maas-regiond-worker@2.service |
3895 | +lib/systemd/system/maas-regiond-worker@.service lib/systemd/system/maas-regiond.service.wants/maas-regiond-worker@3.service |
3896 | +lib/systemd/system/maas-regiond-worker@.service lib/systemd/system/maas-regiond.service.wants/maas-regiond-worker@4.service |
3897 | + |
3898 | +usr/sbin/maas-region usr/sbin/maas-region-admin |
3899 | |
3900 | === added file 'debian/maas-region-api.lintian-overrides' |
3901 | --- debian/maas-region-api.lintian-overrides 1970-01-01 00:00:00 +0000 |
3902 | +++ debian/maas-region-api.lintian-overrides 2016-04-16 02:29:52 +0000 |
3903 | @@ -0,0 +1,5 @@ |
3904 | +maas-region-api: binary-without-manpage usr/sbin/maas |
3905 | +maas-region-api: script-not-executable etc/maas/templates/commissioning-user-data/snippets/maas_ipmi_autodetect.py |
3906 | +maas-region-api: script-not-executable etc/maas/templates/commissioning-user-data/snippets/maas_signal.py |
3907 | +maas-region-api: script-not-executable etc/maas/templates/commissioning-user-data/user_data.template |
3908 | +maas-region-api: script-not-executable etc/maas/templates/commissioning-user-data/snippets/maas_get.py |
3909 | |
3910 | === added file 'debian/maas-region-api.logrotate' |
3911 | --- debian/maas-region-api.logrotate 1970-01-01 00:00:00 +0000 |
3912 | +++ debian/maas-region-api.logrotate 2016-04-16 02:29:52 +0000 |
3913 | @@ -0,0 +1,15 @@ |
3914 | +/var/log/maas/regiond.log { |
3915 | + rotate 5 |
3916 | + weekly |
3917 | + compress |
3918 | + missingok |
3919 | + # copytruncate may lose log messages at the moment of rotation, but |
3920 | + # there is no better way to integrate twistd and logrotate. |
3921 | + copytruncate |
3922 | + # The logs are all owned by the `maas` user, so drop privs. |
3923 | + su maas maas |
3924 | + # Don't rotate unless the log is at least 10MB. |
3925 | + minsize 10M |
3926 | + # Force rotation if the log grows beyond 50MB. |
3927 | + maxsize 50M |
3928 | +} |
3929 | |
3930 | === added file 'debian/maas-region-api.maas-regiond-worker@.service' |
3931 | --- debian/maas-region-api.maas-regiond-worker@.service 1970-01-01 00:00:00 +0000 |
3932 | +++ debian/maas-region-api.maas-regiond-worker@.service 2016-04-16 02:29:52 +0000 |
3933 | @@ -0,0 +1,27 @@ |
3934 | +[Unit] |
3935 | +Description=MAAS Region Controller (Worker %i) |
3936 | +Documentation=https://maas.io/ |
3937 | +Requires=network-online.target |
3938 | +After=network-online.target |
3939 | +PartOf=maas-regiond.service |
3940 | +# This will go away one we support new config files. |
3941 | +ConditionPathExists=/etc/maas/regiond.conf |
3942 | + |
3943 | +[Service] |
3944 | +User=maas |
3945 | +Group=maas |
3946 | +Restart=always |
3947 | +RestartSec=10s |
3948 | +Environment="MAAS_REGIOND_WORKER_ID=%i" |
3949 | +Environment="DJANGO_SETTINGS_MODULE=maas.settings" |
3950 | +Environment="PYTHONPATH=/usr/share/maas" |
3951 | +Environment="LOGFILE=/var/log/maas/regiond.log" |
3952 | +# Logs go to the journal; read them with: |
3953 | +# journalctl -u maas-regiond-worker@* |
3954 | +# Logs also go to $LOGFILE for backward compatibility. The journal |
3955 | +# should now be preferred as $LOGFILE will be removed in MAAS 1.9. |
3956 | +ExecStart=/bin/sh -c \ |
3957 | + 'exec twistd3 --nodaemon --pidfile= maas-regiond 2>&1 | tee -a $LOGFILE' |
3958 | + |
3959 | +[Install] |
3960 | +WantedBy=maas-regiond.service |
3961 | |
3962 | === added file 'debian/maas-region-api.maas-regiond.service' |
3963 | --- debian/maas-region-api.maas-regiond.service 1970-01-01 00:00:00 +0000 |
3964 | +++ debian/maas-region-api.maas-regiond.service 2016-04-16 02:29:52 +0000 |
3965 | @@ -0,0 +1,24 @@ |
3966 | +[Unit] |
3967 | +Description=MAAS Region Controller |
3968 | +Documentation=https://maas.io/ |
3969 | + |
3970 | +[Service] |
3971 | +Type=oneshot |
3972 | +RemainAfterExit=yes |
3973 | +# systemd.service(5) clearly states that ExecStart can be specified zero |
3974 | +# times when Type=oneshot, but it does appears to be needed at present. |
3975 | +ExecStart=/bin/true |
3976 | + |
3977 | +# |
3978 | +# The maas-region-api package configures four workers. This |
3979 | +# should work for most people. However: |
3980 | +# |
3981 | +# * `systemctl start maas-regiond-worker@x` (where 'x' can be anything, |
3982 | +# though integers >= 5 seem logical) will start an additional worker. |
3983 | +# |
3984 | +# * `systemctl enable maas-regiond-worker@x` will configure that worker |
3985 | +# so that it's persistent across reboots. |
3986 | +# |
3987 | + |
3988 | +[Install] |
3989 | +WantedBy=multi-user.target |
3990 | |
3991 | === added file 'debian/maas-region-api.maintscript' |
3992 | --- debian/maas-region-api.maintscript 1970-01-01 00:00:00 +0000 |
3993 | +++ debian/maas-region-api.maintscript 2016-04-16 02:29:52 +0000 |
3994 | @@ -0,0 +1,7 @@ |
3995 | +rm_conffile /etc/maas/txlongpoll.yaml 1.7.0~beta4+bzr3124-0ubuntu1 |
3996 | +rm_conffile /etc/init/maas-txlongpoll.conf 1.7.0~beta4+bzr3124-0ubuntu1 |
3997 | +rm_conffile /etc/init/maas-region-celery.conf 1.7.0~beta4+bzr3124-0ubuntu1 |
3998 | +rm_conffile /etc/maas/maas_local_celerconfig.py 1.7.0~beta4+bzr3124-0ubuntu1 |
3999 | +rm_conffile /usr/share/maas/maas_local_celerconfig.py 1.7.0~beta4+bzr3124-0ubuntu1 |
4000 | +rm_conffile /etc/maas/maas_local_celeryconfig.py 1.7.0~beta4+bzr3124-0ubuntu1 |
4001 | +rm_conffile /etc/maas/maas-http.conf 1.9.0~alpha1+bzr4190-0ubuntu1 |
4002 | |
4003 | === added file 'debian/maas-region-api.postinst' |
4004 | --- debian/maas-region-api.postinst 1970-01-01 00:00:00 +0000 |
4005 | +++ debian/maas-region-api.postinst 2016-04-16 02:29:52 +0000 |
4006 | @@ -0,0 +1,80 @@ |
4007 | +#!/bin/sh |
4008 | + |
4009 | +set -e |
4010 | + |
4011 | +. /usr/share/debconf/confmodule |
4012 | +db_version 2.0 |
4013 | + |
4014 | +RELEASE=`lsb_release -rs` || RELEASE="" |
4015 | + |
4016 | +configure_region_http() { |
4017 | + # handle apache configs |
4018 | + if [ -e /usr/share/maas/maas-http.conf -a \ |
4019 | + ! -e /etc/apache2/conf-enabled/maas-http.conf ]; then |
4020 | + ln -sf /usr/share/maas/maas-http.conf /etc/apache2/conf-enabled/maas-http.conf |
4021 | + fi |
4022 | + |
4023 | + # enable apache modules needed |
4024 | + a2enmod proxy_http |
4025 | + a2enmod proxy_wstunnel |
4026 | + a2enmod expires |
4027 | + a2enmod rewrite |
4028 | +} |
4029 | + |
4030 | +configure_logging() { |
4031 | + # Give appropriate permissions |
4032 | + if [ ! -f /var/log/maas/regiond.log ]; then |
4033 | + touch /var/log/maas/regiond.log |
4034 | + fi |
4035 | + chown maas:maas /var/log/maas/regiond.log |
4036 | + |
4037 | + # Create log directory base |
4038 | + mkdir -p /var/log/maas/rsyslog |
4039 | + chown -R syslog:syslog /var/log/maas/rsyslog |
4040 | + # Make sure rsyslog reads our config |
4041 | + invoke-rc.d rsyslog restart |
4042 | + |
4043 | + # apache2 log symlinks |
4044 | + ln -sf /var/log/apache2 /var/log/maas/ |
4045 | +} |
4046 | + |
4047 | +configure_libdir() { |
4048 | + # If /var/lib/maas/secret exists, ensure ownership and |
4049 | + # permissions are correct |
4050 | + if [ -f /var/lib/maas/secret ]; then |
4051 | + chown maas:maas /var/lib/maas/secret |
4052 | + chmod 0640 /var/lib/maas/secret |
4053 | + fi |
4054 | + |
4055 | + if [ -f /var/lib/maas/maas_id ]; then |
4056 | + chown maas:maas /var/lib/maas/maas_id |
4057 | + fi |
4058 | +} |
4059 | + |
4060 | +# Unconditionally ensure that there is at least an empty configuration |
4061 | +# file. This does *not* overwrite any existing configuration. |
4062 | +maas-region local_config_set |
4063 | + |
4064 | +if [ "$1" = "configure" ] && [ -z "$2" ]; then |
4065 | + configure_region_http |
4066 | + configure_logging |
4067 | + configure_libdir |
4068 | + |
4069 | +elif [ "$1" = "configure" ] && dpkg --compare-versions "$2" gt 0.1+bzr266+dfsg-0ubuntu1; then |
4070 | + # Logging changed at r2611, ensure it is set up. |
4071 | + configure_logging |
4072 | + configure_libdir |
4073 | + |
4074 | + # If upgrading to any later package version, then upgrade db. |
4075 | + invoke-rc.d apache2 stop || true |
4076 | + |
4077 | + # make sure maas http config is symlinked |
4078 | + configure_region_http |
4079 | + |
4080 | +fi |
4081 | + |
4082 | +invoke-rc.d apache2 restart || true |
4083 | + |
4084 | +db_stop |
4085 | + |
4086 | +#DEBHELPER# |
4087 | |
4088 | === added file 'debian/maas-region-api.postrm' |
4089 | --- debian/maas-region-api.postrm 1970-01-01 00:00:00 +0000 |
4090 | +++ debian/maas-region-api.postrm 2016-04-16 02:29:52 +0000 |
4091 | @@ -0,0 +1,49 @@ |
4092 | +#!/bin/sh |
4093 | + |
4094 | +set -e |
4095 | + |
4096 | +. /usr/share/debconf/confmodule |
4097 | + |
4098 | +RELEASE=`lsb_release -rs` || RELEASE="" |
4099 | + |
4100 | +case "$1" in |
4101 | + purge) |
4102 | + # Remove logging files & foldesr |
4103 | + rm -rf /var/log/maas/regiond.log* |
4104 | + rm -rf /var/log/maas/apache2 |
4105 | + rm -rf /var/log/maas/rsyslog |
4106 | + |
4107 | + # Remove libgdir related files |
4108 | + rm -rf /var/lib/maas/media |
4109 | + |
4110 | + case $RELEASE in |
4111 | + 12.04|12.10|13.04) |
4112 | + if [ -h /etc/apache2/conf.d/maas-http.conf ]; then |
4113 | + rm -rf /etc/apache2/conf.d/maas-http.conf |
4114 | + fi |
4115 | + ;; |
4116 | + *) |
4117 | + if [ -h /etc/apache2/conf-enabled/maas-http.conf ]; then |
4118 | + rm -rf /etc/apache2/conf-enabled/maas-http.conf |
4119 | + fi |
4120 | + ;; |
4121 | + esac |
4122 | + |
4123 | + # Restarting apache2 |
4124 | + if [ -x /usr/sbin/invoke-rc.d ]; then |
4125 | + invoke-rc.d apache2 restart || true |
4126 | + fi |
4127 | + |
4128 | + # Delete symlink |
4129 | + if [ -L /etc/squid-deb-proxy/mirror-dstdomain.acl.d/99-maas ]; then |
4130 | + rm -rf /etc/squid-deb-proxy/mirror-dstdomain.acl.d/99-maas |
4131 | + fi |
4132 | + |
4133 | + # Delete any remaining / leftover file |
4134 | + rm -rf /usr/share/maas/maas/ |
4135 | + rm -rf /etc/maas/regiond.conf |
4136 | +esac |
4137 | + |
4138 | +#DEBHELPER# |
4139 | + |
4140 | +db_stop |
4141 | |
4142 | === added file 'debian/maas-region-api.preinst' |
4143 | --- debian/maas-region-api.preinst 1970-01-01 00:00:00 +0000 |
4144 | +++ debian/maas-region-api.preinst 2016-04-16 02:29:52 +0000 |
4145 | @@ -0,0 +1,34 @@ |
4146 | +#!/bin/sh |
4147 | + |
4148 | +set -e |
4149 | + |
4150 | +. /usr/share/debconf/confmodule |
4151 | + |
4152 | +if [ "$1" = "install" ] || [ "$1" = "upgrade" ]; then |
4153 | + |
4154 | + if [ -f /etc/init/maas-txlongpoll.conf ]; then |
4155 | + invoke-rc.d maas-txlongpoll stop |
4156 | + fi |
4157 | + |
4158 | + if [ -f /var/log/maas/txlongpoll.log ]; then |
4159 | + rm -rf /var/log/maas/txlongpoll.log |
4160 | + fi |
4161 | + |
4162 | + if [ -f /etc/init/maas-region-celery.conf ]; then |
4163 | + invoke-rc.d maas-region-celery stop |
4164 | + fi |
4165 | + |
4166 | + if [ -f /var/log/maas/celery-region.log ]; then |
4167 | + rm -rf /var/log/maas/celery-region.log |
4168 | + fi |
4169 | + |
4170 | + if [ -f /var/log/maas/maas-django.log ]; then |
4171 | + rm -rf /var/log/maas/maas-django.log |
4172 | + fi |
4173 | + |
4174 | + if [ -d /var/lib/maas/media ]; then |
4175 | + rm -rf /var/lib/maas/media |
4176 | + fi |
4177 | + |
4178 | +fi |
4179 | +#DEBHELPER# |
4180 | |
4181 | === added file 'debian/maas-region-api.prerm' |
4182 | --- debian/maas-region-api.prerm 1970-01-01 00:00:00 +0000 |
4183 | +++ debian/maas-region-api.prerm 2016-04-16 02:29:52 +0000 |
4184 | @@ -0,0 +1,9 @@ |
4185 | +#!/bin/sh |
4186 | + |
4187 | +set -e |
4188 | + |
4189 | +. /usr/share/debconf/confmodule |
4190 | + |
4191 | +#DEBHELPER# |
4192 | + |
4193 | +invoke-rc.d apache2 stop || true |
4194 | |
4195 | === added file 'debian/maas-region-controller.config' |
4196 | --- debian/maas-region-controller.config 1970-01-01 00:00:00 +0000 |
4197 | +++ debian/maas-region-controller.config 2016-04-16 02:29:52 +0000 |
4198 | @@ -0,0 +1,47 @@ |
4199 | +#!/bin/sh |
4200 | + |
4201 | +set -e |
4202 | + |
4203 | +. /usr/share/debconf/confmodule |
4204 | +db_version 2.0 |
4205 | + |
4206 | +# creates question |
4207 | +set_question() { |
4208 | + if ! db_fget "$1" seen; then |
4209 | + db_register dbconfig-common/dbconfig-install "$1" |
4210 | + db_subst "$1" ID "$1" |
4211 | + db_fget "$1" seen |
4212 | + fi |
4213 | + if [ "$RET" = false ]; then |
4214 | + db_set "$1" "$2" |
4215 | + db_fset "$1" seen true |
4216 | + fi |
4217 | +} |
4218 | + |
4219 | +# source dbconfig-common shell library, and call the hook function |
4220 | +if [ -f /usr/share/dbconfig-common/dpkg/config.pgsql ]; then |
4221 | + . /usr/share/dbconfig-common/dpkg/config.pgsql |
4222 | +fi |
4223 | + |
4224 | +if [ "$1" = "configure" ] && [ -z "$2" ]; then |
4225 | + # Hide maas/dbconfig-install question by setting default. |
4226 | + set_question maas-region-controller/dbconfig-install true |
4227 | + set_question maas-region-controller/pgsql/app-pass "" |
4228 | + set_question maas-region-controller/remote/host "localhost" |
4229 | + |
4230 | + dbc_dbname="maasdb" |
4231 | + dbc_dbuser="maas" |
4232 | + dbc_remove="true" |
4233 | + |
4234 | + dbc_go maas-region-controller $@ |
4235 | + |
4236 | +elif [ -n "$DEBCONF_RECONFIGURE" ]; then |
4237 | + db_get maas/default-maas-url || true |
4238 | + if [ -z "$RET" ]; then |
4239 | + ipaddr=$(maas-region local_config_get --maas-url --plain) |
4240 | + db_set maas/default-maas-url "$ipaddr" |
4241 | + fi |
4242 | + db_input low maas/default-maas-url || true |
4243 | + db_go |
4244 | + |
4245 | +fi |
4246 | |
4247 | === added file 'debian/maas-region-controller.postinst' |
4248 | --- debian/maas-region-controller.postinst 1970-01-01 00:00:00 +0000 |
4249 | +++ debian/maas-region-controller.postinst 2016-04-16 02:29:52 +0000 |
4250 | @@ -0,0 +1,165 @@ |
4251 | +#!/bin/sh |
4252 | + |
4253 | +set -e |
4254 | + |
4255 | +. /usr/share/debconf/confmodule |
4256 | +db_version 2.0 |
4257 | + |
4258 | +if [ -f /usr/share/dbconfig-common/dpkg/postinst.pgsql ]; then |
4259 | + . /usr/share/dbconfig-common/dpkg/postinst.pgsql |
4260 | +fi |
4261 | + |
4262 | +RELEASE=`lsb_release -rs` || RELEASE="" |
4263 | + |
4264 | +maas_sync_migrate_db(){ |
4265 | + maas-region dbupgrade |
4266 | +} |
4267 | + |
4268 | +restart_postgresql(){ |
4269 | + invoke-rc.d --force postgresql restart || true |
4270 | +} |
4271 | + |
4272 | +configure_maas_default_url() { |
4273 | + local ipaddr="$1" |
4274 | + maas-region local_config_set \ |
4275 | + --maas-url "http://${ipaddr}/MAAS" |
4276 | +} |
4277 | + |
4278 | +get_default_route_ip() { |
4279 | + while read Iface Destination Gateway Flags RefCnt Use Metric Mask MTU Window IRTT |
4280 | + do |
4281 | + [ "$Mask" = "00000000" ] && break |
4282 | + done < /proc/net/route |
4283 | + interface="$Iface" |
4284 | + ipaddr=$(LC_ALL=C /sbin/ip -4 addr list dev "$interface" scope global) |
4285 | + ipaddr=${ipaddr#* inet } |
4286 | + ipaddr=${ipaddr%%/*} |
4287 | + echo $ipaddr |
4288 | +} |
4289 | + |
4290 | +extract_default_maas_url() { |
4291 | + # Extract DEFAULT_MAAS_URL IP/host setting from config file $1. |
4292 | + grep "^DEFAULT_MAAS_URL" "$1" | cut -d"/" -f3 |
4293 | +} |
4294 | + |
4295 | +configure_migrate_maas_dns() { |
4296 | + # This only runs on upgrade. We only run this if the |
4297 | + # there are forwarders to migrate or no |
4298 | + # named.conf.options.inside.maas are present. |
4299 | + maas-region edit_named_options \ |
4300 | + --migrate-conflicting-options --config-path \ |
4301 | + /etc/bind/named.conf.options |
4302 | + invoke-rc.d bind9 restart || true |
4303 | +} |
4304 | + |
4305 | +if [ "$1" = "configure" ] && [ -z "$2" ]; then |
4306 | + ######################################################### |
4307 | + ########## Configure DEFAULT_MAAS_URL ################# |
4308 | + ######################################################### |
4309 | + |
4310 | + # Obtain IP address of default route and change DEFAULT_MAAS_URL |
4311 | + # if default-maas-url has not been preseeded. |
4312 | + db_get maas/default-maas-url |
4313 | + ipaddr="$RET" |
4314 | + if [ -z "$RET" ]; then |
4315 | + ipaddr=$(get_default_route_ip) |
4316 | + fi |
4317 | + # Set the IP address of the interface with default route |
4318 | + if [ -n "$ipaddr" ]; then |
4319 | + configure_maas_default_url "$ipaddr" |
4320 | + db_subst maas/installation-note MAAS_URL "$ipaddr" |
4321 | + db_set maas/default-maas-url "$ipaddr" |
4322 | + fi |
4323 | + |
4324 | + ######################################################### |
4325 | + ################ Configure Database ################### |
4326 | + ######################################################### |
4327 | + |
4328 | + # Need to for postgresql start so it doesn't fail on the installer |
4329 | + restart_postgresql |
4330 | + |
4331 | + # Create the database |
4332 | + dbc_go maas-region-controller $@ |
4333 | + maas-region local_config_set \ |
4334 | + --database-host "localhost" --database-name "$dbc_dbname" \ |
4335 | + --database-user "$dbc_dbuser" --database-pass "$dbc_dbpass" |
4336 | + |
4337 | + # Only syncdb if we have selected to install it with dbconfig-common. |
4338 | + db_get maas-region-controller/dbconfig-install |
4339 | + if [ "$RET" = "true" ]; then |
4340 | + maas_sync_migrate_db |
4341 | + configure_migrate_maas_dns |
4342 | + fi |
4343 | + |
4344 | + db_get maas/username |
4345 | + username="$RET" |
4346 | + if [ -n "$username" ]; then |
4347 | + db_get maas/password |
4348 | + password="$RET" |
4349 | + if [ -n "$password" ]; then |
4350 | + maas-region createadmin --username "$username" --password "$password" --email "$username@maas" |
4351 | + fi |
4352 | + fi |
4353 | + |
4354 | + # Display installation note |
4355 | + db_input low maas/installation-note || true |
4356 | + db_go |
4357 | + |
4358 | +elif [ -n "$DEBCONF_RECONFIGURE" ]; then |
4359 | + # Set the IP address of the interface with default route |
4360 | + db_get maas/default-maas-url |
4361 | + ipaddr="$RET" |
4362 | + if [ -n "$ipaddr" ]; then |
4363 | + configure_maas_default_url "$ipaddr" |
4364 | + fi |
4365 | + |
4366 | +elif [ "$1" = "configure" ] && dpkg --compare-versions "$2" gt 0.1+bzr266+dfsg-0ubuntu1; then |
4367 | + # If upgrading to any later package version, then upgrade db. |
4368 | + invoke-rc.d apache2 stop || true |
4369 | + |
4370 | + # make sure postgresql is running |
4371 | + restart_postgresql |
4372 | + |
4373 | + # If the version we are upgrading from ("$2") is less than |
4374 | + # 1.9.0~alpha1+bzr4038-0ubuntu1 then we need migrate to new |
4375 | + # config file. |
4376 | + if dpkg --compare-versions "$2" lt 1.9.0~alpha1+bzr4038-0ubuntu1 && [ -f /etc/maas/maas_local_settings.py ]; then |
4377 | + ipaddr=$(extract_default_maas_url /etc/maas/maas_local_settings.py) |
4378 | + if [ -n "$ipaddr" ]; then |
4379 | + configure_maas_default_url "$ipaddr" |
4380 | + db_set maas/default-maas-url "$ipaddr" |
4381 | + fi |
4382 | + # handle database upgrade |
4383 | + if [ -f /etc/dbconfig-common/maas-region-controller.conf ]; then |
4384 | + # source dbconfig-common db config for maas-region-controller |
4385 | + # before upgrading database, otherwise a new config is written |
4386 | + # but the password is no longer preserved. |
4387 | + . /etc/dbconfig-common/maas-region-controller.conf |
4388 | + else |
4389 | + dbc_go maas-region-controller $@ |
4390 | + fi |
4391 | + |
4392 | + # Reconfigure the config file. |
4393 | + maas-region local_config_set \ |
4394 | + --database-host "localhost" --database-name "$dbc_dbname" \ |
4395 | + --database-user "$dbc_dbuser" --database-pass "$dbc_dbpass" |
4396 | + |
4397 | + mv /etc/maas/maas_local_settings.py /etc/maas/maas_local_settings.py.maas-old |
4398 | + fi |
4399 | + |
4400 | + maas_sync_migrate_db |
4401 | + |
4402 | + configure_migrate_maas_dns |
4403 | +fi |
4404 | + |
4405 | +systemctl enable maas-regiond >/dev/null || true |
4406 | +systemctl restart maas-regiond >/dev/null || true |
4407 | +invoke-rc.d apache2 restart || true |
4408 | + |
4409 | +if [ -f /lib/systemd/system/maas-rackd.service ]; then |
4410 | + systemctl restart maas-rackd >/dev/null || true |
4411 | +fi |
4412 | + |
4413 | +db_stop |
4414 | + |
4415 | +#DEBHELPER# |
4416 | |
4417 | === added file 'debian/maas-region-controller.postrm' |
4418 | --- debian/maas-region-controller.postrm 1970-01-01 00:00:00 +0000 |
4419 | +++ debian/maas-region-controller.postrm 2016-04-16 02:29:52 +0000 |
4420 | @@ -0,0 +1,22 @@ |
4421 | +#!/bin/sh |
4422 | + |
4423 | +set -e |
4424 | + |
4425 | +. /usr/share/debconf/confmodule |
4426 | + |
4427 | +RELEASE=`lsb_release -rs` || RELEASE="" |
4428 | + |
4429 | +if [ -f /usr/share/dbconfig-common/dpkg/postrm ]; then |
4430 | + . /usr/share/dbconfig-common/dpkg/postrm.pgsql |
4431 | + dbc_go maas-region-controller $@ |
4432 | +fi |
4433 | + |
4434 | +case "$1" in |
4435 | + purge) |
4436 | + # Deleting old/new config files |
4437 | + rm -rf /etc/maas/maas_local_settings.py.maas-old |
4438 | +esac |
4439 | + |
4440 | +#DEBHELPER# |
4441 | + |
4442 | +db_stop |
4443 | |
4444 | === added file 'debian/maas-region-controller.prerm' |
4445 | --- debian/maas-region-controller.prerm 1970-01-01 00:00:00 +0000 |
4446 | +++ debian/maas-region-controller.prerm 2016-04-16 02:29:52 +0000 |
4447 | @@ -0,0 +1,13 @@ |
4448 | +#!/bin/sh |
4449 | + |
4450 | +set -e |
4451 | + |
4452 | +. /usr/share/debconf/confmodule |
4453 | + |
4454 | +#DEBHELPER# |
4455 | + |
4456 | +invoke-rc.d apache2 stop || true |
4457 | +invoke-rc.d maas-regiond stop || true |
4458 | + |
4459 | +. /usr/share/dbconfig-common/dpkg/prerm.pgsql |
4460 | +dbc_go maas-region-controller $@ |
4461 | |
4462 | === added file 'debian/maas-region-controller.templates' |
4463 | --- debian/maas-region-controller.templates 1970-01-01 00:00:00 +0000 |
4464 | +++ debian/maas-region-controller.templates 2016-04-16 02:29:52 +0000 |
4465 | @@ -0,0 +1,24 @@ |
4466 | +Template: maas/default-maas-url |
4467 | +Type: string |
4468 | +_Description: Ubuntu MAAS PXE/Provisioning network address: |
4469 | + The Ubuntu MAAS Server automatically detects the IP address |
4470 | + that is used for PXE and provisioning. However, it needs to be |
4471 | + in the same network as the clients. If the automatically |
4472 | + detected address is not in the same network as the clients, it |
4473 | + must be changed. |
4474 | + |
4475 | +Template: maas/username |
4476 | +Type: string |
4477 | +_Description: Ubuntu MAAS username |
4478 | + The Ubuntu MAAS server requires the administrator to create a |
4479 | + username and password combination. |
4480 | + . |
4481 | + Please provide the username for the MAAS account. |
4482 | + |
4483 | +Template: maas/password |
4484 | +Type: password |
4485 | +_Description: Ubuntu MAAS password |
4486 | + The Ubuntu MAAS server requires the administrator to create a |
4487 | + username and password combination. |
4488 | + . |
4489 | + Please provide the password for the MAAS account. |
4490 | |
4491 | === added file 'debian/maas-region-udeb.postinst' |
4492 | --- debian/maas-region-udeb.postinst 1970-01-01 00:00:00 +0000 |
4493 | +++ debian/maas-region-udeb.postinst 2016-04-16 02:29:52 +0000 |
4494 | @@ -0,0 +1,82 @@ |
4495 | +#!/bin/sh -e |
4496 | + |
4497 | +# Source debconf library. |
4498 | +. /usr/share/debconf/confmodule |
4499 | +db_version 2.0 |
4500 | + |
4501 | +# This conf script is capable of backing up |
4502 | +db_capb backup |
4503 | + |
4504 | +logfile=/var/lib/preseed/log |
4505 | +set_question () { |
4506 | + echo "$1 $2 $3 $4" >>"$logfile" |
4507 | + if ! db_fget "$2" seen; then |
4508 | + db_register debian-installer/dummy "$2" |
4509 | + db_subst "$2" ID "$2" |
4510 | + db_fget "$2" seen |
4511 | + fi |
4512 | + if [ "$RET" = false ]; then |
4513 | + db_set "$2" "$4" |
4514 | + db_fset "$2" seen true |
4515 | + fi |
4516 | +} |
4517 | + |
4518 | + |
4519 | +STATE=1 |
4520 | +while [ "$STATE" != 0 -a "$STATE" != 4 ]; do |
4521 | + case "$STATE" in |
4522 | + 1) |
4523 | + # This is a confirmation that we want to install MAAS. If we don't |
4524 | + # then we exit the MAAS installation process |
4525 | + db_input high maas-region-udeb/maas-confirmation || true |
4526 | + ;; |
4527 | + |
4528 | + 2) |
4529 | + # Ask for username |
4530 | + db_get maas-region-udeb/maas-confirmation |
4531 | + if [ "$RET" != "true" ]; then |
4532 | + break |
4533 | + fi |
4534 | + db_input critical maas-region-udeb/username || true |
4535 | + ;; |
4536 | + |
4537 | + 3) |
4538 | + # Ask for password |
4539 | + db_get maas-region-udeb/username |
4540 | + if [ -n "$RET" ]; then |
4541 | + db_input critical maas-region-udeb/password || true |
4542 | + fi |
4543 | + ;; |
4544 | + |
4545 | + esac |
4546 | + |
4547 | + if db_go; then |
4548 | + STATE=$(($STATE + 1)) |
4549 | + else |
4550 | + STATE=$(($STATE - 1)) |
4551 | + fi |
4552 | +done |
4553 | +db_capb |
4554 | + |
4555 | +db_get maas-region-udeb/maas-confirmation |
4556 | +if [ "$RET" != "true" ]; then |
4557 | + # MAAS won't be installed |
4558 | + exit 0 |
4559 | +fi |
4560 | +# Only preseed username/password combination if both have been |
4561 | +# input in the installer. If no $password has been input, do not |
4562 | +# preseed |
4563 | +db_get maas-region-udeb/username |
4564 | +username="$RET" |
4565 | +if [ -n "$username" ]; then |
4566 | + db_get maas-region-udeb/password |
4567 | + password="$RET" |
4568 | + if [ -n "$password" ]; then |
4569 | + set_question maas-region-controller maas/username string "$username" |
4570 | + set_question maas-region-controller maas/password password "$password" |
4571 | + fi |
4572 | +fi |
4573 | +# Tell the package manager that we will be installing MAAS |
4574 | +db_set pkgsel/include maas |
4575 | +set_question tasksel tasksel/first multiselect "standard, server" |
4576 | +exit 0 |
4577 | |
4578 | === added file 'debian/maas-region-udeb.templates' |
4579 | --- debian/maas-region-udeb.templates 1970-01-01 00:00:00 +0000 |
4580 | +++ debian/maas-region-udeb.templates 2016-04-16 02:29:52 +0000 |
4581 | @@ -0,0 +1,29 @@ |
4582 | +Template: debian-installer/maas-region-udeb/title |
4583 | +Type: text |
4584 | +_Description: Install your Metal as a Service (MAAS) |
4585 | + |
4586 | +Template: maas-region-udeb/maas-confirmation |
4587 | +Type: boolean |
4588 | +_Description: Would you like to proceed with the installation of your MAAS? |
4589 | + MAAS runs a software-defined data centre - it turns a collection of physical |
4590 | + servers and switches into a bare metal cloud with full open source IP address |
4591 | + management (IPAM) and instant provisioning on demand. |
4592 | + . |
4593 | + By choosing to install MAAS, a MAAS Region Controller API server and PostgreSQL |
4594 | + database will be installed. |
4595 | + |
4596 | +Template: maas-region-udeb/username |
4597 | +Type: string |
4598 | +_Description: Username for your MAAS administrator account: |
4599 | + MAAS requires an administrative account to be created before you can use MAAS. |
4600 | + Please enter the username for the administrator. If no username is provided, |
4601 | + you will have to create one before you are able to use MAAS. |
4602 | + |
4603 | +Template: maas-region-udeb/password |
4604 | +Type: password |
4605 | +_Description: Choose a password for the MAAS administrator account: |
4606 | + MAAS requires an administrative account to be created before you can use MAAS. |
4607 | + Please enter the password for the administrator's account. |
4608 | + . |
4609 | + If the password is not entered, your MAAS installation will proceed, but no |
4610 | + administrator's account will be created. |
4611 | |
4612 | === added file 'debian/maintscript' |
4613 | --- debian/maintscript 1970-01-01 00:00:00 +0000 |
4614 | +++ debian/maintscript 2016-04-16 02:29:52 +0000 |
4615 | @@ -0,0 +1,2 @@ |
4616 | +rm_conffile /etc/init/maas-celery.conf 0.1+bzr971+dfsg-0ubuntu2 |
4617 | +rm_conffile /etc/dbconfig-common/maas.conf 0.1+bzr971+dfsg-0ubuntu2 |
4618 | |
4619 | === added directory 'debian/patches' |
4620 | === added file 'debian/patches/series' |
4621 | === added directory 'debian/po' |
4622 | === added file 'debian/po/POTFILES.in' |
4623 | --- debian/po/POTFILES.in 1970-01-01 00:00:00 +0000 |
4624 | +++ debian/po/POTFILES.in 2016-04-16 02:29:52 +0000 |
4625 | @@ -0,0 +1,2 @@ |
4626 | +[type: gettext/rfc822deb] maas-region-controller.templates |
4627 | +[type: gettext/rfc822deb] maas-cluster-controller.templates |
4628 | |
4629 | === added file 'debian/po/templates.pot' |
4630 | --- debian/po/templates.pot 1970-01-01 00:00:00 +0000 |
4631 | +++ debian/po/templates.pot 2016-04-16 02:29:52 +0000 |
4632 | @@ -0,0 +1,68 @@ |
4633 | +# SOME DESCRIPTIVE TITLE. |
4634 | +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER |
4635 | +# This file is distributed under the same license as the PACKAGE package. |
4636 | +# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. |
4637 | +# |
4638 | +#, fuzzy |
4639 | +msgid "" |
4640 | +msgstr "" |
4641 | +"Project-Id-Version: maas\n" |
4642 | +"Report-Msgid-Bugs-To: maas@packages.debian.org\n" |
4643 | +"POT-Creation-Date: 2012-10-04 13:40-0400\n" |
4644 | +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
4645 | +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
4646 | +"Language-Team: LANGUAGE <LL@li.org>\n" |
4647 | +"Language: \n" |
4648 | +"MIME-Version: 1.0\n" |
4649 | +"Content-Type: text/plain; charset=CHARSET\n" |
4650 | +"Content-Transfer-Encoding: 8bit\n" |
4651 | + |
4652 | +#. Type: note |
4653 | +#. Description |
4654 | +#: ../maas-region-controller.templates:1001 |
4655 | +msgid "Ubuntu MAAS Server" |
4656 | +msgstr "" |
4657 | + |
4658 | +#. Type: note |
4659 | +#. Description |
4660 | +#: ../maas-region-controller.templates:1001 |
4661 | +msgid "" |
4662 | +"The Ubuntu MAAS Server has been installed in your system. You can access the " |
4663 | +"MAAS Web interface here:" |
4664 | +msgstr "" |
4665 | + |
4666 | +#. Type: note |
4667 | +#. Description |
4668 | +#: ../maas-region-controller.templates:1001 |
4669 | +msgid " http://${MAAS_URL}/MAAS" |
4670 | +msgstr "" |
4671 | + |
4672 | +#. Type: note |
4673 | +#. Description |
4674 | +#: ../maas-region-controller.templates:1001 |
4675 | +msgid "" |
4676 | +"If the automatically detected address above is not in the same network as " |
4677 | +"the MAAS clients, you need to reconfigure it:" |
4678 | +msgstr "" |
4679 | + |
4680 | +#. Type: note |
4681 | +#. Description |
4682 | +#: ../maas-region-controller.templates:1001 |
4683 | +msgid " sudo dpkg-reconfigure maas-region-controller" |
4684 | +msgstr "" |
4685 | + |
4686 | +#. Type: string |
4687 | +#. Description |
4688 | +#: ../maas-region-controller.templates:2001 |
4689 | +msgid "Ubuntu MAAS PXE/Provisioning network address:" |
4690 | +msgstr "" |
4691 | + |
4692 | +#. Type: string |
4693 | +#. Description |
4694 | +#: ../maas-region-controller.templates:2001 |
4695 | +msgid "" |
4696 | +"The Ubuntu MAAS Server automatically detects the IP address that is used for " |
4697 | +"PXE and provisioning. However, it needs to be in the same network as the " |
4698 | +"clients. If the automatically detected address is not in the same network as " |
4699 | +"the clients, it must be changed." |
4700 | +msgstr "" |
4701 | |
4702 | === added file 'debian/python3-django-maas.install' |
4703 | --- debian/python3-django-maas.install 1970-01-01 00:00:00 +0000 |
4704 | +++ debian/python3-django-maas.install 2016-04-16 02:29:52 +0000 |
4705 | @@ -0,0 +1,2 @@ |
4706 | +debian/tmp/usr/lib/python3*/dist-packages/maasserver |
4707 | +debian/tmp/usr/lib/python3*/dist-packages/metadataserver |
4708 | |
4709 | === added file 'debian/python3-maas-client.install' |
4710 | --- debian/python3-maas-client.install 1970-01-01 00:00:00 +0000 |
4711 | +++ debian/python3-maas-client.install 2016-04-16 02:29:52 +0000 |
4712 | @@ -0,0 +1,2 @@ |
4713 | +debian/tmp/usr/lib/python3*/dist-packages/apiclient |
4714 | +debian/tmp/usr/lib/python3*/dist-packages/maascli |
4715 | |
4716 | === added file 'debian/python3-maas-provisioningserver.install' |
4717 | --- debian/python3-maas-provisioningserver.install 1970-01-01 00:00:00 +0000 |
4718 | +++ debian/python3-maas-provisioningserver.install 2016-04-16 02:29:52 +0000 |
4719 | @@ -0,0 +1,1 @@ |
4720 | +debian/tmp/usr/lib/python3*/dist-packages/provisioningserver |
4721 | |
4722 | === added file 'debian/rules' |
4723 | --- debian/rules 1970-01-01 00:00:00 +0000 |
4724 | +++ debian/rules 2016-04-16 02:29:52 +0000 |
4725 | @@ -0,0 +1,84 @@ |
4726 | +#!/usr/bin/make -f |
4727 | + |
4728 | +BUILDHOME = $(CURDIR)/debian/build |
4729 | +PYTHON3 = $(shell py3versions -d) |
4730 | +# Python enum modules. |
4731 | +py_enums := $(wildcard src/*/enum.py) |
4732 | + |
4733 | +%: |
4734 | + dh $@ --with python3,apport,systemd --buildsystem=pybuild |
4735 | + |
4736 | +override_dh_auto_test: |
4737 | + # do nothing as we don't want the tests to run because they require |
4738 | + # internet access |
4739 | + |
4740 | +override_dh_installinit: |
4741 | + dh_installinit -p maas-region-api --name=maas-regiond --no-start |
4742 | + dh_installinit -p maas-region-api --name=maas-regiond-worker@ --no-start |
4743 | + dh_installinit -p maas-rack-controller --name=maas-rackd |
4744 | + dh_installinit -p maas-proxy --name=maas-proxy |
4745 | + dh_installinit -p maas-dhcp --name=maas-dhcpd |
4746 | + dh_installinit -p maas-dhcp --name=maas-dhcpd6 |
4747 | + |
4748 | +override_dh_systemd_enable: |
4749 | + dh_systemd_enable -p maas-region-api --name=maas-regiond |
4750 | + dh_systemd_enable -p maas-rack-controller --name=maas-rackd |
4751 | + dh_systemd_enable -p maas-proxy --name=maas-proxy |
4752 | + dh_systemd_enable -p maas-dhcp --name=maas-dhcpd |
4753 | + dh_systemd_enable -p maas-dhcp --name=maas-dhcpd6 |
4754 | + |
4755 | +override_dh_systemd_start: |
4756 | + dh_systemd_start -p maas-region-api --no-start maas-regiond.service |
4757 | + dh_systemd_start -p maas-rack-controller maas-rackd.service |
4758 | + dh_systemd_start -p maas-proxy maas-proxy.service |
4759 | + dh_systemd_start -p maas-dhcp maas-dhcpd.service |
4760 | + dh_systemd_start -p maas-dhcp maas-dhcpd6.service |
4761 | + |
4762 | +override_dh_auto_build: |
4763 | + dh_auto_build |
4764 | + |
4765 | + mkdir -p $(BUILDHOME) |
4766 | + HOME=$(BUILDHOME) PYTHONPATH=$(CURDIR)/src/ $(PYTHON3) \ |
4767 | + $(CURDIR)/src/maasserver/utils/jsenums.py \ |
4768 | + $(py_enums) > $(BUILDHOME)/enums.js |
4769 | + |
4770 | +override_dh_auto_install: |
4771 | + dh_auto_install |
4772 | + |
4773 | + # Move static files |
4774 | + install -d -m 755 $(CURDIR)/debian/tmp/usr/share/maas/web/static |
4775 | + mv $(CURDIR)/debian/tmp/usr/lib/python*/*-packages/maasserver/static \ |
4776 | + $(CURDIR)/debian/tmp/usr/share/maas/web/ |
4777 | + |
4778 | + # Remove scss directory from static files |
4779 | + rm -rf $(CURDIR)/debian/tmp/usr/share/maas/web/scss |
4780 | + |
4781 | + # Install built enums.js file. |
4782 | + cp $(BUILDHOME)/enums.js $(CURDIR)/debian/tmp/usr/share/maas/web/static/js/ |
4783 | + |
4784 | + # install the apparmor profile |
4785 | + install -d -m 755 $(CURDIR)/debian/tmp/etc/apparmor.d/dhcpd.d |
4786 | + install -m 644 $(CURDIR)/debian/maas-dhcp.apparmor \ |
4787 | + $(CURDIR)/debian/tmp/etc/apparmor.d/dhcpd.d/maas |
4788 | + |
4789 | + # install python3 twisted plugins |
4790 | + set -ex; for python in $(PYTHON3); do \ |
4791 | + dh_install twisted/plugins/maasregiond.py usr/lib/$$python/dist-packages/twisted/plugins -pmaas-region-api; \ |
4792 | + dh_install twisted/plugins/maasrackd.py usr/lib/$$python/dist-packages/twisted/plugins -pmaas-rack-controller; \ |
4793 | + done |
4794 | + |
4795 | + dh_install --list-missing |
4796 | + |
4797 | +override_dh_auto_clean: |
4798 | + dh_auto_clean |
4799 | + rm -rf $(BUILDHOME) |
4800 | + rm -rf src/*.egg-info |
4801 | + |
4802 | +DEB_DEBIAN_DIR=$(dir $(firstword $(MAKEFILE_LIST))) |
4803 | +REV=$(shell dpkg-parsechangelog -l$(DEB_DEBIAN_DIR)/changelog \ |
4804 | + | sed -rne 's,^Version: .*[+~]bzr([0-9]+).*,\1,p') |
4805 | +VER=$(shell dpkg-parsechangelog -l$(DEB_DEBIAN_DIR)/changelog \ |
4806 | + | sed -rne 's,^Version: ([^-]+).*,\1,p') |
4807 | +get-orig-source: |
4808 | + bzr export -r $(REV) --root=maas-$(VER).orig \ |
4809 | + maas_$(VER).orig.tar.gz lp:maas |
4810 | |
4811 | === added directory 'debian/source' |
4812 | === added file 'debian/source/format' |
4813 | --- debian/source/format 1970-01-01 00:00:00 +0000 |
4814 | +++ debian/source/format 2016-04-16 02:29:52 +0000 |
4815 | @@ -0,0 +1,1 @@ |
4816 | +3.0 (quilt) |
4817 | |
4818 | === added file 'debian/watch' |
4819 | --- debian/watch 1970-01-01 00:00:00 +0000 |
4820 | +++ debian/watch 2016-04-16 02:29:52 +0000 |
4821 | @@ -0,0 +1,3 @@ |
4822 | +version=3 |
4823 | +opts=dversionmangle=s/\.dfsg// \ |
4824 | +http://launchpad.net/maas/+download https://launchpad.net/maas/.*/maas-(.*).tar.* |