Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ansible_cluster_in_a_box
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Chris Hines
ansible_cluster_in_a_box
Commits
fe00b3c0
Commit
fe00b3c0
authored
9 years ago
by
Chris Hines
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
roles/slurm-sql/tasks/main.yml
+0
-37
0 additions, 37 deletions
roles/slurm-sql/tasks/main.yml
with
0 additions
and
37 deletions
roles/slurm-sql/tasks/main.yml
deleted
100644 → 0
+
0
−
37
View file @
1dd28c2f
-
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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment