Feature request, corosync/pacemaker support
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
Salt integration with would be a great fit for the Clusterlabs software. I'll approve this for a future release. Thanks for the suggestion!
Got a start of a module for managing corosync
https://gist.github.com/fivethreeo/11226649
But could need some help
will test this tomorrow on a test machine.
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
Is there any work being done to progress on this? The repo listed above is now throwing a 404.
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 thanks for reminding, closing this issue.