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

use the mysql role to setup a mysql server for slurm instead of a slurm-sql role

parent 1dd28c2f
No related branches found
No related tags found
No related merge requests found
- name: install deps in control node
yum: name={{ item }} state=installed
sudo: true
with_items:
- mysql-server
when: ansible_os_family == "RedHat"
- name: install deps in control node
apt: name={{ item }} state=installed
sudo: true
with_items:
- mysql-server
- python-mysqldb
when: ansible_os_family == "Debian"
- name: "Start the Server"
service: "name=mysqld enabled=yes state=started"
sudo: true
when: ansible_os_family == "RedHat"
- name: "Start the Server"
service: "name=mysql enabled=yes state=started"
sudo: true
when: ansible_os_family == "Debian"
- name: install mysql local root password
mysql_user: check_implicit_admin=True login_user=root login_password={{ sqlrootPasswd }} name=root password={{ sqlrootPasswd }} state=present
sudo: true
- name: configure database slurmdb localhost
mysql_user: login_user=root login_password="{{ sqlrootPasswd }}" name=slurmdb password="{{ slurmdb_passwd }}" host=localhost priv=*.*:ALL,GRANT state=present
sudo: true
- name: configure database slurmdb domain
mysql_user: login_user=root login_password="{{ sqlrootPasswd }}" name=slurmdb password="{{ slurmdb_passwd }}" host="{{ ansible_hostname }}"."{{ ansible_domain }}" priv=*.*:ALL,GRANT state=present
sudo: true
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