main.yml 6.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. ---
  2. - name: Set master facts
  3. openshift_facts:
  4. role: master
  5. local_facts:
  6. cluster_method: "{{ openshift_master_cluster_method | default(None) }}"
  7. cluster_hostname: "{{ openshift_master_cluster_hostname | default(None) }}"
  8. cluster_public_hostname: "{{ openshift_master_cluster_public_hostname | default(None) }}"
  9. debug_level: "{{ openshift_master_debug_level | default(openshift.common.debug_level) }}"
  10. api_port: "{{ openshift_master_api_port | default(None) }}"
  11. api_url: "{{ openshift_master_api_url | default(None) }}"
  12. api_use_ssl: "{{ openshift_master_api_use_ssl | default(None) }}"
  13. public_api_url: "{{ openshift_master_public_api_url | default(None) }}"
  14. console_path: "{{ openshift_master_console_path | default(None) }}"
  15. console_port: "{{ openshift_master_console_port | default(None) }}"
  16. console_url: "{{ openshift_master_console_url | default(None) }}"
  17. console_use_ssl: "{{ openshift_master_console_use_ssl | default(None) }}"
  18. public_console_url: "{{ openshift_master_public_console_url | default(None) }}"
  19. logging_public_url: "{{ openshift_master_logging_public_url | default(None) }}"
  20. logout_url: "{{ openshift_master_logout_url | default(None) }}"
  21. extension_scripts: "{{ openshift_master_extension_scripts | default(None) }}"
  22. extension_stylesheets: "{{ openshift_master_extension_stylesheets | default(None) }}"
  23. extensions: "{{ openshift_master_extensions | default(None) }}"
  24. etcd_hosts: "{{ openshift_master_etcd_hosts | default(None) }}"
  25. etcd_port: "{{ openshift_master_etcd_port | default(None) }}"
  26. etcd_use_ssl: "{{ openshift_master_etcd_use_ssl | default(None) }}"
  27. etcd_urls: "{{ openshift_master_etcd_urls | default(None) }}"
  28. embedded_etcd: "{{ openshift_master_embedded_etcd | default(None) }}"
  29. embedded_kube: "{{ openshift_master_embedded_kube | default(None) }}"
  30. embedded_dns: "{{ openshift_master_embedded_dns | default(None) }}"
  31. # defaults to 8053 when using dnsmasq in 1.2/3.2
  32. dns_port: "{{ openshift_master_dns_port | default(None) }}"
  33. bind_addr: "{{ openshift_master_bind_addr | default(None) }}"
  34. pod_eviction_timeout: "{{ openshift_master_pod_eviction_timeout | default(None) }}"
  35. session_max_seconds: "{{ openshift_master_session_max_seconds | default(None) }}"
  36. session_name: "{{ openshift_master_session_name | default(None) }}"
  37. session_secrets_file: "{{ openshift_master_session_secrets_file | default(None) }}"
  38. session_auth_secrets: "{{ openshift_master_session_auth_secrets | default(None) }}"
  39. session_encryption_secrets: "{{ openshift_master_session_encryption_secrets | default(None) }}"
  40. access_token_max_seconds: "{{ openshift_master_access_token_max_seconds | default(None) }}"
  41. auth_token_max_seconds: "{{ openshift_master_auth_token_max_seconds | default(None) }}"
  42. identity_providers: "{{ openshift_master_identity_providers | default(None) }}"
  43. htpasswd_users: "{{ openshift_master_htpasswd_users | default(lookup('file', openshift_master_htpasswd_file) | oo_htpasswd_users_from_file if openshift_master_htpasswd_file is defined else None) }}"
  44. manage_htpasswd: "{{ openshift_master_manage_htpasswd | default(true) }}"
  45. ldap_ca: "{{ openshift_master_ldap_ca | default(lookup('file', openshift_master_ldap_ca_file) if openshift_master_ldap_ca_file is defined else None) }}"
  46. openid_ca: "{{ openshift_master_openid_ca | default(lookup('file', openshift_master_openid_ca_file) if openshift_master_openid_ca_file is defined else None) }}"
  47. request_header_ca: "{{ openshift_master_request_header_ca | default(lookup('file', openshift_master_request_header_ca_file) if openshift_master_request_header_ca_file is defined else None) }}"
  48. registry_url: "{{ oreg_url | default(None) }}"
  49. oauth_grant_method: "{{ openshift_master_oauth_grant_method | default(None) }}"
  50. sdn_cluster_network_cidr: "{{ osm_cluster_network_cidr | default(None) }}"
  51. sdn_host_subnet_length: "{{ osm_host_subnet_length | default(None) }}"
  52. default_subdomain: "{{ openshift_master_default_subdomain | default(osm_default_subdomain | default(None), true) }}"
  53. custom_cors_origins: "{{ osm_custom_cors_origins | default(None) }}"
  54. default_node_selector: "{{ osm_default_node_selector | default(None) }}"
  55. project_request_message: "{{ osm_project_request_message | default(None) }}"
  56. project_request_template: "{{ osm_project_request_template | default(None) }}"
  57. mcs_allocator_range: "{{ osm_mcs_allocator_range | default(None) }}"
  58. mcs_labels_per_project: "{{ osm_mcs_labels_per_project | default(None) }}"
  59. uid_allocator_range: "{{ osm_uid_allocator_range | default(None) }}"
  60. registry_selector: "{{ openshift_registry_selector | default(None) }}"
  61. api_server_args: "{{ osm_api_server_args | default(None) }}"
  62. controller_args: "{{ osm_controller_args | default(None) }}"
  63. disabled_features: "{{ osm_disabled_features | default(None) }}"
  64. master_count: "{{ openshift_master_count | default(None) }}"
  65. controller_lease_ttl: "{{ osm_controller_lease_ttl | default(None) }}"
  66. master_image: "{{ osm_image | default(None) }}"
  67. scheduler_predicates: "{{ openshift_master_scheduler_predicates | default(None) }}"
  68. scheduler_priorities: "{{ openshift_master_scheduler_priorities | default(None) }}"
  69. admission_plugin_order: "{{openshift_master_admission_plugin_order | default(None) }}"
  70. admission_plugin_config: "{{openshift_master_admission_plugin_config | default(None) }}"
  71. kube_admission_plugin_order: "{{openshift_master_kube_admission_plugin_order | default(None) }}"
  72. kube_admission_plugin_config: "{{openshift_master_kube_admission_plugin_config | default(None) }}"
  73. oauth_template: "{{ openshift_master_oauth_template | default(None) }}" # deprecated in origin 1.2 / OSE 3.2
  74. oauth_templates: "{{ openshift_master_oauth_templates | default(None) }}"
  75. oauth_always_show_provider_selection: "{{ openshift_master_oauth_always_show_provider_selection | default(None) }}"
  76. image_policy_config: "{{ openshift_master_image_policy_config | default(None) }}"
  77. dynamic_provisioning_enabled: "{{ openshift_master_dynamic_provisioning_enabled | default(None) }}"
  78. max_requests_inflight: "{{ openshift_master_max_requests_inflight | default(None) }}"
  79. api_env_vars: "{{ openshift_master_api_env_vars | default(None) }}"
  80. controllers_env_vars: "{{ openshift_master_controllers_env_vars | default(None) }}"
  81. audit_config: "{{ openshift_master_audit_config | default(None) }}"
  82. metrics_public_url: "{% if openshift_hosted_metrics_deploy | default(false) %}https://{{ metrics_hostname }}/hawkular/metrics{% endif %}"