Merge lp:~andreserl/maas/packaging_bzr1948_ubuntu2 into lp:~maas-maintainers/maas/packaging

Proposed by Andres Rodriguez
Status: Merged
Approved by: Andres Rodriguez
Approved revision: 247
Merged at revision: 242
Proposed branch: lp:~andreserl/maas/packaging_bzr1948_ubuntu2
Merge into: lp:~maas-maintainers/maas/packaging
Diff against target: 129 lines (+42/-21)
4 files modified
debian/changelog (+20/-2)
debian/maas-cluster-controller.maas-pserv.upstart (+1/-1)
debian/maas-cluster-controller.postinst (+15/-14)
debian/patches/02-pserv-config.patch (+6/-4)
To merge this branch: bzr merge lp:~andreserl/maas/packaging_bzr1948_ubuntu2
Reviewer Review Type Date Requested Status
Andres Rodriguez (community) Approve
Review via email: mp+206596@code.launchpad.net

Commit message

Release 1.5+bzr1948-0ubuntu2
Open 1.5+bzr1948-0ubuntu3

To post a comment you must log in.
Revision history for this message
Andres Rodriguez (andreserl) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/changelog'
--- debian/changelog 2014-02-13 19:17:14 +0000
+++ debian/changelog 2014-02-15 21:26:52 +0000
@@ -1,4 +1,21 @@
1maas (1.5+bzr1930-0ubuntu1) UNRELEASED; urgency=low1maas (1.5+bzr1948-0ubuntu3) UNRELEASED; urgency=low
2
3 * UNRELEASED
4
5 -- Andres Rodriguez <andreserl@ubuntu.com> Sat, 15 Feb 2014 16:16:38 -0500
6
7maas (1.5+bzr1948-0ubuntu2) trusty; urgency=low
8
9 * debian/maas-cluster-controller.postinst: Make sure generator on
10 pserv.yaml is updated on upgrade or reconfigure. (LP: #1273197)
11 * debian/maas-cluster-controller.maas-pserv.upstart: Make sure maas-pserv
12 is started with authbind.
13
14 -- Andres Rodriguez <andreserl@ubuntu.com> Sat, 15 Feb 2014 13:55:20 -0500
15
16maas (1.5+bzr1948-0ubuntu1) trusty; urgency=low
17
18 * New upstream release.
219
3 [ Graham Binns ]20 [ Graham Binns ]
4 * debian/control: Depends on python-jsonschema.21 * debian/control: Depends on python-jsonschema.
@@ -6,6 +23,7 @@
6 [ Andres Rodriguez ]23 [ Andres Rodriguez ]
7 * debian/maas-region-controller-min.posinst: Make txlongpoll.yaml only24 * debian/maas-region-controller-min.posinst: Make txlongpoll.yaml only
8 readable by the app and not world readeable.25 readable by the app and not world readeable.
26 * debian/patches/02-pserv-config.patch: Refreshed.
927
10 [ Julian Edwards ]28 [ Julian Edwards ]
11 * debian/extras/maas-cli renamed to debian/extras/maas, and introduce29 * debian/extras/maas-cli renamed to debian/extras/maas, and introduce
@@ -23,7 +41,7 @@
23 * debian/maas-region-controller-min.postinst: Make sure txlongpoll.yaml41 * debian/maas-region-controller-min.postinst: Make sure txlongpoll.yaml
24 gets correct permissions on upgrade (LP: #1254034)42 gets correct permissions on upgrade (LP: #1254034)
2543
26 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 13 Feb 2014 14:17:01 -050044 -- Andres Rodriguez <andreserl@ubuntu.com> Sat, 15 Feb 2014 12:08:23 -0500
2745
28maas (1.5+bzr1909-0ubuntu1) trusty; urgency=low46maas (1.5+bzr1909-0ubuntu1) trusty; urgency=low
2947
3048
=== modified file 'debian/maas-cluster-controller.maas-pserv.upstart'
--- debian/maas-cluster-controller.maas-pserv.upstart 2012-12-13 09:52:54 +0000
+++ debian/maas-cluster-controller.maas-pserv.upstart 2014-02-15 21:26:52 +0000
@@ -27,5 +27,5 @@
27 # file.27 # file.
28 export CLUSTER_UUID28 export CLUSTER_UUID
29 # To add options to your daemon, edit the line below:29 # To add options to your daemon, edit the line below:
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.yaml30 exec /usr/bin/authbind --deep /usr/bin/twistd -n --uid=maas --gid=maas --pidfile=/run/maas-pserv.pid --logfile=/dev/null maas-pserv --config-file=/etc/maas/pserv.yaml
31end script31end script
3232
=== modified file 'debian/maas-cluster-controller.postinst'
--- debian/maas-cluster-controller.postinst 2013-12-05 17:43:07 +0000
+++ debian/maas-cluster-controller.postinst 2014-02-15 21:26:52 +0000
@@ -116,20 +116,7 @@
116 fi116 fi
117}117}
118118
119119configure_pserv_generator(){
120
121if [ "$1" = "configure" ] && [ -z "$2" ]; then
122 # logging
123 create_log_dir
124 configure_maas_tgt
125fi
126
127if ([ "$1" = "configure" ] && [ -z "$2" ]) || [ -n "$DEBCONF_RECONFIGURE" ]; then
128
129 if dpkg --compare-versions "$2" lt 0.1+bzr1239+dfsg-0ubuntu1; then
130 create_log_dir
131 fi
132
133 # Get the MAAS_URL on configure/reconfigure and write it to the conf files.120 # Get the MAAS_URL on configure/reconfigure and write it to the conf files.
134 db_get maas-cluster-controller/maas-url || true121 db_get maas-cluster-controller/maas-url || true
135 if [ -n "$RET" ]; then122 if [ -n "$RET" ]; then
@@ -140,9 +127,23 @@
140 # line.127 # line.
141 sed -ri "s|^([[:space:]]+)(#+[[:space:]]*)?(generator:[[:space:]]+https?://)[^:/]+|\1\3$HOSTPART|" /etc/maas/pserv.yaml128 sed -ri "s|^([[:space:]]+)(#+[[:space:]]*)?(generator:[[:space:]]+https?://)[^:/]+|\1\3$HOSTPART|" /etc/maas/pserv.yaml
142 fi129 fi
130}
131
132
133
134if [ "$1" = "configure" ] && [ -z "$2" ]; then
135 # logging
136 create_log_dir
137 configure_maas_tgt
143fi138fi
144139
145if [ "$1" = "configure" ]; then140if [ "$1" = "configure" ]; then
141 if dpkg --compare-versions "$2" lt 0.1+bzr1239+dfsg-0ubuntu1; then
142 create_log_dir
143 fi
144
145 configure_pserv_generator
146
146 # These config files may contain a private cluster UUID. Only maas147 # These config files may contain a private cluster UUID. Only maas
147 # can read them; only root can write them148 # can read them; only root can write them
148 chown root:maas \149 chown root:maas \
149150
=== modified file 'debian/patches/02-pserv-config.patch'
--- debian/patches/02-pserv-config.patch 2014-02-07 16:24:38 +0000
+++ debian/patches/02-pserv-config.patch 2014-02-15 21:26:52 +0000
@@ -3,8 +3,10 @@
3 include port, logfile, oops directory, cobbler url and username3 include port, logfile, oops directory, cobbler url and username
4Author: Andres Rodriguez <andreserl@ubuntu.com>4Author: Andres Rodriguez <andreserl@ubuntu.com>
55
6--- maas-1.5+bzr1908.orig.orig/etc/maas/pserv.yaml 2014-02-07 11:21:21.686557887 -05006Index: maas-1.5+bzr1948.orig/etc/maas/pserv.yaml
7+++ maas-1.5+bzr1908.orig/etc/maas/pserv.yaml 2014-02-07 11:21:21.678557887 -05007===================================================================
8--- maas-1.5+bzr1948.orig.orig/etc/maas/pserv.yaml 2014-02-15 12:08:35.152998981 -0500
9+++ maas-1.5+bzr1948.orig/etc/maas/pserv.yaml 2014-02-15 12:08:35.148998981 -0500
8@@ -6,7 +6,7 @@10@@ -6,7 +6,7 @@
9 ## running server.11 ## running server.
10 #12 #
@@ -32,5 +34,5 @@
32 # generator: http://localhost/MAAS/api/1.0/pxeconfig/34 # generator: http://localhost/MAAS/api/1.0/pxeconfig/
33- generator: http://localhost:5243/api/1.0/pxeconfig/35- generator: http://localhost:5243/api/1.0/pxeconfig/
34 36
35 ## RPC configuration, for region<-->cluster communications.37 ## Boot configuration.
36 #38 boot:

Subscribers

People subscribed via source and target branches

to all changes: