Merge lp:~smoser/maas/packaging.lp1049177 into lp:~maas-maintainers/maas/packaging
Proposed by
Scott Moser
on 2012-09-13
| Status: | Merged |
|---|---|
| Approved by: | Andres Rodriguez on 2012-09-13 |
| Approved revision: | 81 |
| Merged at revision: | 81 |
| Proposed branch: | lp:~smoser/maas/packaging.lp1049177 |
| Merge into: | lp:~maas-maintainers/maas/packaging |
| Diff against target: |
53 lines (+20/-5) 4 files modified
debian/changelog (+7/-5) debian/maas-dhcp.apparmor (+7/-0) debian/maas-dhcp.install (+1/-0) debian/rules (+5/-0) |
| To merge this branch: | bzr merge lp:~smoser/maas/packaging.lp1049177 |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Julian Edwards (community) | 2012-09-13 | Approve on 2012-09-13 | |
|
Review via email:
|
|||
Commit Message
Add a maas specific profile for isc-dhcp-server package.
To post a comment you must log in.
| Scott Moser (smoser) wrote : | # |
| Julian Edwards (julian-edwards) wrote : | # |
We need a similar fix in the packaging.precise packaging branch too, otherwise this looks good.
review:
Approve
| Jeroen T. Vermeulen (jtv) wrote : | # |
Is the leases file a typo? It should be in /var/lib of course, not in /run.
| Jeroen T. Vermeulen (jtv) wrote : | # |
Ah yes I see it is just a typo. No worries.


In work done to the isc-dhcp package under bug 1049177 I modified the apparmor profile to have '#include <dhcpd.d>', allowing packages to install extensions to the base profile into package specific files in /etc/apparmor. d/dhcpd. d .
This packaging change adds a file there that should allow maas to run a dhcpd with a command line similar to: dhcp/dhcpd. pid -cf /etc/maas/ dhcpd.conf \ dhcp/dhcpd. leases
dhcpd -d -user dhcpd -group dhcpd -f -4 \
-pf /run/maas/
-lf /run/maas/
I've tested that the given profile allows running of the above, but it is a bit tricky to get right. I've put a script that creates correct permissions at [1]. That is largely modelled after the upstart job in /etc/init/ isc-dhcpd- server .
Note also that still to be done here is to install the upstart job. There is probably some packaging changes needed to get the upstart job into the maas-dhcp package. I believe that Jeroen's intent was to have trunk install /etc/init/ maas-dhcp. conf but we'll need to pick that file into the maas-dhcp package still.
-- paste.ubuntu. com/1201622/
[1] http://