atomic-openshift-master.j2 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. OPTIONS=--loglevel={{ openshift_master_debug_level }}
  2. CONFIG_FILE={{ openshift_master_config_file }}
  3. {# Preserve existing OPENSHIFT_DEFAULT_REGISTRY settings in scale up runs #}
  4. {% if openshift_master_is_scaleup_host %}
  5. {{ openshift_master_default_registry_value }}
  6. {% elif openshift_push_via_dns | default(false) %}
  7. OPENSHIFT_DEFAULT_REGISTRY=docker-registry.default.svc:5000
  8. {% endif %}
  9. {% if openshift_is_containerized | bool %}
  10. IMAGE_VERSION={{ openshift_image_tag }}
  11. {% endif %}
  12. {% if openshift_cloudprovider_kind | default('') == 'aws' and openshift_cloudprovider_aws_access_key is defined and openshift_cloudprovider_aws_secret_key is defined %}
  13. AWS_ACCESS_KEY_ID={{ openshift_cloudprovider_aws_access_key }}
  14. AWS_SECRET_ACCESS_KEY={{ openshift_cloudprovider_aws_secret_key }}
  15. {% endif %}
  16. {% 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) %}
  17. {% for item in master_aws %}
  18. {{ item }}
  19. {% endfor %}
  20. {% endif %}
  21. {% if 'api_env_vars' in openshift.master or 'controllers_env_vars' in openshift.master -%}
  22. {% for key, value in (openshift.master.api_env_vars | default({})).items() | union((openshift.master.controllers_env_vars | default({})).items()) -%}
  23. {{ key }}={{ value }}
  24. {% endfor -%}
  25. {% endif -%}
  26. # Proxy configuration
  27. # See https://docs.openshift.com/enterprise/latest/install_config/install/advanced_install.html#configuring-global-proxy
  28. {% if 'http_proxy' in openshift.common %}
  29. HTTP_PROXY={{ openshift.common.http_proxy | default('') }}
  30. {% endif %}
  31. {% if 'https_proxy' in openshift.common %}
  32. HTTPS_PROXY={{ openshift.common.https_proxy | default('')}}
  33. {% endif %}
  34. {% if 'no_proxy' in openshift.common %}
  35. NO_PROXY={{ openshift.common.no_proxy | default('') }},{{ openshift.common.portal_net }},{{ openshift.master.sdn_cluster_network_cidr }}
  36. {% endif %}
  37. {% if not ('https_proxy' in openshift.common or 'https_proxy' in openshift.common or 'no_proxy' in openshift.common) %}
  38. {% for item in master_proxy %}
  39. {{ item }}
  40. {% endfor %}
  41. {% endif %}