mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-03 05:12:35 +08:00
Try to do the fancy read-only prod mount for stg bodhi that we do for stg koji.
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user