Move calculation of neutron l3_ha into puppet profile
authorSteven Hardy <shardy@redhat.com>
Thu, 17 Nov 2016 11:02:57 +0000 (11:02 +0000)
committerSteven Hardy <shardy@redhat.com>
Mon, 21 Nov 2016 10:03:56 +0000 (10:03 +0000)
commit6ae718560b4603d78b85de8a7df7ab218bb9be5a
treeb0e15fc18793318a52d7bb53267283534fe1454a
parent92f9c952d6cbb0c11c8457de0e49748f3adf667e
Move calculation of neutron l3_ha into puppet profile

This is currently calculated in t-h-t but has a hard-coded reference
to the ControllerCount which is incompatible with custom-roles.

So instead calculate the setting based on the number of neutron API
services running (on any role, not just Controller), combined with
whether DVR is enabled (equivalent to current t-h-t logic).

To avoid breaking the NeutronL3HA parameter in t-h-t we maintain an
optional parameter to override the calculated value.

Change-Id: I01c50973eec8138ec61304f2982d5026142f267c
Partial-Bug: #1629187
manifests/profile/base/neutron/server.pp