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
1a8b1134
Commit
1a8b1134
authored
Jan 21, 2014
by
e0d
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes whitespace in generated file, adds tag default.
parent
0ff01963
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
playbooks/roles/forum/defaults/main.yml
+4
-2
playbooks/roles/forum/templates/forum_env.j2
+6
-4
No files found.
playbooks/roles/forum/defaults/main.yml
View file @
1a8b1134
...
...
@@ -15,11 +15,13 @@ 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 @
1a8b1134
# {{ 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