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
edx
configuration
Commits
2fc42d2d
Commit
2fc42d2d
authored
Oct 27, 2014
by
Carson Gee
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1666 from mitodl/cg/mariadb_fixes
Fix host selection variable
parents
f3592489
81e22dcb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
playbooks/roles/mariadb/tasks/cluster.yml
+2
-3
No files found.
playbooks/roles/mariadb/tasks/cluster.yml
View file @
2fc42d2d
...
...
@@ -19,8 +19,7 @@
dest="/etc/mysql/conf.d/galera.cnf"
regexp="^wsrep_cluster_address=gcomm://{{ hostvars.keys()|sort|join(',') }}$"
line="wsrep_cluster_address=gcomm://"
when
:
ansible_ssh_host == hostvars[hostvars.keys()[0]].ansible_ssh_host and not mariadb_bootstrap.stat.exists
when
:
ansible_hostname == hostvars[hostvars.keys()[0]].ansible_hostname and not mariadb_bootstrap.stat.exists
-
name
:
fetch debian.cnf file so start-stop will work properly
fetch
:
>
...
...
@@ -28,7 +27,7 @@
dest=/tmp/debian.cnf
fail_on_missing=yes
flat=yes
when
:
ansible_
ssh_host == hostvars[hostvars.keys()[0]].ansible_ssh_host
and not mariadb_bootstrap.stat.exists
when
:
ansible_
hostname == hostvars[hostvars.keys()[0]].ansible_hostname
and not mariadb_bootstrap.stat.exists
register
:
mariadb_new_debian_cnf
-
name
:
copy fetched file to other cluster members
...
...
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