Comment 2 for bug 1567646

Revision history for this message
Pavel Basov (pbasov) wrote :

Are we looking in the same repo?

ntp_ocf:
  pcmk_colocation { 'ntp-with-vrouter-ns' :
    ensure => 'present',
    score => 'INFINITY',
    first => "clone_p_$service_name",
    second => "clone_p_vrouter",
  }

dns_ocf:
 pcmk_colocation { 'dns-with-vrouter-ns' :
    ensure => 'present',
    score => 'INFINITY',
    first => "clone_p_vrouter",
    second => "clone_${service_name}",
  }

Resulting config in cib:
      <rsc_colocation id="ntp-with-vrouter-ns" rsc="clone_p_vrouter" score="INFINITY" with-rsc="clone_p_ntp"/>
      <rsc_colocation id="dns-with-vrouter-ns" rsc="clone_p_dns" score="INFINITY" with-rsc="clone_p_vrouter"/>

dns_ocf is the correct one