Make ServiceNetMap support custom network names
authorSteven Hardy <shardy@redhat.com>
Wed, 21 Dec 2016 11:54:46 +0000 (11:54 +0000)
committerSteven Hardy <shardy@redhat.com>
Thu, 19 Jan 2017 17:31:14 +0000 (17:31 +0000)
commit24952e016fc0abd5023cefad8c2d057890fe7a16
tree8026d12d31a57fc1c425414cefbb4ec3cf6ee815
parentc14d34cdfd8c4d536562d0ee4c159af4de16e7e2
Make ServiceNetMap support custom network names

The rework to support custom roles moved the service net map
into a nested stack, but the logic it contains fails to consider
operators may override the network names via *NetName parameters.

So add a map_replace of the ServiceNetMapDefaults so we maintain
the existing default service->network assignments, even when the
network name is changed.

Note that operators will still be expected to pass any ServiceNetMap
overrides with the "new" network name, e.g whatever *NetName specifies,
otherwise I think environment files could get very confusing.

Change-Id: I52018e19428e11d26650f0ea6ccee3ae02494ff8
Partial-Bug: #1651541
network/service_net_map.j2.yaml