summaryrefslogtreecommitdiffstats
path: root/roles/openshift_master/templates/native-cluster/atomic-openshift-master-api.j2
diff options
context:
space:
mode:
authorAndrew Butcher <abutcher@afrolegs.com>2016-06-23 10:42:08 -0400
committerGitHub <noreply@github.com>2016-06-23 10:42:08 -0400
commitf049b5f36fbc7f8c0f2a33cdcd0af666b28c0d9d (patch)
tree6064ca09aacd92cc8bf96fd34b7b7702cc23d2e3 /roles/openshift_master/templates/native-cluster/atomic-openshift-master-api.j2
parent3daab87371094b941f6511cd889e179357463e87 (diff)
parent9193a58d129716601091b2f3ceb7ca3960a694cb (diff)
downloadopenshift-f049b5f36fbc7f8c0f2a33cdcd0af666b28c0d9d.tar.gz
openshift-f049b5f36fbc7f8c0f2a33cdcd0af666b28c0d9d.tar.bz2
openshift-f049b5f36fbc7f8c0f2a33cdcd0af666b28c0d9d.tar.xz
openshift-f049b5f36fbc7f8c0f2a33cdcd0af666b28c0d9d.zip
Merge pull request #2025 from abutcher/global-env
Per-service environment variables
Diffstat (limited to 'roles/openshift_master/templates/native-cluster/atomic-openshift-master-api.j2')
-rw-r--r--roles/openshift_master/templates/native-cluster/atomic-openshift-master-api.j26
1 files changed, 6 insertions, 0 deletions
diff --git a/roles/openshift_master/templates/native-cluster/atomic-openshift-master-api.j2 b/roles/openshift_master/templates/native-cluster/atomic-openshift-master-api.j2
index 02c22e374..ab560b1bd 100644
--- a/roles/openshift_master/templates/native-cluster/atomic-openshift-master-api.j2
+++ b/roles/openshift_master/templates/native-cluster/atomic-openshift-master-api.j2
@@ -9,6 +9,12 @@ AWS_ACCESS_KEY_ID={{ openshift.cloudprovider.aws.access_key }}
AWS_SECRET_ACCESS_KEY={{ openshift.cloudprovider.aws.secret_key }}
{% endif %}
+{% if 'api_env_vars' in openshift.master -%}
+{% for key, value in openshift.master.api_env_vars.items() -%}
+{{ key }}={{ value }}
+{% endfor -%}
+{% endif -%}
+
# Proxy configuration
# See https://docs.openshift.com/enterprise/latest/install_config/install/advanced_install.html#configuring-global-proxy
{% if 'http_proxy' in openshift.common %}