forked from galaxyproject/ansible-slurm
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request galaxyproject#19 from galaxyproject/community-upda…
…tes-bugfixes Numerous features and bugfixes from #1
- Loading branch information
Showing
8 changed files
with
162 additions
and
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
--- | ||
- name: restart munge | ||
service: | ||
name: munge | ||
state: restarted | ||
|
||
- name: reload slurmd | ||
service: | ||
|
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,23 @@ | ||
--- | ||
|
||
- name: Install extra execution host configs | ||
template: | ||
src: "{{ item.template }}" | ||
dest: "{{ slurm_config_dir }}/{{ item.name }}" | ||
backup: yes | ||
with_items: | ||
- name: acct_gather.conf | ||
config: slurm_acct_gather_config | ||
template: generic.conf.j2 | ||
- name: cgroup.conf | ||
config: slurm_cgroup_config | ||
template: generic.conf.j2 | ||
- name: gres.conf | ||
config: slurm_gres_config | ||
template: gres.conf.j2 | ||
loop_control: | ||
label: "{{ item.name }}" | ||
when: item.config in vars | ||
notify: | ||
- reload slurmctld | ||
- reload slurmd |
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
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,11 @@ | ||
## | ||
## This file is maintained by Ansible - ALL MODIFICATIONS WILL BE REVERTED | ||
## | ||
|
||
{% set conf = lookup('vars', item.config) %} | ||
{% for gres in conf %} | ||
{% if gres['NodeName'] is not none %} | ||
NodeName={{ gres['NodeName'] }}{% for key in gres | sort %}{% if key != 'NodeName' %} {{ key }}={{ gres[key] }}{% endif %}{% endfor %} | ||
|
||
{% endif %} | ||
{% endfor %} |