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

Proposed by Andres Rodriguez
Status: Merged
Approved by: Andres Rodriguez
Approved revision: no longer in the source branch.
Merged at revision: 60
Proposed branch: lp:~andreserl/maas/maas_bzr_865
Merge into: lp:~maas-maintainers/maas/packaging
Diff against target: 143 lines (+82/-5)
6 files modified
debian/changelog (+11/-1)
debian/control (+18/-1)
debian/maas-dns.dirs (+1/-0)
debian/maas-dns.postinst (+25/-0)
debian/maas-dns.postrm (+24/-0)
debian/maas.postinst (+3/-3)
To merge this branch: bzr merge lp:~andreserl/maas/maas_bzr_865
Reviewer Review Type Date Requested Status
Julian Edwards (community) Approve
Review via email: mp+119210@code.launchpad.net

Commit message

Add '/MAAS' to MAAS_DEFAULT_URL (LP: #1033956)
Add 'maas-dns' to enable related operations (LP: #1030860)

To post a comment you must log in.
Revision history for this message
Julian Edwards (julian-edwards) wrote :

Looks ok to my untrained eye, so unblocking you.

review: Approve
Revision history for this message
MAAS Lander (maas-lander) wrote :

Attempt to merge into lp:~maas-maintainers/maas/packaging failed due to conflicts:

text conflict in debian/control

Revision history for this message
MAAS Lander (maas-lander) wrote :

Attempt to merge into lp:~maas-maintainers/maas/packaging failed due to conflicts:

text conflict in debian/control

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 2012-07-25 15:27:24 +0000
3+++ debian/changelog 2012-08-20 13:04:22 +0000
4@@ -1,4 +1,14 @@
5-maas (0.1+bzr777+dfsg-0ubuntu1) UNRELEASED; urgency=low
6+maas (0.1+bzr865+dfsg-0ubuntu1) UNRELEASED; urgency=low
7+
8+ * New upstream release
9+ * debian/maas.postinst:
10+ - include '/MAAS' for DEFAULT_MAAS_URL.(LP: #1033956)
11+ - Update bzr version to safely upgrade.
12+ * Add maas-dns package that configures DNS in MAAS (LP: #1030860)
13+
14+ -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 02 Aug 2012 09:01:43 -0400
15+
16+maas (0.1+bzr777+dfsg-0ubuntu1) quantal-proposed; urgency=low
17
18 * New upstream release
19 * Only run 'maas' command as root. (LP: #974046)
20
21=== modified file 'debian/control'
22--- debian/control 2012-08-16 10:05:17 +0000
23+++ debian/control 2012-08-20 13:04:22 +0000
24@@ -32,7 +32,7 @@
25 tgt,
26 ${misc:Depends},
27 ${python:Depends}
28-Recommends: openssh-server
29+Recommends: openssh-server, maas-dns
30 Suggests: maas-dhcp
31 Description: Ubuntu MAAS Server
32 Ubuntu MAAS Server is the successor to Orchestra. It offers a
33@@ -95,3 +95,20 @@
34 dynamic allocation to services being deployed on this MAAS.
35 .
36 This package configures a DHCP that can be used with MAAS.
37+
38+Package: maas-dns
39+Architecture: all
40+Depends: ${misc:Depends}, maas (= ${binary:Version}), bind9, isc-dhcp-server
41+Conflicts: maas-dhcp (<= 0.1+bzr777+dfsg-0ubuntu1)
42+Replaces: maas-dhcp (<= 0.1+bzr777+dfsg-0ubuntu1)
43+Description: Ubuntu MAAS Server - DNS configuration (metapackage)
44+ Ubuntu MAAS Server is the successor to Orchestra. It offers a
45+ nice UI to provision your Ubuntu servers. Each physical server
46+ (“node”) will be commissioned automatically on first boot.
47+ During the commissioning process administrators are able to
48+ configure hardware settings manually before an automated smoke
49+ test and burn-in test are done. Once commissioned, a node can
50+ be deployed on demand by name, or allocated to a queue for
51+ dynamic allocation to services being deployed on this MAAS.
52+ .
53+ This package configures a DNS that can be used with MAAS.
54
55=== added file 'debian/maas-dns.dirs'
56--- debian/maas-dns.dirs 1970-01-01 00:00:00 +0000
57+++ debian/maas-dns.dirs 2012-08-20 13:04:22 +0000
58@@ -0,0 +1,1 @@
59+etc/bind/maas
60
61=== added file 'debian/maas-dns.postinst'
62--- debian/maas-dns.postinst 1970-01-01 00:00:00 +0000
63+++ debian/maas-dns.postinst 2012-08-20 13:04:22 +0000
64@@ -0,0 +1,25 @@
65+#!/bin/sh -e
66+
67+if ([ "$1" = "configure" ] && [ -z "$2" ]) || [ "$1" = "reconfigure" ] || [ -n "$DEBCONF_RECONFIGURE" ]; then
68+ # If /etc/bind/maas is empty, set_up_dns.
69+ if [ ! "$(ls -A /etc/bind/maas)" ]; then
70+ maas set_up_dns
71+ fi
72+ # fix permissions
73+ if [ -f /etc/bind/maas/named.conf.maas ]; then
74+ chmod 644 /etc/bind/maas/named.conf.maas
75+ fi
76+ # add the required line to "/etc/bind/named.conf.local"
77+ if ! grep -qs "^include.*\/etc\/bind\/maas\;$" /etc/bind/maas.conf.local; then
78+ include_path=$(maas get_named_conf | grep "include\ [a-z\"\/\.]\+;")
79+ sed -i "\$a $include_path" \
80+ /etc/bind/named.conf.local
81+ fi
82+
83+ if [ -x /usr/sbin/invoke-rc.d ]; then
84+ invoke-rc.d bind9 restart || true
85+ fi
86+fi
87+
88+#DEBHELPER#
89+exit 0
90
91=== added file 'debian/maas-dns.postrm'
92--- debian/maas-dns.postrm 1970-01-01 00:00:00 +0000
93+++ debian/maas-dns.postrm 2012-08-20 13:04:22 +0000
94@@ -0,0 +1,24 @@
95+#!/bin/sh -e
96+
97+if [ "$1" = "remove" ]; then
98+ if [ -f /etc/bind/named.conf.local ]; then
99+ sed -i '/^include.*\"\/etc\/bind\/maas\/named.conf.maas\"\;$/d' \
100+ /etc/bind/named.conf.local
101+ fi
102+fi
103+
104+if [ "$1" = "purge" ]; then
105+ # Remove zone files
106+ if [ -d /etc/bind/maas ]; then
107+ rm -rf /etc/bind/maas
108+ fi
109+fi
110+
111+if [ -x /usr/sbin/invoke-rc.d ]; then
112+ invoke-rc.d bind9 restart || true
113+fi
114+
115+#DEBHELPER#
116+
117+exit 0
118+
119
120=== modified file 'debian/maas.postinst'
121--- debian/maas.postinst 2012-07-25 14:19:10 +0000
122+++ debian/maas.postinst 2012-08-20 13:04:22 +0000
123@@ -131,7 +131,7 @@
124 local ipaddr="$1"
125
126 if grep -qs "^DEFAULT_MAAS_URL\ \= \"[a-zA-Z0-9:/.]\{0,\}\"$" /etc/maas/maas_local_settings.py; then
127- sed -i "s/^DEFAULT_MAAS_URL\ \= \"[a-zA-Z0-9:/.]\{0,\}\"$/DEFAULT_MAAS_URL = \"http:\/\/"$ipaddr"\/\"/" \
128+ sed -i "s/^DEFAULT_MAAS_URL\ \= \"[a-zA-Z0-9:/.]\{0,\}\"$/DEFAULT_MAAS_URL = \"http:\/\/"$ipaddr"\/MAAS\"/" \
129 /etc/maas/maas_local_settings.py
130 fi
131
132@@ -296,9 +296,9 @@
133 if dpkg --compare-versions "$2" lt 0.1+bzr459+dfsg-0ubuntu1; then
134 configure_maas_tgt
135 fi
136- # If upgrading from any version lower than 0.1+bzr777+dfsg-0ubuntu1
137+ # If upgrading from any version lower than 0.1+bzr865+dfsg-0ubuntu1
138 # we need to regenerate the passwords and update configs.
139- if dpkg --compare-versions "$2" lt 0.1+bzr777+dfsg-0ubuntu1; then
140+ if dpkg --compare-versions "$2" lt 0.1+bzr865+dfsg-0ubuntu1; then
141 # configure maas user for cobbler
142 configure_maas_cobbler_user
143 # configure pserv user for cobbler

Subscribers

People subscribed via source and target branches

to all changes: