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
e3d7915f
Commit
e3d7915f
authored
Oct 23, 2014
by
Carson Gee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add vagrant_cluster var for handling eth0 in clusters
parent
45341254
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
0 deletions
+13
-0
playbooks/roles/common/defaults/main.yml
+4
-0
playbooks/roles/elasticsearch/templates/edx/etc/elasticsearch/elasticsearch.yml.j2
+5
-0
playbooks/roles/mariadb/templates/etc/mysql/conf.d/galera.cnf.j2
+3
-0
playbooks/vagrant-cluster.yml
+1
-0
No files found.
playbooks/roles/common/defaults/main.yml
View file @
e3d7915f
...
...
@@ -108,6 +108,10 @@ disable_edx_services: False
# so different start scripts are generated in dev mode.
devstack
:
False
# Some cluster apps need special settings when in vagrant
# due to eth0 always being the same IP address
vagrant_cluster
:
False
common_debian_variants
:
-
Ubuntu
-
Debian
...
...
playbooks/roles/elasticsearch/templates/edx/etc/elasticsearch/elasticsearch.yml.j2
View file @
e3d7915f
...
...
@@ -43,3 +43,8 @@ script.disable_dynamic: true
discovery.zen.ping.unicast.hosts: ['{{hosts|join("\',\'") }}']
{% endif -%}
{% if vagrant_cluster|bool %}
network:
host: {{ ansible_ssh_host }}
{% endif %}
playbooks/roles/mariadb/templates/etc/mysql/conf.d/galera.cnf.j2
View file @
e3d7915f
...
...
@@ -11,4 +11,7 @@ query_cache_size=0
wsrep_provider=/usr/lib/galera/libgalera_smm.so
wsrep_cluster_address=gcomm://{{ hosts|join(',') }}?pc.wait_prim=no
wsrep_sst_auth={{ MARIADB_CLUSTER_USER_ADMIN }}:{{ MARIADB_CLUSTER_PASSWORD_ADMIN }}
{% if vagrant_cluster|bool %}
wsrep_node_address={{ ansible_ssh_host }}
{% endif %}
playbooks/vagrant-cluster.yml
View file @
e3d7915f
...
...
@@ -3,6 +3,7 @@
sudo
:
True
gather_facts
:
True
vars
:
vagrant_cluster
:
yes
mongo_cluster_members
:
-
"
cluster1"
-
"
cluster2"
...
...
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