summaryrefslogtreecommitdiffstats
path: root/roles/openshift_hosted/templates
diff options
context:
space:
mode:
authorEric Sauer <esauer@redhat.com>2017-05-18 13:56:49 -0400
committerScott Dodson <sdodson@redhat.com>2017-05-22 09:53:33 -0400
commitfddf5ba42e1f1edd0383b465a564cd575002dadb (patch)
tree6db1fa59e0f765fab487fbb0c8946fdbfbdbae18 /roles/openshift_hosted/templates
parentb61044dfa3669d79bd5e99c846ad4d10de172583 (diff)
downloadopenshift-fddf5ba42e1f1edd0383b465a564cd575002dadb.tar.gz
openshift-fddf5ba42e1f1edd0383b465a564cd575002dadb.tar.bz2
openshift-fddf5ba42e1f1edd0383b465a564cd575002dadb.tar.xz
openshift-fddf5ba42e1f1edd0383b465a564cd575002dadb.zip
Removing requirement to pass aws credentials
Diffstat (limited to 'roles/openshift_hosted/templates')
-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 }}