Files
provisioning/glusterfs.yml
richard e32fb90662 hacking at glusterfs
cubox-i role for specific configs
2018-03-04 22:02:21 -05:00

47 lines
1.0 KiB
YAML

---
# playbook for home02
- hosts: gfs
remote_user: ansible
gather_facts: no
become: true
vars:
cluster:
- cubox-i
- home
mountpoints:
- /data/glusterfs/vmshares/brick1
- /data/glusterfs/gitea/brick1
- /data/glusterfs/jenkins/brick1
- /data/glusterfs/jenkins2/brick1
- /data/glusterfs/tmp/brick1
# - /data/glusterfs/elasticsearch/brick1
volumes:
gitea:
- /data/glusterfs/gitea/brick1/brick
jenkins2:
- /data/glusterfs/jenkins2/brick1/brick
vmshares:
- /data/glusterfs/vmshares/brick1/brick
distributed_volumes:
tmp:
- /data/glusterfs/tmp/brick1/brick
# elasticsearch:
# - /data/glusterfs/elasticsearch/brick1/brick
removed_volumes:
# jenkins:
# - /data/glusterfs/jenkins/brick1/brick
# tmp:
# - /data/glusterfs/tmp/brick1/brick
roles:
- glusterfs
# - td-agent-bit
post_tasks:
- name: check service is up
service: name=glusterfs-server state=started