diff options
author | Andrew Butcher <abutcher@afrolegs.com> | 2016-11-16 15:09:33 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-16 15:09:33 -0500 |
commit | f116f79f30f295a14f2f36836d2cdb80fe7ab298 (patch) | |
tree | 8a1fc02735d6268306fd84792ca8c36e49714478 /roles/openshift_master/templates | |
parent | 7762b55f399eda5dd1ea1ad74773ac48778cb30b (diff) | |
parent | 435346f46cee49bf2047d9492f40fc7c979024c6 (diff) | |
download | openshift-f116f79f30f295a14f2f36836d2cdb80fe7ab298.tar.gz openshift-f116f79f30f295a14f2f36836d2cdb80fe7ab298.tar.bz2 openshift-f116f79f30f295a14f2f36836d2cdb80fe7ab298.tar.xz openshift-f116f79f30f295a14f2f36836d2cdb80fe7ab298.zip |
Merge pull request #2702 from jkhelil/fix_master_config_template
Prevent useless master restart by reworking template for master service enf file
Diffstat (limited to 'roles/openshift_master/templates')
-rw-r--r-- | roles/openshift_master/templates/atomic-openshift-master.j2 | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/roles/openshift_master/templates/atomic-openshift-master.j2 b/roles/openshift_master/templates/atomic-openshift-master.j2 index 26f0240ec..7aea89578 100644 --- a/roles/openshift_master/templates/atomic-openshift-master.j2 +++ b/roles/openshift_master/templates/atomic-openshift-master.j2 @@ -8,6 +8,11 @@ IMAGE_VERSION={{ openshift_image_tag }} AWS_ACCESS_KEY_ID={{ openshift_cloudprovider_aws_access_key }} AWS_SECRET_ACCESS_KEY={{ openshift_cloudprovider_aws_secret_key }} {% endif %} +{% if not (openshift_cloudprovider_kind is defined and openshift_cloudprovider_kind == 'aws' and openshift_cloudprovider_aws_access_key is defined and openshift_cloudprovider_aws_secret_key is defined) %} +{% for item in master_aws %} +{{ item }} +{% endfor %} +{% endif %} {% if 'api_env_vars' in openshift.master or 'controllers_env_vars' in openshift.master -%} {% for key, value in openshift.master.api_env_vars.items() | default([]) | union(openshift.master.controllers_env_vars.items() | default([])) -%} @@ -26,3 +31,8 @@ HTTPS_PROXY={{ openshift.common.https_proxy | default('')}} {% if 'no_proxy' in openshift.common %} NO_PROXY={{ openshift.common.no_proxy | default('') | join(',') }},{{ openshift.common.portal_net }},{{ openshift.master.sdn_cluster_network_cidr }} {% endif %} +{% if not ('https_proxy' in openshift.common or 'https_proxy' in openshift.common or 'no_proxy' in openshift.common) %} +{% for item in master_proxy %} +{{ item }} +{% endfor %} +{% endif %} |