Skip to content
Snippets Groups Projects
Commit 2831f162 authored by Jupiter Hu's avatar Jupiter Hu
Browse files

Add slurm

parent d5e028ae
No related branches found
No related tags found
No related merge requests found
---
- name: restart slurmdbd
service: name={{ item }} state=restarted
with_items:
- slurmdbd
- slurm
sudo: true
---
- name: create slurmdb user
user: name=slurmdb group=slurmdb system=yes createhome=no
sudo: true
- name: install slurmdbd.conf
template: src=slurmdbd.conf.j2 dest=/etc/slurm/slurmdbd.conf
sudo: true
- name: slurm db template
template: src=slurmdb.sh.j2 dest=/etc/slurm/slurmdb.sh
sudo: true
notify: restart slurmdbd
#!/bin/sh
grant all privileges on slurm_acct_db.* to 'slurmdb'@\'{{ slurmctrl }}.{{ domain }}\' identified by \'{{ slurmDbPassword }}' with grant option;
#
# Example slurmdbd.conf file.
#
# See the slurmdbd.conf man page for more information.
#
# Archive info
#ArchiveJobs=yes
#ArchiveDir="/tmp"
#ArchiveSteps=yes
#ArchiveScript=
#JobPurge=12
#StepPurge=1
#
# Authentication info
AuthType=auth/munge
#AuthInfo=/var/run/munge/munge.socket.2
#
# slurmDBD info
DbdAddr={{ slurmctrlip }}
DbdHost={{ slurmctrl }}
#DbdPort=7031
SlurmUser=slurm
#MessageTimeout=300
#DefaultQOS=normal,standby
{% if slurmschedlog and slurmschedlogfile %}
DebugLevel={{ slurmschedlog }}
LogFile={{ slurmschedlogfile }}
{% else %}
#DebugLevel=
#LogFile=
{% endif %}
PidFile=/var/run/slurmdbd.pid
#PluginDir=/usr/lib/slurm
#PrivateData=accounts,users,usage,jobs
#TrackWCKey=yes
#
# Database info
StorageType=accounting_storage/mysql
StorageHost={{ slurmctrl }}
#StoragePort=1234
StoragePass=password
StorageUser=slurmdb
StorageLoc=slurm_acct_db
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