atomic-openshift-master.j2 1.9 KB

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