Skip to content
Snippets Groups Projects
Commit e9781a3c authored by Gin Tan's avatar Gin Tan
Browse files

Merge branch 'slurm_fixes' into 'master'

Slurm fixes

See merge request hpc-team/ansible_cluster_in_a_box!272
parents 7f36bac6 9370bee7
No related branches found
No related tags found
1 merge request!272Slurm fixes
...@@ -32,7 +32,7 @@ LogFile={{ slurmdbdlog.log }} ...@@ -32,7 +32,7 @@ LogFile={{ slurmdbdlog.log }}
#DebugLevel= #DebugLevel=
#LogFile= #LogFile=
{% endif %} {% endif %}
PidFile=/var/run/slurmdbd.pid PidFile=/opt/slurm/var/run/slurmdbd.pid
#PluginDir=/usr/lib/slurm #PluginDir=/usr/lib/slurm
#PrivateData=accounts,users,usage,jobs #PrivateData=accounts,users,usage,jobs
#TrackWCKey=yes #TrackWCKey=yes
......
...@@ -35,6 +35,10 @@ ...@@ -35,6 +35,10 @@
become: true become: true
when: slurmpiddir is defined and not pidstat.stat.exists when: slurmpiddir is defined and not pidstat.stat.exists
- name: create slurmdbdpiddir directory
file: path={{ slurmdbdpiddir }} state=directory owner=slurm group=slurm mode=755
sudo: true
- name: create shared state directory - name: create shared state directory
file: path={{slurmsharedstatedir }} state=directory owner=slurm group=slurm mode=750 file: path={{slurmsharedstatedir }} state=directory owner=slurm group=slurm mode=750
become: true become: true
......
...@@ -7,7 +7,7 @@ ConditionPathExists={{ slurm_dir }}/etc/slurmdbd.conf ...@@ -7,7 +7,7 @@ ConditionPathExists={{ slurm_dir }}/etc/slurmdbd.conf
[Service] [Service]
Type=forking Type=forking
ExecStart={{ slurm_dir }}/sbin/slurmdbd ExecStart={{ slurm_dir }}/sbin/slurmdbd
PIDFile={{ slurmpiddir }}/slurmdbd.pid PIDFile={{ slurmdbdpiddir }}/slurmdbd.pid
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target
...@@ -21,6 +21,14 @@ ...@@ -21,6 +21,14 @@
file: path="{{ slurm_dir }}/etc" state=directory file: path="{{ slurm_dir }}/etc" state=directory
become: true become: true
- name: create slurm group
group: name=slurm system=yes gid=497
sudo: true
- name: create slurm user # this is duplicated from slurm-common
user: name=slurm group=slurm system=yes createhome=no uid=497
sudo: true
- name: install slurmdb.conf - name: install slurmdb.conf
copy: copy:
src: files/slurmdbd.conf src: files/slurmdbd.conf
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment