Merge lp:~andreserl/maas/packaging_bzr971 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: 77
Proposed branch: lp:~andreserl/maas/packaging_bzr971
Merge into: lp:~maas-maintainers/maas/packaging
Diff against target: 73 lines (+25/-3)
4 files modified
debian/changelog (+4/-2)
debian/maas-dhcp.config (+2/-0)
debian/maas-dhcp.postinst (+6/-1)
debian/maas-dhcp.templates (+13/-0)
To merge this branch: bzr merge lp:~andreserl/maas/packaging_bzr971
Reviewer Review Type Date Requested Status
Andres Rodriguez (community) Approve
Review via email: mp+122737@code.launchpad.net

Commit message

Add debconf question for network interfaces

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

Reviewing and approving myself as this change is minimal and has been tested.

review: Approve
Revision history for this message
Julian Edwards (julian-edwards) wrote :

Hey Andres

Can you backport the recent changes into the packaging.precise branch too
please?

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-09-04 16:57:27 +0000
3+++ debian/changelog 2012-09-04 18:50:25 +0000
4@@ -1,4 +1,4 @@
5-maas (0.1+bzr957+dfsg-0ubuntu1) UNRELEASED; urgency=low
6+maas (0.1+bzr971+dfsg-0ubuntu1) UNRELEASED; urgency=low
7
8 * New upstream release
9
10@@ -29,7 +29,9 @@
11 - debian/maas.postrm: Only call dbc_go when config file exists.
12 * debian/maas.maas-celery.upstart: Enable Beat and set scheduler db file.
13 * debian/maas-dns.postinst: Set correct permissions. (LP: #1042868)
14- * debian/maas-dhcp.config: Ask whether we want to enable DHCP (LP: #1044229)
15+ * debian/maas-dhcp.config:
16+ - Ask whether we want to enable DHCP (LP: #1044229)
17+ - Add debconf question for network interfaces
18 * debian/maas.prerm: Stop services before removing database (LP: #1044559)
19
20 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 02 Aug 2012 09:01:43 -0400
21
22=== modified file 'debian/maas-dhcp.config'
23--- debian/maas-dhcp.config 2012-09-04 16:57:27 +0000
24+++ debian/maas-dhcp.config 2012-09-04 18:50:25 +0000
25@@ -16,6 +16,8 @@
26 db_go
27 db_input high maas-dhcp/maas-dhcp-gateway || true
28 db_go
29+ db_input high maas-dhcp/maas-dhcp-interfaces || true
30+ db_go
31 fi
32
33 fi
34
35=== modified file 'debian/maas-dhcp.postinst'
36--- debian/maas-dhcp.postinst 2012-09-04 16:57:27 +0000
37+++ debian/maas-dhcp.postinst 2012-09-04 18:50:25 +0000
38@@ -24,8 +24,13 @@
39 db_get maas-dhcp/maas-dhcp-gateway || true
40 gateway="$RET"
41
42+ # Obtain the interfaces
43+ db_get maas-dhcp/maas-dhcp-interfaces || true
44+ interfaces="$RET"
45+
46 maas config_master_dhcp --ip-range-low="$range_low" --ip-range-high="$range_high" \
47- --router-ip="$gateway" --subnet-mask="$netmask" --broadcast-ip="$broadcast"
48+ --router-ip="$gateway" --subnet-mask="$netmask" --broadcast-ip="$broadcast" \
49+ --dhcp-interfaces="$interfaces"
50 fi
51
52 fi
53
54=== modified file 'debian/maas-dhcp.templates'
55--- debian/maas-dhcp.templates 2012-09-04 16:57:27 +0000
56+++ debian/maas-dhcp.templates 2012-09-04 18:50:25 +0000
57@@ -46,3 +46,16 @@
58 the provisioned systems. The DHCP server requires you to set the
59 broadcast IP address. If the broadcast IP address is different
60 from the default (192.168.1.255), you must set it here.
61+
62+Template: maas-dhcp/maas-dhcp-interfaces
63+Type: string
64+Default: eth0
65+_Description: Set the Broadcast IP address for the DHCP Network Range:
66+ Ubuntu MAAS Server can manage DHCP for address allocation for
67+ the provisioned systems. The DHCP server requires you to set one or
68+ a list of space-separated network interfaces on which DHCP will serve
69+ IP addresses. The default is eth0.
70+ .
71+ An example of how a network interfaces should be specified is:
72+ .
73+ eth0 eth1 eth2

Subscribers

People subscribed via source and target branches

to all changes: