Comment 2 for bug 1615983

Revision history for this message
Michele Baldessari (michele) wrote :

So I hit this regularly while doing my composable HA architecture work, as soon as I add the same service to two different roles. It breaks right away because puppet refuses to create duplicate
pacemaker resources (because the if ::hostname = bootstrap_id matches on both roles).

I was thinking that we could do this if master check on a per service basis. So for example, for
pacemaker the if would become something like this (pseudo-code):
if ::hostname == hiera(pacemaker_short_node_names)[0] {
  $pacemaker_master = true
} else {
  $pacemaker_master = false
}

this way we would alway have pacemaker_master true only on the very first node of all the nodes providing the service and so we could guarantee that the if is true only on a single node for each service, which should match well the composable roles design.

Would this work or am I missing something?