atomic-openshift-master-api.j2 1.5 KB

12345678910111213141516171819202122232425262728
  1. OPTIONS=--loglevel={{ openshift.master.debug_level }} --listen={{ 'https' if openshift.master.api_use_ssl else 'http' }}://{{ openshift.master.bind_addr }}:{{ openshift.master.api_port }} --master={{ openshift.master.loopback_api_url }}
  2. CONFIG_FILE={{ openshift_master_config_file }}
  3. {% if openshift.common.is_containerized | bool %}
  4. IMAGE_VERSION={{ openshift_image_tag }}
  5. {% endif %}
  6. {% if 'cloudprovider' in openshift and 'aws' in openshift.cloudprovider and 'kind' in openshift.cloudprovider and openshift.cloudprovider.kind == 'aws' and 'access_key' in openshift.cloudprovider.aws and 'secret_key' in openshift.cloudprovider.aws %}
  7. AWS_ACCESS_KEY_ID={{ openshift.cloudprovider.aws.access_key }}
  8. AWS_SECRET_ACCESS_KEY={{ openshift.cloudprovider.aws.secret_key }}
  9. {% endif %}
  10. {% if 'api_env_vars' in openshift.master -%}
  11. {% for key, value in openshift.master.api_env_vars.items() -%}
  12. {{ key }}={{ value }}
  13. {% endfor -%}
  14. {% endif -%}
  15. # Proxy configuration
  16. # See https://docs.openshift.com/enterprise/latest/install_config/install/advanced_install.html#configuring-global-proxy
  17. {% if 'http_proxy' in openshift.common %}
  18. HTTP_PROXY={{ openshift.common.http_proxy | default('') }}
  19. {% endif %}
  20. {% if 'https_proxy' in openshift.common %}
  21. HTTPS_PROXY={{ openshift.common.https_proxy | default('')}}
  22. {% endif %}
  23. {% if 'no_proxy' in openshift.common %}
  24. NO_PROXY={{ openshift.common.no_proxy | default('') | join(',') }},{{ openshift.common.portal_net }},{{ openshift.master.sdn_cluster_network_cidr }}
  25. {% endif %}