Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
configuration
Commits
110771b3
Commit
110771b3
authored
Jun 16, 2016
by
Feanil Patel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Be able to configure which host the server binds to.
parent
b1cc1f59
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
2 deletions
+27
-2
playbooks/roles/mysql/defaults/main.yml
+1
-0
playbooks/roles/mysql/tasks/main.yml
+24
-2
playbooks/roles/mysql/templates/etc/mysql/conf.d/bind-address.cnf.j2
+2
-0
No files found.
playbooks/roles/mysql/defaults/main.yml
View file @
110771b3
---
remove_experimental_mysql
:
false
MYSQL_BIND_ADDRESS
:
"
127.0.0.1"
mysql_debian_pkgs
:
-
"
mysql-server-5.6"
-
python-mysqldb
...
...
playbooks/roles/mysql/tasks/main.yml
View file @
110771b3
...
...
@@ -21,4 +21,27 @@
when
:
remove_experimental_mysql
-
include
:
mysql.yml
when
:
(mysql_56_installed.rc == 1) or (remove_experimental_mysql)
\ No newline at end of file
when
:
(mysql_56_installed.rc == 1) or (remove_experimental_mysql)
-
name
:
"
Bind
the
server
to
{{
MYSQL_BIND_ADDRESS
}}"
template
:
src
:
"
./etc/mysql/conf.d/bind-address.cnf.j2"
dest
:
"
/etc/mysql/conf.d/bind-address.cnf"
mode
:
"
0644"
owner
:
"
root"
group
:
"
root"
register
:
config_updated
tags
:
-
install
-
install:configuration
-
name
:
Restart mysql
service
:
name
:
mysql
state
:
restarted
when
:
config_updated.changed
tags
:
-
install
-
install:configuration
playbooks/roles/mysql/templates/etc/mysql/conf.d/bind-address.cnf.j2
0 → 100644
View file @
110771b3
[mysqld]
bind-address = {{ MYSQL_BIND_ADDRESS }}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment