-
Notifications
You must be signed in to change notification settings - Fork 53
Trusted Storage Pool
Sachidananda Urs edited this page Jun 26, 2018
·
1 revision
To setup a trusted storage pool, or to add a node to a trusted storage pool use the gluster_peer module available since Ansible 2.6.
An example playbook to create a trusted storage pool:
---
- hosts: master
remote_user: root
gather_facts: no
tasks:
- name: Creates a Trusted Storage Pool
gluster_peer:
state: present
nodes:
- 10.70.41.225
- 10.70.41.224
The node master will be part of the trusted storage pool and will be used to probe the nodes.
An example to add a node to an existing trusted storage pool
---
- hosts: master
remote_user: root
gather_facts: no
tasks:
- name: Creates a Trusted Storage Pool
gluster_peer:
state: present
nodes:
- 10.70.43.233
In this case master must be part of the trusted storage pool into which the nodes is being added.