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
edx
configuration
Commits
92a0e393
Commit
92a0e393
authored
Oct 24, 2013
by
John Jarvis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
initial forum config for supervisor
parent
d56155bd
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
20 deletions
+26
-20
playbooks/roles/forum/defaults/main.yml
+11
-4
playbooks/roles/forum/templates/forum_env.j2
+6
-14
playbooks/roles/supervisor/templates/devpi.j2
+0
-0
playbooks/roles/supervisor/templates/forum.conf.j2
+7
-0
playbooks/roles/supervisor/templates/supervisor-upstart.conf.j2
+2
-2
No files found.
playbooks/roles/forum/defaults/main.yml
View file @
92a0e393
...
...
@@ -11,10 +11,17 @@ forum_gem_bin: "{{ forum_gem_root }}/bin"
forum_path
:
"
{{
forum_code_dir
}}/bin:{{
forum_rbenv_bin
}}:{{
forum_rbenv_shims
}}:{{
forum_gem_bin
}}:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
forum_environment
:
RBENV_ROOT
:
$forum_rbenv_root
GEM_HOME
:
$forum_gem_root
GEM_PATH
:
$forum_gem_root
PATH
:
$forum_path
RBENV_ROOT
:
"
{{
forum_rbenv_root
}}"
GEM_HOME
:
"
{{
forum_gem_root
}}"
GEM_PATH
:
"
{{
forum_gem_root
}}"
PATH
:
"
{{
forum_path
}}"
MONGOHQ_USER
:
"
{{
forum_mongo_user
}}"
MONGOHQ_PASS
:
"
{{
forum_mongo_password
}}"
RACK_ENV
:
"
{{
forum_rack_env
}}"
SINATRA_ENV
:
"
{{
forum_sinatra_env
}}"
API_KEY
:
"
{{
forum_api_key
}}"
SEARCH_SERVER
:
"
{{
forum_elasticsearch_url
}}"
MONGOHQ_URL
:
"
{{
forum_mongo_url
}}"
forum_user
:
"
forum"
forum_ruby_version
:
"
1.9.3-p448"
...
...
playbooks/roles/forum/templates/forum_env.j2
View file @
92a0e393
# {{ ansible_managed }}
#
# This file is sourced in .bashrc.
# The environment variables are used by the cs_comments_service
# to configure itself at start-time.
#
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_elasticsearch_url }}"
export MONGOHQ_URL="{{ forum_mongo_url }}"
\ No newline at end of file
{% for name,value in forum_environment.items() %}
{% if value %}
export {{ name }}="{{ value }}"
{% endif %}
{% endfor %}
eval "$(rbenv init -)"
playbooks/roles/supervisor/templates/devpi.j2
deleted
100644 → 0
View file @
d56155bd
playbooks/roles/supervisor/templates/forum.conf.j2
0 → 100644
View file @
92a0e393
[program:forum]
command={{ forum_rbenv_shims }}/ruby app.rb
priority=999
startsecs = 5
redirect_stderr = True
autostart=False
user={{ common_web_user }}
playbooks/roles/supervisor/templates/supervisor-upstart.conf.j2
View file @
92a0e393
...
...
@@ -4,5 +4,5 @@ start on runlevel [2345]
stop on runlevel [!2345]
respawn
exec
/usr/local
/bin/supervisord --nodaemon --configuration {{ supervisor_cfg }}
setuid {{ supervisor_user }}
exec
{{ supervisor_venv_dir }}
/bin/supervisord --nodaemon --configuration {{ supervisor_cfg }}
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