From ee4e6af418a36fb0f2c2b7fa7d3056e902fad3ac Mon Sep 17 00:00:00 2001 From: Randy Barlow Date: Thu, 4 Oct 2018 17:41:47 +0000 Subject: [PATCH] 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 --- playbooks/groups/oci-registry.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/playbooks/groups/oci-registry.yml b/playbooks/groups/oci-registry.yml index 8210450478..16b498cdc5 100644 --- a/playbooks/groups/oci-registry.yml +++ b/playbooks/groups/oci-registry.yml @@ -22,16 +22,20 @@ - sudo - { role: openvpn/client, 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, mnt_dir: '/srv/registry', nfs_src_dir: "oci_registry", when: "env != 'staging' and 'candidate' not in inventory_hostname" } 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" tasks: