Merge lp:~allenap/maas/preseed-cluster-host into lp:~maas-committers/maas/trunk
Proposed by
Gavin Panella
Status: | Merged |
---|---|
Approved by: | Andres Rodriguez |
Approved revision: | no longer in the source branch. |
Merged at revision: | 1458 |
Proposed branch: | lp:~allenap/maas/preseed-cluster-host |
Merge into: | lp:~maas-committers/maas/trunk |
Diff against target: |
88 lines (+41/-5) 2 files modified
src/maasserver/preseed.py (+8/-1) src/maasserver/tests/test_preseed.py (+33/-4) |
To merge this branch: | bzr merge lp:~allenap/maas/preseed-cluster-host |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Andres Rodriguez (community) | Needs Fixing | ||
Julian Edwards (community) | Approve | ||
Review via email: mp+149954@code.launchpad.net |
Commit message
Include a 'cluster_host' setting in the preseed template rendering context.
This is set to the IP address of the first managed interface of the cluster.
To post a comment you must log in.
I've realised that cluster_host can already be derived in the preseed environment:
node. get_managed_ interface( ).ip
This is less convenient, but it works right now, and doesn't require backporting.