odcs: move to nfs storage.
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
parent
5e32a97e3c
commit
bb9570fc6c
1 changed files with 18 additions and 26 deletions
|
@ -46,32 +46,6 @@
|
||||||
handlers:
|
handlers:
|
||||||
- import_tasks: "{{ handlers_path }}/restart_services.yml"
|
- import_tasks: "{{ handlers_path }}/restart_services.yml"
|
||||||
|
|
||||||
- name: Set up a gluster share on the backend for the frontend
|
|
||||||
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/consolidated
|
|
||||||
gluster_brick_dir: /srv/glusterfs
|
|
||||||
gluster_mount_dir: /srv/odcs
|
|
||||||
gluster_brick_name: odcs
|
|
||||||
gluster_server_group: odcs-stg
|
|
||||||
tags: gluster
|
|
||||||
when: env == 'staging'
|
|
||||||
- role: gluster/consolidated
|
|
||||||
gluster_brick_dir: /srv/glusterfs
|
|
||||||
gluster_mount_dir: /srv/odcs
|
|
||||||
gluster_brick_name: odcs
|
|
||||||
gluster_server_group: odcs
|
|
||||||
tags: gluster
|
|
||||||
when: env != 'staging'
|
|
||||||
|
|
||||||
- name: Set up odcs frontend service
|
- name: Set up odcs frontend service
|
||||||
hosts: odcs_frontend:odcs_frontend_stg
|
hosts: odcs_frontend:odcs_frontend_stg
|
||||||
user: root
|
user: root
|
||||||
|
@ -94,6 +68,14 @@
|
||||||
mnt_dir: '/mnt/fedora_koji_prod'
|
mnt_dir: '/mnt/fedora_koji_prod'
|
||||||
nfs_src_dir: 'fedora_koji'
|
nfs_src_dir: 'fedora_koji'
|
||||||
when: env == 'staging'
|
when: env == 'staging'
|
||||||
|
- role: nfs/client
|
||||||
|
mnt_dir: '/srv/odcs'
|
||||||
|
nfs_src_dir: 'fedora_odcs_stg'
|
||||||
|
when: env == 'staging'
|
||||||
|
- role: nfs/client
|
||||||
|
mnt_dir: '/srv/odcs'
|
||||||
|
nfs_src_dir: 'fedora_odcs'
|
||||||
|
when: env != 'staging'
|
||||||
|
|
||||||
handlers:
|
handlers:
|
||||||
- import_tasks: "{{ handlers_path }}/restart_services.yml"
|
- import_tasks: "{{ handlers_path }}/restart_services.yml"
|
||||||
|
@ -143,6 +125,16 @@
|
||||||
nfs_src_dir: 'fedora_koji'
|
nfs_src_dir: 'fedora_koji'
|
||||||
when: env == 'staging'
|
when: env == 'staging'
|
||||||
|
|
||||||
|
- role: nfs/client
|
||||||
|
mnt_dir: '/srv/odcs'
|
||||||
|
nfs_src_dir: 'fedora_odcs_stg'
|
||||||
|
when: env == 'staging'
|
||||||
|
|
||||||
|
- role: nfs/client
|
||||||
|
mnt_dir: '/srv/odcs'
|
||||||
|
nfs_src_dir: 'fedora_odcs'
|
||||||
|
when: env != 'staging'
|
||||||
|
|
||||||
post_tasks:
|
post_tasks:
|
||||||
- file: src=/mnt/fedora_koji/koji dest=/mnt/koji state=link
|
- file: src=/mnt/fedora_koji/koji dest=/mnt/koji state=link
|
||||||
tags: nfs/client
|
tags: nfs/client
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue