setup docker hosts to mount glusterfs mounts

move git.xai-corp.net to dkhost02
This commit is contained in:
2017-05-26 09:10:07 -04:00
parent 3866d4c17b
commit 165e5ffe54
9 changed files with 110 additions and 5 deletions

32
glusterfs.yml Normal file
View File

@@ -0,0 +1,32 @@
---
# playbook for home02
- hosts: gfs
remote_user: ansible
gather_facts: yes
become: true
vars:
cluster:
- cubox-i.xai-corp.net
# - home
mountpoints:
- /data/glusterfs/vmshares/brick1
- /data/glusterfs/gitea/brick1
- /data/glusterfs/jenkins/brick1
volumes:
vmshares:
- /data/glusterfs/vmshares/brick1/brick
gitea:
- /data/glusterfs/gitea/brick1/brick
jenkins:
- /data/glusterfs/jenkins/brick1/brick
roles:
- glusterfs
# - td-agent-bit
post_tasks:
- name: check service is up
service: name=glusterfs-server state=started