Commit 1e96c88f by Feanil Patel

Add all the overrides for pointing to the datastores host.

parent 110771b3
......@@ -8,12 +8,14 @@
hosts: datastores
sudo: True
gather_facts: True
vars:
MYSQL_BIND_ADDRESS: "0.0.0.0"
vars_files:
- roles/edxapp/defaults/main.yml
- roles/forum/defaults/main.yml
- roles/xqueue/defaults/main.yml
- roles/ecommerce/defaults/main.yml
- roles/ecomworker/defaults/main.yml
- "../roles/edxapp/defaults/main.yml"
- "../roles/forum/defaults/main.yml"
- "../roles/xqueue/defaults/main.yml"
- "../roles/ecommerce/defaults/main.yml"
- "../roles/ecomworker/defaults/main.yml"
roles:
# This install mysql and creates users.
- role: edxlocal
......
......@@ -13,7 +13,17 @@
openid_workaround: True
EDXAPP_LMS_NGINX_PORT: '80'
ENABLE_ECOMMERCE: False # Disable ecommerce by default
EDXAPP_MONGO_HOSTS: "{{ groups['datastores'] }}"
EDXAPP_MYSQL_HOST: "{{ groups['datastores'][0] }}"
EDXAPP_MYSQL_CSMH_HOST: "{{ groups['datastores'][0] }}"
EDXAPP_ELASTIC_SEARCH_CONFIG:
- host: "{{ groups['datastores'][0] }}"
port: 9200
EDXAPP_MEMCACHE: ["{{ groups['datastores'][0] }}"]
FORUM_MONGO_HOSTS: "{{ groups['datastores'] }}"
FORUM_ELASTICSEARCH_HOST: "{{ groups['datastores'][0] }}"
XQUEUE_RABBITMQ_HOSTNAME: "{{ groups['datastores'][0] }}"
XQUEUE_MYSQL_HOST: "{{ groups['datastores'][0] }}"
roles:
# Server setup
......
../library/
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment