config.yml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. ---
  2. - include: std_include.yml
  3. tags:
  4. - always
  5. # TODO: refactor this into its own include
  6. # and pass a variable for ctx
  7. - name: Verify Requirements
  8. hosts: oo_all_hosts
  9. roles:
  10. - openshift_health_checker
  11. vars:
  12. - r_openshift_health_checker_playbook_context: install
  13. post_tasks:
  14. - action: openshift_health_check
  15. args:
  16. checks:
  17. - disk_availability
  18. - memory_availability
  19. - package_availability
  20. - package_version
  21. - docker_image_availability
  22. - docker_storage
  23. - include: initialize_firewall.yml
  24. tags:
  25. - always
  26. - hosts: localhost
  27. tasks:
  28. - fail:
  29. msg: No etcd hosts defined. Running an all-in-one master is deprecated and will no longer be supported in a future upgrade.
  30. when: groups.oo_etcd_to_config | default([]) | length == 0 and not openshift_master_unsupported_all_in_one | default(False)
  31. - include: initialize_oo_option_facts.yml
  32. tags:
  33. - always
  34. - name: Disable excluders
  35. hosts: oo_masters_to_config:oo_nodes_to_config
  36. tags:
  37. - always
  38. gather_facts: no
  39. roles:
  40. - role: openshift_excluder
  41. r_openshift_excluder_action: disable
  42. r_openshift_excluder_service_type: "{{ openshift.common.service_type }}"
  43. - include: ../openshift-etcd/config.yml
  44. tags:
  45. - etcd
  46. - include: ../openshift-nfs/config.yml
  47. tags:
  48. - nfs
  49. - include: ../openshift-loadbalancer/config.yml
  50. tags:
  51. - loadbalancer
  52. - include: ../openshift-master/config.yml
  53. tags:
  54. - master
  55. - include: additional_config.yml
  56. tags:
  57. - master
  58. - include: ../openshift-node/config.yml
  59. tags:
  60. - node
  61. - include: ../openshift-glusterfs/config.yml
  62. tags:
  63. - glusterfs
  64. - include: openshift_hosted.yml
  65. tags:
  66. - hosted
  67. - include: service_catalog.yml
  68. when:
  69. - openshift_enable_service_catalog | default(false) | bool
  70. tags:
  71. - servicecatalog
  72. - name: Re-enable excluder if it was previously enabled
  73. hosts: oo_masters_to_config:oo_nodes_to_config
  74. tags:
  75. - always
  76. gather_facts: no
  77. roles:
  78. - role: openshift_excluder
  79. r_openshift_excluder_action: enable
  80. r_openshift_excluder_service_type: "{{ openshift.common.service_type }}"