omnia.yml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  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: Prepare the cluster with passwordless ssh from manager to compute
  24. hosts: manager
  25. gather_facts: false
  26. pre_tasks:
  27. - name: Set Fact
  28. set_fact:
  29. ssh_to: "{{ groups['compute'] }}"
  30. roles:
  31. - cluster_preperation
  32. - name: Prepare the cluster with passwordless ssh from compute to manager
  33. hosts: compute
  34. gather_facts: false
  35. pre_tasks:
  36. - name: Set Fact
  37. set_fact:
  38. ssh_to: "{{ groups['manager'] }}"
  39. roles:
  40. - cluster_preperation
  41. - name: Apply common installation and config
  42. hosts: manager, compute
  43. gather_facts: false
  44. roles:
  45. - common
  46. tags: common
  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: kubernetes
  71. - name: Apply NFS client setup on compute nodes
  72. hosts: compute
  73. gather_facts: false
  74. roles:
  75. - k8s_nfs_client_setup
  76. tags: kubernetes
  77. - name: Start K8s on manager server
  78. hosts: manager
  79. gather_facts: true
  80. roles:
  81. - k8s_start_manager
  82. tags: kubernetes
  83. - name: Start K8s worker servers on compute nodes
  84. hosts: compute
  85. gather_facts: false
  86. roles:
  87. - k8s_start_workers
  88. tags: kubernetes
  89. - name: Start K8s worker servers on manager nodes
  90. hosts: manager
  91. gather_facts: false
  92. roles:
  93. - k8s_start_services
  94. tags: kubernetes
  95. - name: Apply common Slurm installation and config
  96. hosts: manager, compute
  97. gather_facts: false
  98. roles:
  99. - slurm_common
  100. tags: slurm
  101. - name: Apply Slurm manager config
  102. hosts: manager
  103. gather_facts: false
  104. roles:
  105. - slurm_manager
  106. tags: slurm
  107. - name: Start Slurm workers
  108. hosts: compute
  109. gather_facts: false
  110. roles:
  111. - slurm_workers
  112. tags: slurm
  113. - name: Start Slurm services
  114. hosts: manager
  115. gather_facts: false
  116. roles:
  117. - slurm_start_services
  118. tags: slurm
  119. - name: Install slurm exporter
  120. hosts: manager
  121. gather_facts: false
  122. roles:
  123. - slurm_exporter
  124. tags: slurm