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
8083c60f
Commit
8083c60f
authored
Jun 21, 2013
by
Jason Bau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix configs broken by replace of "xqueue." with "xqueue_" where
it was not called for
parent
ea85905c
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
35 additions
and
34 deletions
+35
-34
playbooks/roles/nginx/templates/xqueue.j2
+2
-2
playbooks/roles/xqueue/tasks/main.yml
+6
-4
playbooks/roles/xqueue/templates/xqueue.conf.j2
+4
-4
playbooks/roles/xqueue/vars/main.yml
+1
-1
playbooks/secure_example/vars/edxapp_sandbox.yml
+22
-23
No files found.
playbooks/roles/nginx/templates/xqueue.j2
View file @
8083c60f
upstream app_server {
# For a TCP configuration:
server 127.0.0.1:{{ xqueue
.
gunicorn_port }} fail_timeout=0;
server 127.0.0.1:{{ xqueue
_
gunicorn_port }} fail_timeout=0;
}
server {
listen {{ xqueue
.
nginx_port }} default_server;
listen {{ xqueue
_
nginx_port }} default_server;
location / {
try_files $uri @proxy_to_app;
...
...
playbooks/roles/xqueue/tasks/main.yml
View file @
8083c60f
...
...
@@ -21,19 +21,21 @@
-
xqueue
-
name
:
create xqueue application config
template
:
src=xqueue
_env.json.j2 dest=$app_base_dir/env.json mode=
640 owner=www-data group=adm
template
:
src=xqueue
.env.json.j2 dest=$app_base_dir/env.json mode=0
640 owner=www-data group=adm
tags
:
-
xqueue
-
name
:
create xqueue auth file
template
:
src=xqueue
_auth.json.j2 dest=$app_base_dir/auth.json mode=
640 owner=www-data group=adm
template
:
src=xqueue
.auth.json.j2 dest=$app_base_dir/auth.json mode=0
640 owner=www-data group=adm
tags
:
-
xqueue
-
name
:
creating xqueue upstart script
sudo
:
True
template
:
src=xqueue_conf.j2 dest=/etc/init/xqueue_conf owner=root group=root
template
:
src=xqueue.conf.j2 dest=/etc/init/xqueue.conf mode=0640 owner=root group=adm
tags
:
-
xqueue
# Install nginx site
-
include
:
../../nginx/tasks/nginx_site.yml state=link site_name=xqueue
-
include
:
deploy.yml
playbooks/roles/xqueue/templates/xqueue.conf.j2
View file @
8083c60f
#/etc/init/xqueue
_
conf
#/etc/init/xqueue
.
conf
description "xqueue server"
author "edX <info@edx.org>"
...
...
@@ -6,15 +6,15 @@ author "edX <info@edx.org>"
respawn
respawn limit 3 30
env PID=/var/tmp/xqueue
_
pid
env PID=/var/tmp/xqueue
.
pid
env WORKERS={{ ansible_processor_cores * 2 }}
env PORT={{ xqueue_gunicorn_port }}
env LANG=en_US.UTF-8
env DJANGO_SETTINGS_MODULE=xqueue
_
aws_settings
env DJANGO_SETTINGS_MODULE=xqueue
.
aws_settings
env SERVICE_VARIANT="xqueue"
chdir {{ xqueue_code_dir }}
setuid www-data
exec {{ venv_dir }}/bin/gunicorn --preload -b 127.0.0.1:$PORT -w $WORKERS --timeout=300 --pythonpath={{ xqueue_code_dir }} xqueue
_
wsgi
exec {{ venv_dir }}/bin/gunicorn --preload -b 127.0.0.1:$PORT -w $WORKERS --timeout=300 --pythonpath={{ xqueue_code_dir }} xqueue
.
wsgi
playbooks/roles/xqueue/vars/main.yml
View file @
8083c60f
...
...
@@ -14,7 +14,7 @@ xqueue_gunicorn_port: 8040
xqueue_auth_config
:
{}
xqueue_env_config
:
{}
xqueue_source_repo
:
https://github.com/edx/xqueue
_
git
xqueue_source_repo
:
https://github.com/edx/xqueue
.
git
xqueue_version
:
'
HEAD'
xqueue_pre_requirements_file
:
"
{{
xqueue_code_dir
}}/pre-requirements.txt"
xqueue_post_requirements_file
:
"
{{
xqueue_code_dir
}}/requirements.txt"
...
...
playbooks/secure_example/vars/edxapp_sandbox.yml
View file @
8083c60f
...
...
@@ -25,31 +25,30 @@
#see http://atechie.net/2009/07/merging-hashes-in-yaml-conf-files/
xqueue
:
env_config
:
'
XQUEUES'
:
# push queue
-
'
edX-DemoX'
:
'
http://localhost:18050'
xqueue_env_config
:
'
XQUEUES'
:
# push queue
'
edX-DemoX'
:
'
http://localhost:18050'
# pull queues
-
'
test-pull'
:
!!null
-
'
certificates'
:
!!null
-
'
open-ended'
:
!!null
'
XQUEUE_WORKERS_PER_QUEUE'
:
12
'
LOGGING_ENV'
:
'
sandbox'
'
LOG_DIR'
:
'
/mnt/logs'
'
SYSLOG_SERVER'
:
'
syslog.a.m.i4x.org'
'
RABBIT_HOST'
:
'
localhost'
'
S3_BUCKET_PREFIX'
:
'
sandbox-bucket'
'
test-pull'
:
!!null
'
certificates'
:
!!null
'
open-ended'
:
!!null
'
XQUEUE_WORKERS_PER_QUEUE'
:
12
'
LOGGING_ENV'
:
'
sandbox'
'
LOG_DIR'
:
'
/mnt/logs'
'
SYSLOG_SERVER'
:
'
syslog.a.m.i4x.org'
'
RABBIT_HOST'
:
'
localhost'
'
S3_BUCKET_PREFIX'
:
'
sandbox-bucket'
auth_config
:
'
AWS_ACCESS_KEY_ID'
:
'
'
'
AWS_SECRET_ACCESS_KEY'
:
'
'
'
REQUESTS_BASIC_AUTH'
:
[
'
edx'
,
'
edx'
]
'
USERS'
:
{
'
lms'
:
'
password'
}
'
RABBITMQ_USER'
:
'
edx'
'
RABBITMQ_PASS'
:
'
edx'
'
DATABASES'
:
'
default'
:
{
'
ENGINE'
:
'
django.db.backends.mysql'
,
'
NAME'
:
'
xqueue'
,
'
USER'
:
'
root'
,
'
PASSWORD'
:
'
'
,
'
HOST'
:
'
localhost'
,
'
PORT'
:
'
3306'
}
xqueue_
auth_config
:
'
AWS_ACCESS_KEY_ID'
:
'
'
'
AWS_SECRET_ACCESS_KEY'
:
'
'
'
REQUESTS_BASIC_AUTH'
:
[
'
edx'
,
'
edx'
]
'
USERS'
:
{
'
lms'
:
'
password'
}
'
RABBITMQ_USER'
:
'
edx'
'
RABBITMQ_PASS'
:
'
edx'
'
DATABASES'
:
'
default'
:
{
'
ENGINE'
:
'
django.db.backends.mysql'
,
'
NAME'
:
'
xqueue'
,
'
USER'
:
'
root'
,
'
PASSWORD'
:
'
'
,
'
HOST'
:
'
localhost'
,
'
PORT'
:
'
3306'
}
...
...
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