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
dca49088
Commit
dca49088
authored
Jan 21, 2014
by
e0d
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #662 from edx/e0d/forum-vars
E0d/forum vars
parents
dad35039
f91dc9e4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
playbooks/roles/forum/defaults/main.yml
+3
-2
playbooks/roles/forum/templates/forum_env.j2
+6
-4
No files found.
playbooks/roles/forum/defaults/main.yml
View file @
dca49088
...
...
@@ -15,11 +15,12 @@ FORUM_MONGO_USER: "cs_comments_service"
FORUM_MONGO_PASSWORD
:
"
password"
FORUM_MONGO_HOSTS
:
-
"
localhost"
FORUM_MONGO_TAGS
:
!!null
FORUM_MONGO_PORT
:
"
27017"
FORUM_MONGO_DATABASE
:
"
cs_comments_service"
FORUM_MONGO_URL
:
"
mongodb://{{
FORUM_MONGO_USER
}}:{{
FORUM_MONGO_PASSWORD
}}@{%-
for
host
in
FORUM_MONGO_HOSTS
-%}
{{host}}:{{
FORUM_MONGO_PORT
}}{%-
if
not
loop.last
-%},{%-
endif
-%}
{%-
endfor
-%}
/{{
FORUM_MONGO_DATABASE
}}
"
{{host}}:{{
FORUM_MONGO_PORT
}}{%-
if
not
loop.last
-%},{%-
endif
-%}
/{{
FORUM_MONGO_DATABASE
}}{%-
if
FORUM_MONGO_TAGS
-%}?{{
FORUM_MONGO_TAGS
}}{%-
endif
-%}
{%-
endfor
-%}"
FORUM_SINATRA_ENV
:
"
development"
FORUM_RACK_ENV
:
"
development"
FORUM_NGINX_PORT
:
"
18080"
...
...
playbooks/roles/forum/templates/forum_env.j2
View file @
dca49088
# {{ ansible_managed }}
{% for name,value in forum_environment.items() %}
{%- if value %}
{% for name,value in forum_environment.items() -%}
{%- if value -%}
export {{ name }}="{{ value }}"
{%- endif %}
{% endfor %}
{% endif %}
{%- endfor %}
eval "$(rbenv init -)"
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