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
54761b6e
Commit
54761b6e
authored
May 16, 2013
by
Vik Paruchuri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix perms and user to run as
parent
83395e9a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
playbooks/roles/discern/tasks/main.yml
+2
-2
playbooks/roles/discern/templates/celery.conf.j2
+1
-1
playbooks/roles/discern/templates/discern.conf.j2
+2
-1
No files found.
playbooks/roles/discern/tasks/main.yml
View file @
54761b6e
...
@@ -106,10 +106,10 @@
...
@@ -106,10 +106,10 @@
#Create the templates for upstart services
#Create the templates for upstart services
-
name
:
render celery service from template
-
name
:
render celery service from template
template
:
src=celery.conf.j2 dest=/etc/init/celery.conf owner=root group=edx mode=
2775
template
:
src=celery.conf.j2 dest=/etc/init/celery.conf owner=root group=edx mode=
0664
-
name
:
render discern service from template
-
name
:
render discern service from template
template
:
src=discern.conf.j2 dest=/etc/init/discern.conf owner=root group=edx mode=
2775
template
:
src=discern.conf.j2 dest=/etc/init/discern.conf owner=root group=edx mode=
0664
-
name
:
create nginx directory and set perms
-
name
:
create nginx directory and set perms
file
:
path=/etc/nginx/sites-available owner=root group=edx mode=2775 state=directory
file
:
path=/etc/nginx/sites-available owner=root group=edx mode=2775 state=directory
...
...
playbooks/roles/discern/templates/celery.conf.j2
View file @
54761b6e
...
@@ -12,6 +12,6 @@ respawn limit 3 30
...
@@ -12,6 +12,6 @@ respawn limit 3 30
env DJANGO_SETTINGS_MODULE={{discern_settings}}
env DJANGO_SETTINGS_MODULE={{discern_settings}}
chdir {{discern_dir}}
chdir {{discern_dir}}
setuid {{
remote
_user}}
setuid {{
discern
_user}}
exec {{venv_dir}}/bin/python {{discern_dir}}/manage.py celeryd --loglevel=info --settings={{discern_settings}} --pythonpath={{discern_dir}} -B --autoscale={{ ansible_processor_cores * 2 }},1
exec {{venv_dir}}/bin/python {{discern_dir}}/manage.py celeryd --loglevel=info --settings={{discern_settings}} --pythonpath={{discern_dir}} -B --autoscale={{ ansible_processor_cores * 2 }},1
playbooks/roles/discern/templates/discern.conf.j2
View file @
54761b6e
...
@@ -16,6 +16,6 @@ env LANG=en_US.UTF-8
...
@@ -16,6 +16,6 @@ env LANG=en_US.UTF-8
env DJANGO_SETTINGS_MODULE={{discern_settings}}
env DJANGO_SETTINGS_MODULE={{discern_settings}}
chdir {{discern_dir}}
chdir {{discern_dir}}
setuid {{
remote
_user}}
setuid {{
discern
_user}}
exec {{venv_dir}}/bin/gunicorn --preload -b 127.0.0.1:$PORT -w $WORKERS --timeout=30 --pythonpath={{discern_dir}} discern.wsgi
exec {{venv_dir}}/bin/gunicorn --preload -b 127.0.0.1:$PORT -w $WORKERS --timeout=30 --pythonpath={{discern_dir}} discern.wsgi
\ 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