Merge lp:~andreserl/maas/packaging.utopic.rev331 into lp:~maas-maintainers/maas/packaging.utopic

Proposed by Andres Rodriguez
Status: Merged
Merged at revision: 343
Proposed branch: lp:~andreserl/maas/packaging.utopic.rev331
Merge into: lp:~maas-maintainers/maas/packaging.utopic
Diff against target: 49 lines (+13/-8)
2 files modified
debian/changelog (+10/-0)
debian/maas-cluster-controller.postinst (+3/-8)
To merge this branch: bzr merge lp:~andreserl/maas/packaging.utopic.rev331
Reviewer Review Type Date Requested Status
Andres Rodriguez (community) Approve
Review via email: mp+243585@code.launchpad.net

Commit message

Backporting packaging change rev331

To post a comment you must log in.
343. By Andres Rodriguez

update changelog

Revision history for this message
Andres Rodriguez (andreserl) wrote :

self approve.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2014-11-14 13:54:23 +0000
3+++ debian/changelog 2014-12-03 19:30:26 +0000
4@@ -1,3 +1,13 @@
5+maas (1.7.1~rc1+bzr3300-0ubuntu1) UNRELEASED; urgency=medium
6+
7+ * New upstream release, 1.7.1
8+
9+ [ Jeroen Vermeulen ]
10+ * debian/maas-cluster-controller.postinst: configure MAAS_URL through new
11+ "maas-provision configure-maas-url" sub-command instead of with "sed".
12+
13+ -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 14 Nov 2014 09:04:29 -0500
14+
15 maas (1.7.0+bzr3299-0ubuntu1) utopic; urgency=medium
16
17 * New upstream release, 1.7.0.
18
19=== modified file 'debian/maas-cluster-controller.postinst'
20--- debian/maas-cluster-controller.postinst 2014-11-06 14:25:26 +0000
21+++ debian/maas-cluster-controller.postinst 2014-12-03 19:30:26 +0000
22@@ -112,16 +112,11 @@
23 fi
24 }
25
26-configure_pserv_generator(){
27+configure_maas_url(){
28 # Get the MAAS_URL on configure/reconfigure and write it to the conf files.
29 db_get maas-cluster-controller/maas-url || true
30 if [ -n "$RET" ]; then
31- sed -i "s|MAAS_URL=.*|MAAS_URL=\"$RET\"|" /etc/maas/maas_cluster.conf
32- # Extract the hostname part.
33- HOSTPART=$(echo $RET|awk '{ split($0,array,"/")} END{print array[3] }')
34- # And substitute it in-place in pserv.yaml on an indented, non-commented
35- # line.
36- sed -ri "s|^([[:space:]]+)(#+[[:space:]]*)?(generator:[[:space:]]+https?://)[^:/]+|\1\3$HOSTPART|" /etc/maas/pserv.yaml
37+ maas-provision configure-maas-url "$RET"
38 fi
39 }
40
41@@ -146,7 +141,7 @@
42 fi
43
44 configure_maas_tgt
45- configure_pserv_generator
46+ configure_maas_url
47 # Only ask for a shared secret when the region is not installed
48 # on the same system.
49 if [ -n "$DEBCONF_RECONFIGURE" ] && [ ! -f /usr/sbin/maas-region-admin ]; then

Subscribers

People subscribed via source and target branches

to all changes: