From ffcd124b3a0cfa630ac1de82db6e3979aa29b593 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Mon, 21 May 2018 21:02:56 +0000 Subject: [PATCH] setup nfs in stg openshift for registery only --- .../templates/cluster-inventory.j2 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/roles/ansible-ansible-openshift-ansible/templates/cluster-inventory.j2 b/roles/ansible-ansible-openshift-ansible/templates/cluster-inventory.j2 index d18a1a1e38..e1a73ea3dd 100644 --- a/roles/ansible-ansible-openshift-ansible/templates/cluster-inventory.j2 +++ b/roles/ansible-ansible-openshift-ansible/templates/cluster-inventory.j2 @@ -410,6 +410,14 @@ openshift_master_default_subdomain={{openshift_app_subdomain}} # NFS volume must already exist with path "nfs_directory/_volume_name" on # the storage_host. For example, the remote volume path using these # options would be "nfs.example.com:/exports/registry" +{% if env == "staging" %} +openshift_hosted_registry_storage_kind=nfs +openshift_hosted_registry_storage_access_modes=['ReadWriteMany'] +openshift_hosted_registry_storage_host=ntap-phx2-c01-fedora01-nfs.storage.phx2.redhat.com +openshift_hosted_registry_storage_nfs_directory=/ +openshift_hosted_registry_storage_volume_name=openshift_stg_01 +openshift_hosted_registry_storage_volume_size=10Gi +{% endif %} #openshift_hosted_registry_storage_kind=nfs #openshift_hosted_registry_storage_access_modes=['ReadWriteMany'] #openshift_hosted_registry_storage_host=nfs.example.com