-
Notifications
You must be signed in to change notification settings - Fork 0
/
gluster_infra_test.yml
41 lines (33 loc) · 1.45 KB
/
gluster_infra_test.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
---
## Run ##
# ansible-playbook -i hosts.ini gluster_infra_test.yml -K
#
# From ansible-playbook -h:
# -i INVENTORY, --inventory INVENTORY, --inventory-file INVENTORY
# specify inventory host path or comma separated host list. --inventory-file is deprecated
# -K, --ask-become-pass
# ask for privilege escalation password
- hosts:
# - gluster_cluster
- hc2-02
vars:
ansible_user: ollie
# ansible_python_interpreter: /usr/bin/python3
roles:
- role: gluster.infra
vars:
# Set a disk type, Options: JBOD, RAID6, RAID10
gluster_infra_disktype: JBOD
# https://github.com/gluster/gluster-ansible-infra#volume-groups-variable
gluster_infra_volume_groups:
- { vgname: vg.gluster, pvname: /dev/sda }
# https://github.com/gluster/gluster-ansible-infra#logical-volume-variable
gluster_infra_lv_logicalvols:
- { vgname: vg.gluster, thinpool: thinpool, lvname: lv.thin, lvsize: 100%VG }
# https://github.com/gluster/gluster-ansible-infra#thinpool-variable
gluster_infra_thinpools:
- { vgname: vg.gluster, thinpoolname: thinpool, poolmetadatasize: 16G, thinpoolsize: 100%FREE }
# https://github.com/gluster/gluster-ansible-infra#variables-for-mounting-the-filesystem
gluster_infra_mount_devices:
- { path: "/mnt/brick{{ ansible_hostname[-2:] }}", vgname: vg.gluster, lvname: lv.thin }
become: yes