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
OpenEdx
configuration
Commits
398f6d0d
Commit
398f6d0d
authored
Jul 23, 2013
by
e0d
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed test to support hosts other than localhost, variable name consistency.
parent
8652ecb7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
9 deletions
+14
-9
playbooks/roles/forum/templates/forum_env.j2
+2
-1
playbooks/roles/forum/vars/main.yml
+12
-8
No files found.
playbooks/roles/forum/templates/forum_env.j2
View file @
398f6d0d
...
...
@@ -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
playbooks/roles/forum/vars/main.yml
View file @
398f6d0d
...
...
@@ -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
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