From 38b451ffb2944f7261cdba935713d535ff8ed48b Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Tue, 18 Aug 2015 23:04:28 +0000 Subject: [PATCH] Try to do the fancy read-only prod mount for stg bodhi that we do for stg koji. --- playbooks/groups/bodhi-backend.yml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/playbooks/groups/bodhi-backend.yml b/playbooks/groups/bodhi-backend.yml index 6e76ae6fb7..94c8389f26 100644 --- a/playbooks/groups/bodhi-backend.yml +++ b/playbooks/groups/bodhi-backend.yml @@ -27,21 +27,34 @@ - builder_repo - fas_client - sudo + # - role: nfs/client # mnt_dir: '/pub/' # nfs_src_dir: 'fedora_ftp/fedora.redhat.com/pub/' + - role: nfs/client mnt_dir: '/mnt/fedora_koji' nfs_src_dir: 'fedora_koji' - when: datacenter != 'staging' + when: env != 'staging' + + # In staging, we mount fedora_koji as read only (see nfs_mount_opts) - role: nfs/client - mnt_dir: '/mnt/fedora_koji' + mnt_dir: '/mnt/fedora_koji_prod' nfs_src_dir: 'fedora_koji' - when: datacenter == 'staging' + when: env == 'staging' + - bodhi2/backend - fedmsg/base tasks: + - name: create secondary volume dir for stg bodhi + file: dest=/mnt/koji/vol state=directory owner=apache group=apache mode=0755 + tags: bodhi + when: env == 'staging' + - name: create symlink for stg/prod secondary volume + file: src=/mnt/fedora_koji_prod/koji dest=/mnt/koji/vol/prod state=link + tags: bodhi + when: env == 'staging' - include: "{{ tasks }}/2fa_client.yml" - include: "{{ tasks }}/yumrepos.yml" - include: "{{ tasks }}/motd.yml"