Give the staging registry a dir to use for local storage.
We decided not to use NFS storage for the staging registry, so I am adding a /srv/registry directory to simulate having the same path that we would have on the production registry. Signed-off-by: Randy Barlow <randy@electronsweatshop.com>
This commit is contained in:
parent
3266d0004a
commit
ee4e6af418
1 changed files with 8 additions and 4 deletions
|
@ -22,16 +22,20 @@
|
||||||
- sudo
|
- sudo
|
||||||
- { role: openvpn/client,
|
- { role: openvpn/client,
|
||||||
when: env != "staging" }
|
when: env != "staging" }
|
||||||
- { role: nfs/client,
|
|
||||||
mnt_dir: '/srv/registry',
|
|
||||||
nfs_src_dir: "oci_registry_stg",
|
|
||||||
when: "env == 'staging' and 'candidate' not in inventory_hostname" }
|
|
||||||
- { role: nfs/client,
|
- { role: nfs/client,
|
||||||
mnt_dir: '/srv/registry',
|
mnt_dir: '/srv/registry',
|
||||||
nfs_src_dir: "oci_registry",
|
nfs_src_dir: "oci_registry",
|
||||||
when: "env != 'staging' and 'candidate' not in inventory_hostname" }
|
when: "env != 'staging' and 'candidate' not in inventory_hostname" }
|
||||||
|
|
||||||
pre_tasks:
|
pre_tasks:
|
||||||
|
- name: Create /srv/registry on staging since it does not use NFS
|
||||||
|
file:
|
||||||
|
path: /srv/registry
|
||||||
|
state: directory
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: 0755
|
||||||
|
when: "env == 'staging' and 'candidate' not in inventory_hostname"
|
||||||
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
|
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue