summaryrefslogtreecommitdiffstats
path: root/roles/openshift_hosted/templates/registry_config.j2
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2017-05-22 11:12:46 -0400
committerGitHub <noreply@github.com>2017-05-22 11:12:46 -0400
commit896a0c90b34217fab19160ea48c51f926fbcdeed (patch)
treed16b36399724b54aaf28c6d30c8dfcc3ffbde157 /roles/openshift_hosted/templates/registry_config.j2
parenta12646f4e018a65d5633c53209de364d5e8b5cb4 (diff)
parentfddf5ba42e1f1edd0383b465a564cd575002dadb (diff)
downloadopenshift-896a0c90b34217fab19160ea48c51f926fbcdeed.tar.gz
openshift-896a0c90b34217fab19160ea48c51f926fbcdeed.tar.bz2
openshift-896a0c90b34217fab19160ea48c51f926fbcdeed.tar.xz
openshift-896a0c90b34217fab19160ea48c51f926fbcdeed.zip
Merge pull request #4228 from etsauer/s3-required-vars
Removing requirement to pass aws credentials
Diffstat (limited to 'roles/openshift_hosted/templates/registry_config.j2')
-rw-r--r--roles/openshift_hosted/templates/registry_config.j24
1 files changed, 4 insertions, 0 deletions
diff --git a/roles/openshift_hosted/templates/registry_config.j2 b/roles/openshift_hosted/templates/registry_config.j2
index ca6a23f21..dc8a9f089 100644
--- a/roles/openshift_hosted/templates/registry_config.j2
+++ b/roles/openshift_hosted/templates/registry_config.j2
@@ -10,8 +10,12 @@ storage:
blobdescriptor: inmemory
{% if openshift_hosted_registry_storage_provider | default('') == 's3' %}
s3:
+{% if openshift_hosted_registry_storage_s3_accesskey is defined %}
accesskey: {{ openshift_hosted_registry_storage_s3_accesskey }}
+{% endif %}
+{% if openshift_hosted_registry_storage_s3_secretkey is defined %}
secretkey: {{ openshift_hosted_registry_storage_s3_secretkey }}
+{% endif %}
region: {{ openshift_hosted_registry_storage_s3_region }}
{% if openshift_hosted_registry_storage_s3_regionendpoint is defined %}
regionendpoint: {{ openshift_hosted_registry_storage_s3_regionendpoint }}