setup docker hosts to mount glusterfs mounts
move git.xai-corp.net to dkhost02
This commit is contained in:
32
glusterfs.yml
Normal file
32
glusterfs.yml
Normal 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
|
||||
Reference in New Issue
Block a user