main.yml 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. ---
  2. openshift_node_debug_level: "{{ debug_level | default(2) }}"
  3. openshift_node_dnsmasq_install_network_manager_hook: true
  4. # lo must always be present in this list or dnsmasq will conflict with
  5. # the node's dns service.
  6. openshift_node_dnsmasq_except_interfaces:
  7. - lo
  8. r_openshift_node_firewall_enabled: "{{ os_firewall_enabled | default(True) }}"
  9. r_openshift_node_use_firewalld: "{{ os_firewall_use_firewalld | default(False) }}"
  10. l_is_node_system_container: "{{ (openshift_use_node_system_container | default(openshift_use_system_containers | default(false)) | bool) }}"
  11. openshift_deployment_type: "{{ openshift_deployment_type | default('origin') }}"
  12. openshift_service_type: "{{ 'origin' if openshift_deployment_type == 'origin' else 'atomic-openshift' }}"
  13. system_images_registry_dict:
  14. openshift-enterprise: "registry.access.redhat.com"
  15. origin: "docker.io"
  16. system_images_registry: "{{ system_images_registry_dict[openshift_deployment_type | default('origin')] }}"
  17. l_is_openvswitch_system_container: "{{ (openshift_use_openvswitch_system_container | default(openshift_use_system_containers | default(false)) | bool) }}"
  18. openshift_image_tag: ''
  19. default_r_openshift_node_image_prep_packages:
  20. - "{{ openshift_service_type }}-master"
  21. - "{{ openshift_service_type }}-node"
  22. - "{{ openshift_service_type }}-docker-excluder"
  23. - "{{ openshift_service_type }}-sdn-ovs"
  24. - ansible
  25. - openvswitch
  26. - docker
  27. - etcd
  28. - haproxy
  29. - dnsmasq
  30. - ntp
  31. - logrotate
  32. - httpd-tools
  33. - bind
  34. - firewalld
  35. - libselinux-python
  36. - conntrack-tools
  37. - openssl
  38. - cloud-init
  39. - iproute
  40. - python-dbus
  41. - PyYAML
  42. - yum-utils
  43. # gluster
  44. - glusterfs-fuse
  45. # nfs
  46. - nfs-utils
  47. - flannel
  48. - bash-completion
  49. # cockpit
  50. - cockpit-ws
  51. - cockpit-system
  52. - cockpit-bridge
  53. - cockpit-docker
  54. # iscsi
  55. - iscsi-initiator-utils
  56. # ceph
  57. - ceph-common
  58. # systemcontainer
  59. # - runc
  60. # - container-selinux
  61. # - atomic
  62. #
  63. r_openshift_node_image_prep_packages: "{{ default_r_openshift_node_image_prep_packages | union(openshift_node_image_prep_packages | default([])) }}"
  64. openshift_node_bootstrap: False
  65. r_openshift_node_os_firewall_deny: []
  66. default_r_openshift_node_os_firewall_allow:
  67. - service: Kubernetes kubelet
  68. port: 10250/tcp
  69. - service: http
  70. port: 80/tcp
  71. - service: https
  72. port: 443/tcp
  73. - service: OpenShift OVS sdn
  74. port: 4789/udp
  75. cond: openshift_use_openshift_sdn | bool
  76. - service: Calico BGP Port
  77. port: 179/tcp
  78. cond: "{{ openshift_node_use_calico }}"
  79. - service: Kubernetes service NodePort TCP
  80. port: "{{ openshift_node_port_range | default('') }}/tcp"
  81. cond: "{{ openshift_node_port_range is defined }}"
  82. - service: Kubernetes service NodePort UDP
  83. port: "{{ openshift_node_port_range | default('') }}/udp"
  84. cond: "{{ openshift_node_port_range is defined }}"
  85. # Allow multiple port ranges to be added to the role
  86. r_openshift_node_os_firewall_allow: "{{ default_r_openshift_node_os_firewall_allow | union(openshift_node_open_ports | default([])) }}"
  87. # oreg_url is defined by user input
  88. oreg_host: "{{ oreg_url.split('/')[0] if (oreg_url is defined and '.' in oreg_url.split('/')[0]) else '' }}"
  89. oreg_auth_credentials_path: "{{ openshift_node_data_dir }}/.docker"
  90. oreg_auth_credentials_replace: False
  91. l_bind_docker_reg_auth: False
  92. openshift_use_crio: False
  93. openshift_docker_alternative_creds: "{{ (openshift_docker_use_system_container | default(False)) or (openshift_use_crio_only | default(False)) }}"
  94. openshift_docker_service_name: "{{ 'container-engine' if (openshift_docker_use_system_container | default(False)) else 'docker' }}"
  95. # NOTE
  96. # r_openshift_node_*_default may be defined external to this role.
  97. # openshift_use_*, if defined, may affect other roles or play behavior.
  98. openshift_node_use_openshift_sdn_default: "{{ openshift_use_openshift_sdn | default(True) }}"
  99. openshift_node_use_openshift_sdn: "{{ openshift_node_use_openshift_sdn_default }}"
  100. openshift_node_sdn_network_plugin_name_default: "{{ os_sdn_network_plugin_name | default('redhat/openshift-ovs-subnet') }}"
  101. openshift_node_sdn_network_plugin_name: "{{ openshift_node_sdn_network_plugin_name_default }}"
  102. openshift_node_use_calico_default: "{{ openshift_use_calico | default(False) }}"
  103. openshift_node_use_calico: "{{ openshift_node_use_calico_default }}"
  104. openshift_node_use_nuage_default: "{{ openshift_use_nuage | default(False) }}"
  105. openshift_node_use_nuage: "{{ openshift_node_use_nuage_default }}"
  106. openshift_node_use_contiv_default: "{{ openshift_use_contiv | default(False) }}"
  107. openshift_node_use_contiv: "{{ openshift_node_use_contiv_default }}"
  108. openshift_node_use_kuryr_default: "{{ openshift_use_kuryr | default(False) }}"
  109. openshift_node_use_kuryr: "{{ openshift_node_use_kuryr_default }}"
  110. openshift_node_data_dir_default: "{{ openshift_data_dir | default('/var/lib/origin') }}"
  111. openshift_node_data_dir: "{{ openshift_node_data_dir_default }}"
  112. openshift_node_config_dir_default: "/etc/origin/node"
  113. openshift_node_config_dir: "{{ openshift_node_config_dir_default }}"
  114. openshift_node_image_config_latest_default: "{{ openshift_image_config_latest | default(False) }}"
  115. openshift_node_image_config_latest: "{{ openshift_node_image_config_latest_default }}"
  116. openshift_node_use_instance_profiles: False