omnia.yml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. # Copyright 2020 Dell Inc. or its subsidiaries. All Rights Reserved.
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. ---
  15. - name: Validate the cluster
  16. hosts: localhost
  17. connection: local
  18. gather_facts: no
  19. roles:
  20. - cluster_validation
  21. - name: Gather facts from all the nodes
  22. hosts: all
  23. - name: Apply common installation and config
  24. hosts: manager, compute
  25. gather_facts: false
  26. roles:
  27. - common
  28. tags: common
  29. - name: Apply login common installation and config
  30. hosts: manager, login_node
  31. gather_facts: false
  32. roles:
  33. - login_common
  34. tags: freeipa
  35. - name: Apply login server installation and config
  36. hosts: manager
  37. gather_facts: false
  38. roles:
  39. - login_server
  40. tags: freeipa
  41. - name: Apply login node installation and config
  42. hosts: login_node
  43. gather_facts: false
  44. roles:
  45. - login_node
  46. tags: freeipa
  47. - name: Apply common K8s installation and config
  48. hosts: manager, compute
  49. gather_facts: false
  50. roles:
  51. - k8s_common
  52. tags: kubernetes
  53. - name: Apply K8s manager config
  54. hosts: manager
  55. gather_facts: true
  56. roles:
  57. - k8s_manager
  58. tags: kubernetes
  59. - name: Apply K8s firewalld config on manager and compute nodes
  60. hosts: manager, compute
  61. gather_facts: false
  62. roles:
  63. - k8s_firewalld
  64. tags: kubernetes
  65. - name: Apply NFS server setup on manager node
  66. hosts: manager
  67. gather_facts: false
  68. roles:
  69. - k8s_nfs_server_setup
  70. tags:
  71. - kubernetes
  72. - nfs
  73. - name: Apply NFS client setup on compute nodes
  74. hosts: compute
  75. gather_facts: false
  76. roles:
  77. - k8s_nfs_client_setup
  78. tags:
  79. - kubernetes
  80. - nfs
  81. - name: Start K8s on manager server
  82. hosts: manager
  83. gather_facts: true
  84. roles:
  85. - k8s_start_manager
  86. tags: kubernetes
  87. - name: Start K8s worker servers on compute nodes
  88. hosts: compute
  89. gather_facts: false
  90. roles:
  91. - k8s_start_workers
  92. tags: kubernetes
  93. - name: Start K8s worker servers on manager nodes
  94. hosts: manager
  95. gather_facts: false
  96. roles:
  97. - k8s_start_services
  98. tags: kubernetes
  99. - name: Apply common Slurm installation and config
  100. hosts: manager, compute, login_node
  101. gather_facts: false
  102. roles:
  103. - slurm_common
  104. tags: slurm
  105. - name: Apply Slurm manager config
  106. hosts: manager
  107. gather_facts: false
  108. roles:
  109. - slurm_manager
  110. tags: slurm
  111. - name: Configure Slurm workers
  112. hosts: compute, login_node
  113. serial: 1
  114. gather_facts: false
  115. roles:
  116. - slurm_workers
  117. tags: slurm
  118. - name: Start Slurm workers
  119. hosts: compute, login_node
  120. gather_facts: false
  121. roles:
  122. - slurm_workers_service
  123. tags: slurm
  124. - name: Start Slurm services
  125. hosts: manager
  126. gather_facts: false
  127. roles:
  128. - slurm_start_services
  129. tags: slurm
  130. - name: Install slurm exporter
  131. hosts: manager
  132. gather_facts: false
  133. roles:
  134. - slurm_exporter
  135. tags: slurm
  136. - name: Passwordless SSH between manager and compute nodes
  137. include: control_plane/tools/passwordless_ssh.yml
  138. when: hostvars['127.0.0.1']['appliance_status']