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

fix exceptions

parent 309b36d3
No related branches found
No related tags found
No related merge requests found
source diff could not be displayed: it is too large. Options to address this: view the blob.
<background>
<starttime>
<year>2010</year>
<month>11</month>
<day>11</day>
<hour>00</hour>
<minute>00</minute>
<second>00</second>
</starttime>
<static>
<duration>10000000000.0</duration>
<file>
<!-- Wide 16:10 -->
<size width="1920" height="1200">/usr/share/backgrounds/cvl_desktop.svg</size>
<!-- Standard 4:3 -->
<size width="1920" height="1440">/usr/share/backgrounds/cvl_desktop.svg</size>
</file>
</static>
</background>
- name: configure the cvl menues
copy: src=cvl.menu dest=/etc/xdg/menus/applications-merged/cvl.menu mode=644 owner=root group=root
sudo: true
- name: configure the cvl backgroud image
copy: src={{ item }} dest=/usr/share/backgrounds/i{{ item }} mode=644 owner=root group=root
with_items:
- cvl_desktop.svg
- default.xml
sudo: true
......@@ -3,10 +3,12 @@
- name: "update cache"
shell: yum update -y
sudo: true
when: ansible_os_family == 'RedHat'
- name: "Install extra packages"
yum: "name={{ item }} state=latest"
with_items:
pkgs
sudo: true
when: ansible_os_family == 'RedHat'
......@@ -121,6 +121,7 @@ pkgs:
- libXpm
- libXt
- libXtst
- man
- mod_ssl
- mysql-server
- nagios-plugins
......
......@@ -12,6 +12,14 @@
- perl-ExtUtils-MakeMaker
- bzip2-devel
- name: install deps in control node
yum: name={{ item }} state=installed
sudo: true
with_items:
- mysql
- mysql-devel
when: ansible_hostname == slurmctrl
- name: get munge
shell: wget https://munge.googlecode.com/files/munge-{{ munge_version }}.tar.bz2
args:
......
---
clustername: "CIAB"
#slurmctlddebug: 3
#slurmddebug: 3
#slurmdlogfile: /tmp/slurm/log/slurmd.log
#slurmctldlogfile: /tmp/slurm/log/slurmctld.log
#slurmschedlog: 9
#slurmschedlogfile: /tmp/slurm/log/slurmsched.log
......@@ -6,3 +6,8 @@
- name: restart slurm
service: name=slurm state=restarted
sudo: true
- name: restart slurmdbd
service: name=slurmdbd state=restarted
sudo: true
......@@ -15,19 +15,13 @@
- perl-DBI
sudo: true
- name: check slurm account
shell: id slurm
register: slurm_account
- name: create slurm group
group: name=slurm system=yes
sudo: true
when: slurm_account | failed
- name: create slurm user
user: name=slurm group=slurm system=yes createhome=no
sudo: true
when: slurm_account | failed
- name: install slurm rpms
shell: "rpm --install /tmp/rpmbuild/RPMS/x86_64/slurm*{{ slurm_version }}*rpm"
......
......@@ -8,7 +8,7 @@
#
# See the slurm.conf man page for more information.
#
ClusterName=CIAB
ClusterName={{ clustername }}
ControlMachine={{ slurmctrl }}
#ControlAddr=
#BackupController=
......@@ -21,8 +21,8 @@ SlurmdPort=6818
AuthType=auth/munge
#JobCredentialPrivateKey=
#JobCredentialPublicCertificate=
StateSaveLocation=/tmp
SlurmdSpoolDir=/tmp/slurmd
StateSaveLocation=/var/spool
SlurmdSpoolDir=/var/spool/slurmd
SwitchType=switch/none
MpiDefault=none
SlurmctldPidFile=/var/run/slurmctld.pid
......@@ -74,10 +74,27 @@ FastSchedule=1
#PriorityMaxAge=1-0
#
# LOGGING
SlurmctldDebug=3
{% if slurmctlddebug and slurmctldlogfile %}
SlurmctldDebug={{ slurmctlddebug }}
SlurmctldLogFile={{ slurmctldlogfile }}
{% else %}
#SlurmctldDebug=
#SlurmctldLogFile=
SlurmdDebug=3
{% endif %}
{% if slurmddebug and slurmdlogfile %}
SlurmdDebug={{ slurmddebug }}
SlurmdLogFile={{ slurmdlogfile }}
{% else %}
#SlurmdDebug=
#SlurmdLogFile=
{% endif %}
{% if slurmschedlog and slurmschedlogfile %}
SlurmSchedlogLevel={{ slurmschedlog }}
SlurmSchedLogFile={{ slurmschedlogfile }}
{% else %}
#SlurmSchedlogLevel=
#SlurmSchedLogFile=
{% endif %}
JobCompType=jobcomp/none
#JobCompLoc=
#
......@@ -85,12 +102,20 @@ JobCompType=jobcomp/none
#JobAcctGatherType=jobacct_gather/linux
#JobAcctGatherFrequency=30
#
#AccountingStorageType=accounting_storage/slurmdbd
#AccountingStorageHost=
AccountingStorageType=accounting_storage/slurmdbd
AccountingStorageHost={{ slurmctrl }}
AccountingStorageEnforce=limits,safe
#AccountingStorageLoc=
#AccountingStoragePass=
#AccountingStorageUser=
#
# Fair share
{% if slurmfairshare %}
PriorityWeightFairshare={{ slurmfairshare }}
{% endif %}
DisableRootJobs=YES
MpiParams=ports=12000-12999
# COMPUTE NODES
{% set nodelist = [] %}
......
---
slurm_use_vpn: True
clustername: "CIAB"
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