Commit 398f6d0d by e0d

changed test to support hosts other than localhost, variable name consistency.

parent 8652ecb7
......@@ -10,5 +10,5 @@ export MONGOHQ_PASS="{{ forum_mongo_password }}"
export RACK_ENV="{{ forum_rack_env }}"
export SINATRA_ENV="{{ forum_sinatra_env }}"
export API_KEY="{{ forum_api_key }}"
export SEARCH_SERVER="{{ forum_search_server }}"
export SEARCH_SERVER="{{ forum_elasticsearch_url }}"
export MONGOHQ_URL="{{ forum_mongo_url }}"
\ No newline at end of file
......@@ -8,11 +8,15 @@ forum_source_repo: "https://github.com/edx/cs_comments_service.git"
forum_version: "HEAD"
forum_mongo_user: "cs_comments_service"
forum_mongo_password: "password"
forum_mongo_url: "mongodb://{{ forum_mongo_user }}:{{ forum_mongo_password }}@localhost:27017/{{ forum_mongo_database }}"
forum_mongo_host: "localhost"
forum_mongo_port: "27010"
forum_mongo_url: "mongodb://{{ forum_mongo_user }}:{{ forum_mongo_password }}@{{ formum_mongo_host }}:{{ forum_mongo_port }}/{{ forum_mongo_database }}"
forum_rack_env: "development"
forum_sinatra_env: "development"
forum_api_id: "tX5Dslg1y3OsCpFzRq"
forum_search_server: "http://localhost:9200"
forum_elasticsearch_host: "localhost"
forum_elasticsearch_port: "9200"
forum_elasticsearch_url: "http://{{ forum_elasticsearch_host }}:{{ forum_elasticsearch_port }}"
#
# test config
......@@ -23,8 +27,8 @@ forum_search_server: "http://localhost:9200"
# ports when the role has been successfully created.
#
forum_services:
- {service: "sinatra", port: "4567"}
- {service: "mongo", port: "27017"}
- {service: "mongo", port: "28017"}
- {service: "elasticsearch", port: "9200"}
- {service: "elasticsearch", port: "9300"}
\ No newline at end of file
- {service: "sinatra", host: "localhost", port: "4567"}
- {service: "mongo", host: "{{ forum_mongo_host }}", port: "27017"}
- {service: "mongo", host: "{{ forum_mongo_host }}", port: "28017"}
- {service: "elasticsearch", host: "{{ forum_elasticsearch_host }}", port: "9200"}
- {service: "elasticsearch", host: "{{ forum_elasticsearch_host }}", port: "9300"}
\ 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