redhat-openstack / puppet-pacemaker

Puppet modules to manage pacemaker with corosync
9 stars 25 forks source link

Add initial support for 'location rule' type of constraints #72

Closed mbaldessari closed 8 years ago

mbaldessari commented 8 years ago

pcs supports location constraints that add rules about where a resource is allowed to run or not run.

Support for the following types is added via a new 'location_rule' type of constraint:

pcs constraint location haproxy-clone rule resource-discovery=exclusive \
    score=0 osprole eq controller

Note: I chose to add location_rule constraint as the location rule semantics did not fit very well with the existing constraints. I am open to suggestions for different approaches.

EmilienM commented 8 years ago

Hi @mbaldessari - Thanks for your contribution here. We recently moved this module to OpenStack namespace. Please re-submit your patch to https://github.com/openstack/puppet-pacemaker repository. To get started in OpenStack, please look http://docs.openstack.org/infra/manual/developers.html

Thanks a lot!