slurm-cluster.yaml 402 B

123456789101112131415161718192021222324
  1. ---
  2. #Playbook for installing Slurm on a cluster
  3. #collect info from everything
  4. - hosts: all
  5. # Apply Common Installation and Config
  6. - hosts: cluster
  7. gather_facts: false
  8. roles:
  9. - slurm-common
  10. # Apply Master Config, start services
  11. - hosts: master
  12. gather_facts: false
  13. roles:
  14. - slurm-master
  15. # Start SLURM workers
  16. - hosts: compute
  17. gather_facts: false
  18. roles:
  19. - start-slurm-workers