main.yml 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. ---
  2. openshift_node_debug_level: "{{ debug_level | default(2) }}"
  3. openshift_node_iptables_sync_period: '30s'
  4. osn_storage_plugin_deps:
  5. - ceph
  6. - glusterfs
  7. - iscsi
  8. openshift_node_local_quota_per_fsgroup: ""
  9. openshift_node_proxy_mode: iptables
  10. openshift_set_node_ip: False
  11. openshift_config_base: '/etc/origin'
  12. # Assume the images are already downloaded on the machine
  13. system_images_registry: "docker"
  14. l_osn_image: "{{ (system_images_registry == 'docker') | ternary(osn_image, (osn_image.split('/')|length==2) | ternary(system_images_registry + '/' + osn_image, osn_image)) }}"
  15. system_osn_image: "{{ (system_images_registry == 'docker') | ternary('docker:' + l_osn_image, l_osn_image) }}"
  16. openshift_node_env_vars: {}
  17. # lo must always be present in this list or dnsmasq will conflict with
  18. # the node's dns service.
  19. openshift_node_dnsmasq_except_interfaces:
  20. - lo
  21. # dnsmasq defaults to neg caching disabled
  22. openshift_node_dnsmasq_no_negcache: true
  23. # When openshift_node_dnsmasq_no_negcache is set to false, how many seconds to cache negative lookups.
  24. openshift_node_dnsmasq_neg_ttl: '1'
  25. r_openshift_node_firewall_enabled: "{{ os_firewall_enabled | default(True) }}"
  26. r_openshift_node_use_firewalld: "{{ os_firewall_use_firewalld | default(False) }}"
  27. openshift_node_syscon_auth_mounts_l:
  28. - type: bind
  29. source: "{{ oreg_auth_credentials_path }}"
  30. destination: "/root/.docker"
  31. options:
  32. - ro
  33. - bind
  34. # If we need to add new mounts in the future, or the user wants to mount data.
  35. # This should be in the same format as auth_mounts_l above.
  36. openshift_node_syscon_add_mounts_l: []
  37. default_r_openshift_node_image_prep_packages:
  38. - "{{ openshift_service_type }}-node"
  39. - "{{ openshift_service_type }}-docker-excluder"
  40. - ansible
  41. - bash-completion
  42. - docker
  43. - dnsmasq
  44. - ntp
  45. - logrotate
  46. - httpd-tools
  47. - bind-utils
  48. - firewalld
  49. - libselinux-python
  50. - conntrack-tools
  51. - openssl
  52. - iproute
  53. - python-dbus
  54. - PyYAML
  55. - yum-utils
  56. - glusterfs-fuse
  57. - device-mapper-multipath
  58. - nfs-utils
  59. - cockpit-ws
  60. - cockpit-system
  61. - cockpit-bridge
  62. - cockpit-docker
  63. - iscsi-initiator-utils
  64. - ceph-common
  65. - atomic
  66. r_openshift_node_image_prep_packages: "{{ default_r_openshift_node_image_prep_packages | union(openshift_node_image_prep_packages | default([])) }}"
  67. r_openshift_node_os_firewall_deny: []
  68. default_r_openshift_node_os_firewall_allow:
  69. - service: Kubernetes kubelet
  70. port: 10250/tcp
  71. - service: Kubernetes kube-proxy health check for service load balancers
  72. port: 10256/tcp
  73. - service: http
  74. port: 80/tcp
  75. - service: https
  76. port: 443/tcp
  77. - service: OpenShift OVS sdn
  78. port: 4789/udp
  79. cond: openshift_use_openshift_sdn | bool
  80. - service: Calico BGP Port
  81. port: 179/tcp
  82. cond: "{{ openshift_node_use_calico }}"
  83. - service: Kubernetes service NodePort TCP
  84. port: "{{ openshift_node_port_range | default('') }}/tcp"
  85. cond: "{{ openshift_node_port_range is defined }}"
  86. - service: Kubernetes service NodePort UDP
  87. port: "{{ openshift_node_port_range | default('') }}/udp"
  88. cond: "{{ openshift_node_port_range is defined }}"
  89. - service: Prometheus monitoring
  90. port: 9000-10000/tcp
  91. # Allow multiple port ranges to be added to the role
  92. r_openshift_node_os_firewall_allow: "{{ default_r_openshift_node_os_firewall_allow | union(openshift_node_open_ports | default([])) }}"
  93. # oreg_url is defined by user input
  94. oreg_auth_credentials_path: "{{ openshift_node_data_dir }}/.docker"
  95. l_bind_docker_reg_auth: False
  96. openshift_docker_service_name: "docker"
  97. # These defaults assume forcing journald persistence, fsync to disk once
  98. # a second, rate-limiting to 10,000 logs a second, no forwarding to
  99. # syslog or wall, using 8GB of disk space maximum, using 10MB journal
  100. # files, keeping only a days worth of logs per journal file, and
  101. # retaining journal files no longer than a month.
  102. journald_vars_to_replace:
  103. - { var: Storage, val: persistent }
  104. - { var: Compress, val: yes }
  105. - { var: SyncIntervalSec, val: 1s }
  106. - { var: RateLimitInterval, val: 1s }
  107. - { var: RateLimitBurst, val: 10000 }
  108. - { var: SystemMaxUse, val: 8G }
  109. - { var: SystemKeepFree, val: 20% }
  110. - { var: SystemMaxFileSize, val: 10M }
  111. - { var: MaxRetentionSec, val: 1month }
  112. - { var: MaxFileSec, val: 1day }
  113. - { var: ForwardToSyslog, val: no }
  114. - { var: ForwardToWall, val: no }
  115. # NOTE
  116. # r_openshift_node_*_default may be defined external to this role.
  117. # openshift_use_*, if defined, may affect other roles or play behavior.
  118. openshift_node_use_openshift_sdn_default: "{{ openshift_use_openshift_sdn | default(True) }}"
  119. openshift_node_use_openshift_sdn: "{{ openshift_node_use_openshift_sdn_default }}"
  120. openshift_node_sdn_network_plugin_name_default: "{{ os_sdn_network_plugin_name }}"
  121. openshift_node_sdn_network_plugin_name: "{{ openshift_node_sdn_network_plugin_name_default }}"
  122. openshift_node_use_calico_default: "{{ openshift_use_calico | default(False) }}"
  123. openshift_node_use_calico: "{{ openshift_node_use_calico_default }}"
  124. openshift_node_use_nuage_default: "{{ openshift_use_nuage | default(False) }}"
  125. openshift_node_use_nuage: "{{ openshift_node_use_nuage_default }}"
  126. openshift_node_use_contiv_default: "{{ openshift_use_contiv | default(False) }}"
  127. openshift_node_use_contiv: "{{ openshift_node_use_contiv_default }}"
  128. openshift_node_use_kuryr_default: "{{ openshift_use_kuryr | default(False) }}"
  129. openshift_node_use_kuryr: "{{ openshift_node_use_kuryr_default }}"
  130. openshift_node_data_dir_default: "{{ openshift_data_dir | default('/var/lib/origin') }}"
  131. openshift_node_data_dir: "{{ openshift_node_data_dir_default }}"
  132. openshift_node_config_dir_default: "/etc/origin/node"
  133. openshift_node_config_dir: "{{ openshift_node_config_dir_default }}"
  134. openshift_node_image_config_latest_default: "{{ openshift_image_config_latest | default(False) }}"
  135. openshift_node_image_config_latest: "{{ openshift_node_image_config_latest_default }}"
  136. openshift_node_use_instance_profiles: False
  137. openshift_node_use_persistentlocalvolumes: "{{ openshift_persistentlocalstorage_enabled | default(False) | bool }}"