I see... both nodes seems to need gluster/server on them.
This commit is contained in:
parent
914e616ef9
commit
55d0987cea
1 changed files with 17 additions and 13 deletions
|
@ -79,7 +79,7 @@
|
||||||
- include: "{{ handlers_path }}/restart_services.yml"
|
- include: "{{ handlers_path }}/restart_services.yml"
|
||||||
|
|
||||||
- name: Set up a gluster share on the backend for the frontend
|
- name: Set up a gluster share on the backend for the frontend
|
||||||
hosts: odcs-backend:odcs-backend-stg
|
hosts: odcs:odcs-stg
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: True
|
||||||
|
|
||||||
|
@ -97,24 +97,28 @@
|
||||||
group: root
|
group: root
|
||||||
datadir: /srv/glusterfs/odcs-stg
|
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
|
- role: gluster/client
|
||||||
name: gluster
|
name: gluster
|
||||||
tags: gluster
|
tags: gluster
|
||||||
servers:
|
servers:
|
||||||
- "{{odcs_gluster_server}}"
|
- odcs-frontend01.stg.phx2.fedoraproject.org
|
||||||
|
- odcs-backend01.stg.phx2.fedoraproject.org
|
||||||
username: "{{ odcs_gluster_username }}"
|
username: "{{ odcs_gluster_username }}"
|
||||||
password: "{{ odcs_gluster_password }}"
|
password: "{{ odcs_gluster_password }}"
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mountdir: /srv/odcs
|
mountdir: /srv/odcs
|
||||||
|
when: env == 'staging'
|
||||||
|
|
||||||
|
- role: gluster/client
|
||||||
|
name: gluster
|
||||||
|
tags: gluster
|
||||||
|
servers:
|
||||||
|
- odcs-frontend01.phx2.fedoraproject.org
|
||||||
|
- odcs-backend01.phx2.fedoraproject.org
|
||||||
|
username: "{{ odcs_gluster_username }}"
|
||||||
|
password: "{{ odcs_gluster_password }}"
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mountdir: /srv/odcs
|
||||||
|
when: env != 'staging'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue