omnia.yml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  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 common K8s installation and config
  30. hosts: manager, compute
  31. gather_facts: false
  32. roles:
  33. - k8s_common
  34. tags: kubernetes
  35. - name: Apply K8s manager config
  36. hosts: manager
  37. gather_facts: true
  38. roles:
  39. - k8s_manager
  40. tags: kubernetes
  41. - name: Apply K8s firewalld config on manager and compute nodes
  42. hosts: manager, compute
  43. gather_facts: false
  44. roles:
  45. - k8s_firewalld
  46. tags: kubernetes
  47. - name: Apply NFS server setup on manager node
  48. hosts: manager
  49. gather_facts: false
  50. roles:
  51. - k8s_nfs_server_setup
  52. tags:
  53. - kubernetes
  54. - nfs
  55. - name: Apply NFS client setup on compute nodes
  56. hosts: compute
  57. gather_facts: false
  58. roles:
  59. - k8s_nfs_client_setup
  60. tags:
  61. - kubernetes
  62. - nfs
  63. - name: Start K8s on manager server
  64. hosts: manager
  65. gather_facts: true
  66. roles:
  67. - k8s_start_manager
  68. tags: kubernetes
  69. - name: Start K8s worker servers on compute nodes
  70. hosts: compute
  71. gather_facts: false
  72. roles:
  73. - k8s_start_workers
  74. tags: kubernetes
  75. - name: Start K8s worker servers on manager nodes
  76. hosts: manager
  77. gather_facts: false
  78. roles:
  79. - k8s_start_services
  80. tags: kubernetes
  81. - name: Apply common Slurm installation and config
  82. hosts: manager, compute
  83. gather_facts: false
  84. roles:
  85. - slurm_common
  86. tags: slurm
  87. - name: Apply Slurm manager config
  88. hosts: manager
  89. gather_facts: false
  90. roles:
  91. - slurm_manager
  92. tags: slurm
  93. - name: Start Slurm workers
  94. hosts: compute
  95. gather_facts: false
  96. roles:
  97. - slurm_workers
  98. tags: slurm
  99. - name: Start Slurm services
  100. hosts: manager
  101. gather_facts: false
  102. roles:
  103. - slurm_start_services
  104. tags: slurm
  105. - name: Install slurm exporter
  106. hosts: manager
  107. gather_facts: false
  108. roles:
  109. - slurm_exporter
  110. tags: slurm
  111. - name: Passwordless SSH between manager and compute nodes
  112. include: appliance/tools/passwordless_ssh.yml
  113. when: hostvars['127.0.0.1']['appliance_status']