Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
HPCasCode
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
hpc-team
HPCasCode
Commits
ab248f49
Commit
ab248f49
authored
9 years ago
by
Jupiter Hu
Browse files
Options
Downloads
Patches
Plain Diff
change mysql config file to glable fixed name
parent
0b468168
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
roles/mysql/tasks/mysql_server.yml
+1
-13
1 addition, 13 deletions
roles/mysql/tasks/mysql_server.yml
roles/mysql/vars/readme.txt
+0
-1
0 additions, 1 deletion
roles/mysql/vars/readme.txt
with
1 addition
and
14 deletions
roles/mysql/tasks/mysql_server.yml
+
1
−
13
View file @
ab248f49
...
...
@@ -40,7 +40,7 @@
sudo
:
true
-
name
:
"
Templating
mysql
configure
file"
template
:
src="mysql.cnf.j2" dest=/etc/mysql/conf.d/
{{
mysql
_config_file_name }}
.cnf owner=root group=root
template
:
src="mysql.cnf.j2" dest=/etc/mysql/conf.d/mysql
d_safe_syslog
.cnf owner=root group=root
sudo
:
true
-
name
:
"
Adding
root"
...
...
@@ -61,23 +61,11 @@
sudo
:
true
when
:
ansible_os_family == "RedHat"
-
name
:
"
Add
my.cnf
security"
lineinfile
:
dest=/etc/my.cnf line="{{ item }}" insertafter="symbolic-links=0"
with_items
:
-
'
log_warnings
=
2'
-
'
log_error
=
/var/log/mysql/error.log'
sudo
:
true
notify
:
Restart MySQL
when
:
ansible_os_family == "RedHat"
-
name
:
"
Editing
my.cnf"
lineinfile
:
dest=/etc/my.cnf line="{{ item }}"
with_items
:
-
'
[client]'
-
'
default-character-set
=
utf8'
-
'
log_warnings
=
2'
-
'
log_error
=
/var/log/mysql/error.log'
sudo
:
true
notify
:
Restart MySQL
when
:
ansible_os_family == "RedHat"
...
...
This diff is collapsed.
Click to expand it.
roles/mysql/vars/readme.txt
+
0
−
1
View file @
ab248f49
...
...
@@ -4,7 +4,6 @@ mysql_type: mysql_client | mysql_server
mysql_user_db_name: "my_database"
mysql_user_name: "my_database"
mysql_user_host: "localhost"
mysql_config_file_name: "mysql_config"
mysql_root_password: "secret"
mysql_user_password: "secret"
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