-
Notifications
You must be signed in to change notification settings - Fork 53
gluster_peer
Sachidananda Urs edited this page May 23, 2018
·
3 revisions
Before a GlusterFS volume is created it is necessary to create a Trusted Storage Pool. A Trusted Storage Pool is a network of storage servers which will be part of a GlusterFS volume. New node(s) can be added to a GlusterFS volume only if they are part of a Trusted Storage Pool. This module allows user to add/delete nodes from a Trusted Storage Pool.
Create, add or delete nodes to/from a Trusted Storage Pool
- GlusterFS >= 4.0
Parameter | Choices | Default value | Comments |
---|---|---|---|
state | present/absent | present | |
nodes | List of nodes that form the trusted storage pool. Can also provide comma separated list of hosts. Refer examples. | ||
force | yes/no/true/false | no | Force the peer detach. |
- name: Create a trusted storage pool
gluster_peer:
state: present
nodes:
- 10.0.1.5
- 10.0.1.10
- name: Create a trusted storage pool
gluster_peer:
state: present
nodes: 10.0.0.1,10.0.1.2,10.0.1.3,10.0.1.4
- name: Delete a node from the trusted storage pool
gluster_peer:
state: absent
nodes:
- 10.0.1.10
- name: Delete a node from the trusted storage pool by force
gluster_peer:
state: absent
nodes:
- 10.0.0.1
force: true