Unverified Commit 33040d2e by Cory Lee Committed by GitHub

Fixing adhoc reporting for forums' mongo (#4401)

parent 955cbedb
...@@ -109,7 +109,7 @@ ...@@ -109,7 +109,7 @@
db_name: "{{ EDXAPP_MONGO_DB_NAME }}" db_name: "{{ EDXAPP_MONGO_DB_NAME }}"
db_port: "{{ EDXAPP_MONGO_PORT }}" db_port: "{{ EDXAPP_MONGO_PORT }}"
script_name: edxapp-mongo.sh script_name: edxapp-mongo.sh
- db_hosts: "{{ FORUM_MONGO_HOSTS }}" - db_hosts: "{{ FORUM_MONGO_HOSTS_FOR_AD_HOC_REPORTING }}"
db_name: "{{ FORUM_MONGO_DATABASE }}" db_name: "{{ FORUM_MONGO_DATABASE }}"
db_port: "{{ FORUM_MONGO_PORT }}" db_port: "{{ FORUM_MONGO_PORT }}"
script_name: forum-mongo.sh script_name: forum-mongo.sh
......
#!/usr/bin/env bash #!/usr/bin/env bash
db_hosts={{ ",".join(item.db_hosts) }} db_hosts={{ item.db_hosts }}
from_port={{ item.db_port }} from_port={{ item.db_port }}
for host in ${db_hosts//,/ }; do for host in ${db_hosts//,/ }; do
......
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