Merge lp:~jtv/maas/pkg-bug-1238376 into lp:~maas-committers/maas/trunk
- pkg-bug-1238376
- Merge into trunk
Proposed by
Jeroen T. Vermeulen
Status: | Superseded |
---|---|
Proposed branch: | lp:~jtv/maas/pkg-bug-1238376 |
Merge into: | lp:~maas-committers/maas/trunk |
Diff against target: |
2963 lines (+2639/-0) 64 files modified
debian/changelog (+842/-0) debian/compat (+1/-0) debian/control (+283/-0) debian/copyright (+25/-0) debian/extras/20-maas.conf (+32/-0) debian/extras/99-maas (+4/-0) debian/extras/99-maas-sudoers (+3/-0) debian/extras/isc-dhcp-server.override (+1/-0) debian/extras/maas (+8/-0) debian/extras/maas-cli (+2/-0) debian/extras/maas-provision (+7/-0) debian/extras/maas-region-celeryd (+50/-0) debian/extras/maas_remote_syslog_compress (+2/-0) debian/maas-cli.install (+2/-0) debian/maas-cli.lintian-overrides (+1/-0) debian/maas-cluster-controller.config (+36/-0) debian/maas-cluster-controller.dirs (+1/-0) debian/maas-cluster-controller.install (+32/-0) debian/maas-cluster-controller.links (+1/-0) debian/maas-cluster-controller.lintian-overrides (+2/-0) debian/maas-cluster-controller.logrotate (+9/-0) debian/maas-cluster-controller.maas-cluster-celery.upstart (+30/-0) debian/maas-cluster-controller.maas-pserv.upstart (+31/-0) debian/maas-cluster-controller.postinst (+149/-0) debian/maas-cluster-controller.postrm (+38/-0) debian/maas-cluster-controller.templates (+7/-0) debian/maas-common.install (+2/-0) debian/maas-common.postinst (+14/-0) debian/maas-common.postrm (+14/-0) debian/maas-dhcp.apparmor (+7/-0) debian/maas-dhcp.install (+1/-0) debian/maas-dhcp.maas-dhcp-server.upstart (+65/-0) debian/maas-dhcp.postinst (+15/-0) debian/maas-dhcp.postrm (+13/-0) debian/maas-dns.dirs (+1/-0) debian/maas-dns.postinst (+36/-0) debian/maas-dns.postrm (+23/-0) debian/maas-region-controller.apport (+37/-0) debian/maas-region-controller.config (+45/-0) debian/maas-region-controller.dirs (+2/-0) debian/maas-region-controller.install (+37/-0) debian/maas-region-controller.links (+2/-0) debian/maas-region-controller.lintian-overrides (+6/-0) debian/maas-region-controller.logrotate (+18/-0) debian/maas-region-controller.maas-region-celery.upstart (+26/-0) debian/maas-region-controller.maas-txlongpoll.upstart (+27/-0) debian/maas-region-controller.postinst (+287/-0) debian/maas-region-controller.postrm (+59/-0) debian/maas-region-controller.prerm (+12/-0) debian/maas-region-controller.templates (+22/-0) debian/maintscript (+2/-0) debian/patches/01-fix-database-settings.patch (+26/-0) debian/patches/02-pserv-config.patch (+38/-0) debian/patches/03-txlongpoll-config.patch (+39/-0) debian/patches/series (+3/-0) debian/po/POTFILES.in (+2/-0) debian/po/templates.pot (+82/-0) debian/python-django-maas.install (+2/-0) debian/python-maas-client.install (+1/-0) debian/python-maas-provisioningserver.install (+4/-0) debian/python-maas-provisioningserver.lintian-overrides (+1/-0) debian/rules (+65/-0) debian/source/format (+1/-0) debian/watch (+3/-0) |
To merge this branch: | bzr merge lp:~jtv/maas/pkg-bug-1238376 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
MAAS Maintainers | Pending | ||
Review via email: mp+190658@code.launchpad.net |
This proposal has been superseded by a proposal from 2013-10-11.
Commit message
Restore (a new incarnation of) obsolescent /etc/maas/
Description of the change
This is part of the fix for bug 1238376. It requires this change to the source tree: https:/
Jeroen
To post a comment you must log in.
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === added directory 'debian' | |||
2 | === added file 'debian/changelog' | |||
3 | --- debian/changelog 1970-01-01 00:00:00 +0000 | |||
4 | +++ debian/changelog 2013-10-11 14:15:22 +0000 | |||
5 | @@ -0,0 +1,842 @@ | |||
6 | 1 | maas (1.4+bzr1701+dfsg-0ubuntu2) UNRELEASED; urgency=low | ||
7 | 2 | |||
8 | 3 | * UNRELEASED | ||
9 | 4 | |||
10 | 5 | [ Jeroen Vermeulen ] | ||
11 | 6 | * Keep legacy import_ephemerals config for now. | ||
12 | 7 | |||
13 | 8 | -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 10 Oct 2013 17:07:51 -0400 | ||
14 | 9 | |||
15 | 10 | maas (1.4+bzr1693+dfsg-0ubuntu1) saucy; urgency=low | ||
16 | 11 | |||
17 | 12 | * New Upstream Release (LP: #1218526) | ||
18 | 13 | - This new upstream release contains fixes and improvements of the | ||
19 | 14 | features approved by the FFe above. | ||
20 | 15 | - Fixes commissioning failure on Saucy with 'Failed Test' (LP: #1237364) | ||
21 | 16 | - Fixes access of static images over http (LP: #1236544) | ||
22 | 17 | * d/maas-cluster-controller.postinst: a2enmod version module (LP: #1236544) | ||
23 | 18 | * d/control: Bump depends on python-django to 1.4. (LP: #1236572) | ||
24 | 19 | * d/maas-dhcp.postinst: Fail gracefully if apparmor_parser fails, allowing | ||
25 | 20 | to install maas-dhcp during an ISO install. (LP: #1236786) | ||
26 | 21 | |||
27 | 22 | -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 04 Oct 2013 12:33:05 -0400 | ||
28 | 23 | |||
29 | 24 | maas (1.4+bzr1656+dfsg-0ubuntu2) saucy; urgency=low | ||
30 | 25 | |||
31 | 26 | * debian/control: Recommends on maas-dns instead of Depends for region | ||
32 | 27 | because maas-dns needs the region installed first. | ||
33 | 28 | |||
34 | 29 | -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 03 Oct 2013 10:36:20 -0400 | ||
35 | 30 | |||
36 | 31 | maas (1.4+bzr1656+dfsg-0ubuntu1) saucy; urgency=low | ||
37 | 32 | |||
38 | 33 | [ Andres Rodriguez ] | ||
39 | 34 | * New upstream bugfix release. | ||
40 | 35 | - Respect filters for ephemerals_script.py. | ||
41 | 36 | * debian/control: Depends on ubuntu-cloudimage-keyring instead of | ||
42 | 37 | ubuntu-cloud-keyring; depends on python-distro-info. | ||
43 | 38 | * debian/control: Remove suggests on maas-dhcp and maas-dns as they are | ||
44 | 39 | now dependencies. | ||
45 | 40 | |||
46 | 41 | [ Scott Moser ] | ||
47 | 42 | * debian/control: Bump depends on isc-dhcp-server to 4.2.4 | ||
48 | 43 | * debian/maas-dhcp.maas-dhcp-server.upstart: Change ownership of leases | ||
49 | 44 | file to root:root, and run the daemon as dhcpd:dhcpd. | ||
50 | 45 | |||
51 | 46 | -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 01 Oct 2013 15:26:34 -0400 | ||
52 | 47 | |||
53 | 48 | maas (1.4+bzr1655+dfsg-0ubuntu1) saucy; urgency=low | ||
54 | 49 | |||
55 | 50 | * New Upstream release. (LP: #1218526) | ||
56 | 51 | * debian/control: | ||
57 | 52 | - Depends on python-djorm-ext-pgarray, python-curtin, | ||
58 | 53 | python-simplestreams, ubuntu-cloud-keyring. | ||
59 | 54 | - Depends on maas-dns, maas-dhcp to get them seeded and | ||
60 | 55 | into main (LP: #1227353) | ||
61 | 56 | |||
62 | 57 | -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 28 Aug 2013 11:17:44 -0400 | ||
63 | 58 | |||
64 | 59 | maas (1.4+bzr1551+dfsg-0ubuntu1) saucy; urgency=low | ||
65 | 60 | |||
66 | 61 | * New upstream release | ||
67 | 62 | |||
68 | 63 | -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 15 Aug 2013 16:20:41 -0400 | ||
69 | 64 | |||
70 | 65 | maas (1.4+bzr1548+dfsg-0ubuntu1) saucy; urgency=low | ||
71 | 66 | |||
72 | 67 | * New upstream release | ||
73 | 68 | |||
74 | 69 | -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 18 Jul 2013 10:15:10 -0400 | ||
75 | 70 | |||
76 | 71 | maas (1.4+bzr1539+dfsg-0ubuntu1) saucy; urgency=low | ||
77 | 72 | |||
78 | 73 | * New upstream release | ||
79 | 74 | * Symlink apache2 config into /etc/apache2/conf-enabled/ instead of | ||
80 | 75 | /etc/apache2/conf.d as apache2.4 no longer supports the latter. | ||
81 | 76 | - debian/maas-cluster-controller.{postinst,postrm} | ||
82 | 77 | - debian/maas-region-controller.{postinst,postrm} | ||
83 | 78 | * debian/control: Bump Standards-Version to 3.9.4. | ||
84 | 79 | * debian/maas-cluster-controller.lintian-overrides: Remove unneeded | ||
85 | 80 | override and add a new one. | ||
86 | 81 | * debian/maas-region-controller.lintian-overrides: Add extra overrides. | ||
87 | 82 | |||
88 | 83 | -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 03 Jul 2013 17:11:02 -0400 | ||
89 | 84 | |||
90 | 85 | maas (1.4+bzr1538+dfsg-0ubuntu1) saucy; urgency=low | ||
91 | 86 | |||
92 | 87 | * New upstream release | ||
93 | 88 | * debian/patches/04-setup-dont-user-list-snippets.patch: Drop. Merged | ||
94 | 89 | Upstream. | ||
95 | 90 | |||
96 | 91 | -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 13 Jun 2013 20:06:35 -0400 | ||
97 | 92 | |||
98 | 93 | maas (1.4+bzr1527+dfsg-0ubuntu1) saucy; urgency=low | ||
99 | 94 | |||
100 | 95 | * debian/patches/04-setup-dont-user-list-snippets.patch: Drop importing | ||
101 | 96 | maasserver modules to list snippets in favor to using glob. Otherwise | ||
102 | 97 | we would have to add various non necessary Build-Dependencies. | ||
103 | 98 | |||
104 | 99 | [ Jeroen Vermeulen ] | ||
105 | 100 | * Install templates into /etc/maas/templates/. | ||
106 | 101 | |||
107 | 102 | -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 03 Jun 2013 17:59:31 -0400 | ||
108 | 103 | |||
109 | 104 | maas (1.4+bzr1505+dfsg-0ubuntu1) saucy; urgency=low | ||
110 | 105 | |||
111 | 106 | * New upstream release | ||
112 | 107 | |||
113 | 108 | [ Steve Langasek ] | ||
114 | 109 | * Add missing dependency on iproute to maas-region-controller, for use of | ||
115 | 110 | /sbin/ip in postinst. | ||
116 | 111 | |||
117 | 112 | [ Julian Edwards ] | ||
118 | 113 | * debian/maas-dhcp.maas-dhcp-server.upstart: | ||
119 | 114 | - Detect 12.04 as the host OS and install with correct permissions. This | ||
120 | 115 | allows the same packaging to be used in the 12.04 backport. | ||
121 | 116 | |||
122 | 117 | [ Andres Rodriguez ] | ||
123 | 118 | * Update packaging to support FPI: | ||
124 | 119 | - debian/control: Depends on apache2 for maas-cluster-controller. | ||
125 | 120 | - debian/maas-cluster-controller.install: Install http config file. | ||
126 | 121 | - debian/maas-cluster-controller.{postinst,postrm}: Handle symlink creation | ||
127 | 122 | and deletion. | ||
128 | 123 | * debian/maas-region-controller.install: Install preseeds in | ||
129 | 124 | etc/maas/preseeds. (LP: #1073463) | ||
130 | 125 | |||
131 | 126 | [ Jeroen Vermeulen ] | ||
132 | 127 | * In the source tree, /etc/maas/pserv.yaml has moved from etc/ to etc/maas/. | ||
133 | 128 | * Install templates into /etc/maas/templates/. | ||
134 | 129 | |||
135 | 130 | -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 03 Jun 2013 16:53:14 -0400 | ||
136 | 131 | |||
137 | 132 | maas (1.3+bzr1455+dfsg-0ubuntu1) raring; urgency=low | ||
138 | 133 | |||
139 | 134 | * New upstream bugfix release. | ||
140 | 135 | - Fixes and returns the 'resource_url' with the 'canonical' url for | ||
141 | 136 | a file that is fetched using the API (LP: #1154142) | ||
142 | 137 | |||
143 | 138 | [ Andres Rodriguez ] | ||
144 | 139 | * debian/control: | ||
145 | 140 | - Change Conflicts/Replaces for Breaks/Replaces. | ||
146 | 141 | - Conflicts on tftpd-hpa and dnsmasq. | ||
147 | 142 | - Do not pre-depends, but Depends on ${misc:Depends} for 'maas'. | ||
148 | 143 | |||
149 | 144 | [ Steve Langasek ] | ||
150 | 145 | * postinst scripts are never called with 'reconfigure' as the script | ||
151 | 146 | argument. Remove references to this (mythical) invocation. | ||
152 | 147 | * always call 'set -e' from maintainer scripts instead of passing 'sh -e' | ||
153 | 148 | as the interpreter, so that scripts will behave correctly when run via | ||
154 | 149 | 'sh -x'. | ||
155 | 150 | * invoke-rc.d is never allowed to not exist - simplify scripts (and make | ||
156 | 151 | them better policy-compliant) by invoking unconditionally. (The only | ||
157 | 152 | possible exception is in the postrm, where it's *theoretically* possible | ||
158 | 153 | for invoke-rc.d to be missing if the user has completely stripped | ||
159 | 154 | down their system; that's a fairly unreasonable corner case, but we | ||
160 | 155 | might as well be correct if it ever happens.) | ||
161 | 156 | * db_get+db_set is a no-op; don't call db_set to push back a value we just | ||
162 | 157 | got from db_get. | ||
163 | 158 | * Omit superfluous calls to 'exit 0' at the end of each script. | ||
164 | 159 | * Remove maas-cluster-controller prerm script, which called debconf for no | ||
165 | 160 | reason. | ||
166 | 161 | * Don't invoke debconf in the postrm script either, debhelper already does | ||
167 | 162 | this for us. | ||
168 | 163 | * Other miscellaneous maintainer script fixes | ||
169 | 164 | * debian/maas-common.postinst: call adduser and addgroup unconditionally; | ||
170 | 165 | the tools are already designed to DTRT, we don't need to check for the | ||
171 | 166 | user/group existence before calling them nor should we worry about | ||
172 | 167 | calling them only once on first install. | ||
173 | 168 | * debian/maas-common.postrm: delete the maas group, not just the user, | ||
174 | 169 | as the comment in the code implies we should do. | ||
175 | 170 | |||
176 | 171 | -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 19 Mar 2013 15:38:22 -0400 | ||
177 | 172 | |||
178 | 173 | maas (1.3+bzr1452+dfsg-0ubuntu1) raring; urgency=low | ||
179 | 174 | |||
180 | 175 | * New upstream release. | ||
181 | 176 | - MAAS file storage mechanism is shifting from a single shared | ||
182 | 177 | namespace to a per-user namespace. Operators of the majority | ||
183 | 178 | of MAAS systems will not notice any change. However, operators | ||
184 | 179 | of the most complex installations may find that a new | ||
185 | 180 | "shared-environment" user is created, and that some resources | ||
186 | 181 | are reassigned to it, such as API credentials and SSH public | ||
187 | 182 | keys. This provides a transitional environment that mimics the | ||
188 | 183 | behaviour of a shared namespace. | ||
189 | 184 | |||
190 | 185 | [ Raphaël Badin ] | ||
191 | 186 | * debian/control: maas-region-controller depends on bind9utils. | ||
192 | 187 | (LP: #1103195) | ||
193 | 188 | * debian/maas-dns.postinst: Call write_dns_config. | ||
194 | 189 | (LP: #1085865). | ||
195 | 190 | * debian/maas-cluster-controller.postinst: Fix the name of the config | ||
196 | 191 | file (/etc/maas/pserv.yaml and not /etc/maas/pserv.conf) | ||
197 | 192 | (LP: #1083542). | ||
198 | 193 | * debian/extras/99-maas-sudoers: Add 'SETENV:' to sudo rule | ||
199 | 194 | to allow preserving the environment when running | ||
200 | 195 | /usr/sbin/maas-import-pxe-files via sudo. | ||
201 | 196 | * debian/maas-dns.postinst: fix permissions and group ownership of | ||
202 | 197 | file /etc/bind/maas/named.conf.rndc.maas. (LP: #1066935) | ||
203 | 198 | * debian/control: Remove the dependency of maas-cluster-controller | ||
204 | 199 | on rabbitmq-server. (LP: #1072744) | ||
205 | 200 | * debian/extras/99-maas-sudoers: Add sudo rule for script | ||
206 | 201 | /usr/sbin/maas-import-pxe-files. | ||
207 | 202 | * debian/maas-cluster-controller.install: Removed commissioning-user-data | ||
208 | 203 | script. | ||
209 | 204 | |||
210 | 205 | [ Julian Edwards ] | ||
211 | 206 | * debian/maas-region-controller.install: Remove installation of maas-gc; it | ||
212 | 207 | is no longer required as upstream no longer stores files in the filesystem. | ||
213 | 208 | (LP: #1069734) | ||
214 | 209 | * debian/maas-cluster-controller.postinst: Ensure that /etc/maas/pserv.yaml | ||
215 | 210 | is updated when reconfiguring. (LP: #1081212) | ||
216 | 211 | |||
217 | 212 | [ Jeroen Vermeulen ] | ||
218 | 213 | * debian/maas-cluster-controller.install: Install import scripts. | ||
219 | 214 | * debian/maas-cluster-controller.postinst: Configure tgt (the iSCSI server) | ||
220 | 215 | so the import script can install files to it. | ||
221 | 216 | * debian/maas-cluster-controller.postrm: Clean up tgt config. | ||
222 | 217 | * debian/maas-region-controller.install: Move import scripts out to the | ||
223 | 218 | cluster controller, and drop the maas-import-isos compatibility script. | ||
224 | 219 | * debian/maas-region-controller.postinst: Remove tgt config. | ||
225 | 220 | * debian/maas-region-controller.postrm: Remove tgt config cleanup. | ||
226 | 221 | * Bump code revision to include latest user_data.template fixes. | ||
227 | 222 | |||
228 | 223 | [ Gavin Panella ] | ||
229 | 224 | * debian/extras/99-maas: squashfs image download is no longer needed. | ||
230 | 225 | * debian/maas-cluster-controller.install: maas-import-squashfs and its | ||
231 | 226 | configuration file are no longer part of upstream. | ||
232 | 227 | * debian/maas-cluster-controller.install: The maas-import-pxe-files cron | ||
233 | 228 | task is no longer used. | ||
234 | 229 | * debian/maas-cluster-controller.postinst: Remove leading comment | ||
235 | 230 | markers from the 'generator' line in pserv.yaml. | ||
236 | 231 | |||
237 | 232 | [ Andres Rodriguez ] | ||
238 | 233 | * debian/control: | ||
239 | 234 | - maas-cluster-controller Conflicts with tftpd-hpa (LP: #1076028) | ||
240 | 235 | - maas-dns: Conflicts with dnsmasq | ||
241 | 236 | - maas-cluster-controller Conflicts/Replaces maas-region-controller as | ||
242 | 237 | import scripts are no longer shipped in the region. | ||
243 | 238 | - debian/control: Depends on distro-info for maas-cluster-controller | ||
244 | 239 | instead of maas-region-controller (LP: #1103194) | ||
245 | 240 | * debian/maas-cluster-controller.config: If URL has been detected, | ||
246 | 241 | add /MAAS if it doesn't contain it. This helps upgrades from versions | ||
247 | 242 | where DEFAULT_MAAS_URL didn't use /MAAS. | ||
248 | 243 | |||
249 | 244 | -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 04 Mar 2013 11:49:44 -0500 | ||
250 | 245 | |||
251 | 246 | maas (0.1+bzr1269+dfsg-0ubuntu1) quantal-proposed; urgency=low | ||
252 | 247 | |||
253 | 248 | * New upstream bugfix release | ||
254 | 249 | - Fixes commissioning failing to set memory attribute. (LP: #1064638) | ||
255 | 250 | - Fixes node listing by adding pagination (LP: #1064672) | ||
256 | 251 | - Changes default bind rndc key which breaks initscripts (LP: #1066938) | ||
257 | 252 | - Fixes invalid DNS config once node is enlisted (LP: #1066958) | ||
258 | 253 | - Reference documentation link to correct URL (LP: #1067261) | ||
259 | 254 | |||
260 | 255 | [ Andres Rodriguez ] | ||
261 | 256 | * debian/rules: Change upstream branch. | ||
262 | 257 | |||
263 | 258 | [ Gavin Panella ] | ||
264 | 259 | * debian/maas-dns.postinst: Remove MAAS-related include lines from named's | ||
265 | 260 | config before adding a new one (LP: #1066929) | ||
266 | 261 | |||
267 | 262 | [ Raphael Badin ] | ||
268 | 263 | * debian/extras/maas-region-celeryd: Remove whitespace that affects DNS | ||
269 | 264 | rabbitmq queue. (LP: #1067929) | ||
270 | 265 | |||
271 | 266 | -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 16 Oct 2012 10:31:37 -0400 | ||
272 | 267 | |||
273 | 268 | maas (0.1+bzr1264+dfsg-0ubuntu2) quantal; urgency=low | ||
274 | 269 | |||
275 | 270 | * Fix MAAS not working after CD/preseed install (LP: #1065763) | ||
276 | 271 | - debian/extras/maas-region-celeryd: Add wrapper to run celery from | ||
277 | 272 | the upstart job. | ||
278 | 273 | - debian/extras/maas-region-controller.maas-region-celery.upstart: Create | ||
279 | 274 | rabbitmq user if it does not exists. | ||
280 | 275 | * debian/control: Remove unneeded deps on python-txtftp for some binary pkgs. | ||
281 | 276 | * debian/maas-region-controller.postinst: Minor fix referencing variable. | ||
282 | 277 | |||
283 | 278 | -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 11 Oct 2012 17:38:08 -0400 | ||
284 | 279 | |||
285 | 280 | maas (0.1+bzr1264+dfsg-0ubuntu1) quantal; urgency=low | ||
286 | 281 | |||
287 | 282 | * New upstream release. | ||
288 | 283 | |||
289 | 284 | [ Raphaël Badin ] | ||
290 | 285 | * debian/maas-region-controller.postinst: Enable proxy_http module. | ||
291 | 286 | * debian/maas-cluster-controller.postinst: Create /var/lib/maas. (LP: #1065062) | ||
292 | 287 | |||
293 | 288 | [ Andres Rodriguez ] | ||
294 | 289 | * Install maas-provision with python-maas-provisioningserver (LP: #1065171): | ||
295 | 290 | - debian/python-maas-provisioningserver.install: Install | ||
296 | 291 | - debian/control: Add Conflicts/Replaces with maas-cluster-controller | ||
297 | 292 | to handle upgrades. | ||
298 | 293 | * debian/patches/04-fix-ipmi-enlistment.patch: Drop. Merged Upstream. | ||
299 | 294 | * debian/control: Depends on maas-region-controller for maas-dns. | ||
300 | 295 | * debian/maas-region-controller.postinst: Set the correct host for | ||
301 | 296 | BROKER_URL (LP: #1065080) | ||
302 | 297 | * Handle creation of user/group in maas-common. | ||
303 | 298 | * debian/maas-region-controller.config: Always source dbconfig scripts. | ||
304 | 299 | |||
305 | 300 | -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 10 Oct 2012 11:17:21 -0400 | ||
306 | 301 | |||
307 | 302 | maas (0.1+bzr1243+dfsg-0ubuntu3) quantal; urgency=low | ||
308 | 303 | |||
309 | 304 | * 04-fix-ipmi-enlistment.patch: retry maas-enlist without power parameters | ||
310 | 305 | on failure. This allows enlistment to continue working with Precise | ||
311 | 306 | ephemeral images before the Precise SRU for maas-enlist lands. | ||
312 | 307 | (LP: #1064922). | ||
313 | 308 | |||
314 | 309 | -- Robie Basak <robie.basak@canonical.com> Wed, 10 Oct 2012 13:29:16 +0000 | ||
315 | 310 | |||
316 | 311 | maas (0.1+bzr1243+dfsg-0ubuntu2) quantal; urgency=low | ||
317 | 312 | |||
318 | 313 | * debian/patches/99-ipmi-user-too-long.patch: Fix username too long for | ||
319 | 314 | IPMI user created on enlistment (LP: #1064832) | ||
320 | 315 | |||
321 | 316 | -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 10 Oct 2012 01:00:29 -0400 | ||
322 | 317 | |||
323 | 318 | maas (0.1+bzr1243+dfsg-0ubuntu1) quantal; urgency=low | ||
324 | 319 | |||
325 | 320 | * New upstream release. (LP: #1064596) | ||
326 | 321 | * debian/patches/99-temporary-fix-constraints.patch: Dropped. | ||
327 | 322 | * debian/control: | ||
328 | 323 | - ${python:Depends} for maas-common. | ||
329 | 324 | - Add missing Depends for python-maas-provisioningserver (LP: #1064542) | ||
330 | 325 | * debian/maas-cluster-controller.postinst: Create /var/log/maas if it | ||
331 | 326 | doesn't exist (LP: #1064539) | ||
332 | 327 | |||
333 | 328 | -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 08 Oct 2012 17:02:56 -0400 | ||
334 | 329 | |||
335 | 330 | maas (0.1+bzr1223+dfsg-0ubuntu1) quantal; urgency=low | ||
336 | 331 | |||
337 | 332 | * New upstream release. (LP: #1062518) | ||
338 | 333 | |||
339 | 334 | [ Julian Edwards ] | ||
340 | 335 | * Split packaging of 'maas' into maas-{region,cluster}-controller | ||
341 | 336 | - debian/control: Update accordingly. | ||
342 | 337 | - debian/*.install: Move files accordingly | ||
343 | 338 | - debian/*.{postinst,postrm,preinst}: Move files accordingly. | ||
344 | 339 | * Ensure isc-dhcp-server is disabled when installing maas-dhcp. | ||
345 | 340 | * Ensure maas-dns creates the maas user before trying to chown files. | ||
346 | 341 | * Make maas-cluster-controller autoconfigure itself when upgrading from the | ||
347 | 342 | old maas package. (LP: #1059416) | ||
348 | 343 | * Add missing prerm file for maas-cluster-controller so that .pyc files | ||
349 | 344 | are cleaned up. (LP: #1059973) | ||
350 | 345 | |||
351 | 346 | [ Raphaël Badin ] | ||
352 | 347 | * Install maas_local_celeryconfig.py in /etc/maas and symlink to | ||
353 | 348 | /usr/share/maas. | ||
354 | 349 | * debian/maas.postinst: Create rabbitmq celery user/vhost. | ||
355 | 350 | * debian/maas.postinst: Update BROKER_URL in maas_local_celeryconfig.py. | ||
356 | 351 | * Use maas_local_celeryconfig_cluster.py as the local celery | ||
357 | 352 | configuration file for the cluster worker. | ||
358 | 353 | * debian/maas-region-controller.maas-region-celery.upstart: Add region | ||
359 | 354 | worker upstart script. | ||
360 | 355 | * Rename cluster worker upstart script into | ||
361 | 356 | maas-cluster-controller.maas-clluster-celery.upstart. | ||
362 | 357 | * maas-cluster-controller.maas-celery.upstart: use "celeryconfig_cluster" | ||
363 | 358 | as the Celery config module. | ||
364 | 359 | * debian/maas-common.install: Install celeryconfig_common.py. | ||
365 | 360 | * debian/maas-cluster-controller.install: Install celeryconfig_cluster.py. | ||
366 | 361 | * debian/maas-region-controller.install: Install celeryconfig.py. | ||
367 | 362 | * Split celery config into cluster and region configs. | ||
368 | 363 | * Add region celeryd upstart config. | ||
369 | 364 | * Define CELERY_CONFIG_MODULE in | ||
370 | 365 | maas-cluster-controller.maas-cluster-celery.upstart | ||
371 | 366 | |||
372 | 367 | [ Jeroen Vermeulen ] | ||
373 | 368 | * Make maas_local_celery_config.py non-world readable. | ||
374 | 369 | * Make maas_local_celeryconfig_cluster.py non-world readable. | ||
375 | 370 | * Set root:maas ownership of local cluster config only *after* | ||
376 | 371 | the maas user/group have been created | ||
377 | 372 | |||
378 | 373 | [ Andres Rodriguez ] | ||
379 | 374 | * debian/maas.postinst: | ||
380 | 375 | - Always restart apache2. | ||
381 | 376 | - Handle upgrades for new upstream release. | ||
382 | 377 | - Handle upgrades for celery rabbitmq worker. | ||
383 | 378 | * Add binary package to install client tool. | ||
384 | 379 | - debian/extras/maas-cli: Add binary. | ||
385 | 380 | - debian/maas-cli.install: Add. Install maascli and apiclient. | ||
386 | 381 | - debian/control: Add binary package. | ||
387 | 382 | * debian/control: | ||
388 | 383 | - Depends on freeipmi-tools instead of ipmitool. | ||
389 | 384 | - Conflicts/Replaces on maas for python-maas-client. | ||
390 | 385 | - Depends on python-netifaces, python-lxml. | ||
391 | 386 | * Add python-maas-client binary package: | ||
392 | 387 | - debian/python-maas-client.install: Add. Install 'apiclient' python module. | ||
393 | 388 | - debian/control: Add package. python-django-maas and maas-cli now | ||
394 | 389 | Depend on it. | ||
395 | 390 | * debian/rules: Install maas-dhcp-server upstart job. | ||
396 | 391 | * debian/maas.postrm: Remove celery worker rabbitmq user and host. | ||
397 | 392 | * debian/extras/99-maas-sudoers: Add for maas-dhcp-server upstart job | ||
398 | 393 | instead of isc-dhcp-server (LP: #1055951) | ||
399 | 394 | * debian/maas-region-controller.postinst: Cleanup upgrade rules. | ||
400 | 395 | * debian/maas-cluster-controller.postinst: Fix 'local' usage. | ||
401 | 396 | * debian/maas-common.install: Install celeryconfig in appropriate location. | ||
402 | 397 | * debian/maas-cluster-controller.postrm: Add and delete maas user. | ||
403 | 398 | * debian/maas-dhcp.postinst: Stop isc-dhcp-server not isc_dhcp_server. | ||
404 | 399 | * debian/maas-region-controller.postinst: | ||
405 | 400 | - Always update passwords on upgrade. No longer check versioning. (LP: #1060094). | ||
406 | 401 | - Add MAAS server to allowed mirror in squid-deb-proxy | ||
407 | 402 | - Source dbconfig conf file for maas-region-controller on upgrade because | ||
408 | 403 | it writes a new config file and no longer preservers the previous password. | ||
409 | 404 | * debian/maas-cluster-controller.maas-cluster-celery.upstart: Remove set{uid/gid}. | ||
410 | 405 | * debian/maas-region-controller.install: Install maas-import-squashfs | ||
411 | 406 | * Handle removal of non existant files (LP: #1059556): | ||
412 | 407 | - debian/maintscript: Added to handle removal of conffiles. | ||
413 | 408 | - debian/control: Add Pre-depends and bump debhelper version. | ||
414 | 409 | * update po files for the templates. | ||
415 | 410 | * debian/extras/99-maas: Install in usr/share/maas/conf and symlink to the | ||
416 | 411 | appropriate etc dir. | ||
417 | 412 | * debian/maas-cluster-controller.config: Source debconf at the beginning of the | ||
418 | 413 | script. (LP: #1063857) | ||
419 | 414 | * debian/patches/99-temporary-fix-constraints.patch: Fix constraints maaping | ||
420 | 415 | when deploying with juju. Temporary until it gets merged upstream | ||
421 | 416 | |||
422 | 417 | [ Robie Basak ] | ||
423 | 418 | * Add maas-cluster-controller dependency on uuid-runtime, needed for uuidgen | ||
424 | 419 | by postinst. | ||
425 | 420 | |||
426 | 421 | [ Scott Moser ] | ||
427 | 422 | * debian/maas-dhcp.{install,apparmor,postrm} install apparmor profile into | ||
428 | 423 | /etc/apparmor.d/dhcpd.d (LP: #1049177), and update apparmor profile for | ||
429 | 424 | /usr/sbin/dhcpd on install/remove | ||
430 | 425 | * get the ip address for the dhcp server in config | ||
431 | 426 | |||
432 | 427 | [ Diogo Matsubara ] | ||
433 | 428 | * Add initial tests to be run by autotests: | ||
434 | 429 | - debian/control: XS-Testsuite: autopkgtest | ||
435 | 430 | - debian/tests/control: Add | ||
436 | 431 | - debian/tests/maas-package-test: Add | ||
437 | 432 | - tests/maas-integration.py: Add | ||
438 | 433 | |||
439 | 434 | -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 08 Oct 2012 13:10:23 -0400 | ||
440 | 435 | |||
441 | 436 | maas (0.1+bzr971+dfsg-0ubuntu2) quantal; urgency=low | ||
442 | 437 | |||
443 | 438 | * debian/extras/99-maas-sudoers: Add missing rule for | ||
444 | 439 | maas-provision. (LP: #1046397) | ||
445 | 440 | |||
446 | 441 | -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 05 Sep 2012 12:36:58 -0400 | ||
447 | 442 | |||
448 | 443 | maas (0.1+bzr971+dfsg-0ubuntu1) quantal; urgency=low | ||
449 | 444 | |||
450 | 445 | * New upstream release (LP: #1044367) | ||
451 | 446 | |||
452 | 447 | [ Julian Edwards ] | ||
453 | 448 | * Fix 02-pserv-config.patch to handle new default tftp directory | ||
454 | 449 | |||
455 | 450 | [ Andres Rodriguez ] | ||
456 | 451 | * debian/maas.postinst: | ||
457 | 452 | - include '/MAAS' for DEFAULT_MAAS_URL.(LP: #1033956) | ||
458 | 453 | - Update bzr version to safely upgrade. | ||
459 | 454 | * Add maas-dns package that configures DNS in MAAS (LP: #1030860) | ||
460 | 455 | * Remove cobbler related bits | ||
461 | 456 | - debian/maas.postinst: Drop cobbler configuration | ||
462 | 457 | - debian/maas.install: Drop installation of snippets/preseeds. | ||
463 | 458 | - debian/control: | ||
464 | 459 | + Drop Depends on maas-provision. (LP: #975473) | ||
465 | 460 | + Depends on bind9utils. | ||
466 | 461 | + Depends on python-lockfile (LP: #1037400) | ||
467 | 462 | Add necessary Conflicts/Replaces. Add conflicts to tftpd-hpa and dnsmasq. | ||
468 | 463 | Depends on isc-dhcp-server for maas-dhcp, and syslinux-common. | ||
469 | 464 | - debian/extras/maas-provision: Add missing "$@" (LP: #1040462) | ||
470 | 465 | - debian/patches: | ||
471 | 466 | + 02-pserv-config.patch: Updated. Do not patch cobbler related bits. | ||
472 | 467 | patch tftp config to default. | ||
473 | 468 | * maas-dhcp: Re-add to handle initial configuration of MAAS DHCP server. | ||
474 | 469 | * Allow restart of 'isc-dhcp-server' by adding a sudoers file: | ||
475 | 470 | - debian/extras/99-maas-sudoers: Added. | ||
476 | 471 | - debian/maas.install: Install 99-maas-sudoers | ||
477 | 472 | * Minor improvements on dbconfig-common handling: | ||
478 | 473 | - debian/maas.config: Only call dbc_go when scripts present. | ||
479 | 474 | - debian/maas.postrm: Only call dbc_go when config file exists. | ||
480 | 475 | * debian/maas.maas-celery.upstart: Enable Beat and set scheduler db file. | ||
481 | 476 | * debian/maas-dns.postinst: Set correct permissions. (LP: #1042868) | ||
482 | 477 | * debian/maas-dhcp.config: | ||
483 | 478 | - Ask whether we want to enable DHCP (LP: #1044229) | ||
484 | 479 | - Add debconf question for network interfaces | ||
485 | 480 | * debian/maas.prerm: Stop services before removing database (LP: #1044559) | ||
486 | 481 | |||
487 | 482 | -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 02 Aug 2012 09:01:43 -0400 | ||
488 | 483 | |||
489 | 484 | maas (0.1+bzr777+dfsg-0ubuntu1) quantal-proposed; urgency=low | ||
490 | 485 | |||
491 | 486 | * New upstream release | ||
492 | 487 | * Only run 'maas' command as root. (LP: #974046) | ||
493 | 488 | - debian/extras/maas: Check id. | ||
494 | 489 | - debian/maas.install: Install in 'sbin'. | ||
495 | 490 | * debian/maas.postinst: | ||
496 | 491 | - restart apache2 after everything gets processed. | ||
497 | 492 | - Update version to handle upgrades. | ||
498 | 493 | * debian/extras/maas-provision: Add wrapper to access 'maasprovisiong' | ||
499 | 494 | command line. | ||
500 | 495 | * debian/patches/99_temporary_fix_path.patch: Dropped. No longer needed. | ||
501 | 496 | |||
502 | 497 | -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 17 Jul 2012 08:28:36 -0400 | ||
503 | 498 | |||
504 | 499 | maas (0.1+bzr745+dfsg-0ubuntu2) quantal; urgency=low | ||
505 | 500 | |||
506 | 501 | * debian/control: Build-Dep on python-django instead of | ||
507 | 502 | python-django-configglue | ||
508 | 503 | |||
509 | 504 | -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 17 Jul 2012 08:24:25 -0400 | ||
510 | 505 | |||
511 | 506 | maas (0.1+bzr745+dfsg-0ubuntu1) quantal; urgency=low | ||
512 | 507 | |||
513 | 508 | * New Upstream Release | ||
514 | 509 | * debian/patches: | ||
515 | 510 | - 99_power_fixes.patch: Dropped. Merged Upstream. | ||
516 | 511 | - 99_enums_js.patch: Dropped. No longer needed. | ||
517 | 512 | * Automatically build enums.js: | ||
518 | 513 | - debian/control: Build-Depends on python-django-configglue | ||
519 | 514 | - debian/rules: Build and install enums.js. | ||
520 | 515 | * debian/maas.postinst: Update version to handle upgrades | ||
521 | 516 | |||
522 | 517 | -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 12 Jul 2012 16:34:11 -0400 | ||
523 | 518 | |||
524 | 519 | maas (0.1+bzr740+dfsg-0ubuntu1) quantal; urgency=low | ||
525 | 520 | |||
526 | 521 | * New upstream release | ||
527 | 522 | * debian/control: Depends on python-txtftp. | ||
528 | 523 | * debian/rules: Do not ship python-tx-tftp. | ||
529 | 524 | * debian/maas.postinst: Update version to upgrade successfully. | ||
530 | 525 | * debian/patches: | ||
531 | 526 | - 02-pserv-config.patch: Refreshed. | ||
532 | 527 | - 99_enums_js.patch: Updated. | ||
533 | 528 | - 99_power_fixes.patch: Added temporarily to enable IPMI | ||
534 | 529 | - 99_temporary_fix_path.patch: Added temporarily to not fail when | ||
535 | 530 | importing celeryconfig | ||
536 | 531 | |||
537 | 532 | -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 03 Jul 2012 17:54:49 -0400 | ||
538 | 533 | |||
539 | 534 | maas (0.1+bzr709+dfsg-0ubuntu1) quantal; urgency=low | ||
540 | 535 | |||
541 | 536 | * New Upstream release | ||
542 | 537 | * debian/control: | ||
543 | 538 | - Depends on python-celery, python-tempita, libjs-yui3-{full,min}, | ||
544 | 539 | libjs-raphael | ||
545 | 540 | * debian/maas.install: | ||
546 | 541 | - Install apiclient, celeryconfig.py, maas-import-pxe-files, preseeds_v2. | ||
547 | 542 | - Update to install various files from chroot, rather tha manually copy | ||
548 | 543 | them from the source. | ||
549 | 544 | * debian/maas.links: symlink celeryconfig.py | ||
550 | 545 | * debian/maas.maas-celery.upstart: Add job. | ||
551 | 546 | * debian/rules: | ||
552 | 547 | - Install celery upstart job. | ||
553 | 548 | - Do not install jslibs as packages are now used. | ||
554 | 549 | - Drop copying of maas_local_settings_sample.py as source now ships | ||
555 | 550 | a maas_local_settings.py | ||
556 | 551 | * debian/patches: | ||
557 | 552 | - 04-maas-http-fix.patch: Drop. Merged upstream. | ||
558 | 553 | - 01-fix-database-settings.patch: Refreshed. | ||
559 | 554 | - 99_enums_js.patch: Added until creation of enum.js / build process | ||
560 | 555 | is fixed. | ||
561 | 556 | * debian/maas.postinst: Update bzr version to correctly handle upgrades. | ||
562 | 557 | |||
563 | 558 | -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 03 Jul 2012 17:42:37 -0400 | ||
564 | 559 | |||
565 | 560 | maas (0.1+bzr482+dfsg-0ubuntu1) precise; urgency=low | ||
566 | 561 | |||
567 | 562 | * New upstream release (Fixes LP: #981103) | ||
568 | 563 | * debian/maas.postinst: | ||
569 | 564 | - Make sure rabbitmq and postgresql are started on upgrade (LP: #981282) | ||
570 | 565 | - Handle upgrades from any lower than 0.1+bzr462+dfsg-0ubuntu1 to | ||
571 | 566 | correctly re-generate passwords, and not have db sync/migrate issues | ||
572 | 567 | as config has changed upstream. | ||
573 | 568 | - Correctly set Passwords for PSERV, otherwise it won't set new passwords. | ||
574 | 569 | * Allow MAAS_DEFAULT_URL reconfiguration. (LP: #980970) | ||
575 | 570 | - debian/maas.config: Add reconfigure validation to correctly allow it, | ||
576 | 571 | and ask a question. | ||
577 | 572 | - debian/maas.postinst: Reconfigure DEFAULT_MAAS_URL as well as cobbler | ||
578 | 573 | server and next_server for PXE/Provisioning. | ||
579 | 574 | - debian/maas.templates: Add debconf question and update info. | ||
580 | 575 | * Do not lose MAAS_DEFAULT_URL settings on upgrade (LP: #984309) | ||
581 | 576 | * debian/maas.postinst: | ||
582 | 577 | - Set cobbler password in between quotes (LP: #984427) | ||
583 | 578 | - Do not change permissions to maas.log (LP: #980915) | ||
584 | 579 | * no longer use maas-cloudimg2ephemeral, but rather use premade images | ||
585 | 580 | at http://maas.ubuntu.com | ||
586 | 581 | |||
587 | 582 | -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 17 Apr 2012 23:44:46 -0700 | ||
588 | 583 | |||
589 | 584 | maas (0.1+bzr462+dfsg-0ubuntu1) precise; urgency=low | ||
590 | 585 | |||
591 | 586 | * New upstream release (LP: #980240) | ||
592 | 587 | |||
593 | 588 | [ Scott Moser ] | ||
594 | 589 | * add dependency on distro-info (LP: #949442) | ||
595 | 590 | * debian/control: add dependency on tgt for ephemeral iscsi environment | ||
596 | 591 | |||
597 | 592 | [ Andres Rodriguez ] | ||
598 | 593 | * Make package lintian clean: | ||
599 | 594 | - maas{-dhcp}.lintian-overrides: Add to make lintian clean. | ||
600 | 595 | - debian/control: Add missing dependencies; correct section and desc. | ||
601 | 596 | - debian/maas.postinst: Do not use absolute path for rabbitmqctl. | ||
602 | 597 | - debian/patches: Add headers to all patches. | ||
603 | 598 | * debian/maas-dhcp.postrm: Added to disable dnsmasq in cobbler on removal. | ||
604 | 599 | * debian/maas.config: Do not set a password with pwgen as it is not an | ||
605 | 600 | essential package; allow dbconfig-common to create a password instead by | ||
606 | 601 | creating an empty question. (LP: #977475) | ||
607 | 602 | * Run MAAS, pserv, txlongpoll as non-root user. (LP: #975436) | ||
608 | 603 | - debian/maas.postinst: Create user/group; set correct permissions for | ||
609 | 604 | directories. | ||
610 | 605 | - debian/maas.postrm: Remove user/group; restart apache2. | ||
611 | 606 | - debian/maas.maas-{pserv,txlongpoll}.upstart: Update to run as non-root | ||
612 | 607 | 'maas' user. | ||
613 | 608 | * debian/patches/01-fix-database-settings.patch: Remove adding of PSERV_URL. | ||
614 | 609 | * debian/maas.postinst: | ||
615 | 610 | - Handle config file upgrade from versions lower than 0.1+bzr445+dfsg-0ubuntu1, | ||
616 | 611 | by creating new passwords and updating accordingly | ||
617 | 612 | - use local variables in functions. | ||
618 | 613 | - Handle maas tgt configuration for upgrades from 0.1+bzr459+dfsg-0ubuntu1. | ||
619 | 614 | * debian/extras/99-maas: Add squid-deb-proxy file to enable PPAs. (LP: #979383) | ||
620 | 615 | * debian/maas.install: Install missing commissioning-user-data script. | ||
621 | 616 | |||
622 | 617 | [ Dave Walker (Daviey) ] | ||
623 | 618 | * debian/patches/02-pserv-config.patch: Refreshed to apply to updated config. | ||
624 | 619 | |||
625 | 620 | [ Gavin Panella ] | ||
626 | 621 | * debian/maas.postinst: Update pserv.yaml and maas_local_settings.py to use | ||
627 | 622 | password. | ||
628 | 623 | |||
629 | 624 | -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 12 Apr 2012 16:37:53 -0400 | ||
630 | 625 | |||
631 | 626 | maas (0.1+bzr415+dfsg-0ubuntu2) precise; urgency=low | ||
632 | 627 | |||
633 | 628 | * debian/maas-dhcp.{config,postinst}: | ||
634 | 629 | - Fix not setting new values on fresh install. (LP: #975321) | ||
635 | 630 | - Fix unsetting domain, otherwise, even if disabled, it will always be set. | ||
636 | 631 | * debian/control: Depends on maas for maas-dhcp. | ||
637 | 632 | |||
638 | 633 | -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 06 Apr 2012 15:30:44 -0400 | ||
639 | 634 | |||
640 | 635 | maas (0.1+bzr415+dfsg-0ubuntu1) precise; urgency=low | ||
641 | 636 | |||
642 | 637 | * debian/control: Update package descriptions; Suggests maas-dhcp for maas | ||
643 | 638 | and add a maas-dhcp binary. | ||
644 | 639 | * Add maas-dhcp package to configure a DHCP server. | ||
645 | 640 | - debian/maas-dhcp.config: Add to ask debconf questions about range, | ||
646 | 641 | gateway, and domain. | ||
647 | 642 | - debian/maas-dhcp.postinst: Handle update of config values. | ||
648 | 643 | - debian/maas-dhcp.templates: Debconf questions. | ||
649 | 644 | * debian/po: Update for templates. | ||
650 | 645 | * Add message telling MAAS URL after installation. | ||
651 | 646 | - debian/maas.templates: Add message. | ||
652 | 647 | - debian/maas.postinst: Display message. | ||
653 | 648 | * debian/maas.config: Hide dbconfig-install question. | ||
654 | 649 | |||
655 | 650 | -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 04 Apr 2012 14:47:13 -0400 | ||
656 | 651 | |||
657 | 652 | maas (0.1+bzr400+dfsg-0ubuntu1) precise; urgency=low | ||
658 | 653 | |||
659 | 654 | * debian/patches/{02-pserv-config,03-txlongpoll-config}.patch: Refreshed. | ||
660 | 655 | * debian/maas.install: Install maas-gc cronjob. | ||
661 | 656 | * Add apport hook. | ||
662 | 657 | - debian/maas.apport: Add hook. | ||
663 | 658 | - debian/rules: Install with apport. | ||
664 | 659 | * debian/maas.logrotate: Add logrotate for txlongpoll and pserv logs. | ||
665 | 660 | * Create 'var/lib/media/maas/storage' on postinst to have right permissions. | ||
666 | 661 | - debian/maas.dirs: Drop dir creation. | ||
667 | 662 | - debian/maas.postinst: Create dir with correct permissions. | ||
668 | 663 | - debian/maas.postrm: Remove dir on purge. | ||
669 | 664 | |||
670 | 665 | -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 03 Apr 2012 14:50:34 -0400 | ||
671 | 666 | |||
672 | 667 | maas (0.1+bzr378+dfsg-0ubuntu1) precise; urgency=low | ||
673 | 668 | |||
674 | 669 | * maas.dirs: Create var/lib/maas/media/storage for juju storage. | ||
675 | 670 | * maas.postinst: | ||
676 | 671 | - Give correct permissions to above dir. | ||
677 | 672 | - stop apache2 before db upgrade, and restart after. | ||
678 | 673 | |||
679 | 674 | -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 29 Mar 2012 19:28:13 -0400 | ||
680 | 675 | |||
681 | 676 | maas (0.1+bzr363+dfsg-0ubuntu1) precise; urgency=low | ||
682 | 677 | |||
683 | 678 | [ Dave Walker (Daviey) ] | ||
684 | 679 | * debian/control: Add openssh-server as a Recommends, and wrap-and-sort. | ||
685 | 680 | |||
686 | 681 | [ Andres Rodriguez ] | ||
687 | 682 | * debian/maas.postinst: | ||
688 | 683 | - Do not start apache with apache2ctl. Use invoke-rc.d instead to not | ||
689 | 684 | fail in the installer. | ||
690 | 685 | - For start of postgresql before creating the DB, otherwise it will | ||
691 | 686 | fail in the installer. | ||
692 | 687 | - Add check of invoke-rc.d for syslog. | ||
693 | 688 | - Add check of invoke-rc.d for rabbitmq-server; Add check for rabbitmqctl | ||
694 | 689 | - Add db_stop, in case invoke-rc.d fails. | ||
695 | 690 | * debian/control: Tight python-django-maas dependency. | ||
696 | 691 | * debian/postrm: Add check for rabbitmqctl. | ||
697 | 692 | * debian/maas.maas-txlongpoll.upstart: Create rabbitmq longpoll user/vhost | ||
698 | 693 | and set permissions if they don't exist. Start on rabbitmq-server-running. | ||
699 | 694 | |||
700 | 695 | -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 27 Mar 2012 14:49:56 -0400 | ||
701 | 696 | |||
702 | 697 | maas (0.1+bzr338+dfsg-0ubuntu1) precise; urgency=low | ||
703 | 698 | |||
704 | 699 | [ Dave Walker (Daviey) ] | ||
705 | 700 | * d/patches/03-txlongpoll-config.patch: Resolve typo error from prior patch. | ||
706 | 701 | - LP: #961031 | ||
707 | 702 | |||
708 | 703 | [ Andres Rodriguez ] | ||
709 | 704 | * debian/maas.config: Don't allow reconfigure. | ||
710 | 705 | * debian/maas.postinst: Don't allow reconfigure. Run sync/migrate db on | ||
711 | 706 | all upgrades. | ||
712 | 707 | |||
713 | 708 | [ Scott Moser ] | ||
714 | 709 | * add rsylog config for logging node boots (LP: 960149) | ||
715 | 710 | |||
716 | 711 | -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 22 Mar 2012 10:56:58 -0400 | ||
717 | 712 | |||
718 | 713 | maas (0.1+bzr315+dfsg-0ubuntu1) precise; urgency=low | ||
719 | 714 | |||
720 | 715 | * New upstream snapshot. | ||
721 | 716 | |||
722 | 717 | [ Dave Walker ] | ||
723 | 718 | * debian/maas.postinst: Do not import ISO's at install time. | ||
724 | 719 | * debian/control: | ||
725 | 720 | - Drop run-one, it's not a requirement and currently in universe. | ||
726 | 721 | - Drop python-setproctitle, no longer required. | ||
727 | 722 | |||
728 | 723 | [ Andres Rodriguez ] | ||
729 | 724 | * debian/control: Depends on python-avahi, python-dbus, and avahi-daemon. | ||
730 | 725 | * debian/maas.postinst: | ||
731 | 726 | - Only syncdb if dbconfig db creation was selected. | ||
732 | 727 | - Set rabbitmq/longpoll settings | ||
733 | 728 | * debian/patches/03-txlongpoll-config.patch: Updated broker settings for | ||
734 | 729 | rabbitmq. | ||
735 | 730 | |||
736 | 731 | -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 20 Mar 2012 20:10:58 -0400 | ||
737 | 732 | |||
738 | 733 | maas (0.1+bzr300+dfsg-0ubuntu1) precise; urgency=low | ||
739 | 734 | |||
740 | 735 | * debian/patches: | ||
741 | 736 | - 01-fix-database-settings.patch: Update PSERV_URL port. | ||
742 | 737 | - 02-pserv-config.patch: Update, and set 'maas' as username. | ||
743 | 738 | - 03-longpoll-config.patch: Update. | ||
744 | 739 | * debian/maas.install: Install preseeds and snippets. | ||
745 | 740 | * debian/maas.postinst: | ||
746 | 741 | - Set password for 'maas' cobbler username (in pserv and cobbler). | ||
747 | 742 | - Set DEFAULT_MAAS_URL to IP of interface with default gateway. | ||
748 | 743 | |||
749 | 744 | -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 16 Mar 2012 14:59:16 -0400 | ||
750 | 745 | |||
751 | 746 | maas (0.1+bzr295+dfsg-0ubuntu2) precise; urgency=low | ||
752 | 747 | |||
753 | 748 | * debian/patches: | ||
754 | 749 | - 01-fix-database-settings.patch: Update to set PSERV_URL. | ||
755 | 750 | - 02-pserv-config.patch: Set port to 8001. | ||
756 | 751 | * debian/maas.postinst: Run maas-import-isos on install. | ||
757 | 752 | * debian/control: Depends on rabbitmq-server. | ||
758 | 753 | |||
759 | 754 | -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 15 Mar 2012 18:14:08 -0400 | ||
760 | 755 | |||
761 | 756 | maas (0.1+bzr295+dfsg-0ubuntu1) precise; urgency=low | ||
762 | 757 | |||
763 | 758 | * debian/maas.upstart: Specify pidfile and conffile. | ||
764 | 759 | * debian/maas.postinst: | ||
765 | 760 | - Only run syncdb if dbconfig postinst file exists. | ||
766 | 761 | - Fix file permissions. | ||
767 | 762 | * debian/maas.{postrm,prerm}: Add dbconfig-common support. | ||
768 | 763 | * Add txlongpoll support for packaging: | ||
769 | 764 | - debian/control: Depends on python-txlongpoll. | ||
770 | 765 | - debian/maas.maas-longpoll.upstart: Added to start txlongpoll. | ||
771 | 766 | - debian/maas.install: Install txlongpoll.yaml | ||
772 | 767 | * debian/extras/maas: Improvements. | ||
773 | 768 | * debian/maas.maas.upstart: Moved from debian/maas.upstart. | ||
774 | 769 | * debian/maas.postinst: Touch logfile to set correct permissions (LP: #955400) | ||
775 | 770 | * debian/maas.logrotate: Add. | ||
776 | 771 | * debian/patches/03-txlongpoll-config.patch: Add default settings. | ||
777 | 772 | * debian/maas.config: Only run dbconfig-common on configure/reconfigure. | ||
778 | 773 | * Install maas_local_settings.py in /etc/maas and symlink to usr/share/maas | ||
779 | 774 | * Update references from MaaS to MAAS. | ||
780 | 775 | * Remove podebconf as templates no longer exist. | ||
781 | 776 | - debian/po: Remove. | ||
782 | 777 | - debian/control: Drop Build-Depends on po-debconf | ||
783 | 778 | |||
784 | 779 | -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 15 Mar 2012 15:28:14 -0400 | ||
785 | 780 | |||
786 | 781 | maas (0.1+bzr266+dfsg-0ubuntu1) precise; urgency=low | ||
787 | 782 | |||
788 | 783 | * Remove support for squid3 and use squid-deb-proxy instead. | ||
789 | 784 | * debian/extras/maas: Add to handle syncdb and creation of admin user. | ||
790 | 785 | * Add debconf questions to ask for user/pass: | ||
791 | 786 | - debian/maas.{template,config}: Add | ||
792 | 787 | - debian/maas.postinst: Ask debconf questions. | ||
793 | 788 | - debian/po: Add translation templates.i | ||
794 | 789 | * debian/maas.postinst: Enable wsgi module; drop squid3 steps. | ||
795 | 790 | * debian/maas.postrm: removed. | ||
796 | 791 | * debian/patches/01-fix-database-settings.patch: Custom database settings | ||
797 | 792 | and static files path. | ||
798 | 793 | * debian/{rules,maas.install}: Install maas static files in | ||
799 | 794 | 'usr/share/maas/web/static'. | ||
800 | 795 | * Integrate cobbler: | ||
801 | 796 | - debian/maas.install: Install pserv twisted plugin, and config. | ||
802 | 797 | - debian/maas.upstart: Created to start plugin daemon. | ||
803 | 798 | - debian/patches/02-pserv-config.patch: Custom pserv config. | ||
804 | 799 | * Integrate dbconfig-common: | ||
805 | 800 | - debian/maas.config: Added and default user/pass and database. | ||
806 | 801 | - debian/maas.{postinst,postrm}: Added handling for dbconfig-common | ||
807 | 802 | * debian/control: Depends on python-convoy. | ||
808 | 803 | * debian/rules: Update path to removal of dsfg files. | ||
809 | 804 | * debian/patches/01-fix-database-settings.patch: Updated. | ||
810 | 805 | |||
811 | 806 | -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 13 Mar 2012 14:31:50 -0400 | ||
812 | 807 | |||
813 | 808 | maas (0.1+bzr232+dfsg-0ubuntu1) precise; urgency=low | ||
814 | 809 | |||
815 | 810 | * New upstream snapshot. | ||
816 | 811 | |||
817 | 812 | [ Dave Walker ] | ||
818 | 813 | * debian/control: | ||
819 | 814 | - Changed depends from psycopg2 to python-psycopg2 and dropped versioning. | ||
820 | 815 | - LP: #937982 | ||
821 | 816 | |||
822 | 817 | [ Andres Rodriguez ] | ||
823 | 818 | * debian/maas.install: Install maas-import-isos and related files. | ||
824 | 819 | * Integrate squid3 as proxy solution: | ||
825 | 820 | - debian/extras/squid.conf: Added | ||
826 | 821 | - debian/control: Depend on squid3. | ||
827 | 822 | - debian/maas.{postinst,postrm}: Handle installation/removal of custom | ||
828 | 823 | squid config file. | ||
829 | 824 | * Split into different binary packages (maas,python-django-maas). | ||
830 | 825 | - debian/maas.postinst: Handle the apache2 configuration. | ||
831 | 826 | |||
832 | 827 | -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 07 Mar 2012 12:46:17 -0500 | ||
833 | 828 | |||
834 | 829 | maas (0.1+bzr171+dfsg-0ubuntu1) precise; urgency=low | ||
835 | 830 | |||
836 | 831 | * New upstream snapshot, post 0.1 release. | ||
837 | 832 | * debian/control: | ||
838 | 833 | - Drop depends on rabbitmq-server, no longer required. | ||
839 | 834 | * debian/watch: Introduced watch file. | ||
840 | 835 | |||
841 | 836 | -- Dave Walker (Daviey) <DaveWalker@ubuntu.com> Thu, 23 Feb 2012 13:08:12 +0000 | ||
842 | 837 | |||
843 | 838 | maas (0.1~bzr146+dfsg-0ubuntu1) precise; urgency=low | ||
844 | 839 | |||
845 | 840 | * Initial release | ||
846 | 841 | |||
847 | 842 | -- Julian Edwards <julian.edwards@canonical.com> Thu, 16 Jan 2012 15:29:07 +0000 | ||
848 | 0 | 843 | ||
849 | === added file 'debian/compat' | |||
850 | --- debian/compat 1970-01-01 00:00:00 +0000 | |||
851 | +++ debian/compat 2013-10-11 14:15:22 +0000 | |||
852 | @@ -0,0 +1,1 @@ | |||
853 | 1 | 7 | ||
854 | 0 | 2 | ||
855 | === added file 'debian/control' | |||
856 | --- debian/control 1970-01-01 00:00:00 +0000 | |||
857 | +++ debian/control 2013-10-11 14:15:22 +0000 | |||
858 | @@ -0,0 +1,283 @@ | |||
859 | 1 | Source: maas | ||
860 | 2 | Section: net | ||
861 | 3 | Priority: optional | ||
862 | 4 | Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> | ||
863 | 5 | Build-Depends: debhelper (>= 8.1.0~), | ||
864 | 6 | dh-apport, | ||
865 | 7 | po-debconf, | ||
866 | 8 | python (>= 2.7), | ||
867 | 9 | python-distribute, | ||
868 | 10 | python-django | ||
869 | 11 | Standards-Version: 3.9.4 | ||
870 | 12 | X-Python-Version: >= 2.7 | ||
871 | 13 | Homepage: https://launchpad.net/maas | ||
872 | 14 | |||
873 | 15 | Package: maas | ||
874 | 16 | Architecture: all | ||
875 | 17 | Depends: ${misc:Depends}, maas-cluster-controller, maas-region-controller, python-django-maas | ||
876 | 18 | Description: Ubuntu MAAS Server | ||
877 | 19 | Ubuntu MAAS Server is the successor to Orchestra. It offers a | ||
878 | 20 | nice UI to provision your Ubuntu servers. Each physical server | ||
879 | 21 | (“node”) will be commissioned automatically on first boot. | ||
880 | 22 | During the commissioning process administrators are able to | ||
881 | 23 | configure hardware settings manually before an automated smoke | ||
882 | 24 | test and burn-in test are done. Once commissioned, a node can | ||
883 | 25 | be deployed on demand by name, or allocated to a queue for | ||
884 | 26 | dynamic allocation to services being deployed on this MAAS. | ||
885 | 27 | . | ||
886 | 28 | This package is a metapackage which installs a complete MAAS | ||
887 | 29 | service on a single machine. | ||
888 | 30 | |||
889 | 31 | Package: maas-common | ||
890 | 32 | Architecture: all | ||
891 | 33 | Depends: ${misc:Depends}, ${python:Depends} | ||
892 | 34 | Breaks: maas ( <= 0.1+bzr1048+dfsg-0ubuntu1 ) | ||
893 | 35 | Replaces: maas ( <= 0.1+bzr1048+dfsg-0ubuntu1 ) | ||
894 | 36 | Description: Ubuntu MAAS Server | ||
895 | 37 | Ubuntu MAAS Server is the successor to Orchestra. It offers a | ||
896 | 38 | nice UI to provision your Ubuntu servers. Each physical server | ||
897 | 39 | (“node”) will be commissioned automatically on first boot. | ||
898 | 40 | During the commissioning process administrators are able to | ||
899 | 41 | configure hardware settings manually before an automated smoke | ||
900 | 42 | test and burn-in test are done. Once commissioned, a node can | ||
901 | 43 | be deployed on demand by name, or allocated to a queue for | ||
902 | 44 | dynamic allocation to services being deployed on this MAAS. | ||
903 | 45 | . | ||
904 | 46 | This package contains common files | ||
905 | 47 | |||
906 | 48 | Package: maas-region-controller | ||
907 | 49 | Architecture: all | ||
908 | 50 | Depends: apache2, | ||
909 | 51 | avahi-daemon, | ||
910 | 52 | bind9utils, | ||
911 | 53 | dbconfig-common, | ||
912 | 54 | iproute, | ||
913 | 55 | libapache2-mod-wsgi, | ||
914 | 56 | libjs-raphael, | ||
915 | 57 | libjs-yui3-full, | ||
916 | 58 | libjs-yui3-min, | ||
917 | 59 | maas-common (= ${binary:Version}), | ||
918 | 60 | postgresql-9.1, | ||
919 | 61 | pwgen, | ||
920 | 62 | python-django (>= 1.4), | ||
921 | 63 | python-django-maas (= ${binary:Version}), | ||
922 | 64 | python-django-piston, | ||
923 | 65 | python-django-south, | ||
924 | 66 | python-maas-provisioningserver (= ${binary:Version}), | ||
925 | 67 | python-djorm-ext-pgarray, | ||
926 | 68 | rabbitmq-server, | ||
927 | 69 | rsyslog, | ||
928 | 70 | squid-deb-proxy, | ||
929 | 71 | ${misc:Depends}, | ||
930 | 72 | ${python:Depends} | ||
931 | 73 | Recommends: openssh-server, maas-dns (= ${binary:Version}) | ||
932 | 74 | Breaks: maas ( <= 0.1+bzr1048+dfsg-0ubuntu1 ) | ||
933 | 75 | Replaces: maas ( <= 0.1+bzr1048+dfsg-0ubuntu1 ) | ||
934 | 76 | Description: Ubuntu MAAS Server | ||
935 | 77 | Ubuntu MAAS Server is the successor to Orchestra. It offers a | ||
936 | 78 | nice UI to provision your Ubuntu servers. Each physical server | ||
937 | 79 | (“node”) will be commissioned automatically on first boot. | ||
938 | 80 | During the commissioning process administrators are able to | ||
939 | 81 | configure hardware settings manually before an automated smoke | ||
940 | 82 | test and burn-in test are done. Once commissioned, a node can | ||
941 | 83 | be deployed on demand by name, or allocated to a queue for | ||
942 | 84 | dynamic allocation to services being deployed on this MAAS. | ||
943 | 85 | . | ||
944 | 86 | This package installs the region controller services: the web | ||
945 | 87 | UI and the database. | ||
946 | 88 | |||
947 | 89 | Package: python-maas-provisioningserver | ||
948 | 90 | Section: python | ||
949 | 91 | Architecture: all | ||
950 | 92 | Depends: python-celery, | ||
951 | 93 | python-distro-info, | ||
952 | 94 | python-formencode, | ||
953 | 95 | python-lockfile, | ||
954 | 96 | python-lxml, | ||
955 | 97 | python-maas-client, | ||
956 | 98 | python-netifaces, | ||
957 | 99 | python-oops, | ||
958 | 100 | python-oops-amqp, | ||
959 | 101 | python-oops-datedir-repo, | ||
960 | 102 | python-oops-twisted, | ||
961 | 103 | python-pyparsing, | ||
962 | 104 | python-simplestreams, | ||
963 | 105 | python-tempita, | ||
964 | 106 | python-twisted-core, | ||
965 | 107 | python-twisted-web, | ||
966 | 108 | python-txamqp, | ||
967 | 109 | python-txtftp, | ||
968 | 110 | python-yaml, | ||
969 | 111 | python-zope.interface, | ||
970 | 112 | ${misc:Depends}, | ||
971 | 113 | ${python:Depends} | ||
972 | 114 | Breaks: python-django-maas ( <= 0.1+bzr1048+dfsg-0ubuntu1 ), maas-cluster-controller (<= 0.1+bzr1243+dfsg-0ubuntu3) | ||
973 | 115 | Replaces: python-django-maas ( <= 0.1+bzr1048+dfsg-0ubuntu1 ), maas-cluster-controller (<= 0.1+bzr1243+dfsg-0ubuntu3) | ||
974 | 116 | Description: Ubuntu MAAS Server | ||
975 | 117 | Ubuntu MAAS Server is the successor to Orchestra. It offers a | ||
976 | 118 | nice UI to provision your Ubuntu servers. Each physical server | ||
977 | 119 | (“node”) will be commissioned automatically on first boot. | ||
978 | 120 | During the commissioning process administrators are able to | ||
979 | 121 | configure hardware settings manually before an automated smoke | ||
980 | 122 | test and burn-in test are done. Once commissioned, a node can | ||
981 | 123 | be deployed on demand by name, or allocated to a queue for | ||
982 | 124 | dynamic allocation to services being deployed on this MAAS. | ||
983 | 125 | . | ||
984 | 126 | This package contains the provisioning server libraries. | ||
985 | 127 | |||
986 | 128 | Package: maas-cli | ||
987 | 129 | Architecture: all | ||
988 | 130 | Depends: python-bzrlib, | ||
989 | 131 | python-httplib2, | ||
990 | 132 | python-maas-client (= ${binary:Version}), | ||
991 | 133 | python-oauth, | ||
992 | 134 | ${misc:Depends}, | ||
993 | 135 | ${python:Depends} | ||
994 | 136 | Description: Ubuntu MAAS Client Tool | ||
995 | 137 | Ubuntu MAAS Server is the successor to Orchestra. It offers a | ||
996 | 138 | nice UI to provision your Ubuntu servers. Each physical server | ||
997 | 139 | (“node”) will be commissioned automatically on first boot. | ||
998 | 140 | During the commissioning process administrators are able to | ||
999 | 141 | configure hardware settings manually before an automated smoke | ||
1000 | 142 | test and burn-in test are done. Once commissioned, a node can | ||
1001 | 143 | be deployed on demand by name, or allocated to a queue for | ||
1002 | 144 | dynamic allocation to services being deployed on this MAAS. | ||
1003 | 145 | . | ||
1004 | 146 | This package contains the client command line tool. | ||
1005 | 147 | |||
1006 | 148 | Package: python-maas-client | ||
1007 | 149 | Section: python | ||
1008 | 150 | Architecture: all | ||
1009 | 151 | Depends: python-oauth, ${misc:Depends}, ${python:Depends} | ||
1010 | 152 | Breaks: maas (<= 0.1+bzr971+dfsg-0ubuntu2 ) | ||
1011 | 153 | Replaces: maas (<= 0.1+bzr971+dfsg-0ubuntu2 ) | ||
1012 | 154 | Description: Ubuntu MAAS API Client - (python files) | ||
1013 | 155 | Ubuntu MAAS Server is the successor to Orchestra. It offers a | ||
1014 | 156 | nice UI to provision your Ubuntu servers. Each physical server | ||
1015 | 157 | (“node”) will be commissioned automatically on first boot. | ||
1016 | 158 | During the commissioning process administrators are able to | ||
1017 | 159 | configure hardware settings manually before an automated smoke | ||
1018 | 160 | test and burn-in test are done. Once commissioned, a node can | ||
1019 | 161 | be deployed on demand by name, or allocated to a queue for | ||
1020 | 162 | dynamic allocation to services being deployed on this MAAS. | ||
1021 | 163 | . | ||
1022 | 164 | This package contains the client API Python modules. | ||
1023 | 165 | |||
1024 | 166 | Package: maas-cluster-controller | ||
1025 | 167 | Architecture: all | ||
1026 | 168 | Depends: apache2, | ||
1027 | 169 | bind9utils, | ||
1028 | 170 | distro-info, | ||
1029 | 171 | freeipmi-tools, | ||
1030 | 172 | maas-cli (=${binary:Version}), | ||
1031 | 173 | maas-common (=${binary:Version}), | ||
1032 | 174 | maas-dhcp (=${binary:Version}), | ||
1033 | 175 | python-celery, | ||
1034 | 176 | python-httplib2, | ||
1035 | 177 | python-lockfile, | ||
1036 | 178 | python-maas-provisioningserver (=${binary:Version}), | ||
1037 | 179 | python-netaddr, | ||
1038 | 180 | python-oauth, | ||
1039 | 181 | python-tempita, | ||
1040 | 182 | python-twisted, | ||
1041 | 183 | python-zope.interface, | ||
1042 | 184 | rsyslog, | ||
1043 | 185 | syslinux-common, | ||
1044 | 186 | tgt, | ||
1045 | 187 | ubuntu-cloudimage-keyring, | ||
1046 | 188 | uuid-runtime, | ||
1047 | 189 | wget, | ||
1048 | 190 | ${misc:Depends}, | ||
1049 | 191 | ${python:Depends} | ||
1050 | 192 | Conflicts: tftpd-hpa | ||
1051 | 193 | Breaks: maas ( <= 0.1+bzr1048+dfsg-0ubuntu1 ), maas-region-controller ( <= 0.1+bzr1314+dfsg-0ubuntu1 ) | ||
1052 | 194 | Replaces: maas ( <= 0.1+bzr1048+dfsg-0ubuntu1 ), maas-region-controller ( <= 0.1+bzr1314+dfsg-0ubuntu1 ) | ||
1053 | 195 | Description: Ubuntu MAAS Cluster Controller | ||
1054 | 196 | Ubuntu MAAS Server is the successor to Orchestra. It offers a | ||
1055 | 197 | nice UI to provision your Ubuntu servers. Each physical server | ||
1056 | 198 | (“node”) will be commissioned automatically on first boot. | ||
1057 | 199 | During the commissioning process administrators are able to | ||
1058 | 200 | configure hardware settings manually before an automated smoke | ||
1059 | 201 | test and burn-in test are done. Once commissioned, a node can | ||
1060 | 202 | be deployed on demand by name, or allocated to a queue for | ||
1061 | 203 | dynamic allocation to services being deployed on this MAAS. | ||
1062 | 204 | . | ||
1063 | 205 | This package contains the cluster controller, which is | ||
1064 | 206 | responsible for controlling remote DHCP/TFTP instances on their | ||
1065 | 207 | own subnets. | ||
1066 | 208 | |||
1067 | 209 | Package: python-django-maas | ||
1068 | 210 | Section: python | ||
1069 | 211 | Architecture: all | ||
1070 | 212 | Depends: python-avahi, | ||
1071 | 213 | python-celery, | ||
1072 | 214 | python-convoy, | ||
1073 | 215 | python-curtin, | ||
1074 | 216 | python-dbus, | ||
1075 | 217 | python-lockfile, | ||
1076 | 218 | python-lxml, | ||
1077 | 219 | python-maas-client (= ${binary:Version}), | ||
1078 | 220 | python-netaddr, | ||
1079 | 221 | python-oops, | ||
1080 | 222 | python-oops-amqp, | ||
1081 | 223 | python-oops-datedir-repo, | ||
1082 | 224 | python-oops-twisted, | ||
1083 | 225 | python-oops-wsgi, | ||
1084 | 226 | python-psycopg2, | ||
1085 | 227 | python-sphinx, | ||
1086 | 228 | python-tempita, | ||
1087 | 229 | python-twisted, | ||
1088 | 230 | python-txamqp, | ||
1089 | 231 | python-txlongpoll, | ||
1090 | 232 | python-zope.interface, | ||
1091 | 233 | ${misc:Depends}, | ||
1092 | 234 | ${python:Depends} | ||
1093 | 235 | Description: Ubuntu MAAS Server - (django files) | ||
1094 | 236 | Ubuntu MAAS Server is the successor to Orchestra. It offers a | ||
1095 | 237 | nice UI to provision your Ubuntu servers. Each physical server | ||
1096 | 238 | (“node”) will be commissioned automatically on first boot. | ||
1097 | 239 | During the commissioning process administrators are able to | ||
1098 | 240 | configure hardware settings manually before an automated smoke | ||
1099 | 241 | test and burn-in test are done. Once commissioned, a node can | ||
1100 | 242 | be deployed on demand by name, or allocated to a queue for | ||
1101 | 243 | dynamic allocation to services being deployed on this MAAS. | ||
1102 | 244 | . | ||
1103 | 245 | This package contains the Django files. | ||
1104 | 246 | |||
1105 | 247 | Package: maas-dhcp | ||
1106 | 248 | Architecture: all | ||
1107 | 249 | Depends: isc-dhcp-server (>= 4.2.4), ${misc:Depends} | ||
1108 | 250 | Breaks: maas-dhcp (<= 0.1+bzr777+dfsg-0ubuntu1) | ||
1109 | 251 | Replaces: maas-dhcp (<= 0.1+bzr777+dfsg-0ubuntu1) | ||
1110 | 252 | Description: Ubuntu MAAS Server - DHCP Configuration (meta-package) | ||
1111 | 253 | Ubuntu MAAS Server is the successor to Orchestra. It offers a | ||
1112 | 254 | nice UI to provision your Ubuntu servers. Each physical server | ||
1113 | 255 | (“node”) will be commissioned automatically on first boot. | ||
1114 | 256 | During the commissioning process administrators are able to | ||
1115 | 257 | configure hardware settings manually before an automated smoke | ||
1116 | 258 | test and burn-in test are done. Once commissioned, a node can | ||
1117 | 259 | be deployed on demand by name, or allocated to a queue for | ||
1118 | 260 | dynamic allocation to services being deployed on this MAAS. | ||
1119 | 261 | . | ||
1120 | 262 | This package configures a DHCP that can be used with MAAS. | ||
1121 | 263 | |||
1122 | 264 | Package: maas-dns | ||
1123 | 265 | Architecture: all | ||
1124 | 266 | Depends: bind9, | ||
1125 | 267 | maas-region-controller (= ${binary:Version}), | ||
1126 | 268 | maas-dhcp (= ${binary:Version}), | ||
1127 | 269 | ${misc:Depends} | ||
1128 | 270 | Conflicts: dnsmasq | ||
1129 | 271 | Breaks: maas-dhcp (<= 0.1+bzr777+dfsg-0ubuntu1) | ||
1130 | 272 | Replaces: maas-dhcp (<= 0.1+bzr777+dfsg-0ubuntu1) | ||
1131 | 273 | Description: Ubuntu MAAS Server - DNS configuration (metapackage) | ||
1132 | 274 | Ubuntu MAAS Server is the successor to Orchestra. It offers a | ||
1133 | 275 | nice UI to provision your Ubuntu servers. Each physical server | ||
1134 | 276 | (“node”) will be commissioned automatically on first boot. | ||
1135 | 277 | During the commissioning process administrators are able to | ||
1136 | 278 | configure hardware settings manually before an automated smoke | ||
1137 | 279 | test and burn-in test are done. Once commissioned, a node can | ||
1138 | 280 | be deployed on demand by name, or allocated to a queue for | ||
1139 | 281 | dynamic allocation to services being deployed on this MAAS. | ||
1140 | 282 | . | ||
1141 | 283 | This package configures a DNS that can be used with MAAS. | ||
1142 | 0 | 284 | ||
1143 | === added file 'debian/copyright' | |||
1144 | --- debian/copyright 1970-01-01 00:00:00 +0000 | |||
1145 | +++ debian/copyright 2013-10-11 14:15:22 +0000 | |||
1146 | @@ -0,0 +1,25 @@ | |||
1147 | 1 | Format: http://dep.debian.net/deps/dep5 | ||
1148 | 2 | Upstream-Name: maas | ||
1149 | 3 | Source: https://launchpad.net/maas | ||
1150 | 4 | |||
1151 | 5 | Files: * | ||
1152 | 6 | Copyright: 2012 Canonical Ltd. | ||
1153 | 7 | License: AGPL-3.0+ | ||
1154 | 8 | |||
1155 | 9 | Files: debian/* | ||
1156 | 10 | Copyright: 2012 Canonical Ltd. | ||
1157 | 11 | License: AGPL-3.0+ | ||
1158 | 12 | |||
1159 | 13 | License: AGPL-3.0+ | ||
1160 | 14 | This program is free software: you can redistribute it and/or modify | ||
1161 | 15 | it under the terms of the GNU Affero General Public License as | ||
1162 | 16 | published by the Free Software Foundation, either version 3 of the | ||
1163 | 17 | License, or (at your option) any later version. | ||
1164 | 18 | . | ||
1165 | 19 | This program is distributed in the hope that it will be useful, | ||
1166 | 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
1167 | 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
1168 | 22 | GNU Affero General Public License for more details. | ||
1169 | 23 | . | ||
1170 | 24 | You should have received a copy of the GNU Affero General Public License | ||
1171 | 25 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
1172 | 0 | 26 | ||
1173 | === added directory 'debian/extras' | |||
1174 | === added file 'debian/extras/20-maas.conf' | |||
1175 | --- debian/extras/20-maas.conf 1970-01-01 00:00:00 +0000 | |||
1176 | +++ debian/extras/20-maas.conf 2013-10-11 14:15:22 +0000 | |||
1177 | @@ -0,0 +1,32 @@ | |||
1178 | 1 | # Enable the udp server for installation logging | ||
1179 | 2 | $ModLoad imudp | ||
1180 | 3 | $UDPServerRun 514 | ||
1181 | 4 | $ModLoad imtcp # load TCP listener | ||
1182 | 5 | |||
1183 | 6 | # The following section (certificates) was copied from orchestra, but is | ||
1184 | 7 | # not used here. In the future, if we needed secure ssl, then re-enable. | ||
1185 | 8 | # These files were created in the orchestra-logging-server's postinst | ||
1186 | 9 | # | ||
1187 | 10 | ## make gtls driver the default | ||
1188 | 11 | #$DefaultNetstreamDriver gtls | ||
1189 | 12 | # | ||
1190 | 13 | ## certificate files | ||
1191 | 14 | #$DefaultNetstreamDriverCAFile /var/lib/maas/ssl-cert-orchestra-ca.pem | ||
1192 | 15 | #$DefaultNetstreamDriverCertFile /var/lib/maas/.ssl/ssl-cert-orchestra.pem | ||
1193 | 16 | #$DefaultNetstreamDriverKeyFile /var/lib/maas/.ssl/ssl-cert-orchestra-pk.pem | ||
1194 | 17 | # | ||
1195 | 18 | #$InputTCPServerStreamDriverMode 1 # run driver in TLS-only mode | ||
1196 | 19 | #$InputTCPServerStreamDriverAuthMode anon # client is NOT authenticated | ||
1197 | 20 | #$InputTCPServerRun 10514 # start up listener at port 10514 | ||
1198 | 21 | |||
1199 | 22 | # Reduce message repetition | ||
1200 | 23 | $RepeatedMsgReduction on | ||
1201 | 24 | ##$RepeatedMsgContainsOrigionalMsg on | ||
1202 | 25 | |||
1203 | 26 | # Message templating | ||
1204 | 27 | $template MAASboot,"/var/log/maas/rsyslog/%HOSTNAME%/%$YEAR%/%$MONTH%/%$DAY%/messages" | ||
1205 | 28 | |||
1206 | 29 | :fromhost-ip, !isequal, "127.0.0.1" ?MAASboot | ||
1207 | 30 | # Stop messages that came from anywhere else from going into other places | ||
1208 | 31 | # like /var/log/syslog. If you want to see these messages there, then comment below | ||
1209 | 32 | & ~ | ||
1210 | 0 | 33 | ||
1211 | === added file 'debian/extras/99-maas' | |||
1212 | --- debian/extras/99-maas 1970-01-01 00:00:00 +0000 | |||
1213 | +++ debian/extras/99-maas 2013-10-11 14:15:22 +0000 | |||
1214 | @@ -0,0 +1,4 @@ | |||
1215 | 1 | # /etc/squid-deb-proxy/mirror-dstdomain.acl.d/99-maas | ||
1216 | 2 | # | ||
1217 | 3 | # Enable launchpad personal package archives for squid-deb-proxy | ||
1218 | 4 | ppa.launchpad.net | ||
1219 | 0 | 5 | ||
1220 | === added file 'debian/extras/99-maas-sudoers' | |||
1221 | --- debian/extras/99-maas-sudoers 1970-01-01 00:00:00 +0000 | |||
1222 | +++ debian/extras/99-maas-sudoers 2013-10-11 14:15:22 +0000 | |||
1223 | @@ -0,0 +1,3 @@ | |||
1224 | 1 | maas ALL= NOPASSWD: /usr/sbin/service maas-dhcp-server restart | ||
1225 | 2 | maas ALL= NOPASSWD: /usr/sbin/maas-provision | ||
1226 | 3 | maas ALL= NOPASSWD: SETENV: /usr/sbin/maas-import-pxe-files | ||
1227 | 0 | 4 | ||
1228 | === added file 'debian/extras/isc-dhcp-server.override' | |||
1229 | --- debian/extras/isc-dhcp-server.override 1970-01-01 00:00:00 +0000 | |||
1230 | +++ debian/extras/isc-dhcp-server.override 2013-10-11 14:15:22 +0000 | |||
1231 | @@ -0,0 +1,1 @@ | |||
1232 | 1 | manual | ||
1233 | 0 | 2 | ||
1234 | === added file 'debian/extras/maas' | |||
1235 | --- debian/extras/maas 1970-01-01 00:00:00 +0000 | |||
1236 | +++ debian/extras/maas 2013-10-11 14:15:22 +0000 | |||
1237 | @@ -0,0 +1,8 @@ | |||
1238 | 1 | #!/bin/sh | ||
1239 | 2 | if [ "$(id -u)" != "0" ]; then | ||
1240 | 3 | echo "This utility may only be run as root." 1>&2 | ||
1241 | 4 | exit 1 | ||
1242 | 5 | fi | ||
1243 | 6 | export PYTHONPATH="/usr/share/maas${PYTHONPATH:+:}${PYTHONPATH}" | ||
1244 | 7 | export DJANGO_SETTINGS_MODULE="maas.settings" | ||
1245 | 8 | exec /usr/bin/django-admin "$@" | ||
1246 | 0 | 9 | ||
1247 | === added file 'debian/extras/maas-cli' | |||
1248 | --- debian/extras/maas-cli 1970-01-01 00:00:00 +0000 | |||
1249 | +++ debian/extras/maas-cli 2013-10-11 14:15:22 +0000 | |||
1250 | @@ -0,0 +1,2 @@ | |||
1251 | 1 | #!/bin/sh | ||
1252 | 2 | exec python -m maascli "$@" | ||
1253 | 0 | 3 | ||
1254 | === added file 'debian/extras/maas-provision' | |||
1255 | --- debian/extras/maas-provision 1970-01-01 00:00:00 +0000 | |||
1256 | +++ debian/extras/maas-provision 2013-10-11 14:15:22 +0000 | |||
1257 | @@ -0,0 +1,7 @@ | |||
1258 | 1 | #!/bin/sh | ||
1259 | 2 | if [ "$(id -u)" != "0" ]; then | ||
1260 | 3 | echo "This utility may only be run as root." 1>&2 | ||
1261 | 4 | exit 1 | ||
1262 | 5 | fi | ||
1263 | 6 | export PYTHONPATH="/usr/share/maas${PYTHONPATH:+:}${PYTHONPATH}" | ||
1264 | 7 | exec /usr/bin/python -m provisioningserver "$@" | ||
1265 | 0 | 8 | ||
1266 | === added file 'debian/extras/maas-region-celeryd' | |||
1267 | --- debian/extras/maas-region-celeryd 1970-01-01 00:00:00 +0000 | |||
1268 | +++ debian/extras/maas-region-celeryd 2013-10-11 14:15:22 +0000 | |||
1269 | @@ -0,0 +1,50 @@ | |||
1270 | 1 | #!/usr/bin/python | ||
1271 | 2 | import os | ||
1272 | 3 | from grp import getgrnam | ||
1273 | 4 | from pwd import getpwnam | ||
1274 | 5 | |||
1275 | 6 | def start_celery(args): | ||
1276 | 7 | uid = getpwnam(args.user).pw_uid | ||
1277 | 8 | gid = getgrnam(args.group).gr_gid | ||
1278 | 9 | |||
1279 | 10 | env = dict(os.environ, PYTHONPATH="/usr/share/maas") | ||
1280 | 11 | |||
1281 | 12 | command = [ | ||
1282 | 13 | 'celeryd', | ||
1283 | 14 | '--logfile=%s' % args.logfile, | ||
1284 | 15 | '--schedule=%s' % args.schedule, | ||
1285 | 16 | '--loglevel=INFO', | ||
1286 | 17 | '--beat', | ||
1287 | 18 | '--queues=celery,master', | ||
1288 | 19 | ] | ||
1289 | 20 | |||
1290 | 21 | # Change gid first, just in case changing the uid might deprive | ||
1291 | 22 | # us of the privileges required to setgid. | ||
1292 | 23 | os.setgid(gid) | ||
1293 | 24 | os.setuid(uid) | ||
1294 | 25 | |||
1295 | 26 | os.execvpe(command[0], command, env=env) | ||
1296 | 27 | |||
1297 | 28 | def main(): | ||
1298 | 29 | import argparse | ||
1299 | 30 | parser = argparse.ArgumentParser( | ||
1300 | 31 | description='MAAS celery daemon config options') | ||
1301 | 32 | parser.add_argument( | ||
1302 | 33 | '--user', '-u', metavar='USER', default='maas', | ||
1303 | 34 | help="System user identity that should run the cluster controller.") | ||
1304 | 35 | parser.add_argument( | ||
1305 | 36 | '--group', '-g', metavar='GROUP', default='maas', | ||
1306 | 37 | help="System group that should run the cluster controller.") | ||
1307 | 38 | parser.add_argument( | ||
1308 | 39 | '--logfile', '-l', metavar='LOGFILE', default='/var/log/maas/celery-region.log', | ||
1309 | 40 | help="Location of the logfile.") | ||
1310 | 41 | parser.add_argument( | ||
1311 | 42 | '--schedule', '-s', metavar='SCHEDULE', default='/var/lib/maas/celerybeat-region-schedule', | ||
1312 | 43 | help="Location of the beat schedule file.") | ||
1313 | 44 | |||
1314 | 45 | args = args = parser.parse_args() | ||
1315 | 46 | |||
1316 | 47 | start_celery(args) | ||
1317 | 48 | |||
1318 | 49 | if __name__ == '__main__': | ||
1319 | 50 | main() | ||
1320 | 0 | 51 | ||
1321 | === added file 'debian/extras/maas_remote_syslog_compress' | |||
1322 | --- debian/extras/maas_remote_syslog_compress 1970-01-01 00:00:00 +0000 | |||
1323 | +++ debian/extras/maas_remote_syslog_compress 2013-10-11 14:15:22 +0000 | |||
1324 | @@ -0,0 +1,2 @@ | |||
1325 | 1 | # Compress log files not changed in more than 48 hours: | ||
1326 | 2 | 30 4 * * * root find /var/log/maas/rsyslog -type f -mtime +2 -exec bzip2 '{}' \; | ||
1327 | 0 | 3 | ||
1328 | === added file 'debian/maas-cli.install' | |||
1329 | --- debian/maas-cli.install 1970-01-01 00:00:00 +0000 | |||
1330 | +++ debian/maas-cli.install 2013-10-11 14:15:22 +0000 | |||
1331 | @@ -0,0 +1,2 @@ | |||
1332 | 1 | debian/extras/maas-cli usr/bin | ||
1333 | 2 | debian/tmp/usr/lib/python*/dist-packages/maascli | ||
1334 | 0 | 3 | ||
1335 | === added file 'debian/maas-cli.lintian-overrides' | |||
1336 | --- debian/maas-cli.lintian-overrides 1970-01-01 00:00:00 +0000 | |||
1337 | +++ debian/maas-cli.lintian-overrides 2013-10-11 14:15:22 +0000 | |||
1338 | @@ -0,0 +1,1 @@ | |||
1339 | 1 | maas-cli: binary-without-manpage usr/bin/maas-cli | ||
1340 | 0 | 2 | ||
1341 | === added file 'debian/maas-cluster-controller.config' | |||
1342 | --- debian/maas-cluster-controller.config 1970-01-01 00:00:00 +0000 | |||
1343 | +++ debian/maas-cluster-controller.config 2013-10-11 14:15:22 +0000 | |||
1344 | @@ -0,0 +1,36 @@ | |||
1345 | 1 | #!/bin/sh | ||
1346 | 2 | |||
1347 | 3 | set -e | ||
1348 | 4 | |||
1349 | 5 | . /usr/share/debconf/confmodule | ||
1350 | 6 | db_version 2.0 | ||
1351 | 7 | |||
1352 | 8 | # Only ask for new installations and reconfiguring. | ||
1353 | 9 | # XXX Fix to not ask when installing from the CD. | ||
1354 | 10 | if ([ "$1" = "configure" ] && [ -z "$2" ]); then | ||
1355 | 11 | |||
1356 | 12 | db_get maas-cluster-controller/maas-url || true | ||
1357 | 13 | if [ -z "$RET" ]; then | ||
1358 | 14 | # Attempt to pre-populate if installing on the region controller. | ||
1359 | 15 | if [ -e /etc/maas/maas_local_settings.py ]; then | ||
1360 | 16 | url=$(awk '$1 == "DEFAULT_MAAS_URL" { split($0,array,"\"")} END{print array[2] }' /etc/maas/maas_local_settings.py) | ||
1361 | 17 | # If the URL doesn't end in /MAAS then add it. This helps upgrades from | ||
1362 | 18 | # precise for which the URL didn't contain /MAAS, which is now required | ||
1363 | 19 | if ! echo $url | grep -qs "/MAAS$"; then | ||
1364 | 20 | url="${url}/MAAS" | ||
1365 | 21 | fi | ||
1366 | 22 | db_set maas-cluster-controller/maas-url "$url" | ||
1367 | 23 | else | ||
1368 | 24 | # Will only get here if dbconf value not already set, or | ||
1369 | 25 | # /etc/maas/maas_local_settings.py doesn't exist. | ||
1370 | 26 | db_input medium maas-cluster-controller/maas-url || true | ||
1371 | 27 | db_go | ||
1372 | 28 | fi | ||
1373 | 29 | fi | ||
1374 | 30 | fi | ||
1375 | 31 | |||
1376 | 32 | if [ "$1" = "reconfigure" ]; then | ||
1377 | 33 | db_input high maas-cluster-controller/maas-url || true | ||
1378 | 34 | db_go | ||
1379 | 35 | fi | ||
1380 | 36 | #DEBHELPER# | ||
1381 | 0 | 37 | ||
1382 | === added file 'debian/maas-cluster-controller.dirs' | |||
1383 | --- debian/maas-cluster-controller.dirs 1970-01-01 00:00:00 +0000 | |||
1384 | +++ debian/maas-cluster-controller.dirs 2013-10-11 14:15:22 +0000 | |||
1385 | @@ -0,0 +1,1 @@ | |||
1386 | 1 | etc/maas | ||
1387 | 0 | 2 | ||
1388 | === added file 'debian/maas-cluster-controller.install' | |||
1389 | --- debian/maas-cluster-controller.install 1970-01-01 00:00:00 +0000 | |||
1390 | +++ debian/maas-cluster-controller.install 2013-10-11 14:15:22 +0000 | |||
1391 | @@ -0,0 +1,32 @@ | |||
1392 | 1 | # Install twisted plugins | ||
1393 | 2 | twisted/plugins/maasps.py usr/share/pyshared/twisted/plugins | ||
1394 | 3 | |||
1395 | 4 | # Install PSERV config file | ||
1396 | 5 | debian/tmp/etc/maas/pserv.yaml | ||
1397 | 6 | |||
1398 | 7 | # Install cluster config file | ||
1399 | 8 | debian/tmp/etc/maas/maas_cluster.conf | ||
1400 | 9 | |||
1401 | 10 | # Install celery config file | ||
1402 | 11 | debian/tmp/usr/share/maas/celeryconfig_cluster.py | ||
1403 | 12 | |||
1404 | 13 | # Install local celery cluster config file | ||
1405 | 14 | debian/tmp/etc/maas/maas_local_celeryconfig_cluster.py | ||
1406 | 15 | |||
1407 | 16 | # Install templates | ||
1408 | 17 | debian/tmp/etc/maas/templates/dhcp | ||
1409 | 18 | debian/tmp/etc/maas/templates/power | ||
1410 | 19 | debian/tmp/etc/maas/templates/pxe | ||
1411 | 20 | |||
1412 | 21 | # Install maas-import-pxe-files and related files | ||
1413 | 22 | debian/tmp/usr/sbin/maas-import-pxe-files | ||
1414 | 23 | man/maas-import-pxe-files.8 usr/share/man/man8 | ||
1415 | 24 | debian/tmp/etc/maas/import_ephemerals | ||
1416 | 25 | debian/tmp/etc/maas/import_pxe_files | ||
1417 | 26 | debian/tmp/usr/sbin/maas-import-ephemerals | ||
1418 | 27 | debian/tmp/usr/bin/uec2roottar | ||
1419 | 28 | |||
1420 | 29 | # Install all other stuff | ||
1421 | 30 | debian/extras/99-maas-sudoers etc/sudoers.d | ||
1422 | 31 | debian/extras/isc-dhcp-server.override etc/init | ||
1423 | 32 | debian/tmp/etc/maas/maas-cluster-http.conf | ||
1424 | 0 | 33 | ||
1425 | === added file 'debian/maas-cluster-controller.links' | |||
1426 | --- debian/maas-cluster-controller.links 1970-01-01 00:00:00 +0000 | |||
1427 | +++ debian/maas-cluster-controller.links 2013-10-11 14:15:22 +0000 | |||
1428 | @@ -0,0 +1,1 @@ | |||
1429 | 1 | etc/maas/maas_local_celeryconfig_cluster.py usr/share/maas/maas_local_celeryconfig_cluster.py | ||
1430 | 0 | 2 | ||
1431 | === added file 'debian/maas-cluster-controller.lintian-overrides' | |||
1432 | --- debian/maas-cluster-controller.lintian-overrides 1970-01-01 00:00:00 +0000 | |||
1433 | +++ debian/maas-cluster-controller.lintian-overrides 2013-10-11 14:15:22 +0000 | |||
1434 | @@ -0,0 +1,2 @@ | |||
1435 | 1 | maas-cluster-controller: binary-without-manpage usr/sbin/maas-import-ephemerals | ||
1436 | 2 | maas-cluster-controller: binary-without-manpage usr/bin/uec2roottar | ||
1437 | 0 | 3 | ||
1438 | === added file 'debian/maas-cluster-controller.logrotate' | |||
1439 | --- debian/maas-cluster-controller.logrotate 1970-01-01 00:00:00 +0000 | |||
1440 | +++ debian/maas-cluster-controller.logrotate 2013-10-11 14:15:22 +0000 | |||
1441 | @@ -0,0 +1,9 @@ | |||
1442 | 1 | /var/log/maas/pserv.log { | ||
1443 | 2 | rotate 5 | ||
1444 | 3 | weekly | ||
1445 | 4 | compress | ||
1446 | 5 | missingok | ||
1447 | 6 | postrotate | ||
1448 | 7 | [ -r /var/run/maas-pserv.pid ] && kill -s USR2 $(cat /var/run/maas-pserv.pid) || true | ||
1449 | 8 | endscript | ||
1450 | 9 | } | ||
1451 | 0 | 10 | ||
1452 | === added file 'debian/maas-cluster-controller.maas-cluster-celery.upstart' | |||
1453 | --- debian/maas-cluster-controller.maas-cluster-celery.upstart 1970-01-01 00:00:00 +0000 | |||
1454 | +++ debian/maas-cluster-controller.maas-cluster-celery.upstart 2013-10-11 14:15:22 +0000 | |||
1455 | @@ -0,0 +1,30 @@ | |||
1456 | 1 | # maas-cluster-controller - provisioning service | ||
1457 | 2 | # | ||
1458 | 3 | # MAAS Cluster Controller Service | ||
1459 | 4 | |||
1460 | 5 | description "MAAS Cluster Controller" | ||
1461 | 6 | author "Julian Edwards <julian.edwards@canonical.com>" | ||
1462 | 7 | |||
1463 | 8 | start on filesystem and net-device-up | ||
1464 | 9 | stop on runlevel [016] | ||
1465 | 10 | |||
1466 | 11 | env CONFIG_FILE=/etc/maas/maas_cluster.conf | ||
1467 | 12 | # Use cluster config. | ||
1468 | 13 | env CELERY_CONFIG_MODULE="celeryconfig_cluster" | ||
1469 | 14 | |||
1470 | 15 | pre-start script | ||
1471 | 16 | if [ ! -f $CONFIG_FILE ]; then | ||
1472 | 17 | echo "$CONFIG_FILE does not exist. Aborting." | ||
1473 | 18 | stop | ||
1474 | 19 | exit 0 | ||
1475 | 20 | fi | ||
1476 | 21 | end script | ||
1477 | 22 | |||
1478 | 23 | script | ||
1479 | 24 | # Prepare settings. | ||
1480 | 25 | . $CONFIG_FILE | ||
1481 | 26 | # Allow the cluster-controller process to read CLUSTER_UUID as set | ||
1482 | 27 | # in that config file. | ||
1483 | 28 | export CLUSTER_UUID | ||
1484 | 29 | exec /usr/sbin/maas-provision start-cluster-controller $MAAS_URL -u maas -g maas | ||
1485 | 30 | end script | ||
1486 | 0 | 31 | ||
1487 | === added file 'debian/maas-cluster-controller.maas-pserv.upstart' | |||
1488 | --- debian/maas-cluster-controller.maas-pserv.upstart 1970-01-01 00:00:00 +0000 | |||
1489 | +++ debian/maas-cluster-controller.maas-pserv.upstart 2013-10-11 14:15:22 +0000 | |||
1490 | @@ -0,0 +1,31 @@ | |||
1491 | 1 | # maas-pserv - provisioning service | ||
1492 | 2 | # | ||
1493 | 3 | # MAAS Provisioning Service | ||
1494 | 4 | |||
1495 | 5 | description "MAAS" | ||
1496 | 6 | author "Andres Rodriguez <andres.rodriguez@canonical.com>" | ||
1497 | 7 | |||
1498 | 8 | start on filesystem and net-device-up | ||
1499 | 9 | stop on runlevel [016] | ||
1500 | 10 | |||
1501 | 11 | respawn | ||
1502 | 12 | |||
1503 | 13 | env CONFIG_FILE=/etc/maas/maas_cluster.conf | ||
1504 | 14 | |||
1505 | 15 | pre-start script | ||
1506 | 16 | if [ ! -f $CONFIG_FILE ]; then | ||
1507 | 17 | echo "$CONFIG_FILE does not exist. Aborting." | ||
1508 | 18 | stop | ||
1509 | 19 | exit 0 | ||
1510 | 20 | fi | ||
1511 | 21 | end script | ||
1512 | 22 | |||
1513 | 23 | script | ||
1514 | 24 | # Prepare settings. | ||
1515 | 25 | . $CONFIG_FILE | ||
1516 | 26 | # Allow the tftpd process to read CLUSTER_UUID as set in that config | ||
1517 | 27 | # file. | ||
1518 | 28 | export CLUSTER_UUID | ||
1519 | 29 | # To add options to your daemon, edit the line below: | ||
1520 | 30 | exec /usr/bin/twistd -n --uid=maas --gid=maas --pidfile=/run/maas-pserv.pid --logfile=/dev/null maas-pserv --config-file=/etc/maas/pserv.yaml | ||
1521 | 31 | end script | ||
1522 | 0 | 32 | ||
1523 | === added file 'debian/maas-cluster-controller.postinst' | |||
1524 | --- debian/maas-cluster-controller.postinst 1970-01-01 00:00:00 +0000 | |||
1525 | +++ debian/maas-cluster-controller.postinst 2013-10-11 14:15:22 +0000 | |||
1526 | @@ -0,0 +1,149 @@ | |||
1527 | 1 | #!/bin/sh | ||
1528 | 2 | |||
1529 | 3 | set -e | ||
1530 | 4 | |||
1531 | 5 | . /usr/share/debconf/confmodule | ||
1532 | 6 | db_version 2.0 | ||
1533 | 7 | |||
1534 | 8 | RELEASE=`lsb_release -rs` || RELEASE="" | ||
1535 | 9 | |||
1536 | 10 | create_log_dir() { | ||
1537 | 11 | # create log dir | ||
1538 | 12 | if [ ! -d /var/lib/maas ]; then | ||
1539 | 13 | mkdir -p /var/lib/maas | ||
1540 | 14 | fi | ||
1541 | 15 | if [ ! -d /var/log/maas/oops ]; then | ||
1542 | 16 | mkdir -p /var/log/maas/oops | ||
1543 | 17 | fi | ||
1544 | 18 | # Give appropriate permissions | ||
1545 | 19 | chown -R maas:maas /var/lib/maas/ | ||
1546 | 20 | chown -R maas:maas /var/log/maas | ||
1547 | 21 | chmod -R 775 /var/log/maas/oops | ||
1548 | 22 | } | ||
1549 | 23 | |||
1550 | 24 | configure_maas_tgt(){ | ||
1551 | 25 | # Set up iSCSI: add maas.conf to tgt conf.d. | ||
1552 | 26 | local tgtcfg="/etc/tgt/targets.conf" | ||
1553 | 27 | [ -d /etc/tgt/conf.d/ ] || | ||
1554 | 28 | echo "Warning! $tgtcfg did not exist" 1>&2; | ||
1555 | 29 | mkdir -p /etc/tgt/conf.d/ /var/lib/maas/ephemeral/ | ||
1556 | 30 | ln -sf /var/lib/maas/ephemeral/tgt.conf /etc/tgt/conf.d/maas.conf | ||
1557 | 31 | } | ||
1558 | 32 | |||
1559 | 33 | extract_cluster_uuid(){ | ||
1560 | 34 | # Extract ClUSTER_UUID setting from config file $1. This will work | ||
1561 | 35 | # both the cluster celery config (which is python) and the cluster | ||
1562 | 36 | # config (which is shell). | ||
1563 | 37 | sed -n -e "s/^CLUSTER_UUID *= *[\"']\([^\"']*\).*/\1/p" "$1" | ||
1564 | 38 | } | ||
1565 | 39 | |||
1566 | 40 | configure_cluster_uuid(){ | ||
1567 | 41 | # The cluster uuid goes into maas_cluster.conf, but we also still | ||
1568 | 42 | # keep a copy in maas_local_celeryconfig_cluster.py (hopefully just | ||
1569 | 43 | # temporarily). If an old uuid is configured, we replicate that to | ||
1570 | 44 | # maas_cluster.conf; otherwise, we want to generate one. | ||
1571 | 45 | local uuid | ||
1572 | 46 | |||
1573 | 47 | |||
1574 | 48 | if [ -n "$(extract_cluster_uuid /etc/maas/maas_cluster.conf)" ]; then | ||
1575 | 49 | # UUID is already set up. Wonderful. | ||
1576 | 50 | return | ||
1577 | 51 | fi | ||
1578 | 52 | |||
1579 | 53 | # Look for a UUID stored in the old location. | ||
1580 | 54 | uuid="$(extract_cluster_uuid /etc/maas/maas_local_celeryconfig_cluster.py)" | ||
1581 | 55 | |||
1582 | 56 | if [ -z "$uuid" ]; then | ||
1583 | 57 | # No UUID at all yet. Generate one, and insert it into its | ||
1584 | 58 | # placeholder in the old config location. | ||
1585 | 59 | uuid="$(uuidgen)" | ||
1586 | 60 | sed -i "s|^CLUSTER_UUID = None$|CLUSTER_UUID = '$uuid'|" \ | ||
1587 | 61 | /etc/maas/maas_local_celeryconfig_cluster.py | ||
1588 | 62 | fi | ||
1589 | 63 | |||
1590 | 64 | # Either way, at this point we have a uuid, and it is configured in | ||
1591 | 65 | # the old config location. | ||
1592 | 66 | # | ||
1593 | 67 | # Write it to maas_cluster.conf as well. There is no initial | ||
1594 | 68 | # placeholder in this file, so just append the setting. | ||
1595 | 69 | echo "CLUSTER_UUID=\"$uuid\"" >>/etc/maas/maas_cluster.conf | ||
1596 | 70 | } | ||
1597 | 71 | |||
1598 | 72 | enable_apache_version_mod(){ | ||
1599 | 73 | COMMON_STATE=$(dpkg-query -f '${Status}' -W 'apache2.2-common' 2>/dev/null | awk '{print $3}' || true) | ||
1600 | 74 | if [ "$COMMON_STATE" = "installed" ] || [ "$COMMON_STATE" = "unpacked" ] ; then | ||
1601 | 75 | a2enmod version | ||
1602 | 76 | fi | ||
1603 | 77 | } | ||
1604 | 78 | |||
1605 | 79 | configure_cluster_http(){ | ||
1606 | 80 | case $RELEASE in | ||
1607 | 81 | 12.04|12.10|13.04) | ||
1608 | 82 | if [ -e /etc/maas/maas-cluster-http.conf -a \ | ||
1609 | 83 | ! -e /etc/apache2/conf.d/maas-cluster-http.conf ]; then | ||
1610 | 84 | ln -sf /etc/maas/maas-cluster-http.conf /etc/apache2/conf.d/maas-cluster-http.conf | ||
1611 | 85 | fi | ||
1612 | 86 | ;; | ||
1613 | 87 | *) | ||
1614 | 88 | # handle apache configs | ||
1615 | 89 | if [ -e /etc/maas/maas-cluster-http.conf -a \ | ||
1616 | 90 | ! -e /etc/apache2/conf-enabled/maas-cluster-http.conf ]; then | ||
1617 | 91 | ln -sf /etc/maas/maas-cluster-http.conf /etc/apache2/conf-enabled/maas-cluster-http.conf | ||
1618 | 92 | fi | ||
1619 | 93 | ;; | ||
1620 | 94 | esac | ||
1621 | 95 | } | ||
1622 | 96 | |||
1623 | 97 | restart_apache2(){ | ||
1624 | 98 | if [ -x /usr/sbin/invoke-rc.d ]; then | ||
1625 | 99 | invoke-rc.d apache2 restart || true | ||
1626 | 100 | else | ||
1627 | 101 | /etc/init.d/apache2 restart || true | ||
1628 | 102 | fi | ||
1629 | 103 | } | ||
1630 | 104 | |||
1631 | 105 | |||
1632 | 106 | |||
1633 | 107 | if [ "$1" = "configure" ] && [ -z "$2" ]; then | ||
1634 | 108 | # logging | ||
1635 | 109 | create_log_dir | ||
1636 | 110 | configure_maas_tgt | ||
1637 | 111 | fi | ||
1638 | 112 | |||
1639 | 113 | if ([ "$1" = "configure" ] && [ -z "$2" ]) || [ -n "$DEBCONF_RECONFIGURE" ]; then | ||
1640 | 114 | |||
1641 | 115 | if dpkg --compare-versions "$2" lt 0.1+bzr1239+dfsg-0ubuntu1; then | ||
1642 | 116 | create_log_dir | ||
1643 | 117 | fi | ||
1644 | 118 | |||
1645 | 119 | # Get the MAAS_URL on configure/reconfigure and write it to the conf files. | ||
1646 | 120 | db_get maas-cluster-controller/maas-url || true | ||
1647 | 121 | if [ -n "$RET" ]; then | ||
1648 | 122 | sed -i "s|MAAS_URL=.*|MAAS_URL=\"$RET\"|" /etc/maas/maas_cluster.conf | ||
1649 | 123 | # Extract the hostname part. | ||
1650 | 124 | HOSTPART=$(echo $RET|awk '{ split($0,array,"/")} END{print array[3] }') | ||
1651 | 125 | # And substitute it in-place in pserv.yaml on an indented, non-commented | ||
1652 | 126 | # line. | ||
1653 | 127 | sed -ri "s|^([[:space:]]+)(#+[[:space:]]*)?(generator:[[:space:]]+https?://)[^:/]+|\1\3$HOSTPART|" /etc/maas/pserv.yaml | ||
1654 | 128 | fi | ||
1655 | 129 | fi | ||
1656 | 130 | |||
1657 | 131 | if [ "$1" = "configure" ]; then | ||
1658 | 132 | # These config files may contain a private cluster UUID. Only maas | ||
1659 | 133 | # can read them; only root can write them | ||
1660 | 134 | chown root:maas \ | ||
1661 | 135 | /etc/maas/maas_local_celeryconfig_cluster.py \ | ||
1662 | 136 | /etc/maas/maas_cluster.conf | ||
1663 | 137 | chmod 0640 \ | ||
1664 | 138 | /etc/maas/maas_local_celeryconfig_cluster.py \ | ||
1665 | 139 | /etc/maas/maas_cluster.conf | ||
1666 | 140 | |||
1667 | 141 | configure_cluster_uuid | ||
1668 | 142 | enable_apache_version_mod | ||
1669 | 143 | configure_cluster_http | ||
1670 | 144 | restart_apache2 | ||
1671 | 145 | fi | ||
1672 | 146 | |||
1673 | 147 | db_stop | ||
1674 | 148 | |||
1675 | 149 | #DEBHELPER# | ||
1676 | 0 | 150 | ||
1677 | === added file 'debian/maas-cluster-controller.postrm' | |||
1678 | --- debian/maas-cluster-controller.postrm 1970-01-01 00:00:00 +0000 | |||
1679 | +++ debian/maas-cluster-controller.postrm 2013-10-11 14:15:22 +0000 | |||
1680 | @@ -0,0 +1,38 @@ | |||
1681 | 1 | #!/bin/sh | ||
1682 | 2 | |||
1683 | 3 | set -e | ||
1684 | 4 | |||
1685 | 5 | #DEBHELPER# | ||
1686 | 6 | |||
1687 | 7 | RELEASE=`lsb_release -rs` || RELEASE="" | ||
1688 | 8 | |||
1689 | 9 | case "$1" in | ||
1690 | 10 | purge) | ||
1691 | 11 | # remove log directory | ||
1692 | 12 | rm -rf /var/log/maas | ||
1693 | 13 | case $RELEASE in | ||
1694 | 14 | 12.04|12.10|13.04) | ||
1695 | 15 | if [ -h /etc/apache2/conf.d/maas-cluster-http.conf ]; then | ||
1696 | 16 | rm -rf /etc/apache2/conf.d/maas-cluster-http.conf | ||
1697 | 17 | fi | ||
1698 | 18 | ;; | ||
1699 | 19 | *) | ||
1700 | 20 | # remove apache2 config | ||
1701 | 21 | if [ -h /etc/apache2/conf-enabled/maas-cluster-http.conf ]; then | ||
1702 | 22 | rm -rf /etc/apache2/conf-enabled/maas-cluster-http.conf | ||
1703 | 23 | fi | ||
1704 | 24 | ;; | ||
1705 | 25 | esac | ||
1706 | 26 | # remove var directory | ||
1707 | 27 | rm -rf /var/lib/maas/celerybeat-cluster-schedule | ||
1708 | 28 | DIR=/var/lib/maas | ||
1709 | 29 | if [ "$(ls -A $DIR 2> /dev/null)" = "" ]; then | ||
1710 | 30 | rm -rf /var/lib/maas | ||
1711 | 31 | fi | ||
1712 | 32 | |||
1713 | 33 | # Delete symlink for iSCSI config. | ||
1714 | 34 | if [ -L /etc/tgt/conf.d/maas.conf ]; then | ||
1715 | 35 | rm -rf /etc/tgt/conf.d/maas.conf | ||
1716 | 36 | fi | ||
1717 | 37 | |||
1718 | 38 | esac | ||
1719 | 0 | 39 | ||
1720 | === added file 'debian/maas-cluster-controller.templates' | |||
1721 | --- debian/maas-cluster-controller.templates 1970-01-01 00:00:00 +0000 | |||
1722 | +++ debian/maas-cluster-controller.templates 2013-10-11 14:15:22 +0000 | |||
1723 | @@ -0,0 +1,7 @@ | |||
1724 | 1 | Template: maas-cluster-controller/maas-url | ||
1725 | 2 | Type: string | ||
1726 | 3 | Default: | ||
1727 | 4 | _Description: Ubuntu MAAS API address: | ||
1728 | 5 | The MAAS Cluster Controller needs to contact the MAAS server to | ||
1729 | 6 | register its presence. Set the URL to the MAAS API here, e.g. | ||
1730 | 7 | http://192.168.1.1/MAAS | ||
1731 | 0 | 8 | ||
1732 | === added file 'debian/maas-common.install' | |||
1733 | --- debian/maas-common.install 1970-01-01 00:00:00 +0000 | |||
1734 | +++ debian/maas-common.install 2013-10-11 14:15:22 +0000 | |||
1735 | @@ -0,0 +1,2 @@ | |||
1736 | 1 | # Install Celery Config | ||
1737 | 2 | debian/tmp/usr/share/maas/celeryconfig_common.py | ||
1738 | 0 | 3 | ||
1739 | === added file 'debian/maas-common.postinst' | |||
1740 | --- debian/maas-common.postinst 1970-01-01 00:00:00 +0000 | |||
1741 | +++ debian/maas-common.postinst 2013-10-11 14:15:22 +0000 | |||
1742 | @@ -0,0 +1,14 @@ | |||
1743 | 1 | #!/bin/sh | ||
1744 | 2 | |||
1745 | 3 | set -e | ||
1746 | 4 | |||
1747 | 5 | add_user_group(){ | ||
1748 | 6 | local user="maas" | ||
1749 | 7 | local group="maas" | ||
1750 | 8 | addgroup --quiet --system "$group" || true | ||
1751 | 9 | adduser --quiet --system --group --no-create-home "$user" || true | ||
1752 | 10 | } | ||
1753 | 11 | |||
1754 | 12 | add_user_group | ||
1755 | 13 | |||
1756 | 14 | #DEBHELPER# | ||
1757 | 0 | 15 | ||
1758 | === added file 'debian/maas-common.postrm' | |||
1759 | --- debian/maas-common.postrm 1970-01-01 00:00:00 +0000 | |||
1760 | +++ debian/maas-common.postrm 2013-10-11 14:15:22 +0000 | |||
1761 | @@ -0,0 +1,14 @@ | |||
1762 | 1 | #!/bin/sh | ||
1763 | 2 | |||
1764 | 3 | set -e | ||
1765 | 4 | |||
1766 | 5 | case "$1" in | ||
1767 | 6 | purge) | ||
1768 | 7 | # Deleting user/group | ||
1769 | 8 | if getent passwd maas >/dev/null; then | ||
1770 | 9 | deluser maas || true | ||
1771 | 10 | delgroup maas || true | ||
1772 | 11 | fi | ||
1773 | 12 | esac | ||
1774 | 13 | |||
1775 | 14 | #DEBHELPER# | ||
1776 | 0 | 15 | ||
1777 | === added file 'debian/maas-dhcp.apparmor' | |||
1778 | --- debian/maas-dhcp.apparmor 1970-01-01 00:00:00 +0000 | |||
1779 | +++ debian/maas-dhcp.apparmor 2013-10-11 14:15:22 +0000 | |||
1780 | @@ -0,0 +1,7 @@ | |||
1781 | 1 | /run/maas/dhcp/ r, | ||
1782 | 2 | /run/maas/dhcp/** r, | ||
1783 | 3 | /run/maas/dhcp/*.pid lrw, | ||
1784 | 4 | /run/maas/dhcp/*.trace lrw, | ||
1785 | 5 | /run/maas/dhcp/*.leases* lrw, | ||
1786 | 6 | /var/lib/maas/dhcp/dhcpd*.leases* lrw, | ||
1787 | 7 | /etc/maas/dhcpd.conf r, | ||
1788 | 0 | 8 | ||
1789 | === added file 'debian/maas-dhcp.install' | |||
1790 | --- debian/maas-dhcp.install 1970-01-01 00:00:00 +0000 | |||
1791 | +++ debian/maas-dhcp.install 2013-10-11 14:15:22 +0000 | |||
1792 | @@ -0,0 +1,1 @@ | |||
1793 | 1 | /debian/tmp/etc/apparmor.d/dhcpd.d/maas | ||
1794 | 0 | 2 | ||
1795 | === added file 'debian/maas-dhcp.maas-dhcp-server.upstart' | |||
1796 | --- debian/maas-dhcp.maas-dhcp-server.upstart 1970-01-01 00:00:00 +0000 | |||
1797 | +++ debian/maas-dhcp.maas-dhcp-server.upstart 2013-10-11 14:15:22 +0000 | |||
1798 | @@ -0,0 +1,65 @@ | |||
1799 | 1 | description "MAAS instance of ISC DHCP server" | ||
1800 | 2 | author "Jeroen Vermeulen <jtv@canonical.com>" | ||
1801 | 3 | |||
1802 | 4 | start on runlevel [2345] | ||
1803 | 5 | stop on runlevel [!2345] | ||
1804 | 6 | |||
1805 | 7 | env CONFIG_FILE=/etc/maas/dhcpd.conf | ||
1806 | 8 | env PID_DIR=/run/maas/dhcp | ||
1807 | 9 | env PID_FILE=/run/maas/dhcp/dhcpd.pid | ||
1808 | 10 | env LEASES_DIR=/var/lib/maas/dhcp | ||
1809 | 11 | env LEASES_FILE=/var/lib/maas/dhcp/dhcpd.leases | ||
1810 | 12 | |||
1811 | 13 | # This is where we write what interfaces dhcpd should listen on. | ||
1812 | 14 | env INTERFACES_FILE=/var/lib/maas/dhcpd-interfaces | ||
1813 | 15 | |||
1814 | 16 | pre-start script | ||
1815 | 17 | if [ ! -f $CONFIG_FILE ]; then | ||
1816 | 18 | echo "$CONFIG_FILE does not exist. Aborting." | ||
1817 | 19 | stop | ||
1818 | 20 | exit 0 | ||
1819 | 21 | fi | ||
1820 | 22 | |||
1821 | 23 | if [ ! -f $INTERFACES_FILE ]; then | ||
1822 | 24 | echo "$INTERFACES_FILE does not exist. Aborting." | ||
1823 | 25 | stop | ||
1824 | 26 | exit 0 | ||
1825 | 27 | fi | ||
1826 | 28 | |||
1827 | 29 | if ! /usr/sbin/dhcpd -t -q -4 -cf $CONFIG_FILE > /dev/null 2>&1; then | ||
1828 | 30 | echo "dhcpd self-test failed. Please fix the config file." | ||
1829 | 31 | echo "The error was: " | ||
1830 | 32 | /usr/sbin/dhcpd -t -4 -cf $CONFIG_FILE | ||
1831 | 33 | stop | ||
1832 | 34 | exit 0 | ||
1833 | 35 | fi | ||
1834 | 36 | end script | ||
1835 | 37 | |||
1836 | 38 | respawn | ||
1837 | 39 | script | ||
1838 | 40 | INTERFACES=`cat "${INTERFACES_FILE}"` | ||
1839 | 41 | |||
1840 | 42 | # Allow dhcp server to write lease and pid file. | ||
1841 | 43 | mkdir -p $PID_DIR | ||
1842 | 44 | chown dhcpd:dhcpd $PID_DIR | ||
1843 | 45 | |||
1844 | 46 | # As of Quantal, the leases file must be owned by root:root (even though | ||
1845 | 47 | # the daemon will run under an unprivileged user). | ||
1846 | 48 | # In Precise, ownership was supposed to be dhcpd:dhcpd. | ||
1847 | 49 | # | ||
1848 | 50 | # maas packages on saucy are only supported with newer isc-dhcp via | ||
1849 | 51 | # the cloud-archive. See bug 1231693 for more information, including | ||
1850 | 52 | # a patch that would actually work to support all, but is complex. | ||
1851 | 53 | |||
1852 | 54 | mkdir -p $LEASES_DIR | ||
1853 | 55 | chown root:root $LEASES_DIR | ||
1854 | 56 | [ -e $LEASES_FILE ] || touch $LEASES_FILE | ||
1855 | 57 | for LFILE in $LEASES_FILE $LEASES_FILE~; do | ||
1856 | 58 | if [ -e $LFILE ]; then | ||
1857 | 59 | chown root:root $LFILE | ||
1858 | 60 | chmod a+r $LFILE | ||
1859 | 61 | fi | ||
1860 | 62 | done | ||
1861 | 63 | |||
1862 | 64 | exec /usr/sbin/dhcpd -user dhcpd -group dhcpd -f -q -4 -pf $PID_FILE -cf $CONFIG_FILE -lf $LEASES_FILE $INTERFACES | ||
1863 | 65 | end script | ||
1864 | 0 | 66 | ||
1865 | === added file 'debian/maas-dhcp.postinst' | |||
1866 | --- debian/maas-dhcp.postinst 1970-01-01 00:00:00 +0000 | |||
1867 | +++ debian/maas-dhcp.postinst 2013-10-11 14:15:22 +0000 | |||
1868 | @@ -0,0 +1,15 @@ | |||
1869 | 1 | #!/bin/sh | ||
1870 | 2 | |||
1871 | 3 | set -e | ||
1872 | 4 | |||
1873 | 5 | if [ "$1" = "configure" ]; then | ||
1874 | 6 | invoke-rc.d isc-dhcp-server stop | ||
1875 | 7 | |||
1876 | 8 | dhcpd_prof="/etc/apparmor.d/usr.sbin.dhcpd" | ||
1877 | 9 | if [ -f "${dhcpd_prof}" ] && command -v apparmor_parser >/dev/null 2>&1 | ||
1878 | 10 | then | ||
1879 | 11 | apparmor_parser --replace --write-cache --skip-read-cache "${dhcpd_prof}" || true | ||
1880 | 12 | fi | ||
1881 | 13 | fi | ||
1882 | 14 | |||
1883 | 15 | #DEBHELPER# | ||
1884 | 0 | 16 | ||
1885 | === added file 'debian/maas-dhcp.postrm' | |||
1886 | --- debian/maas-dhcp.postrm 1970-01-01 00:00:00 +0000 | |||
1887 | +++ debian/maas-dhcp.postrm 2013-10-11 14:15:22 +0000 | |||
1888 | @@ -0,0 +1,13 @@ | |||
1889 | 1 | #!/bin/sh | ||
1890 | 2 | |||
1891 | 3 | set -e | ||
1892 | 4 | |||
1893 | 5 | if [ "$1" = "remove" ] || [ "$1" = "purge" ]; then | ||
1894 | 6 | dhcpd_prof="/etc/apparmor.d/usr.sbin.dhcpd" | ||
1895 | 7 | if [ -f "${dhcpd_prof}" ] && | ||
1896 | 8 | command -v apparmor_parser >/dev/null 2>&1; then | ||
1897 | 9 | apparmor_parser --replace --write-cache --skip-read-cache "${dhcpd_prof}" | ||
1898 | 10 | fi | ||
1899 | 11 | fi | ||
1900 | 12 | |||
1901 | 13 | #DEBHELPER# | ||
1902 | 0 | 14 | ||
1903 | === added file 'debian/maas-dns.dirs' | |||
1904 | --- debian/maas-dns.dirs 1970-01-01 00:00:00 +0000 | |||
1905 | +++ debian/maas-dns.dirs 2013-10-11 14:15:22 +0000 | |||
1906 | @@ -0,0 +1,1 @@ | |||
1907 | 1 | etc/bind/maas | ||
1908 | 0 | 2 | ||
1909 | === added file 'debian/maas-dns.postinst' | |||
1910 | --- debian/maas-dns.postinst 1970-01-01 00:00:00 +0000 | |||
1911 | +++ debian/maas-dns.postinst 2013-10-11 14:15:22 +0000 | |||
1912 | @@ -0,0 +1,36 @@ | |||
1913 | 1 | #!/bin/sh | ||
1914 | 2 | |||
1915 | 3 | set -e | ||
1916 | 4 | |||
1917 | 5 | if ([ "$1" = "configure" ] && [ -z "$2" ]) || [ -n "$DEBCONF_RECONFIGURE" ]; then | ||
1918 | 6 | # If /etc/bind/maas is empty, set_up_dns. | ||
1919 | 7 | if [ ! "$(ls -A /etc/bind/maas)" ]; then | ||
1920 | 8 | maas set_up_dns | ||
1921 | 9 | fi | ||
1922 | 10 | |||
1923 | 11 | # Fix permissions. | ||
1924 | 12 | if [ -d /etc/bind/maas ]; then | ||
1925 | 13 | chown -R maas:root /etc/bind/maas | ||
1926 | 14 | fi | ||
1927 | 15 | if [ -f /etc/bind/maas/named.conf.maas ]; then | ||
1928 | 16 | chmod 644 /etc/bind/maas/named.conf.maas | ||
1929 | 17 | fi | ||
1930 | 18 | if [ -f /etc/bind/maas/rndc.conf.maas ]; then | ||
1931 | 19 | chmod 600 /etc/bind/maas/rndc.conf.maas | ||
1932 | 20 | fi | ||
1933 | 21 | if [ -f /etc/bind/maas/named.conf.rndc.maas ]; then | ||
1934 | 22 | chown maas:bind /etc/bind/maas/named.conf.rndc.maas | ||
1935 | 23 | chmod 640 /etc/bind/maas/named.conf.rndc.maas | ||
1936 | 24 | fi | ||
1937 | 25 | |||
1938 | 26 | # Remove any existing MAAS-related include line from | ||
1939 | 27 | # /etc/bind/named.conf.local, then re-add it. | ||
1940 | 28 | sed -i '/^include\s.*maas/d' /etc/bind/named.conf.local | ||
1941 | 29 | maas get_named_conf --edit --config_path /etc/bind/named.conf.local | ||
1942 | 30 | |||
1943 | 31 | maas write_dns_config | ||
1944 | 32 | |||
1945 | 33 | invoke-rc.d bind9 restart || true | ||
1946 | 34 | fi | ||
1947 | 35 | |||
1948 | 36 | #DEBHELPER# | ||
1949 | 0 | 37 | ||
1950 | === added file 'debian/maas-dns.postrm' | |||
1951 | --- debian/maas-dns.postrm 1970-01-01 00:00:00 +0000 | |||
1952 | +++ debian/maas-dns.postrm 2013-10-11 14:15:22 +0000 | |||
1953 | @@ -0,0 +1,23 @@ | |||
1954 | 1 | #!/bin/sh | ||
1955 | 2 | |||
1956 | 3 | set -e | ||
1957 | 4 | |||
1958 | 5 | if [ "$1" = "remove" ]; then | ||
1959 | 6 | if [ -f /etc/bind/named.conf.local ]; then | ||
1960 | 7 | sed -i '/^include.*\"\/etc\/bind\/maas\/named.conf.maas\"\;$/d' \ | ||
1961 | 8 | /etc/bind/named.conf.local | ||
1962 | 9 | fi | ||
1963 | 10 | fi | ||
1964 | 11 | |||
1965 | 12 | if [ "$1" = "purge" ]; then | ||
1966 | 13 | # Remove zone files | ||
1967 | 14 | if [ -d /etc/bind/maas ]; then | ||
1968 | 15 | rm -rf /etc/bind/maas | ||
1969 | 16 | fi | ||
1970 | 17 | fi | ||
1971 | 18 | |||
1972 | 19 | if [ -x /usr/sbin/invoke-rc.d ]; then | ||
1973 | 20 | invoke-rc.d bind9 restart || true | ||
1974 | 21 | fi | ||
1975 | 22 | |||
1976 | 23 | #DEBHELPER# | ||
1977 | 0 | 24 | ||
1978 | === added file 'debian/maas-region-controller.apport' | |||
1979 | --- debian/maas-region-controller.apport 1970-01-01 00:00:00 +0000 | |||
1980 | +++ debian/maas-region-controller.apport 2013-10-11 14:15:22 +0000 | |||
1981 | @@ -0,0 +1,37 @@ | |||
1982 | 1 | #!/usr/bin/python | ||
1983 | 2 | |||
1984 | 3 | '''apport hook for bind9 | ||
1985 | 4 | |||
1986 | 5 | (c) 2012 Canonical Ltd. | ||
1987 | 6 | Author: Andres Rodriguez <andres.rodriguez@canonical.com> | ||
1988 | 7 | |||
1989 | 8 | This program is free software; you can redistribute it and/or modify it | ||
1990 | 9 | under the terms of the GNU General Public License as published by the | ||
1991 | 10 | Free Software Foundation; either version 2 of the License, or (at your | ||
1992 | 11 | option) any later version. See http://www.gnu.org/copyleft/gpl.html for | ||
1993 | 12 | the full text of the license. | ||
1994 | 13 | ''' | ||
1995 | 14 | |||
1996 | 15 | from apport.hookutils import * | ||
1997 | 16 | |||
1998 | 17 | def add_info(report, ui): | ||
1999 | 18 | response = ui.yesno("The contents of your /etc/maas/maas_local_settings.py, " | ||
2000 | 19 | "/etc/maas/txlongpoll.yaml, /etc/maas/pserv.yaml files " | ||
2001 | 20 | "may help developers diagnose your bug more " | ||
2002 | 21 | "quickly. However, it may contain sensitive " | ||
2003 | 22 | "information. Do you want to include it in your " | ||
2004 | 23 | "bug report?") | ||
2005 | 24 | |||
2006 | 25 | if response == None: # user cancelled | ||
2007 | 26 | raise StopIteration | ||
2008 | 27 | |||
2009 | 28 | elif response == True: | ||
2010 | 29 | attach_conffiles(report,'maas') | ||
2011 | 30 | |||
2012 | 31 | # Attaching log files | ||
2013 | 32 | attach_file_if_exists(report, '/var/log/maas/maas.log', 'MAASLog') | ||
2014 | 33 | attach_file_if_exists(report, '/var/log/maas/pserv.log', 'MAASPservLog') | ||
2015 | 34 | attach_file_if_exists(report, '/var/log/maas/txlongpoll.log', 'MAAStxlongpollLog') | ||
2016 | 35 | |||
2017 | 36 | # Attaching related packages info | ||
2018 | 37 | attach_related_packages(report, ['python-django-maas', 'apparmor']) | ||
2019 | 0 | 38 | ||
2020 | === added file 'debian/maas-region-controller.config' | |||
2021 | --- debian/maas-region-controller.config 1970-01-01 00:00:00 +0000 | |||
2022 | +++ debian/maas-region-controller.config 2013-10-11 14:15:22 +0000 | |||
2023 | @@ -0,0 +1,45 @@ | |||
2024 | 1 | #!/bin/sh | ||
2025 | 2 | |||
2026 | 3 | set -e | ||
2027 | 4 | |||
2028 | 5 | . /usr/share/debconf/confmodule | ||
2029 | 6 | db_version 2.0 | ||
2030 | 7 | |||
2031 | 8 | # creates question | ||
2032 | 9 | set_question() { | ||
2033 | 10 | if ! db_fget "$1" seen; then | ||
2034 | 11 | db_register dbconfig-common/dbconfig-install "$1" | ||
2035 | 12 | db_subst "$1" ID "$1" | ||
2036 | 13 | db_fget "$1" seen | ||
2037 | 14 | fi | ||
2038 | 15 | if [ "$RET" = false ]; then | ||
2039 | 16 | db_set "$1" "$2" | ||
2040 | 17 | db_fset "$1" seen true | ||
2041 | 18 | fi | ||
2042 | 19 | } | ||
2043 | 20 | |||
2044 | 21 | # source dbconfig-common shell library, and call the hook function | ||
2045 | 22 | if [ -f /usr/share/dbconfig-common/dpkg/config.pgsql ]; then | ||
2046 | 23 | . /usr/share/dbconfig-common/dpkg/config.pgsql | ||
2047 | 24 | fi | ||
2048 | 25 | |||
2049 | 26 | if [ "$1" = "configure" ] && [ -z "$2" ]; then | ||
2050 | 27 | # Hide maas/dbconfig-install question by setting default. | ||
2051 | 28 | set_question maas-region-controller/dbconfig-install true | ||
2052 | 29 | set_question maas-region-controller/pgsql/app-pass "" | ||
2053 | 30 | |||
2054 | 31 | dbc_dbname="maasdb" | ||
2055 | 32 | dbc_dbuser="maas" | ||
2056 | 33 | dbc_remove="true" | ||
2057 | 34 | |||
2058 | 35 | dbc_go maas-region-controller $@ | ||
2059 | 36 | |||
2060 | 37 | elif [ -n "$DEBCONF_RECONFIGURE" ]; then | ||
2061 | 38 | db_get maas/default-maas-url || true | ||
2062 | 39 | if [ -z "$RET" ]; then | ||
2063 | 40 | ipaddr=$(awk '$1 == "DEFAULT_MAAS_URL" { split($0,array,"/")} END{print array[3] }' /etc/maas/maas_local_settings.py) | ||
2064 | 41 | db_set maas/default-maas-url "$ipaddr" | ||
2065 | 42 | fi | ||
2066 | 43 | db_input low maas/default-maas-url || true | ||
2067 | 44 | db_go | ||
2068 | 45 | fi | ||
2069 | 0 | 46 | ||
2070 | === added file 'debian/maas-region-controller.dirs' | |||
2071 | --- debian/maas-region-controller.dirs 1970-01-01 00:00:00 +0000 | |||
2072 | +++ debian/maas-region-controller.dirs 2013-10-11 14:15:22 +0000 | |||
2073 | @@ -0,0 +1,2 @@ | |||
2074 | 1 | var/log/maas/oops | ||
2075 | 2 | var/lib/maas/tftp | ||
2076 | 0 | 3 | ||
2077 | === added file 'debian/maas-region-controller.install' | |||
2078 | --- debian/maas-region-controller.install 1970-01-01 00:00:00 +0000 | |||
2079 | +++ debian/maas-region-controller.install 2013-10-11 14:15:22 +0000 | |||
2080 | @@ -0,0 +1,37 @@ | |||
2081 | 1 | # Install project | ||
2082 | 2 | debian/tmp/usr/lib/python*/dist-packages/maas usr/share/maas | ||
2083 | 3 | |||
2084 | 4 | # Install static files | ||
2085 | 5 | debian/tmp/usr/share/maas/web/static | ||
2086 | 6 | |||
2087 | 7 | # Install Apache Config | ||
2088 | 8 | debian/tmp/etc/maas/maas-http.conf | ||
2089 | 9 | |||
2090 | 10 | # Install MAAS local settings | ||
2091 | 11 | debian/tmp/etc/maas/maas_local_settings.py | ||
2092 | 12 | |||
2093 | 13 | # Install celery config file | ||
2094 | 14 | debian/tmp/usr/share/maas/celeryconfig.py | ||
2095 | 15 | |||
2096 | 16 | # Install local celery region config file | ||
2097 | 17 | debian/tmp/etc/maas/maas_local_celeryconfig.py | ||
2098 | 18 | |||
2099 | 19 | # Install WSGI | ||
2100 | 20 | debian/tmp/usr/share/maas/wsgi.py | ||
2101 | 21 | |||
2102 | 22 | # Install txlongpoll config file | ||
2103 | 23 | debian/tmp/etc/maas/txlongpoll.yaml | ||
2104 | 24 | |||
2105 | 25 | # Install new preseed files | ||
2106 | 26 | debian/tmp/etc/maas/preseeds | ||
2107 | 27 | |||
2108 | 28 | # Install templates | ||
2109 | 29 | debian/tmp/etc/maas/templates/dns | ||
2110 | 30 | debian/tmp/etc/maas/templates/commissioning-user-data | ||
2111 | 31 | |||
2112 | 32 | # Install all other stuff | ||
2113 | 33 | debian/extras/maas usr/sbin | ||
2114 | 34 | debian/extras/maas-region-celeryd usr/sbin | ||
2115 | 35 | debian/extras/20-maas.conf etc/rsyslog.d | ||
2116 | 36 | debian/extras/maas_remote_syslog_compress etc/cron.d | ||
2117 | 37 | debian/extras/99-maas usr/share/maas/conf | ||
2118 | 0 | 38 | ||
2119 | === added file 'debian/maas-region-controller.links' | |||
2120 | --- debian/maas-region-controller.links 1970-01-01 00:00:00 +0000 | |||
2121 | +++ debian/maas-region-controller.links 2013-10-11 14:15:22 +0000 | |||
2122 | @@ -0,0 +1,2 @@ | |||
2123 | 1 | etc/maas/maas_local_settings.py usr/share/maas/maas_local_settings.py | ||
2124 | 2 | etc/maas/maas_local_celeryconfig.py usr/share/maas/maas_local_celeryconfig.py | ||
2125 | 0 | 3 | ||
2126 | === added file 'debian/maas-region-controller.lintian-overrides' | |||
2127 | --- debian/maas-region-controller.lintian-overrides 1970-01-01 00:00:00 +0000 | |||
2128 | +++ debian/maas-region-controller.lintian-overrides 2013-10-11 14:15:22 +0000 | |||
2129 | @@ -0,0 +1,6 @@ | |||
2130 | 1 | maas-region-controller: binary-without-manpage usr/sbin/maas | ||
2131 | 2 | maas-region-controller: binary-without-manpage usr/sbin/maas-region-celeryd | ||
2132 | 3 | maas-region-controller: script-not-executable etc/maas/templates/commissioning-user-data/snippets/maas_ipmi_autodetect.py | ||
2133 | 4 | maas-region-controller: script-not-executable etc/maas/templates/commissioning-user-data/snippets/maas_signal.py | ||
2134 | 5 | maas-region-controller: script-not-executable etc/maas/templates/commissioning-user-data/user_data.template | ||
2135 | 6 | maas-region-controller: script-not-executable etc/maas/templates/commissioning-user-data/snippets/maas_get.py | ||
2136 | 0 | 7 | ||
2137 | === added file 'debian/maas-region-controller.logrotate' | |||
2138 | --- debian/maas-region-controller.logrotate 1970-01-01 00:00:00 +0000 | |||
2139 | +++ debian/maas-region-controller.logrotate 2013-10-11 14:15:22 +0000 | |||
2140 | @@ -0,0 +1,18 @@ | |||
2141 | 1 | /var/log/maas/maas.log { | ||
2142 | 2 | rotate 5 | ||
2143 | 3 | weekly | ||
2144 | 4 | compress | ||
2145 | 5 | copytruncate | ||
2146 | 6 | missingok | ||
2147 | 7 | #create 620 root www-data | ||
2148 | 8 | } | ||
2149 | 9 | |||
2150 | 10 | /var/log/maas/txlongpoll.log { | ||
2151 | 11 | rotate 5 | ||
2152 | 12 | weekly | ||
2153 | 13 | compress | ||
2154 | 14 | missingok | ||
2155 | 15 | postrotate | ||
2156 | 16 | [ -r /var/run/maas-txlongpoll.pid ] && kill -s USR2 $(cat /var/run/maas-txlongpoll.pid) || true | ||
2157 | 17 | endscript | ||
2158 | 18 | } | ||
2159 | 0 | 19 | ||
2160 | === added file 'debian/maas-region-controller.maas-region-celery.upstart' | |||
2161 | --- debian/maas-region-controller.maas-region-celery.upstart 1970-01-01 00:00:00 +0000 | |||
2162 | +++ debian/maas-region-controller.maas-region-celery.upstart 2013-10-11 14:15:22 +0000 | |||
2163 | @@ -0,0 +1,26 @@ | |||
2164 | 1 | # maas-celery - celery daemon for the region controller | ||
2165 | 2 | # | ||
2166 | 3 | # MAAS Region Controller Celery Daemon | ||
2167 | 4 | |||
2168 | 5 | description "MAAS" | ||
2169 | 6 | author "Raphael Badin <raphael.badin@canonical.com>" | ||
2170 | 7 | |||
2171 | 8 | start on filesystem and net-device-up and rabbitmq-server-running | ||
2172 | 9 | stop on runlevel [016] | ||
2173 | 10 | |||
2174 | 11 | respawn | ||
2175 | 12 | |||
2176 | 13 | env workers_user="maas_workers" | ||
2177 | 14 | env workers_pass="" | ||
2178 | 15 | env workers_vhost="/maas_workers" | ||
2179 | 16 | |||
2180 | 17 | pre-start script | ||
2181 | 18 | if ! /usr/sbin/rabbitmqctl list_user_permissions $workers_user 1>/dev/null 2>&1; then | ||
2182 | 19 | workers_pass=`grep "maas_workers" /etc/maas/maas_local_celeryconfig.py | cut -d':' -f3 | cut -d'@' -f1` | ||
2183 | 20 | /usr/sbin/rabbitmqctl add_user "$workers_user" "$workers_pass" | ||
2184 | 21 | /usr/sbin/rabbitmqctl add_vhost "$workers_vhost" | ||
2185 | 22 | /usr/sbin/rabbitmqctl set_permissions -p "$workers_vhost" "$workers_user" ".*" ".*" ".*" | ||
2186 | 23 | fi | ||
2187 | 24 | end script | ||
2188 | 25 | |||
2189 | 26 | exec /usr/sbin/maas-region-celeryd --logfile=/var/log/maas/celery-region.log --schedule=/var/lib/maas/celerybeat-region-schedule --user=maas --group=maas | ||
2190 | 0 | 27 | ||
2191 | === added file 'debian/maas-region-controller.maas-txlongpoll.upstart' | |||
2192 | --- debian/maas-region-controller.maas-txlongpoll.upstart 1970-01-01 00:00:00 +0000 | |||
2193 | +++ debian/maas-region-controller.maas-txlongpoll.upstart 2013-10-11 14:15:22 +0000 | |||
2194 | @@ -0,0 +1,27 @@ | |||
2195 | 1 | # maas - txlongpoll service | ||
2196 | 2 | # | ||
2197 | 3 | # MAAS Provisioning Service txlongpoll | ||
2198 | 4 | |||
2199 | 5 | description "MAAS txlongpoll" | ||
2200 | 6 | author "Andres Rodriguez <andres.rodriguez@canonical.com>" | ||
2201 | 7 | |||
2202 | 8 | start on filesystem and net-device-up and rabbitmq-server-running | ||
2203 | 9 | stop on runlevel [016] | ||
2204 | 10 | |||
2205 | 11 | respawn | ||
2206 | 12 | |||
2207 | 13 | env longpoll_user="maas_longpoll" | ||
2208 | 14 | env longpoll_pass="" | ||
2209 | 15 | env longpoll_vhost="/maas_longpoll" | ||
2210 | 16 | |||
2211 | 17 | pre-start script | ||
2212 | 18 | if ! /usr/sbin/rabbitmqctl list_user_permissions $longpoll_user 1>/dev/null 2>&1; then | ||
2213 | 19 | longpoll_pass=`/bin/grep "password" /etc/maas/txlongpoll.yaml | cut -d'"' -f2` | ||
2214 | 20 | /usr/sbin/rabbitmqctl add_user "$longpoll_user" "$longpoll_pass" | ||
2215 | 21 | /usr/sbin/rabbitmqctl add_vhost "$longpoll_vhost" | ||
2216 | 22 | /usr/sbin/rabbitmqctl set_permissions -p "$longpoll_vhost" "$longpoll_user" ".*" ".*" ".*" | ||
2217 | 23 | fi | ||
2218 | 24 | end script | ||
2219 | 25 | |||
2220 | 26 | # To add options to your daemon, edit the line below: | ||
2221 | 27 | exec /usr/bin/twistd -n --uid=maas --gid=maas --pidfile=/run/maas-txlongpoll.pid --logfile=/dev/null txlongpoll --config-file=/etc/maas/txlongpoll.yaml | ||
2222 | 0 | 28 | ||
2223 | === added file 'debian/maas-region-controller.postinst' | |||
2224 | --- debian/maas-region-controller.postinst 1970-01-01 00:00:00 +0000 | |||
2225 | +++ debian/maas-region-controller.postinst 2013-10-11 14:15:22 +0000 | |||
2226 | @@ -0,0 +1,287 @@ | |||
2227 | 1 | #!/bin/sh | ||
2228 | 2 | |||
2229 | 3 | set -e | ||
2230 | 4 | |||
2231 | 5 | . /usr/share/debconf/confmodule | ||
2232 | 6 | db_version 2.0 | ||
2233 | 7 | |||
2234 | 8 | if [ -f /usr/share/dbconfig-common/dpkg/postinst.pgsql ]; then | ||
2235 | 9 | . /usr/share/dbconfig-common/dpkg/postinst.pgsql | ||
2236 | 10 | fi | ||
2237 | 11 | |||
2238 | 12 | RELEASE=`lsb_release -rs` || RELEASE="" | ||
2239 | 13 | |||
2240 | 14 | maas_sync_migrate_db(){ | ||
2241 | 15 | maas syncdb --noinput | ||
2242 | 16 | maas migrate maasserver --noinput | ||
2243 | 17 | maas migrate metadataserver --noinput | ||
2244 | 18 | } | ||
2245 | 19 | |||
2246 | 20 | restart_rabbitmq(){ | ||
2247 | 21 | invoke-rc.d rabbitmq-server restart || true | ||
2248 | 22 | } | ||
2249 | 23 | |||
2250 | 24 | restart_postgresql(){ | ||
2251 | 25 | invoke-rc.d --force postgresql restart || true | ||
2252 | 26 | } | ||
2253 | 27 | |||
2254 | 28 | restart_squid_deb_proxy() { | ||
2255 | 29 | invoke-rc.d squid-deb-proxy restart || true | ||
2256 | 30 | } | ||
2257 | 31 | |||
2258 | 32 | configure_region_http() { | ||
2259 | 33 | case $RELEASE in | ||
2260 | 34 | 12.04|12.10|13.04) | ||
2261 | 35 | # handle apache configs | ||
2262 | 36 | if [ -e /etc/maas/maas-http.conf -a \ | ||
2263 | 37 | ! -e /etc/apache2/conf.d/maas-http.conf ]; then | ||
2264 | 38 | ln -sf /etc/maas/maas-http.conf /etc/apache2/conf.d/maas-http.conf | ||
2265 | 39 | fi | ||
2266 | 40 | ;; | ||
2267 | 41 | *) | ||
2268 | 42 | # handle apache configs | ||
2269 | 43 | if [ -e /etc/maas/maas-http.conf -a \ | ||
2270 | 44 | ! -e /etc/apache2/conf-enabled/maas-http.conf ]; then | ||
2271 | 45 | ln -sf /etc/maas/maas-http.conf /etc/apache2/conf-enabled/maas-http.conf | ||
2272 | 46 | fi | ||
2273 | 47 | ;; | ||
2274 | 48 | esac | ||
2275 | 49 | # enable apache modules needed | ||
2276 | 50 | a2enmod proxy_http | ||
2277 | 51 | a2enmod expires | ||
2278 | 52 | a2enmod wsgi | ||
2279 | 53 | } | ||
2280 | 54 | |||
2281 | 55 | configure_maas_txlongpoll_rabbitmq_user() { | ||
2282 | 56 | local longpoll_user="maas_longpoll" | ||
2283 | 57 | local longpoll_pass= | ||
2284 | 58 | local longpoll_vhost="/maas_longpoll" | ||
2285 | 59 | longpoll_pass="$(pwgen -s 20)" | ||
2286 | 60 | if [ -x /usr/sbin/rabbitmqctl ]; then | ||
2287 | 61 | if ! rabbitmqctl list_users | grep -qs "$longpoll_user"; then | ||
2288 | 62 | rabbitmqctl add_user "$longpoll_user" "$longpoll_pass" || true | ||
2289 | 63 | rabbitmqctl add_vhost "$longpoll_vhost" || true | ||
2290 | 64 | rabbitmqctl set_permissions -p "$longpoll_vhost" "$longpoll_user" ".*" ".*" ".*" || true | ||
2291 | 65 | else | ||
2292 | 66 | rabbitmqctl change_password "$longpoll_user" "$longpoll_pass" || true | ||
2293 | 67 | fi | ||
2294 | 68 | fi | ||
2295 | 69 | |||
2296 | 70 | if grep -qs "^\ \{1,\}password: \"[a-zA-Z0-9]\{0,\}\"$" /etc/maas/txlongpoll.yaml; then | ||
2297 | 71 | sed -i "s/^\ \{1,\}password: \"[a-zA-Z0-9]\{0,\}\"$/ password: \""$longpoll_pass"\"/" \ | ||
2298 | 72 | /etc/maas/txlongpoll.yaml | ||
2299 | 73 | fi | ||
2300 | 74 | if grep -qs "^RABBITMQ_PASSWORD\ \= '[a-zA-Z0-9]\{0,\}'$" /etc/maas/maas_local_settings.py; then | ||
2301 | 75 | sed -i "s/^RABBITMQ_PASSWORD\ \= '[a-zA-Z0-9]\{0,\}'$/RABBITMQ_PASSWORD = '"$longpoll_pass"'/" \ | ||
2302 | 76 | /etc/maas/maas_local_settings.py | ||
2303 | 77 | fi | ||
2304 | 78 | } | ||
2305 | 79 | |||
2306 | 80 | configure_maas_workers_rabbitmq_user() { | ||
2307 | 81 | local workers_user="maas_workers" | ||
2308 | 82 | local workers_pass="$(pwgen -s 20)" | ||
2309 | 83 | local workers_vhost="/maas_workers" | ||
2310 | 84 | local amqp_host="$1" | ||
2311 | 85 | if [ -z "$amqp_host" ]; then | ||
2312 | 86 | amqp_host="localhost" | ||
2313 | 87 | fi | ||
2314 | 88 | local amqp_port="5672" | ||
2315 | 89 | if [ -x /usr/sbin/rabbitmqctl ]; then | ||
2316 | 90 | if ! rabbitmqctl list_users | grep -qs "$workers_user"; then | ||
2317 | 91 | rabbitmqctl add_user "$workers_user" "$workers_pass" || true | ||
2318 | 92 | rabbitmqctl add_vhost "$workers_vhost" || true | ||
2319 | 93 | rabbitmqctl set_permissions -p "$workers_vhost" "$workers_user" ".*" ".*" ".*" || true | ||
2320 | 94 | else | ||
2321 | 95 | rabbitmqctl change_password "$workers_user" "$workers_pass" || true | ||
2322 | 96 | fi | ||
2323 | 97 | fi | ||
2324 | 98 | |||
2325 | 99 | if grep -qs "^BROKER_URL\ \= '.*'$" /etc/maas/maas_local_celeryconfig.py; then | ||
2326 | 100 | local broker_url="amqp://$workers_user:$workers_pass@$amqp_host:$amqp_port/$workers_vhost" | ||
2327 | 101 | sed -i "s|^BROKER_URL\ \= '.*'$|BROKER_URL = '"$broker_url"'|" \ | ||
2328 | 102 | /etc/maas/maas_local_celeryconfig.py | ||
2329 | 103 | fi | ||
2330 | 104 | } | ||
2331 | 105 | |||
2332 | 106 | configure_maas_database() { | ||
2333 | 107 | local dbc_dbpass="$1" | ||
2334 | 108 | if grep -qs "^\ \{1,\} 'PASSWORD': '[a-zA-Z0-9]\{0,\}',$" /etc/maas/maas_local_settings.py; then | ||
2335 | 109 | sed -i "s/^\ \{1,\} 'PASSWORD': '[a-zA-Z0-9]\{0,\}',$/ 'PASSWORD': '"$dbc_dbpass"',/" \ | ||
2336 | 110 | /etc/maas/maas_local_settings.py | ||
2337 | 111 | fi | ||
2338 | 112 | } | ||
2339 | 113 | |||
2340 | 114 | configure_maas_default_url() { | ||
2341 | 115 | local ipaddr="$1" | ||
2342 | 116 | |||
2343 | 117 | if grep -qs "^DEFAULT_MAAS_URL\ \= \"[a-zA-Z0-9:/.]\{0,\}\"$" /etc/maas/maas_local_settings.py; then | ||
2344 | 118 | sed -i "s/^DEFAULT_MAAS_URL\ \= \"[a-zA-Z0-9:/.]\{0,\}\"$/DEFAULT_MAAS_URL = \"http:\/\/"$ipaddr"\/MAAS\"/" \ | ||
2345 | 119 | /etc/maas/maas_local_settings.py | ||
2346 | 120 | fi | ||
2347 | 121 | } | ||
2348 | 122 | |||
2349 | 123 | configure_maas_squid_deb_proxy() { | ||
2350 | 124 | local ipaddr="$1" | ||
2351 | 125 | |||
2352 | 126 | if [ -e /usr/share/maas/conf/99-maas -a \ | ||
2353 | 127 | ! -L /etc/squid-deb-proxy/mirror-dstdomain.acl.d/99-maas ]; then | ||
2354 | 128 | ln -sf /usr/share/maas/conf/99-maas \ | ||
2355 | 129 | /etc/squid-deb-proxy/mirror-dstdomain.acl.d/99-maas | ||
2356 | 130 | fi | ||
2357 | 131 | |||
2358 | 132 | sed -i "s/\(^[a-zA-Z0-9\.\-].*\) # maasurl$/$ipaddr # maasurl/" \ | ||
2359 | 133 | /usr/share/maas/conf/99-maas | ||
2360 | 134 | } | ||
2361 | 135 | |||
2362 | 136 | if [ "$1" = "configure" ] && [ -z "$2" ]; then | ||
2363 | 137 | ######################################################### | ||
2364 | 138 | ################ Folder Permissions #################### | ||
2365 | 139 | ######################################################### | ||
2366 | 140 | mkdir -p /var/lib/maas/media/storage | ||
2367 | 141 | chown -R maas:maas /var/lib/maas/ | ||
2368 | 142 | |||
2369 | 143 | # Config will contain credentials, so should be readable | ||
2370 | 144 | # by the application but nobody else. | ||
2371 | 145 | chown root:maas \ | ||
2372 | 146 | /etc/maas/maas_local_celeryconfig.py \ | ||
2373 | 147 | /etc/maas/maas_local_settings.py | ||
2374 | 148 | chmod 0640 \ | ||
2375 | 149 | /etc/maas/maas_local_celeryconfig.py \ | ||
2376 | 150 | /etc/maas/maas_local_settings.py | ||
2377 | 151 | |||
2378 | 152 | ######################################################### | ||
2379 | 153 | ################ Configure Apache2 #################### | ||
2380 | 154 | ######################################################### | ||
2381 | 155 | configure_region_http | ||
2382 | 156 | |||
2383 | 157 | ######################################################### | ||
2384 | 158 | ########## Configure DEFAULT_MAAS_URL ################# | ||
2385 | 159 | ######################################################### | ||
2386 | 160 | |||
2387 | 161 | # Obtain IP address of default route and change DEFAULT_MAAS_URL. | ||
2388 | 162 | while read Iface Destination Gateway Flags RefCnt Use Metric Mask MTU Window IRTT; do | ||
2389 | 163 | [ "$Mask" = "00000000" ] && break | ||
2390 | 164 | done < /proc/net/route | ||
2391 | 165 | interface="$Iface" | ||
2392 | 166 | ipaddr=$(LC_ALL=C /sbin/ip -4 addr list dev "$interface" scope global) | ||
2393 | 167 | ipaddr=${ipaddr#* inet } | ||
2394 | 168 | ipaddr=${ipaddr%%/*} | ||
2395 | 169 | # Set the IP address of the interface with default route | ||
2396 | 170 | if [ -n "$ipaddr" ]; then | ||
2397 | 171 | configure_maas_default_url "$ipaddr" | ||
2398 | 172 | configure_maas_squid_deb_proxy "$ipaddr" | ||
2399 | 173 | db_subst maas/installation-note MAAS_URL "$ipaddr" | ||
2400 | 174 | db_set maas/default-maas-url "$ipaddr" | ||
2401 | 175 | fi | ||
2402 | 176 | |||
2403 | 177 | ######################################################### | ||
2404 | 178 | ################ Configure Logging #################### | ||
2405 | 179 | ######################################################### | ||
2406 | 180 | |||
2407 | 181 | # Give appropriate permissions | ||
2408 | 182 | if [ ! -f /var/log/maas/maas.log ]; then | ||
2409 | 183 | touch /var/log/maas/maas.log | ||
2410 | 184 | fi | ||
2411 | 185 | chown -R maas:maas /var/log/maas | ||
2412 | 186 | chmod -R 775 /var/log/maas/oops | ||
2413 | 187 | |||
2414 | 188 | # Create log directory base | ||
2415 | 189 | mkdir -p /var/log/maas/rsyslog | ||
2416 | 190 | chown -R syslog:syslog /var/log/maas/rsyslog | ||
2417 | 191 | # Make sure rsyslog reads our config | ||
2418 | 192 | invoke-rc.d rsyslog restart | ||
2419 | 193 | |||
2420 | 194 | ######################################################### | ||
2421 | 195 | ################### Squid-deb-proxy #################### | ||
2422 | 196 | ######################################################### | ||
2423 | 197 | # Make sure squid-deb-proxy reads our config (99-maas) | ||
2424 | 198 | invoke-rc.d squid-deb-proxy restart | ||
2425 | 199 | |||
2426 | 200 | ######################################################### | ||
2427 | 201 | ########## Configure longpoll rabbitmq config ########### | ||
2428 | 202 | ######################################################### | ||
2429 | 203 | |||
2430 | 204 | # Handle longpoll/rabbitmq publishing | ||
2431 | 205 | restart_rabbitmq | ||
2432 | 206 | configure_maas_txlongpoll_rabbitmq_user | ||
2433 | 207 | |||
2434 | 208 | ######################################################### | ||
2435 | 209 | ########## Configure worker rabbitmq config ########### | ||
2436 | 210 | ######################################################### | ||
2437 | 211 | |||
2438 | 212 | # Handle celery/rabbitmq publishing | ||
2439 | 213 | configure_maas_workers_rabbitmq_user "$ipaddr" | ||
2440 | 214 | |||
2441 | 215 | ######################################################### | ||
2442 | 216 | ################ Configure Database ################### | ||
2443 | 217 | ######################################################### | ||
2444 | 218 | |||
2445 | 219 | # Need to for postgresql start so it doesn't fail on the installer | ||
2446 | 220 | restart_postgresql | ||
2447 | 221 | |||
2448 | 222 | # Create the database | ||
2449 | 223 | dbc_go maas-region-controller $@ | ||
2450 | 224 | configure_maas_database "$dbc_dbpass" | ||
2451 | 225 | |||
2452 | 226 | # Only syncdb if we have selected to install it with dbconfig-common. | ||
2453 | 227 | db_get maas-region-controller/dbconfig-install | ||
2454 | 228 | if [ "$RET" = "true" ]; then | ||
2455 | 229 | maas_sync_migrate_db | ||
2456 | 230 | fi | ||
2457 | 231 | |||
2458 | 232 | # Display installation note | ||
2459 | 233 | db_input high maas/installation-note || true | ||
2460 | 234 | db_go | ||
2461 | 235 | |||
2462 | 236 | elif [ -n "$DEBCONF_RECONFIGURE" ]; then | ||
2463 | 237 | # Set the IP address of the interface with default route | ||
2464 | 238 | db_get maas/default-maas-url | ||
2465 | 239 | ipaddr="$RET" | ||
2466 | 240 | if [ -n "$ipaddr" ]; then | ||
2467 | 241 | configure_maas_default_url "$ipaddr" | ||
2468 | 242 | configure_maas_squid_deb_proxy "$ipaddr" | ||
2469 | 243 | configure_maas_workers_rabbitmq_user "$ipaddr" | ||
2470 | 244 | fi | ||
2471 | 245 | |||
2472 | 246 | elif [ "$1" = "configure" ] && dpkg --compare-versions "$2" gt 0.1+bzr266+dfsg-0ubuntu1; then | ||
2473 | 247 | # If upgrading to any later package version, then upgrade db. | ||
2474 | 248 | invoke-rc.d apache2 stop || true | ||
2475 | 249 | |||
2476 | 250 | # make sure postgresql is running | ||
2477 | 251 | restart_postgresql | ||
2478 | 252 | |||
2479 | 253 | # make sure maas http config is symlinked | ||
2480 | 254 | configure_region_http | ||
2481 | 255 | |||
2482 | 256 | # we need to regenerate the passwords and update configs. | ||
2483 | 257 | db_get maas/default-maas-url | ||
2484 | 258 | ipaddr="$RET" | ||
2485 | 259 | configure_maas_default_url "$ipaddr" | ||
2486 | 260 | configure_maas_squid_deb_proxy "$ipaddr" | ||
2487 | 261 | # make sure rabbitmq is running | ||
2488 | 262 | restart_rabbitmq | ||
2489 | 263 | configure_maas_txlongpoll_rabbitmq_user | ||
2490 | 264 | # Handle celery/rabbitmq publishing | ||
2491 | 265 | configure_maas_workers_rabbitmq_user "$ipaddr" | ||
2492 | 266 | # handle database upgrade | ||
2493 | 267 | if [ -f /etc/dbconfig-common/maas-region-controller.conf ]; then | ||
2494 | 268 | # source dbconfig-common db config for maas-region-controller | ||
2495 | 269 | # before upgrading database, otherwise a new config is written | ||
2496 | 270 | # but the password is no longer preserved. | ||
2497 | 271 | . /etc/dbconfig-common/maas-region-controller.conf | ||
2498 | 272 | else | ||
2499 | 273 | dbc_go maas-region-controller $@ | ||
2500 | 274 | fi | ||
2501 | 275 | configure_maas_database "$dbc_dbpass" | ||
2502 | 276 | |||
2503 | 277 | maas_sync_migrate_db | ||
2504 | 278 | |||
2505 | 279 | fi | ||
2506 | 280 | |||
2507 | 281 | invoke-rc.d apache2 restart || true | ||
2508 | 282 | |||
2509 | 283 | restart_squid_deb_proxy | ||
2510 | 284 | |||
2511 | 285 | db_stop | ||
2512 | 286 | |||
2513 | 287 | #DEBHELPER# | ||
2514 | 0 | 288 | ||
2515 | === added file 'debian/maas-region-controller.postrm' | |||
2516 | --- debian/maas-region-controller.postrm 1970-01-01 00:00:00 +0000 | |||
2517 | +++ debian/maas-region-controller.postrm 2013-10-11 14:15:22 +0000 | |||
2518 | @@ -0,0 +1,59 @@ | |||
2519 | 1 | #!/bin/sh | ||
2520 | 2 | |||
2521 | 3 | set -e | ||
2522 | 4 | |||
2523 | 5 | . /usr/share/debconf/confmodule | ||
2524 | 6 | |||
2525 | 7 | RELEASE=`lsb_release -rs` || RELEASE="" | ||
2526 | 8 | |||
2527 | 9 | if [ -f /etc/dbconfig-common/maas.conf ]; then | ||
2528 | 10 | if [ -f /usr/share/dbconfig-common/dpkg/postrm ]; then | ||
2529 | 11 | . /usr/share/dbconfig-common/dpkg/postrm.pgsql | ||
2530 | 12 | dbc_go maas-region-controller $@ | ||
2531 | 13 | fi | ||
2532 | 14 | fi | ||
2533 | 15 | |||
2534 | 16 | case "$1" in | ||
2535 | 17 | purge) | ||
2536 | 18 | rm -rf /var/log/maas | ||
2537 | 19 | rm -rf /var/lib/maas | ||
2538 | 20 | case $RELEASE in | ||
2539 | 21 | 12.04|12.10|13.04) | ||
2540 | 22 | if [ -h /etc/apache2/conf.d/maas-http.conf ]; then | ||
2541 | 23 | rm -rf /etc/apache2/conf.d/maas-http.conf | ||
2542 | 24 | fi | ||
2543 | 25 | ;; | ||
2544 | 26 | *) | ||
2545 | 27 | if [ -h /etc/apache2/conf-enabled/maas-http.conf ]; then | ||
2546 | 28 | rm -rf /etc/apache2/conf-enabled/maas-http.conf | ||
2547 | 29 | fi | ||
2548 | 30 | ;; | ||
2549 | 31 | esac | ||
2550 | 32 | |||
2551 | 33 | # Restarting apache2 | ||
2552 | 34 | if [ -x /usr/sbin/invoke-rc.d ]; then | ||
2553 | 35 | invoke-rc.d apache2 restart || true | ||
2554 | 36 | fi | ||
2555 | 37 | |||
2556 | 38 | # Delete symlink | ||
2557 | 39 | if [ -L /etc/squid-deb-proxy/mirror-dstdomain.acl.d/99-maas ]; then | ||
2558 | 40 | rm -rf /etc/squid-deb-proxy/mirror-dstdomain.acl.d/99-maas | ||
2559 | 41 | fi | ||
2560 | 42 | |||
2561 | 43 | # Remove rabbitmq/longpoll/celery | ||
2562 | 44 | longpoll_user="maas_longpoll" | ||
2563 | 45 | longpoll_vhost="/maas_longpoll" | ||
2564 | 46 | workers_user="maas_workers" | ||
2565 | 47 | workers_vhost="/maas_workers" | ||
2566 | 48 | if [ -x /usr/sbin/rabbitmqctl ]; then | ||
2567 | 49 | rabbitmqctl delete_vhost "$longpoll_vhost" || true | ||
2568 | 50 | rabbitmqctl delete_user "$longpoll_user" || true | ||
2569 | 51 | |||
2570 | 52 | rabbitmqctl delete_vhost "$workers_vhost" || true | ||
2571 | 53 | rabbitmqctl delete_user "$workers_user" || true | ||
2572 | 54 | fi | ||
2573 | 55 | esac | ||
2574 | 56 | |||
2575 | 57 | #DEBHELPER# | ||
2576 | 58 | |||
2577 | 59 | db_stop | ||
2578 | 0 | 60 | ||
2579 | === added file 'debian/maas-region-controller.prerm' | |||
2580 | --- debian/maas-region-controller.prerm 1970-01-01 00:00:00 +0000 | |||
2581 | +++ debian/maas-region-controller.prerm 2013-10-11 14:15:22 +0000 | |||
2582 | @@ -0,0 +1,12 @@ | |||
2583 | 1 | #!/bin/sh | ||
2584 | 2 | |||
2585 | 3 | set -e | ||
2586 | 4 | |||
2587 | 5 | . /usr/share/debconf/confmodule | ||
2588 | 6 | |||
2589 | 7 | #DEBHELPER# | ||
2590 | 8 | |||
2591 | 9 | invoke-rc.d apache2 stop || true | ||
2592 | 10 | |||
2593 | 11 | . /usr/share/dbconfig-common/dpkg/prerm.pgsql | ||
2594 | 12 | dbc_go maas-region-controller $@ | ||
2595 | 0 | 13 | ||
2596 | === added file 'debian/maas-region-controller.templates' | |||
2597 | --- debian/maas-region-controller.templates 1970-01-01 00:00:00 +0000 | |||
2598 | +++ debian/maas-region-controller.templates 2013-10-11 14:15:22 +0000 | |||
2599 | @@ -0,0 +1,22 @@ | |||
2600 | 1 | Template: maas/installation-note | ||
2601 | 2 | Type: note | ||
2602 | 3 | Default: true | ||
2603 | 4 | _Description: Ubuntu MAAS Server | ||
2604 | 5 | The Ubuntu MAAS Server has been installed in your system. You | ||
2605 | 6 | can access the MAAS Web interface here: | ||
2606 | 7 | . | ||
2607 | 8 | http://${MAAS_URL}/MAAS | ||
2608 | 9 | . | ||
2609 | 10 | If the automatically detected address above is not in the same | ||
2610 | 11 | network as the MAAS clients, you need to reconfigure it: | ||
2611 | 12 | . | ||
2612 | 13 | sudo dpkg-reconfigure maas-region-controller | ||
2613 | 14 | |||
2614 | 15 | Template: maas/default-maas-url | ||
2615 | 16 | Type: string | ||
2616 | 17 | _Description: Ubuntu MAAS PXE/Provisioning network address: | ||
2617 | 18 | The Ubuntu MAAS Server automatically detects the IP address | ||
2618 | 19 | that is used for PXE and provisioning. However, it needs to be | ||
2619 | 20 | in the same network as the clients. If the automatically | ||
2620 | 21 | detected address is not in the same network as the clients, it | ||
2621 | 22 | must be changed. | ||
2622 | 0 | 23 | ||
2623 | === added file 'debian/maintscript' | |||
2624 | --- debian/maintscript 1970-01-01 00:00:00 +0000 | |||
2625 | +++ debian/maintscript 2013-10-11 14:15:22 +0000 | |||
2626 | @@ -0,0 +1,2 @@ | |||
2627 | 1 | rm_conffile /etc/init/maas-celery.conf 0.1+bzr971+dfsg-0ubuntu2 | ||
2628 | 2 | rm_conffile /etc/dbconfig-common/maas.conf 0.1+bzr971+dfsg-0ubuntu2 | ||
2629 | 0 | 3 | ||
2630 | === added directory 'debian/patches' | |||
2631 | === added file 'debian/patches/01-fix-database-settings.patch' | |||
2632 | --- debian/patches/01-fix-database-settings.patch 1970-01-01 00:00:00 +0000 | |||
2633 | +++ debian/patches/01-fix-database-settings.patch 2013-10-11 14:15:22 +0000 | |||
2634 | @@ -0,0 +1,26 @@ | |||
2635 | 1 | Index: maas-0.1+bzr702+dfsg.orig/contrib/maas_local_settings.py | ||
2636 | 2 | =================================================================== | ||
2637 | 3 | --- maas-0.1+bzr702+dfsg.orig.orig/contrib/maas_local_settings.py 2012-06-29 12:03:20.000000000 -0400 | ||
2638 | 4 | +++ maas-0.1+bzr702+dfsg.orig/contrib/maas_local_settings.py 2012-06-29 12:17:00.733389757 -0400 | ||
2639 | 5 | @@ -7,7 +7,7 @@ | ||
2640 | 6 | DEFAULT_MAAS_URL = "http://maas.internal.example.com/" | ||
2641 | 7 | |||
2642 | 8 | # Absolute path to the directory static files should be collected to. | ||
2643 | 9 | -STATIC_ROOT = '/var/lib/maas/static/' | ||
2644 | 10 | +STATIC_ROOT = '/usr/share/maas/web/static/' | ||
2645 | 11 | |||
2646 | 12 | # Prefix to use for MAAS's urls. | ||
2647 | 13 | # If FORCE_SCRIPT_NAME is None (the default), all the urls will start with | ||
2648 | 14 | @@ -68,9 +68,9 @@ | ||
2649 | 15 | 'default': { | ||
2650 | 16 | # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' etc. | ||
2651 | 17 | 'ENGINE': 'django.db.backends.postgresql_psycopg2', | ||
2652 | 18 | - 'NAME': '', | ||
2653 | 19 | - 'USER': '', | ||
2654 | 20 | - 'PASSWORD': '', | ||
2655 | 21 | + 'NAME': 'maasdb', | ||
2656 | 22 | + 'USER': 'maas', | ||
2657 | 23 | + 'PASSWORD': 'maas', | ||
2658 | 24 | 'HOST': 'localhost', | ||
2659 | 25 | } | ||
2660 | 26 | } | ||
2661 | 0 | 27 | ||
2662 | === added file 'debian/patches/02-pserv-config.patch' | |||
2663 | --- debian/patches/02-pserv-config.patch 1970-01-01 00:00:00 +0000 | |||
2664 | +++ debian/patches/02-pserv-config.patch 2013-10-11 14:15:22 +0000 | |||
2665 | @@ -0,0 +1,38 @@ | |||
2666 | 1 | Description: Use default settings for MAAS PSERV | ||
2667 | 2 | Use default settings for MAAS pserv. These default settings | ||
2668 | 3 | include port, logfile, oops directory, cobbler url and username | ||
2669 | 4 | Author: Andres Rodriguez <andreserl@ubuntu.com> | ||
2670 | 5 | |||
2671 | 6 | Index: maas-0.1+bzr917+dfsg.orig/etc/maas/pserv.yaml | ||
2672 | 7 | =================================================================== | ||
2673 | 8 | --- maas-0.1+bzr917+dfsg.orig.orig/etc/maas/pserv.yaml 2012-08-23 16:22:46.483599114 -0400 | ||
2674 | 9 | +++ maas-0.1+bzr917+dfsg.orig/etc/maas/pserv.yaml 2012-08-23 16:22:56.579599373 -0400 | ||
2675 | 10 | @@ -6,7 +6,7 @@ | ||
2676 | 11 | ## running server. | ||
2677 | 12 | # | ||
2678 | 13 | # logfile: "pserv.log" | ||
2679 | 14 | -logfile: "/dev/null" | ||
2680 | 15 | +logfile: "/var/log/maas/pserv.log" | ||
2681 | 16 | |||
2682 | 17 | ## OOPS configuration (optional). | ||
2683 | 18 | # | ||
2684 | 19 | @@ -15,7 +15,7 @@ | ||
2685 | 20 | # or directories other than what the oops machinery creates there. | ||
2686 | 21 | # | ||
2687 | 22 | # directory: | ||
2688 | 23 | - directory: "logs/oops" | ||
2689 | 24 | + directory: "/var/log/maas/oops" | ||
2690 | 25 | # reporter: | ||
2691 | 26 | reporter: "maas-pserv" | ||
2692 | 27 | |||
2693 | 28 | @@ -33,10 +33,8 @@ | ||
2694 | 29 | tftp: | ||
2695 | 30 | # root: /var/lib/maas/tftp | ||
2696 | 31 | # port: 69 | ||
2697 | 32 | - port: 5244 | ||
2698 | 33 | ## The URL to be contacted to generate PXE configurations. | ||
2699 | 34 | # generator: http://localhost/MAAS/api/1.0/pxeconfig/ | ||
2700 | 35 | - generator: http://localhost:5243/api/1.0/pxeconfig/ | ||
2701 | 36 | |||
2702 | 37 | ## Boot configuration. | ||
2703 | 38 | boot: | ||
2704 | 0 | 39 | ||
2705 | === added file 'debian/patches/03-txlongpoll-config.patch' | |||
2706 | --- debian/patches/03-txlongpoll-config.patch 1970-01-01 00:00:00 +0000 | |||
2707 | +++ debian/patches/03-txlongpoll-config.patch 2013-10-11 14:15:22 +0000 | |||
2708 | @@ -0,0 +1,39 @@ | |||
2709 | 1 | Description: Use default settings for MAAS txlongpoll | ||
2710 | 2 | Use default settings for MAAS txlongpoll. These default settings | ||
2711 | 3 | include oops directory, Message broker configuration, logfile. | ||
2712 | 4 | Author: Andres Rodriguez <andreserl@ubuntu.com> | ||
2713 | 5 | |||
2714 | 6 | Index: maas-0.1+bzr398+dfsg.orig/etc/txlongpoll.yaml | ||
2715 | 7 | =================================================================== | ||
2716 | 8 | --- maas-0.1+bzr398+dfsg.orig.orig/etc/txlongpoll.yaml 2012-04-03 09:49:48.109427702 -0400 | ||
2717 | 9 | +++ maas-0.1+bzr398+dfsg.orig/etc/txlongpoll.yaml 2012-04-03 09:53:07.276282800 -0400 | ||
2718 | 10 | @@ -17,7 +17,7 @@ | ||
2719 | 11 | # or directories other than what the oops machinery creates there. | ||
2720 | 12 | # | ||
2721 | 13 | # directory: "" | ||
2722 | 14 | - directory: "logs/oops" | ||
2723 | 15 | + directory: "/var/log/maas/oops" | ||
2724 | 16 | ## The reporter used when generating OOPS reports. | ||
2725 | 17 | # reporter: "LONGPOLL" | ||
2726 | 18 | reporter: "maas-txlongpoll" | ||
2727 | 19 | @@ -25,14 +25,14 @@ | ||
2728 | 20 | ## Message broker configuration. | ||
2729 | 21 | # | ||
2730 | 22 | broker: | ||
2731 | 23 | - # host: "localhost" | ||
2732 | 24 | - # port: 5672 | ||
2733 | 25 | - # username: "guest" | ||
2734 | 26 | - # password: "guest" | ||
2735 | 27 | - # vhost: "/" | ||
2736 | 28 | + host: "localhost" | ||
2737 | 29 | + port: 5672 | ||
2738 | 30 | + username: "maas_longpoll" | ||
2739 | 31 | + password: "maaslongpoll" | ||
2740 | 32 | + vhost: "/maas_longpoll" | ||
2741 | 33 | |||
2742 | 34 | ## Where to log. This log can be rotated by sending SIGUSR1 to the | ||
2743 | 35 | ## running server. | ||
2744 | 36 | # | ||
2745 | 37 | # logfile: "txlongpoll.log" | ||
2746 | 38 | -logfile: "/dev/null" | ||
2747 | 39 | +logfile: "/var/log/maas/txlongpoll.log" | ||
2748 | 0 | 40 | ||
2749 | === added file 'debian/patches/series' | |||
2750 | --- debian/patches/series 1970-01-01 00:00:00 +0000 | |||
2751 | +++ debian/patches/series 2013-10-11 14:15:22 +0000 | |||
2752 | @@ -0,0 +1,3 @@ | |||
2753 | 1 | 01-fix-database-settings.patch | ||
2754 | 2 | 02-pserv-config.patch | ||
2755 | 3 | 03-txlongpoll-config.patch | ||
2756 | 0 | 4 | ||
2757 | === added directory 'debian/po' | |||
2758 | === added file 'debian/po/POTFILES.in' | |||
2759 | --- debian/po/POTFILES.in 1970-01-01 00:00:00 +0000 | |||
2760 | +++ debian/po/POTFILES.in 2013-10-11 14:15:22 +0000 | |||
2761 | @@ -0,0 +1,2 @@ | |||
2762 | 1 | [type: gettext/rfc822deb] maas-region-controller.templates | ||
2763 | 2 | [type: gettext/rfc822deb] maas-cluster-controller.templates | ||
2764 | 0 | 3 | ||
2765 | === added file 'debian/po/templates.pot' | |||
2766 | --- debian/po/templates.pot 1970-01-01 00:00:00 +0000 | |||
2767 | +++ debian/po/templates.pot 2013-10-11 14:15:22 +0000 | |||
2768 | @@ -0,0 +1,82 @@ | |||
2769 | 1 | # SOME DESCRIPTIVE TITLE. | ||
2770 | 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER | ||
2771 | 3 | # This file is distributed under the same license as the PACKAGE package. | ||
2772 | 4 | # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. | ||
2773 | 5 | # | ||
2774 | 6 | #, fuzzy | ||
2775 | 7 | msgid "" | ||
2776 | 8 | msgstr "" | ||
2777 | 9 | "Project-Id-Version: maas\n" | ||
2778 | 10 | "Report-Msgid-Bugs-To: maas@packages.debian.org\n" | ||
2779 | 11 | "POT-Creation-Date: 2012-10-04 13:40-0400\n" | ||
2780 | 12 | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | ||
2781 | 13 | "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||
2782 | 14 | "Language-Team: LANGUAGE <LL@li.org>\n" | ||
2783 | 15 | "Language: \n" | ||
2784 | 16 | "MIME-Version: 1.0\n" | ||
2785 | 17 | "Content-Type: text/plain; charset=CHARSET\n" | ||
2786 | 18 | "Content-Transfer-Encoding: 8bit\n" | ||
2787 | 19 | |||
2788 | 20 | #. Type: note | ||
2789 | 21 | #. Description | ||
2790 | 22 | #: ../maas-region-controller.templates:1001 | ||
2791 | 23 | msgid "Ubuntu MAAS Server" | ||
2792 | 24 | msgstr "" | ||
2793 | 25 | |||
2794 | 26 | #. Type: note | ||
2795 | 27 | #. Description | ||
2796 | 28 | #: ../maas-region-controller.templates:1001 | ||
2797 | 29 | msgid "" | ||
2798 | 30 | "The Ubuntu MAAS Server has been installed in your system. You can access the " | ||
2799 | 31 | "MAAS Web interface here:" | ||
2800 | 32 | msgstr "" | ||
2801 | 33 | |||
2802 | 34 | #. Type: note | ||
2803 | 35 | #. Description | ||
2804 | 36 | #: ../maas-region-controller.templates:1001 | ||
2805 | 37 | msgid " http://${MAAS_URL}/MAAS" | ||
2806 | 38 | msgstr "" | ||
2807 | 39 | |||
2808 | 40 | #. Type: note | ||
2809 | 41 | #. Description | ||
2810 | 42 | #: ../maas-region-controller.templates:1001 | ||
2811 | 43 | msgid "" | ||
2812 | 44 | "If the automatically detected address above is not in the same network as " | ||
2813 | 45 | "the MAAS clients, you need to reconfigure it:" | ||
2814 | 46 | msgstr "" | ||
2815 | 47 | |||
2816 | 48 | #. Type: note | ||
2817 | 49 | #. Description | ||
2818 | 50 | #: ../maas-region-controller.templates:1001 | ||
2819 | 51 | msgid " sudo dpkg-reconfigure maas-region-controller" | ||
2820 | 52 | msgstr "" | ||
2821 | 53 | |||
2822 | 54 | #. Type: string | ||
2823 | 55 | #. Description | ||
2824 | 56 | #: ../maas-region-controller.templates:2001 | ||
2825 | 57 | msgid "Ubuntu MAAS PXE/Provisioning network address:" | ||
2826 | 58 | msgstr "" | ||
2827 | 59 | |||
2828 | 60 | #. Type: string | ||
2829 | 61 | #. Description | ||
2830 | 62 | #: ../maas-region-controller.templates:2001 | ||
2831 | 63 | msgid "" | ||
2832 | 64 | "The Ubuntu MAAS Server automatically detects the IP address that is used for " | ||
2833 | 65 | "PXE and provisioning. However, it needs to be in the same network as the " | ||
2834 | 66 | "clients. If the automatically detected address is not in the same network as " | ||
2835 | 67 | "the clients, it must be changed." | ||
2836 | 68 | msgstr "" | ||
2837 | 69 | |||
2838 | 70 | #. Type: string | ||
2839 | 71 | #. Description | ||
2840 | 72 | #: ../maas-cluster-controller.templates:1001 | ||
2841 | 73 | msgid "Ubuntu MAAS API address:" | ||
2842 | 74 | msgstr "" | ||
2843 | 75 | |||
2844 | 76 | #. Type: string | ||
2845 | 77 | #. Description | ||
2846 | 78 | #: ../maas-cluster-controller.templates:1001 | ||
2847 | 79 | msgid "" | ||
2848 | 80 | "The MAAS Cluster Controller needs to contact the MAAS server to register its " | ||
2849 | 81 | "presence. Set the URL to the MAAS API here, e.g. http://192.168.1.1/MAAS" | ||
2850 | 82 | msgstr "" | ||
2851 | 0 | 83 | ||
2852 | === added file 'debian/python-django-maas.install' | |||
2853 | --- debian/python-django-maas.install 1970-01-01 00:00:00 +0000 | |||
2854 | +++ debian/python-django-maas.install 2013-10-11 14:15:22 +0000 | |||
2855 | @@ -0,0 +1,2 @@ | |||
2856 | 1 | debian/tmp/usr/lib/python*/dist-packages/maasserver | ||
2857 | 2 | debian/tmp/usr/lib/python*/dist-packages/metadataserver | ||
2858 | 0 | 3 | ||
2859 | === added file 'debian/python-maas-client.install' | |||
2860 | --- debian/python-maas-client.install 1970-01-01 00:00:00 +0000 | |||
2861 | +++ debian/python-maas-client.install 2013-10-11 14:15:22 +0000 | |||
2862 | @@ -0,0 +1,1 @@ | |||
2863 | 1 | debian/tmp/usr/lib/python*/dist-packages/apiclient | ||
2864 | 0 | 2 | ||
2865 | === added file 'debian/python-maas-provisioningserver.install' | |||
2866 | --- debian/python-maas-provisioningserver.install 1970-01-01 00:00:00 +0000 | |||
2867 | +++ debian/python-maas-provisioningserver.install 2013-10-11 14:15:22 +0000 | |||
2868 | @@ -0,0 +1,4 @@ | |||
2869 | 1 | debian/tmp/usr/lib/python*/dist-packages/provisioningserver | ||
2870 | 2 | |||
2871 | 3 | # Install other stuff | ||
2872 | 4 | debian/extras/maas-provision usr/sbin | ||
2873 | 0 | 5 | ||
2874 | === added file 'debian/python-maas-provisioningserver.lintian-overrides' | |||
2875 | --- debian/python-maas-provisioningserver.lintian-overrides 1970-01-01 00:00:00 +0000 | |||
2876 | +++ debian/python-maas-provisioningserver.lintian-overrides 2013-10-11 14:15:22 +0000 | |||
2877 | @@ -0,0 +1,1 @@ | |||
2878 | 1 | python-maas-provisioningserver: binary-without-manpage usr/sbin/maas-provision | ||
2879 | 0 | 2 | ||
2880 | === added file 'debian/rules' | |||
2881 | --- debian/rules 1970-01-01 00:00:00 +0000 | |||
2882 | +++ debian/rules 2013-10-11 14:15:22 +0000 | |||
2883 | @@ -0,0 +1,65 @@ | |||
2884 | 1 | #!/usr/bin/make -f | ||
2885 | 2 | |||
2886 | 3 | BUILDHOME = $(CURDIR)/debian/build | ||
2887 | 4 | PYTHON = $(shell pyversions -d) | ||
2888 | 5 | # Python enum modules. | ||
2889 | 6 | py_enums := $(wildcard src/*/enum.py) | ||
2890 | 7 | |||
2891 | 8 | %: | ||
2892 | 9 | dh $@ --with python2,apport --buildsystem=python_distutils | ||
2893 | 10 | |||
2894 | 11 | override_dh_installinit: | ||
2895 | 12 | dh_installinit --name maas-pserv | ||
2896 | 13 | dh_installinit --name maas-txlongpoll | ||
2897 | 14 | dh_installinit --name maas-region-celery | ||
2898 | 15 | dh_installinit --name maas-cluster-celery | ||
2899 | 16 | dh_installinit --name maas-dhcp-server | ||
2900 | 17 | |||
2901 | 18 | override_dh_auto_build: | ||
2902 | 19 | dh_auto_build | ||
2903 | 20 | |||
2904 | 21 | mkdir -p $(BUILDHOME) | ||
2905 | 22 | HOME=$(BUILDHOME) PYTHONPATH=$(CURDIR)/src/ $(PYTHON) \ | ||
2906 | 23 | $(CURDIR)/src/maasserver/utils/jsenums.py \ | ||
2907 | 24 | $(py_enums) > $(BUILDHOME)/enums.js | ||
2908 | 25 | |||
2909 | 26 | override_dh_auto_install: | ||
2910 | 27 | dh_auto_install | ||
2911 | 28 | |||
2912 | 29 | # Move static files | ||
2913 | 30 | install -d -m 755 $(CURDIR)/debian/tmp/usr/share/maas/web/static | ||
2914 | 31 | mv $(CURDIR)/debian/tmp/usr/lib/python*/*-packages/maasserver/static \ | ||
2915 | 32 | $(CURDIR)/debian/tmp/usr/share/maas/web/ | ||
2916 | 33 | |||
2917 | 34 | # Install built enums.js file. | ||
2918 | 35 | cp $(BUILDHOME)/enums.js $(CURDIR)/debian/tmp/usr/share/maas/web/static/js/ | ||
2919 | 36 | |||
2920 | 37 | # install the apparmor profile | ||
2921 | 38 | install -d -m 755 $(CURDIR)/debian/tmp/etc/apparmor.d/dhcpd.d | ||
2922 | 39 | install -m 644 $(CURDIR)/debian/maas-dhcp.apparmor \ | ||
2923 | 40 | $(CURDIR)/debian/tmp/etc/apparmor.d/dhcpd.d/maas | ||
2924 | 41 | |||
2925 | 42 | dh_install --list-missing | ||
2926 | 43 | |||
2927 | 44 | override_dh_auto_clean: | ||
2928 | 45 | dh_auto_clean | ||
2929 | 46 | rm -rf $(BUILDHOME) | ||
2930 | 47 | rm -rf src/*.egg-info | ||
2931 | 48 | |||
2932 | 49 | DEB_DEBIAN_DIR=$(dir $(firstword $(MAKEFILE_LIST))) | ||
2933 | 50 | REV=$(shell dpkg-parsechangelog -l$(DEB_DEBIAN_DIR)/changelog \ | ||
2934 | 51 | | sed -rne 's,^Version: .*[+~]bzr([0-9]+).*,\1,p') | ||
2935 | 52 | VER=$(shell dpkg-parsechangelog -l$(DEB_DEBIAN_DIR)/changelog \ | ||
2936 | 53 | | sed -rne 's,^Version: ([^-]+).*,\1,p') | ||
2937 | 54 | get-orig-source: | ||
2938 | 55 | bzr export -r $(REV) --root=maas-$(VER).orig \ | ||
2939 | 56 | maas_$(VER).orig.tar.gz lp:maas | ||
2940 | 57 | rm -rf maas-$(VER) | ||
2941 | 58 | tar -xf maas_$(VER).orig.tar.gz | ||
2942 | 59 | rm maas_$(VER).orig.tar.gz | ||
2943 | 60 | rm -rf maas-$(VER).orig/src/maasserver/static/jslibs/ | ||
2944 | 61 | rm -rf maas-$(VER).orig/contrib/python-tx-tftp | ||
2945 | 62 | GZIP=--best tar -cz --owner root --group root --mode a+rX \ | ||
2946 | 63 | -f maas_$(VER).orig.tar.gz \ | ||
2947 | 64 | maas-$(VER).orig | ||
2948 | 65 | rm -r maas-$(VER).orig | ||
2949 | 0 | 66 | ||
2950 | === added directory 'debian/source' | |||
2951 | === added file 'debian/source/format' | |||
2952 | --- debian/source/format 1970-01-01 00:00:00 +0000 | |||
2953 | +++ debian/source/format 2013-10-11 14:15:22 +0000 | |||
2954 | @@ -0,0 +1,1 @@ | |||
2955 | 1 | 3.0 (quilt) | ||
2956 | 0 | 2 | ||
2957 | === added file 'debian/watch' | |||
2958 | --- debian/watch 1970-01-01 00:00:00 +0000 | |||
2959 | +++ debian/watch 2013-10-11 14:15:22 +0000 | |||
2960 | @@ -0,0 +1,3 @@ | |||
2961 | 1 | version=3 | ||
2962 | 2 | opts=dversionmangle=s/\.dfsg// \ | ||
2963 | 3 | http://launchpad.net/maas/+download https://launchpad.net/maas/.*/maas-(.*).tar.* |