atomic-openshift-master.j2 1.8 KB

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