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

Proposed by Andres Rodriguez
Status: Merged
Approved by: Andres Rodriguez
Approved revision: 212
Merged at revision: 207
Proposed branch: lp:~andreserl/maas/packaging_lp1236544
Merge into: lp:~maas-maintainers/maas/packaging
Diff against target: 51 lines (+11/-2)
3 files modified
debian/changelog (+2/-1)
debian/control (+1/-1)
debian/maas-cluster-controller.postinst (+8/-0)
To merge this branch: bzr merge lp:~andreserl/maas/packaging_lp1236544
Reviewer Review Type Date Requested Status
Jeroen T. Vermeulen (community) Approve
Review via email: mp+189694@code.launchpad.net

Commit message

d/maas-cluster-controller.postinst: a2enmod version module (LP: #1236544)
d/control: Bump depends on python-django to 1.4.

To post a comment you must log in.
Revision history for this message
Andres Rodriguez (andreserl) wrote :
Revision history for this message
Scott Moser (smoser) wrote :

Need a bug and a bug number for the d/control change.

Other than that LGTM.

210. By Andres Rodriguez

d/control: Bump depends on python-django to 1.4. (LP: #1236572)

211. By Andres Rodriguez

Update postinst

Revision history for this message
Jeroen T. Vermeulen (jtv) wrote :

In configure_cluster_http(), it might be worth extracting the new code into a separate function, e.g. enable_apache_version_module(). That way its purpose is immediately obvious, and when we maintain configure_cluster_http() in the future, we won't have to worry about exactly where else in the function COMMON_STATE might be used.

review: Approve
212. By Andres Rodriguez

Address comments

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/changelog'
--- debian/changelog 2013-10-04 16:33:18 +0000
+++ debian/changelog 2013-10-08 13:51:33 +0000
@@ -1,6 +1,7 @@
1maas (1.4+bzr1656+dfsg-0ubuntu3) UNRELEASED; urgency=low1maas (1.4+bzr1656+dfsg-0ubuntu3) UNRELEASED; urgency=low
22
3 * UNRELEASED3 * d/maas-cluster-controller.postinst: a2enmod version module (LP: #1236544)
4 * d/control: Bump depends on python-django to 1.4. (LP: #1236572)
45
5 -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 04 Oct 2013 12:33:05 -04006 -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 04 Oct 2013 12:33:05 -0400
67
78
=== modified file 'debian/control'
--- debian/control 2013-10-04 16:32:55 +0000
+++ debian/control 2013-10-08 13:51:33 +0000
@@ -59,7 +59,7 @@
59 maas-common (= ${binary:Version}),59 maas-common (= ${binary:Version}),
60 postgresql-9.1,60 postgresql-9.1,
61 pwgen,61 pwgen,
62 python-django,62 python-django (>= 1.4),
63 python-django-maas (= ${binary:Version}),63 python-django-maas (= ${binary:Version}),
64 python-django-piston,64 python-django-piston,
65 python-django-south,65 python-django-south,
6666
=== modified file 'debian/maas-cluster-controller.postinst'
--- debian/maas-cluster-controller.postinst 2013-07-29 19:50:11 +0000
+++ debian/maas-cluster-controller.postinst 2013-10-08 13:51:33 +0000
@@ -69,6 +69,13 @@
69 echo "CLUSTER_UUID=\"$uuid\"" >>/etc/maas/maas_cluster.conf69 echo "CLUSTER_UUID=\"$uuid\"" >>/etc/maas/maas_cluster.conf
70}70}
7171
72enable_apache_version_mod(){
73 COMMON_STATE=$(dpkg-query -f '${Status}' -W 'apache2.2-common' 2>/dev/null | awk '{print $3}' || true)
74 if [ "$COMMON_STATE" = "installed" ] || [ "$COMMON_STATE" = "unpacked" ] ; then
75 a2enmod version
76 fi
77}
78
72configure_cluster_http(){79configure_cluster_http(){
73 case $RELEASE in80 case $RELEASE in
74 12.04|12.10|13.04)81 12.04|12.10|13.04)
@@ -132,6 +139,7 @@
132 /etc/maas/maas_cluster.conf139 /etc/maas/maas_cluster.conf
133140
134 configure_cluster_uuid141 configure_cluster_uuid
142 enable_apache_version_mod
135 configure_cluster_http143 configure_cluster_http
136 restart_apache2144 restart_apache2
137fi145fi

Subscribers

People subscribed via source and target branches

to all changes: