atomic-openshift-master-api.j2 1.7 KB

12345678910111213141516171819202122232425262728293031323334
  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. {# Preserve existing OPENSHIFT_DEFAULT_REGISTRY settings in scale up runs #}
  4. {% if openshift_master_is_scaleup_host %}
  5. {{ openshift_master_default_registry_value_api }}
  6. {% elif openshift_push_via_dns | default(false) %}
  7. OPENSHIFT_DEFAULT_REGISTRY=docker-registry.default.svc:5000
  8. {% endif %}
  9. {% if openshift.common.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 'api_env_vars' in openshift.master -%}
  17. {% for key, value in openshift.master.api_env_vars.items() -%}
  18. {{ key }}={{ value }}
  19. {% endfor -%}
  20. {% endif -%}
  21. # Proxy configuration
  22. # See https://docs.openshift.com/enterprise/latest/install_config/install/advanced_install.html#configuring-global-proxy
  23. {% if 'http_proxy' in openshift.common %}
  24. HTTP_PROXY={{ openshift.common.http_proxy | default('') }}
  25. {% endif %}
  26. {% if 'https_proxy' in openshift.common %}
  27. HTTPS_PROXY={{ openshift.common.https_proxy | default('')}}
  28. {% endif %}
  29. {% if 'no_proxy' in openshift.common %}
  30. NO_PROXY={{ openshift.common.no_proxy | default('') }},{{ openshift.common.portal_net }},{{ openshift.master.sdn_cluster_network_cidr }}
  31. {% endif %}