Skip to content
Snippets Groups Projects
Commit e24a6cd7 authored by Chris Hines's avatar Chris Hines
Browse files

Merge pull request #58 from CVL-GitHub/cvl2branch

Cvl2branch
parents b25f006a 8de4715d
No related branches found
No related tags found
No related merge requests found
- name: Sanity check menu directory
shell: mkdir -p /etc/xdg/menus/applications-merged
args:
creates: "/etc/xdg/menus/applications-merged"
sudo: true
- name: configure the cvl menues - name: configure the cvl menues
copy: src=cvl.menu dest=/etc/xdg/menus/applications-merged/cvl.menu mode=644 owner=root group=root copy: src=cvl.menu dest=/etc/xdg/menus/applications-merged/cvl.menu mode=644 owner=root group=root
sudo: true sudo: true
- name: configure the cvl backgroud image - name: configure the cvl backgroud image
copy: src={{ item }} dest=/usr/share/backgrounds/i{{ item }} mode=644 owner=root group=root copy: src={{ item }} dest=/usr/share/backgrounds/{{ item }} mode=644 owner=root group=root
with_items: with_items:
- cvl_desktop.svg - cvl_desktop.svg
- default.xml - default.xml
......
...@@ -11,14 +11,8 @@ ...@@ -11,14 +11,8 @@
- pam-devel - pam-devel
- perl-ExtUtils-MakeMaker - perl-ExtUtils-MakeMaker
- bzip2-devel - bzip2-devel
- name: install deps in control node
yum: name={{ item }} state=installed
sudo: true
with_items:
- mysql - mysql
- mysql-devel - mysql-devel
when: ansible_hostname == slurmctrl
- name: get munge - name: get munge
shell: wget https://munge.googlecode.com/files/munge-{{ munge_version }}.tar.bz2 shell: wget https://munge.googlecode.com/files/munge-{{ munge_version }}.tar.bz2
...@@ -62,7 +56,7 @@ ...@@ -62,7 +56,7 @@
creates: /tmp/rpmbuild/RPMS/x86_64/slurm-{{ slurm_version }}-1.el6.x86_64.rpm creates: /tmp/rpmbuild/RPMS/x86_64/slurm-{{ slurm_version }}-1.el6.x86_64.rpm
- name: retrieve rpms 1 - name: retrieve rpms 1
shell: scp -r {{ hostvars[ansible_hostname]['ansible_user_id'] }}@{{ ansible_ssh_host }}:/tmp/rpmbuild/ /tmp shell: scp -o StrictHostKeyChecking=no -r {{ hostvars[ansible_hostname]['ansible_user_id'] }}@{{ ansible_ssh_host }}:/tmp/rpmbuild/ /tmp
delegate_to: 127.0.0.1 delegate_to: 127.0.0.1
when: ansible_ssh_host is defined when: ansible_ssh_host is defined
......
--- ---
clustername: "CIAB" clustername: "CIAB"
#slurmctlddebug: 3 slurmctlddebug: {}
#slurmddebug: 3 slurmddebug: {}
#slurmdlogfile: /tmp/slurm/log/slurmd.log slurmschedlog: {}
#slurmctldlogfile: /tmp/slurm/log/slurmctld.log slurmdbdlog: {}
#slurmschedlog: 9 slurmfairshare: {def: false, val: 10000}
#slurmschedlogfile: /tmp/slurm/log/slurmsched.log
...@@ -49,6 +49,19 @@ ...@@ -49,6 +49,19 @@
notify: restart slurm notify: restart slurm
when: slurm_use_vpn==True when: slurm_use_vpn==True
- name: create data directory
shell: mkdir -p /var/spool/slurm
args:
creates: "/var/spool/slurm"
sudo: true
- name: create log directory
shell: mkdir -p {{ slurmddebug.log | dirname }}
args:
creates: "{{ slurmddebug.log | dirname }}"
sudo: true
when: slurmddebug is defined and slurmddebug.log
- name: start slurm - name: start slurm
service: name=slurm state=started service: name=slurm state=started
sudo: true sudo: true
...@@ -74,23 +74,23 @@ FastSchedule=1 ...@@ -74,23 +74,23 @@ FastSchedule=1
#PriorityMaxAge=1-0 #PriorityMaxAge=1-0
# #
# LOGGING # LOGGING
{% if slurmctlddebug and slurmctldlogfile %} {% if slurmctlddebug %}
SlurmctldDebug={{ slurmctlddebug }} SlurmctldDebug={{ slurmctlddebug.level }}
SlurmctldLogFile={{ slurmctldlogfile }} SlurmctldLogFile={{ slurmctlddebug.log }}
{% else %} {% else %}
#SlurmctldDebug= #SlurmctldDebug=
#SlurmctldLogFile= #SlurmctldLogFile=
{% endif %} {% endif %}
{% if slurmddebug and slurmdlogfile %} {% if slurmddebug %}
SlurmdDebug={{ slurmddebug }} SlurmdDebug={{ slurmddebug.level }}
SlurmdLogFile={{ slurmdlogfile }} SlurmdLogFile={{ slurmddebug.log }}
{% else %} {% else %}
#SlurmdDebug= #SlurmdDebug=
#SlurmdLogFile= #SlurmdLogFile=
{% endif %} {% endif %}
{% if slurmschedlog and slurmschedlogfile %} {% if slurmschedlog %}
SlurmSchedlogLevel={{ slurmschedlog }} SlurmSchedlogLevel={{ slurmschedlog.level }}
SlurmSchedLogFile={{ slurmschedlogfile }} SlurmSchedLogFile={{ slurmschedlog.log }}
{% else %} {% else %}
#SlurmSchedlogLevel= #SlurmSchedlogLevel=
#SlurmSchedLogFile= #SlurmSchedLogFile=
...@@ -104,15 +104,15 @@ JobCompType=jobcomp/none ...@@ -104,15 +104,15 @@ JobCompType=jobcomp/none
# #
AccountingStorageType=accounting_storage/slurmdbd AccountingStorageType=accounting_storage/slurmdbd
AccountingStorageHost={{ slurmctrl }} AccountingStorageHost={{ slurmctrl }}
AccountingStorageEnforce=limits,safe #AccountingStorageEnforce=limits,safe
#AccountingStorageLoc= #AccountingStorageLoc=
#AccountingStoragePass= #AccountingStoragePass=
#AccountingStorageUser= #AccountingStorageUser=
# #
# Fair share # Fair share
{% if slurmfairshare %} {% if slurmfairshare.def %}
PriorityWeightFairshare={{ slurmfairshare }} PriorityWeightFairshare={{ slurmfairshare.val }}
{% endif %} {% endif %}
DisableRootJobs=YES DisableRootJobs=YES
......
--- ---
- name: create slurmdb user - name: install deps in control node
user: name=slurmdb group=slurmdb system=yes createhome=no yum: name={{ item }} state=installed
sudo: true
with_items:
- mysql
- mysql-server
- mysql-devel
- MySQL-python
- name: "Start the Server"
service: "name=mysqld enabled=yes state=started"
sudo: true
- name: install mysql local root password
mysql_user: check_implicit_admin=True login_user=root login_password="{{ sqlrootPassword }}" name=root password="{{ sqlrootPassword }}" state=present
sudo: true sudo: true
- name: install slurmdbd.conf - name: install slurmdbd.conf
template: src=slurmdbd.conf.j2 dest=/etc/slurm/slurmdbd.conf template: src=slurmdbd.conf.j2 dest=/etc/slurm/slurmdbd.conf
sudo: true sudo: true
- name: slurm db template - name: configure database slurmdb localhost
template: src=slurmdb.sh.j2 dest=/etc/slurm/slurmdb.sh mysql_user: login_user=root login_password="{{ sqlrootPassword }}" name=slurmdb password="{{ slurmDbPassword }}" host=localhost priv=*.*:ALL,GRANT state=present
sudo: true
- name: configure database slurmdb domain
mysql_user: login_user=root login_password="{{ sqlrootPassword }}" name=slurmdb password="{{ slurmDbPassword }}" host="{{ ansible_hostname }}"."{{ ansible_domain }}" priv=*.*:ALL,GRANT state=present
sudo: true sudo: true
notify: restart slurmdbd # notify: restart slurmdb
- name: sanity check slrumdbd service
service: "name=slurmdbd enabled=yes state=started"
sudo: true
- name: sanity check slurm service
service: "name=slurm enabled=yes state=started"
sudo: true
...@@ -22,9 +22,9 @@ DbdHost={{ slurmctrl }} ...@@ -22,9 +22,9 @@ DbdHost={{ slurmctrl }}
SlurmUser=slurm SlurmUser=slurm
#MessageTimeout=300 #MessageTimeout=300
#DefaultQOS=normal,standby #DefaultQOS=normal,standby
{% if slurmschedlog and slurmschedlogfile %} {% if slurmdbdlog %}
DebugLevel={{ slurmschedlog }} DebugLevel={{ slurmdbdlog.level }}
LogFile={{ slurmschedlogfile }} LogFile={{ slurmdbdlog.log }}
{% else %} {% else %}
#DebugLevel= #DebugLevel=
#LogFile= #LogFile=
...@@ -38,7 +38,7 @@ PidFile=/var/run/slurmdbd.pid ...@@ -38,7 +38,7 @@ PidFile=/var/run/slurmdbd.pid
StorageType=accounting_storage/mysql StorageType=accounting_storage/mysql
StorageHost={{ slurmctrl }} StorageHost={{ slurmctrl }}
#StoragePort=1234 #StoragePort=1234
StoragePass=password StoragePass={{ slurmDbPassword }}
StorageUser=slurmdb StorageUser=slurmdb
StorageLoc=slurm_acct_db 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