omnia.yml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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. # Omnia playbook. Will be updated later.
  16. - name: Gather facts from all the nodes
  17. hosts: all
  18. - name: Apply common installation and config
  19. hosts: manager, compute
  20. gather_facts: false
  21. roles:
  22. - common
  23. - name: Apply GPU node config
  24. hosts: gpus
  25. gather_facts: false
  26. roles:
  27. - compute_gpu
  28. - name: Apply K8s manager config
  29. hosts: manager
  30. gather_facts: true
  31. roles:
  32. - manager
  33. - name: Apply K8s firewalld config on manager and compute nodes
  34. hosts: manager, compute
  35. gather_facts: false
  36. roles:
  37. - firewalld
  38. - name: Start K8s on manager server
  39. hosts: manager
  40. gather_facts: true
  41. roles:
  42. - startmanager
  43. - name: Start K8s worker servers on compute nodes
  44. hosts: compute
  45. gather_facts: false
  46. roles:
  47. - startworkers
  48. - name: Start K8s worker servers on manager nodes
  49. hosts: manager
  50. gather_facts: false
  51. roles:
  52. - startservices
  53. - name: Apply SLURM manager config
  54. hosts: manager
  55. gather_facts: false
  56. roles:
  57. - slurm_manager
  58. tags: slurm
  59. - name: Apply common Slurm installation and config
  60. hosts: manager, compute
  61. gather_facts: false
  62. roles:
  63. - slurm_common
  64. tags: slurm
  65. - name: Start slurm workers
  66. hosts: compute
  67. gather_facts: false
  68. roles:
  69. - start_slurm_workers
  70. tags: slurm
  71. - name: Start Slurm services
  72. hosts: manager
  73. gather_facts: false
  74. roles:
  75. - slurm_start_services
  76. tags: slurm