Try setting up a gluster share for odcs.
This commit is contained in:
parent
151ca76db8
commit
0673125740
3 changed files with 41 additions and 0 deletions
1
inventory/group_vars/odcs
Normal file
1
inventory/group_vars/odcs
Normal file
|
@ -0,0 +1 @@
|
||||||
|
odcs_gluster_server: odcs-backend01.phx2.fedoraproject.org
|
1
inventory/group_vars/odcs-stg
Normal file
1
inventory/group_vars/odcs-stg
Normal file
|
@ -0,0 +1 @@
|
||||||
|
odcs_gluster_server: odcs-backend01.stg.phx2.fedoraproject.org
|
|
@ -77,3 +77,42 @@
|
||||||
|
|
||||||
handlers:
|
handlers:
|
||||||
- include: "{{ handlers_path }}/restart_services.yml"
|
- include: "{{ handlers_path }}/restart_services.yml"
|
||||||
|
|
||||||
|
- name: Set up a gluster share on the backend for the frontend
|
||||||
|
hosts: odcs-backend:odcs-backend-stg
|
||||||
|
user: root
|
||||||
|
gather_facts: True
|
||||||
|
|
||||||
|
vars_files:
|
||||||
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
- "/srv/private/ansible/vars.yml"
|
||||||
|
- "{{ vars_path }}/{{ ansible_distribution }}.yml"
|
||||||
|
roles:
|
||||||
|
- role: gluster/server
|
||||||
|
name: gluster
|
||||||
|
username: "{{ odcs_gluster_username }}"
|
||||||
|
password: "{{ odcs_gluster_password }}"
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
datadir: /srv/glusterfs/odcs-stg
|
||||||
|
|
||||||
|
- name: Configure all odcs nodes to mount the gluster share.
|
||||||
|
hosts: odcs:odcs-stg
|
||||||
|
user: root
|
||||||
|
gather_facts: True
|
||||||
|
|
||||||
|
vars_files:
|
||||||
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
- "/srv/private/ansible/vars.yml"
|
||||||
|
- "{{ vars_path }}/{{ ansible_distribution }}.yml"
|
||||||
|
|
||||||
|
roles:
|
||||||
|
- role: gluster/client
|
||||||
|
name: gluster
|
||||||
|
servers:
|
||||||
|
- {{odcs_gluster_server}}
|
||||||
|
username: "{{ odcs_gluster_username }}"
|
||||||
|
password: "{{ odcs_gluster_password }}"
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mountdir: /srv/odcs
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue