forked from usmqe/usmqe-setup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_teardown.splitbrain.yml
41 lines (36 loc) · 1.05 KB
/
test_teardown.splitbrain.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
---
- hosts: usm_client[0]
remote_user: root
tasks:
- name: Remove splitbrain invoking iptables rules
iptables:
action: insert
state: absent
chain: OUTPUT
destination: "{{ item }}"
jump: DROP
with_items: "{{ groups['gluster_splitbrain0'] }}"
- hosts: usm_client[1]
remote_user: root
vars:
volume_mountpoint: "/mnt/volume_tmp_splitbrain"
volume_name: "volume_alpha_distrep_6x2"
tasks:
- name: Remove splitbrain invoking iptables rules
iptables:
action: insert
state: absent
chain: OUTPUT
destination: "{{ item }}"
jump: DROP
with_items: "{{ groups['gluster_splitbrain1'] }}"
- name: Unmount GlusterSF volume for splitbrain purposes
mount:
path: "{{ volume_mountpoint }}"
state: unmounted
- name: Remove GlusterSF volume for splitbrain purposes
mount:
path: "{{ volume_mountpoint }}"
fstype: glusterfs
src: "{{ groups['gluster_servers'][0] }}:{{ volume_name }}"
state: absent