summaryrefslogtreecommitdiffstats
path: root/crmsh/crash_test/config.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--crmsh/crash_test/config.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/crmsh/crash_test/config.py b/crmsh/crash_test/config.py
new file mode 100644
index 0000000..64b4e72
--- /dev/null
+++ b/crmsh/crash_test/config.py
@@ -0,0 +1,9 @@
+FENCE_TIMEOUT = 60
+FENCE_NODE = "crm_attribute -t status -N '{}' -n terminate -v true"
+BLOCK_IP = '''iptables -{action} INPUT -s {peer_ip} -j DROP;
+ iptables -{action} OUTPUT -d {peer_ip} -j DROP'''
+REMOVE_PORT = "firewall-cmd --zone=public --remove-port={port}/udp"
+ADD_PORT = "firewall-cmd --zone=public --add-port={port}/udp"
+FENCE_HISTORY = "stonith_admin -h {node}"
+SBD_CONF = "/etc/sysconfig/sbd"
+SBD_CHECK_CMD = "sbd -d {dev} dump"