Playbook to install and configure Red Hat Gluster Storage Server
This playbook can do
- Subscribe to Red Hat Network
- Enable repositories to install Red Hat Gluster Storage
- Configure network interfaces (see network)
- Install and configure Red Hat Gluster Storage
You will need ansible and all the required subscriptions for RHEL 7 and Red Hat Gluster Storage 3.
All the variables are on group_vars/all
Each Red Hat Gluster Storage host vars on host_vars/"hostname"
Each host has a var on host_vars dir
mgmt_interface: eth0
glusterfs_install_server: True
glusterfs_install_client: False
Network Interfaces
See host_vars/glusterstore01 for more examples
This playbook suport any types of network configuration
IMPORTANT
network_reset var reset all network interfaces configured using with caution
Set use_rhel to True and configure rhel_subscription_user and rhel_subscription_pass to playbook subscribe to RHN
Set rhel_pool_id to respository ID to Red Hat Gluster Storage
If you want you can add more Red Hat repositories with variable rhel_repos
CAUTION if reset_lvm is True, remove all LV, VG and LV from devices
Set options to Physical Disks
pv_disks:
- vg_name: stg1-internal # VG Name thin_name: tp1 # Thin VG Name disk: /dev/vdb # Disk pv_dataalignment: 1280 # Data Alignment vg_extentsize: 128 # Extent Size lv_chunk: 1280 # Chunk Size lv_metadatasize: 16G # Metadata Size
gluster_bricks:
- brick_name: stg1-internal virtualsize: 100G vg_name: stg1-internal thin_name: tp1
- brick_name: stg1-external virtualsize: 100G vg_name: stg1-external thin_name: tp2
glusterfs_volumes:
- name: Volume1
owner: root
group: root
replicas: 2
force: True
brick:
- "{{ mount_point }}stg1-internal"
- name: Volume2
owner: root
group: root
replicas: 2
force: True
brick:
- "{{ mount_point }}stg1-external"
MIT