-
Notifications
You must be signed in to change notification settings - Fork 70
GlusterFS Peer Module
Sachidananda Urs edited this page Nov 2, 2017
·
16 revisions
- Attach or detach GlusterFS peers
- GlusterFS packages
- Python 2.7 and above
parameters | required | default | choices | comments |
---|---|---|---|---|
force | no | no | yes / no | Valid only for detaching a peer, by default force=no |
nodes | yes | Nodes that have to be probed to form a cluster. Do not include the node from which peers are probed | ||
state | yes | present / absent | Whether the given hosts are to be probed or detached. This is a list variable. |
- Probe the peers from master
---
- hosts: master
remote_user: root
gather_facts: no
tasks:
- name: Creates a Trusted Storage Pool
peer:
state: present
nodes:
- 10.70.43.1
- 10.70.43.2
- 10.70.43.3
- Detach the peers from master
---
- hosts: master
remote_user: root
gather_facts: no
tasks:
- name: Creates a Trusted Storage Pool
peer:
state: absent
nodes:
- 10.70.43.1
- 10.70.43.2
- 10.70.43.3
- Detach the peers from master with option force
---
- hosts: master
remote_user: root
gather_facts: no
tasks:
- name: Creates a Trusted Storage Pool
peer:
state: absent
nodes:
- 10.70.43.1
- 10.70.43.2
- 10.70.43.3
force: yes