summaryrefslogtreecommitdiffstats
path: root/playbooks/groups
diff options
context:
space:
mode:
authorRalph Bean <rbean@redhat.com>2017-09-18 17:54:34 +0000
committerRalph Bean <rbean@redhat.com>2017-09-18 17:54:34 +0000
commit55d0987cea880a776c3ada57f87f6ebb5a3ed93d (patch)
tree20cbb0f450096e53d9b6236119380227b332e4e3 /playbooks/groups
parent914e616ef91e11242e15ecf71499aa5daf3a8429 (diff)
downloadansible-55d0987cea880a776c3ada57f87f6ebb5a3ed93d.tar.gz
ansible-55d0987cea880a776c3ada57f87f6ebb5a3ed93d.tar.xz
ansible-55d0987cea880a776c3ada57f87f6ebb5a3ed93d.zip
I see... both nodes seems to need gluster/server on them.
Diffstat (limited to 'playbooks/groups')
-rw-r--r--playbooks/groups/odcs.yml28
1 files changed, 16 insertions, 12 deletions
diff --git a/playbooks/groups/odcs.yml b/playbooks/groups/odcs.yml
index 584098b6c..ea86799a0 100644
--- a/playbooks/groups/odcs.yml
+++ b/playbooks/groups/odcs.yml
@@ -79,7 +79,7 @@
- include: "{{ handlers_path }}/restart_services.yml"
- name: Set up a gluster share on the backend for the frontend
- hosts: odcs-backend:odcs-backend-stg
+ hosts: odcs:odcs-stg
user: root
gather_facts: True
@@ -97,24 +97,28 @@
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"
+ - role: gluster/client
+ name: gluster
+ tags: gluster
+ servers:
+ - odcs-frontend01.stg.phx2.fedoraproject.org
+ - odcs-backend01.stg.phx2.fedoraproject.org
+ username: "{{ odcs_gluster_username }}"
+ password: "{{ odcs_gluster_password }}"
+ owner: root
+ group: root
+ mountdir: /srv/odcs
+ when: env == 'staging'
- roles:
- role: gluster/client
name: gluster
tags: gluster
servers:
- - "{{odcs_gluster_server}}"
+ - 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'