Try to do the fancy read-only prod mount for stg bodhi that we do for stg koji.
This commit is contained in:
parent
82e743d993
commit
38b451ffb2
1 changed files with 16 additions and 3 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue