File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change 1919 sudo /usr/sbin/slurmctld -c
2020 fi
2121 ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook $playbooks_path /slurm_config.yml
22+ if [[ ${@: -1} == " --INITIAL" || ${@: -1} == " --initial" || ${@: -1} == " -INITIAL" || ${@: -1} == " -initial" ]]
23+ then
24+ for inventory in /opt/oci-hpc/autoscaling/clusters/* /inventory ;
25+ do
26+ if [ -f $( dirname $inventory ) /currently* ]
27+ then
28+ echo " Cluster is not in running state"
29+ else
30+ ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook $playbooks_path /slurm_config_as.yml -i $inventory
31+ fi
32+ done
33+ fi
2234 else
2335 echo " There are some duplicates instance_keyword lines, please make them unique"
2436fi
Original file line number Diff line number Diff line change 1+ - hosts : compute
2+ vars :
3+ destroy : false
4+ initial : false
5+ download_path : " {{ '/nfs/cluster/' if cluster_nfs|bool else '/tmp' }}"
6+ enroot_top_path : " {{ nvme_path }}/enroot/"
7+ vars_files :
8+ - " /opt/oci-hpc/conf/queues.conf"
9+ tasks :
10+ - include_role :
11+ name : slurm
12+ when : slurm|default(false)|bool
You can’t perform that action at this time.
0 commit comments