-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge upstream and cherry-pick fixes (#3)
* Added cluster creation to slurmdb install * Refactored order in which cluster is created * review order of restarting service should follow this order when restarting : - slurmdbd - slurmctld - slurmd * Fix syntax error in handlers * Fix typo in handler name (cherry picked from commit 712cf32) * Remove key 'SlurmctldPidFile' from __slurmdbd_config_default (cherry picked from commit 936e64a) --------- Co-authored-by: slugger70 <[email protected]> Co-authored-by: Christian IUGA <[email protected]> Co-authored-by: Nate Coraor <[email protected]> Co-authored-by: Nuwan Goonasekera <[email protected]> Co-authored-by: Christopher Lilienthal <[email protected]> Co-authored-by: cat-bro <[email protected]>
- Loading branch information
1 parent
68c88a2
commit ccc9351
Showing
4 changed files
with
44 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
|
||
- name: Check for existence of cluster in db. | ||
register: cluster_check | ||
shell: "sacctmgr -n list cluster | cut -f 4 -d ' '" | ||
become: yes | ||
become_user: root | ||
|
||
- name: set cluster_check_boolean | ||
set_fact: | ||
__cluster_not_setup: false | ||
when: cluster_check.stdout == "cluster" | ||
|
||
- name: Create the slurmdbd cluster | ||
command: sacctmgr -i -n add cluster {{ __slurm_cluster_name }} | ||
become: yes | ||
become_user: root | ||
notify: | ||
- Reload slurmdbd | ||
when: __cluster_not_setup |