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