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
7e107bf4
Commit
7e107bf4
authored
Mar 21, 2017
by
Filippo Panessa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use yaml format
parent
e851fead
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
playbooks/roles/mariadb/tasks/cluster.yml
+14
-14
No files found.
playbooks/roles/mariadb/tasks/cluster.yml
View file @
7e107bf4
...
...
@@ -15,18 +15,18 @@
when
:
not mariadb_bootstrap.stat.exists
-
name
:
setup bootstrap on primary
lineinfile
:
>
dest
=
"/etc/mysql/conf.d/galera.cnf"
regexp
=
"^wsrep_cluster_address=gcomm://{{ groups[group_names[0]]|sort|join(',') }}$"
line
=
"wsrep_cluster_address=gcomm://"
lineinfile
:
dest
:
"
/etc/mysql/conf.d/galera.cnf"
regexp
:
"
^wsrep_cluster_address=gcomm://{{
groups[group_names[0]]|sort|join(',')
}}$"
line
:
"
wsrep_cluster_address=gcomm://"
when
:
inventory_hostname == hostvars[groups[group_names[0]][0]].inventory_hostname and not mariadb_bootstrap.stat.exists
-
name
:
fetch debian.cnf file so start-stop will work properly
fetch
:
>
src
=/etc/mysql/debian.cnf
dest
=/tmp/debian.cnf
fail_on_missing
=
yes
flat
=
yes
fetch
:
src
:
"
/etc/mysql/debian.cnf"
dest
:
"
/tmp/debian.cnf"
fail_on_missing
:
yes
flat
:
yes
when
:
inventory_hostname == hostvars[groups[group_names[0]][0]].inventory_hostname and not mariadb_bootstrap.stat.exists
register
:
mariadb_new_debian_cnf
...
...
@@ -53,9 +53,9 @@
# This is needed for mysql-check in haproxy or other mysql monitor
# scripts to prevent haproxy checks exceeding `max_connect_errors`.
-
name
:
create haproxy monitor user
mysql_user
:
>
name
={{ MARIADB_HAPROXY_USER }}
host
={{ item }}
password
=
""
state
=
present
mysql_user
:
name
:
"
{{
MARIADB_HAPROXY_USER
}}"
host
:
"
{{
item
}}"
password
:
"
"
state
:
present
with_items
:
MARIADB_HAPROXY_HOSTS
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