Commit f36f7304 by e0d

extract more variables, refactor test

parent 7fe7e59d
---
- name: forum | test that the required service are listening
shell: 'test -n "$(netstat -plnt | grep :{{ item.port }})"'
wait_for: port={{ item.port }} timeout=1
with_items: "{{ forum_services }}"
tags:
- forum
......
......@@ -5,10 +5,10 @@
## The environment variables are used by the cs_comments_service
## to configure itself at start-time.
##
export MONGOHQ_USER=cs_comments_service
export MONGOHQ_PASS=password
export RACK_ENV=development
export SINATRA_ENV=development
export API_KEY=tX5Dslg1y3OsCpFzRq
export SEARCH_SERVER=http://localhost:9200
export MONGOHQ_URL=mongodb://cs_comments_service:password@localhost:27017/cs_comments_service
\ No newline at end of file
export MONGOHQ_USER="{{ forum_mongo_user }}"
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 MONGOHQ_URL="{{ forum_mongo_url }}"
\ No newline at end of file
......@@ -6,6 +6,13 @@ forum_ruby_version: "1.9.3-p448"
forum_code_dir: "{{ forum_home }}/cs_comments_service"
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_rack_env: "development"
forum_sinatra_env: "development"
forum_api_id: "tX5Dslg1y3OsCpFzRq"
forum_search_server: "http://localhost:9200"
#
# test config
......
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