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"