salt icon indicating copy to clipboard operation
salt copied to clipboard

Feature request, corosync/pacemaker support

Open aboe76 opened this issue 12 years ago • 7 comments

I would like to see that salt gains corosync/pacemaker support.

  • pcs is written in python so it should integrate very well within salt.

If it is possible I see the following

  • pacemakercluster detects a failure in one of its nodes, and moves the resources to another node, salt event bus gets notified and salt can adjust configuration.
  • salt provisions a new minion and adds it automatically to the pacemaker/corosync cluster and configures the other nodes.

Resources: http://clusterlabs.org/ https://github.com/feist/pcs

aboe76 avatar Apr 14 '14 06:04 aboe76

Salt integration with would be a great fit for the Clusterlabs software. I'll approve this for a future release. Thanks for the suggestion!

cachedout avatar Apr 14 '14 15:04 cachedout

Got a start of a module for managing corosync

https://gist.github.com/fivethreeo/11226649

But could need some help

fivethreeo avatar Apr 23 '14 18:04 fivethreeo

will test this tomorrow on a test machine.

aboe76 avatar Apr 23 '14 18:04 aboe76

Got some issues with how to handle location and colocation -inf: inf: 25: and the likes, ideas greatly apprechiated. :)

Like this part:

location cli-standby-AP-CLUST AP-CLUST 
rule jid="cli-standby-rule-AP-CLUST" -inf: #uname eq node-2
location connected_node AP-CLUST 
rule jid="connected_node-rule" -inf: not_defined pingd or pingd lte 0
location master-prefer-node-1 FAILOVER-ADDR 25: node-1
colocation AP-CLUST_on_DRBD inf: AP-CLUST DRBD-DATA:Master
order AP-CLUST_after_DRBD-DATA inf: DRBD-DATA:promote AP-CLUST:start

fivethreeo avatar Apr 23 '14 18:04 fivethreeo

Is there any work being done to progress on this? The repo listed above is now throwing a 404.

ksoviero avatar Mar 01 '16 18:03 ksoviero

feature was implemented in april 2016 and released in version 2016.110. https://github.com/saltstack/salt/pull/32468 https://docs.saltstack.com/en/latest/ref/states/all/salt.states.pcs.html

marconett avatar Sep 21 '17 15:09 marconett

@marconett thanks for reminding, closing this issue.

aboe76 avatar Sep 21 '17 21:09 aboe76