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
1=== modified file 'debian/changelog'
2--- debian/changelog 2013-10-04 16:33:18 +0000
3+++ debian/changelog 2013-10-08 13:51:33 +0000
4@@ -1,6 +1,7 @@
5 maas (1.4+bzr1656+dfsg-0ubuntu3) UNRELEASED; urgency=low
6
7- * UNRELEASED
8+ * d/maas-cluster-controller.postinst: a2enmod version module (LP: #1236544)
9+ * d/control: Bump depends on python-django to 1.4. (LP: #1236572)
10
11 -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 04 Oct 2013 12:33:05 -0400
12
13
14=== modified file 'debian/control'
15--- debian/control 2013-10-04 16:32:55 +0000
16+++ debian/control 2013-10-08 13:51:33 +0000
17@@ -59,7 +59,7 @@
18 maas-common (= ${binary:Version}),
19 postgresql-9.1,
20 pwgen,
21- python-django,
22+ python-django (>= 1.4),
23 python-django-maas (= ${binary:Version}),
24 python-django-piston,
25 python-django-south,
26
27=== modified file 'debian/maas-cluster-controller.postinst'
28--- debian/maas-cluster-controller.postinst 2013-07-29 19:50:11 +0000
29+++ debian/maas-cluster-controller.postinst 2013-10-08 13:51:33 +0000
30@@ -69,6 +69,13 @@
31 echo "CLUSTER_UUID=\"$uuid\"" >>/etc/maas/maas_cluster.conf
32 }
33
34+enable_apache_version_mod(){
35+ COMMON_STATE=$(dpkg-query -f '${Status}' -W 'apache2.2-common' 2>/dev/null | awk '{print $3}' || true)
36+ if [ "$COMMON_STATE" = "installed" ] || [ "$COMMON_STATE" = "unpacked" ] ; then
37+ a2enmod version
38+ fi
39+}
40+
41 configure_cluster_http(){
42 case $RELEASE in
43 12.04|12.10|13.04)
44@@ -132,6 +139,7 @@
45 /etc/maas/maas_cluster.conf
46
47 configure_cluster_uuid
48+ enable_apache_version_mod
49 configure_cluster_http
50 restart_apache2
51 fi

Subscribers

People subscribed via source and target branches

to all changes: