[ha] barbican, nova targeting: use server:role 57/65657/2
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Fri, 7 Dec 2018 14:57:13 +0000 (15:57 +0100)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Fri, 7 Dec 2018 15:04:50 +0000 (16:04 +0100)
commita4d64c6ff23dd2957b34ebc303c16ee640d709e6
tree599551e45168c57ba85c99025fa67841f898ac1b
parent73b02742d463fc2932ef66baee7123fc773c1b0c
[ha] barbican, nova targeting: use server:role

Instead of matching the hostname to determine the primary barbican
node, rely on pillar data.

While at it, apply the same logic to nova:controller states.

Change-Id: Ia4ac391927a8b4b223febff106b400e84d264f7a
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
mcp/config/states/openstack_ha