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
e807e76c
Commit
e807e76c
authored
Oct 17, 2013
by
John Jarvis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
app_base_dir and data_base_dir changed to app_dir and data_dir
parent
84d568e1
Hide whitespace changes
Inline
Side-by-side
Showing
35 changed files
with
83 additions
and
90 deletions
+83
-90
playbooks/group_vars/all
+3
-4
playbooks/roles/common/handlers/main.yml
+0
-4
playbooks/roles/common/tasks/main.yml
+18
-23
playbooks/roles/devpi/defaults/main.yml
+1
-1
playbooks/roles/discern/defaults/main.yml
+2
-2
playbooks/roles/discern/tasks/main.yml
+4
-4
playbooks/roles/edxapp/defaults/main.yml
+6
-3
playbooks/roles/edxapp/tasks/cms.yml
+2
-2
playbooks/roles/edxapp/tasks/deploy.yml
+1
-1
playbooks/roles/edxapp/tasks/lms-preview.yml
+2
-2
playbooks/roles/edxapp/tasks/lms.yml
+2
-2
playbooks/roles/edxapp/tasks/main.yml
+3
-3
playbooks/roles/edxapp/templates/cms.conf.j2
+1
-1
playbooks/roles/edxapp/templates/lms-preview.conf.j2
+1
-1
playbooks/roles/edxapp/templates/lms.conf.j2
+1
-1
playbooks/roles/edxlocal/tasks/main.yml
+3
-3
playbooks/roles/jenkins_master/defaults/main.yml
+1
-1
playbooks/roles/jenkins_master/tasks/main.yml
+1
-1
playbooks/roles/jenkins_worker/defaults/main.yml
+5
-5
playbooks/roles/jenkins_worker/tasks/mongo.yml
+1
-1
playbooks/roles/mongo/tasks/main.yml
+3
-3
playbooks/roles/nginx/defaults/main.yml
+2
-2
playbooks/roles/nginx/templates/basic-auth.j2
+1
-1
playbooks/roles/nginx/templates/cms.j2
+1
-1
playbooks/roles/nginx/templates/lms-preview.j2
+1
-1
playbooks/roles/nginx/templates/lms.j2
+1
-1
playbooks/roles/notifier/defaults/main.yml
+1
-1
playbooks/roles/ora/defaults/main.yml
+2
-2
playbooks/roles/ora/tasks/deploy.yml
+1
-1
playbooks/roles/s3fs/tasks/main.yml
+1
-1
playbooks/roles/xqueue/defaults/main.yml
+3
-3
playbooks/roles/xqueue/tasks/deploy.yml
+3
-3
playbooks/roles/xserver/defaults/main.yml
+3
-3
playbooks/roles/xserver/tasks/deploy.yml
+1
-1
playbooks/roles/xserver/templates/xserver.conf.j2
+1
-1
No files found.
playbooks/group_vars/all
View file @
e807e76c
...
...
@@ -2,10 +2,9 @@
# This should only have variables
# that are applicable to all edX roles
data_base_dir: /mnt
app_base_dir: /opt/wwc
log_base_dir: "{{ data_base_dir }}/logs"
venv_dir: /opt/edx
data_dir: /edx/var
app_dir: /edx/app
log_base_dir: "{{ data_dir }}/log"
os_name: ubuntu
ENV_NAME: 'default_env'
...
...
playbooks/roles/common/handlers/main.yml
View file @
e807e76c
---
-
name
:
common | restart rsyslogd
service
:
name=rsyslog state=restarted
sudo
:
True
-
name
:
common | restart logrotate
service
:
name=logrotate state=restarted
sudo
:
True
playbooks/roles/common/tasks/main.yml
View file @
e807e76c
---
-
name
:
common | Add user www-data
# This is the default user for nginx
and gunicorn
# This is the default user for nginx
user
:
name=www-data
tags
:
-
pre_install
-
update
-
name
:
common | Create the base directory for storage
file
:
>
path={{ data_
base_
dir }}
state=directory
owner=root
group=root
mode=0755
path={{ data_dir }}
state=directory
owner=root
group=root
mode=0755
-
name
:
common | Create application root
# In the future consider making group edx r/t adm
file
:
path={{ app_base_dir }} state=directory owner=root group=adm mode=2775
tags
:
-
pre_install
-
update
-
name
:
common | Create the base directory for the app
file
:
>
path={{ app_dir }}
state=directory
owner=root
group=root
mode=0755
-
name
:
common | Create upload directory
file
:
path={{ app_base_dir }}/uploads mode=2775 state=directory owner=root group=adm
tags
:
-
pre_install
-
update
file
:
path={{ app_dir }}/uploads mode=2775 state=directory owner=root group=adm
-
name
:
common | Create data dir
file
:
path={{ app_
base_
dir }}/data state=directory owner=www-data group=root
file
:
path={{ app_dir }}/data state=directory owner=www-data group=root
tags
:
-
pre_install
-
update
-
name
:
common | Create staticfiles dir
file
:
path={{ app_
base_
dir }}/staticfiles state=directory owner=www-data group=adm mode=2775
file
:
path={{ app_dir }}/staticfiles state=directory owner=www-data group=adm mode=2775
tags
:
-
pre_install
-
update
...
...
@@ -52,8 +47,8 @@
-
pre_install
-
update
-
name
:
common | Create alias from app_
base_
dir to the log_base_dir
file
:
state=link src={{log_base_dir}} path={{app_
base_
dir}}/log
-
name
:
common | Create alias from app_dir to the log_base_dir
file
:
state=link src={{log_base_dir}} path={{app_dir}}/log
tags
:
-
pre_install
-
logging
...
...
playbooks/roles/devpi/defaults/main.yml
View file @
e807e76c
---
devpi_venv_dir
:
"
{{
app_
base_
dir
}}/devpi/venvs/devpi"
devpi_venv_dir
:
"
{{
app_dir
}}/devpi/venvs/devpi"
devpi_pip_pkgs
:
-
devpi-server
-
eventlet
...
...
playbooks/roles/discern/defaults/main.yml
View file @
e807e76c
...
...
@@ -3,8 +3,8 @@ DISCERN_BASIC_AUTH: False
discern_source_repo
:
https://github.com/edx/discern.git
ease_source_repo
:
https://github.com/edx/ease.git
ease_dir
:
$app_
base_
dir/ease
discern_dir
:
$app_
base_
dir/discern
ease_dir
:
$app_dir/ease
discern_dir
:
$app_dir/discern
discern_settings
:
discern.aws
nltk_data_dir
:
/usr/share/nltk_data
ease_branch
:
master
...
...
playbooks/roles/discern/tasks/main.yml
View file @
e807e76c
...
...
@@ -25,13 +25,13 @@
#Upload config files for django (auth and env)
-
name
:
discern | create discern application config env.json file
template
:
src=env.json.j2 dest={{app_
base_
dir}}/env.json owner={{discern_user}} group=edx mode=0640
template
:
src=env.json.j2 dest={{app_dir}}/env.json owner={{discern_user}} group=edx mode=0640
notify
:
-
discern | restart celery
-
discern | restart discern
-
name
:
discern | create discern auth file auth.json
template
:
src=auth.json.j2 dest={{app_
base_
dir}}/auth.json owner={{discern_user}} group=edx mode=0640
template
:
src=auth.json.j2 dest={{app_dir}}/auth.json owner={{discern_user}} group=edx mode=0640
notify
:
-
discern | restart celery
-
discern | restart discern
...
...
@@ -40,8 +40,8 @@
-
name
:
discern | change memory commit settings -- needed for redis
command
:
sysctl vm.overcommit_memory=1
-
name
:
discern | set permissions on app_
base_
dir sgid for edx
file
:
path={{app_
base_
dir}} owner=root group=edx mode=2775 state=directory
-
name
:
discern | set permissions on app_dir sgid for edx
file
:
path={{app_dir}} owner=root group=edx mode=2775 state=directory
file
:
path={{venv_dir}} owner=root group=edx mode=2775 state=directory
-
name
:
discern | Install git so that we can clone repos
...
...
playbooks/roles/edxapp/defaults/main.yml
View file @
e807e76c
...
...
@@ -91,6 +91,9 @@ EDXAPP_LMS_PREVIEW_BASIC_AUTH: False
#Use YAML references (& and *) and hash merge <<: to factor out shared settings
#see http://atechie.net/2009/07/merging-hashes-in-yaml-conf-files/
edxapp_data_dir
:
edxapp_app_dir
:
edxapp_generic_auth_config
:
&edxapp_generic_auth
AWS_ACCESS_KEY_ID
:
$EDXAPP_AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY
:
$EDXAPP_AWS_SECRET_ACCESS_KEY
...
...
@@ -158,7 +161,7 @@ generic_env_config: &edxapp_generic_env
WIKI_ENABLED
:
true
SYSLOG_SERVER
:
$EDXAPP_SYSLOG_SERVER
SITE_NAME
:
$EDXAPP_SITE_NAME
LOG_DIR
:
"
{{
data_
base_
dir
}}/logs/edx"
LOG_DIR
:
"
{{
data_dir
}}/logs/edx"
MEDIA_URL
:
$EDXAPP_MEDIA_URL
ANALYTICS_SERVER_URL
:
$EDXAPP_ANALYTICS_SERVER_URL
FEEDBACK_SUBMISSION_EMAIL
:
$EDXAPP_FEEDBACK_SUBMISSION_EMAIL
...
...
@@ -235,7 +238,7 @@ lms_preview_env_config:
# install dir for the edx-platform repo
edx_platform_code_dir
:
"
{{
app_
base_
dir
}}/edx-platform"
edx_platform_code_dir
:
"
{{
app_dir
}}/edx-platform"
# gunicorn ports/hosts, these shouldn't need to be overridden
...
...
@@ -304,7 +307,7 @@ lms_debian_pkgs:
# for scipy, do not install
# libopenblas-base, it will cause
# problems for numpy
-
gfortran
-
gfortran
-
libatlas3gf-base
-
liblapack-dev
-
g++
...
...
playbooks/roles/edxapp/tasks/cms.yml
View file @
e807e76c
...
...
@@ -3,7 +3,7 @@
# - common/tasks/main.yml
---
-
name
:
create cms application config
template
:
src=cms.env.json.j2 dest=$app_
base_
dir/cms.env.json mode=640 owner=www-data group=adm
template
:
src=cms.env.json.j2 dest=$app_dir/cms.env.json mode=640 owner=www-data group=adm
tags
:
-
cms-env
-
cms
...
...
@@ -11,7 +11,7 @@
-
deploy
-
name
:
create cms auth file
template
:
src=cms.auth.json.j2 dest=$app_
base_
dir/cms.auth.json mode=640 owner=www-data group=adm
template
:
src=cms.auth.json.j2 dest=$app_dir/cms.auth.json mode=640 owner=www-data group=adm
tags
:
-
cms-env
-
cms
...
...
playbooks/roles/edxapp/tasks/deploy.yml
View file @
e807e76c
...
...
@@ -53,7 +53,7 @@
-
deploy
-
name
:
checkout theme
git
:
dest={{app_
base_
dir}}/themes/{{edxapp_theme_name}} repo={{edxapp_theme_source_repo}} version={{edxapp_theme_version}}
git
:
dest={{app_dir}}/themes/{{edxapp_theme_name}} repo={{edxapp_theme_source_repo}} version={{edxapp_theme_version}}
when
:
edxapp_theme_name != ''
tags
:
-
cms
...
...
playbooks/roles/edxapp/tasks/lms-preview.yml
View file @
e807e76c
...
...
@@ -3,14 +3,14 @@
# - common/tasks/main.yml
---
-
name
:
create lms application config
template
:
src=lms-preview.env.json.j2 dest=$app_
base_
dir/lms-preview.env.json mode=640 owner=www-data group=adm
template
:
src=lms-preview.env.json.j2 dest=$app_dir/lms-preview.env.json mode=640 owner=www-data group=adm
tags
:
-
lms-preview
-
lms-preview-env
-
deploy
-
name
:
create lms auth file
template
:
src=lms-preview.auth.json.j2 dest=$app_
base_
dir/lms-preview.auth.json mode=640 owner=www-data group=adm
template
:
src=lms-preview.auth.json.j2 dest=$app_dir/lms-preview.auth.json mode=640 owner=www-data group=adm
tags
:
-
lms-preview
-
lms-preview-env
...
...
playbooks/roles/edxapp/tasks/lms.yml
View file @
e807e76c
---
-
name
:
create lms application config
template
:
src=lms.env.json.j2 dest=$app_
base_
dir/lms.env.json mode=640 owner=www-data group=adm
template
:
src=lms.env.json.j2 dest=$app_dir/lms.env.json mode=640 owner=www-data group=adm
tags
:
-
lms
-
lms-env
...
...
@@ -8,7 +8,7 @@
-
deploy
-
name
:
create lms auth file
template
:
src=lms.auth.json.j2 dest=$app_
base_
dir/lms.auth.json mode=640 owner=www-data group=adm
template
:
src=lms.auth.json.j2 dest=$app_dir/lms.auth.json mode=640 owner=www-data group=adm
tags
:
-
lms
-
lms-env
...
...
playbooks/roles/edxapp/tasks/main.yml
View file @
e807e76c
...
...
@@ -3,7 +3,7 @@
# - common/tasks/main.yml
---
-
name
:
Change permissions on datadir
file
:
path={{ app_
base_
dir }}/data state=directory owner=www-data group=www-data
file
:
path={{ app_dir }}/data state=directory owner=www-data group=www-data
tags
:
-
cms
-
lms
...
...
@@ -11,7 +11,7 @@
-
update
-
name
:
Change owner on staticfiles
file
:
path={{ app_
base_
dir }}/staticfiles state=directory owner=www-data group=adm
file
:
path={{ app_dir }}/staticfiles state=directory owner=www-data group=adm
tags
:
-
cms
-
lms
...
...
@@ -19,7 +19,7 @@
-
update
-
name
:
Create theming directory
file
:
path={{ app_
base_
dir }}/themes state=directory mode=2775 group=adm owner=www-data
file
:
path={{ app_dir }}/themes state=directory mode=2775 group=adm owner=www-data
tags
:
-
cms
-
lms
...
...
playbooks/roles/edxapp/templates/cms.conf.j2
View file @
e807e76c
...
...
@@ -9,7 +9,7 @@ respawn
respawn limit 3 30
env PID=/var/tmp/cms.pid
#env NEW_RELIC_CONFIG_FILE={{app_
base_
dir}}/newrelic.ini
#env NEW_RELIC_CONFIG_FILE={{app_dir}}/newrelic.ini
#env NEWRELIC={{venv_dir}}/bin/newrelic-admin
{% if ansible_processor|length > 0 %}
env WORKERS={{ ansible_processor|length * worker_core_mult.cms }}
...
...
playbooks/roles/edxapp/templates/lms-preview.conf.j2
View file @
e807e76c
...
...
@@ -10,7 +10,7 @@ respawn
respawn limit 3 30
env PID=/var/tmp/lms.pid
#env NEW_RELIC_CONFIG_FILE={{app_
base_
dir}}/newrelic.ini
#env NEW_RELIC_CONFIG_FILE={{app_dir}}/newrelic.ini
#env NEWRELIC={{venv_dir}}/bin/newrelic-admin
{% if ansible_processor|length > 0 %}
env WORKERS={{ ansible_processor|length * worker_core_mult.lms_preview }}
...
...
playbooks/roles/edxapp/templates/lms.conf.j2
View file @
e807e76c
...
...
@@ -7,7 +7,7 @@ respawn
respawn limit 3 30
env PID=/var/tmp/lms.pid
#env NEW_RELIC_CONFIG_FILE={{app_
base_
dir}}/newrelic.ini
#env NEW_RELIC_CONFIG_FILE={{app_dir}}/newrelic.ini
#env NEWRELIC={{venv_dir}}/bin/newrelic-admin
{% if ansible_processor|length > 0 %}
env WORKERS={{ ansible_processor|length * worker_core_mult.lms }}
...
...
playbooks/roles/edxlocal/tasks/main.yml
View file @
e807e76c
...
...
@@ -59,11 +59,11 @@
-
name
:
edxlocal | stop mongo service
service
:
name=mongodb state=stopped
-
name
:
edxlocal | move mongodb to {{ data_
base_
dir }}
command
:
mv /var/lib/mongodb {{ data_
base_dir }}/. creates={{ data_base
_dir }}/mongodb
-
name
:
edxlocal | move mongodb to {{ data_dir }}
command
:
mv /var/lib/mongodb {{ data_
dir }}/. creates={{ data
_dir }}/mongodb
-
name
:
edxlocal | create mongodb symlink
file
:
src={{ data_
base_
dir }}/mongodb dest=/var/lib/mongodb state=link
file
:
src={{ data_dir }}/mongodb dest=/var/lib/mongodb state=link
-
name
:
edxlocal | start mongo service
service
:
name=mongodb state=started
...
...
playbooks/roles/jenkins_master/defaults/main.yml
View file @
e807e76c
jenkins_home
:
"
{{
data_
base_
dir
}}/jenkins"
jenkins_home
:
"
{{
data_dir
}}/jenkins"
jenkins_user
:
"
jenkins"
jenkins_group
:
"
edx"
jenkins_server_name
:
"
jenkins.testeng.edx.org"
...
...
playbooks/roles/jenkins_master/tasks/main.yml
View file @
e807e76c
...
...
@@ -34,7 +34,7 @@
file
:
path={{ jenkins_home }} recurse=yes state=directory
owner={{ jenkins_user }} group={{ jenkins_group }}
# Symlink /var/lib/jenkins to {{ data_
base_
dir }}/jenkins
# Symlink /var/lib/jenkins to {{ data_dir }}/jenkins
# since Jenkins will expect its files to be in /var/lib/jenkins
-
name
:
jenkins_master | Symlink /var/lib/jenkins
file
:
src={{ jenkins_home }} dest=/var/lib/jenkins state=link
...
...
playbooks/roles/jenkins_worker/defaults/main.yml
View file @
e807e76c
---
jenkins_workspace
:
"
{{
data_
base_
dir
}}/jenkins"
jenkins_workspace
:
"
{{
data_dir
}}/jenkins"
jenkins_phantomjs_url
:
https://phantomjs.googlecode.com/files/phantomjs-1.9.1-linux-x86_64.tar.bz2
jenkins_phantomjs_archive
:
phantomjs-1.9.1-linux-x86_64.tar.bz2
jenkins_phantomjs_folder
:
phantomjs-1.9.1-linux-x86_64
...
...
@@ -48,10 +48,10 @@ jscover_url: "http://superb-dca2.dl.sourceforge.net/project/jscover/JSCover-1.0.
jscover_version
:
"
1.0.2"
# Mongo config
mongo_dir
:
"
{{
data_
base_
dir
}}/mongodb"
mongo_log_dir
:
"
{{
data_
base_
dir
}}/logs/mongodb"
mongo_dir
:
"
{{
data_dir
}}/mongodb"
mongo_log_dir
:
"
{{
data_dir
}}/logs/mongodb"
# URL of S3 bucket containing pre-compiled Python packages
python_pkg_url
:
"
https://s3.amazonaws.com/jenkins.python_pkgs"
python_download_dir
:
"
{{
data_
base_
dir
}}/python_pkgs"
python_virtualenv
:
"
{{
data_
base_
dir}}/venv"
python_download_dir
:
"
{{
data_dir
}}/python_pkgs"
python_virtualenv
:
"
{{
data_dir}}/venv"
playbooks/roles/jenkins_worker/tasks/mongo.yml
View file @
e807e76c
---
# Configure Mongo to use {{ data_
base_
dir }} so we don't
# Configure Mongo to use {{ data_dir }} so we don't
# run out of disk space
-
name
:
jenkins_worker | Stop mongo service
service
:
name=mongodb state=stopped
...
...
playbooks/roles/mongo/tasks/main.yml
View file @
e807e76c
...
...
@@ -12,12 +12,12 @@
service
:
name=mongodb state=stopped
tags
:
mongo
-
name
:
mongo | move mongodb to {{ data_
base_
dir }}
command
:
mv /var/lib/mongodb {{ data_
base_dir}}/. creates={{ data_base
_dir }}/mongodb
-
name
:
mongo | move mongodb to {{ data_dir }}
command
:
mv /var/lib/mongodb {{ data_
dir}}/. creates={{ data
_dir }}/mongodb
tags
:
mongo
-
name
:
mongo | create mongodb symlink
file
:
src={{ data_
base_
dir }}/mongodb dest=/var/lib/mongodb state=link
file
:
src={{ data_dir }}/mongodb dest=/var/lib/mongodb state=link
tags
:
mongo
-
name
:
mongo | copy configuration template
...
...
playbooks/roles/nginx/defaults/main.yml
View file @
e807e76c
...
...
@@ -25,8 +25,8 @@ nginx_cfg:
edx_release
:
link
# path to version files for the basic
# nginx configuration
version_html
:
$app_
base_
dir/versions.html
version_json
:
$app_
base_
dir/versions.json
version_html
:
$app_dir/versions.html
version_json
:
$app_dir/versions.json
# default htpasswd contents set to edx/edx
# this value can be overiden in vars/secure/<group>.yml
htpasswd
:
|
...
...
playbooks/roles/nginx/templates/basic-auth.j2
View file @
e807e76c
auth_basic "Restricted";
auth_basic_user_file /etc/nginx/nginx.htpasswd;
root {{ app_
base_
dir }}/main_static;
root {{ app_dir }}/main_static;
index index.html
proxy_set_header X-Forwarded-Proto https;
playbooks/roles/nginx/templates/cms.j2
View file @
e807e76c
...
...
@@ -50,7 +50,7 @@ server {
# Check security on this
location ~ /static/(?P<file>.*) {
root {{app_
base_
dir}};
root {{app_dir}};
try_files /staticfiles/$file /course_static/$file =404;
# return a 403 for static files that shouldn't be
...
...
playbooks/roles/nginx/templates/lms-preview.j2
View file @
e807e76c
...
...
@@ -48,7 +48,7 @@ server {
# Check security on this
location ~ /static/(?P<file>.*) {
root {{app_
base_
dir}};
root {{app_dir}};
try_files /staticfiles/$file /course_static/$file =404;
# return a 403 for static files that shouldn't be
...
...
playbooks/roles/nginx/templates/lms.j2
View file @
e807e76c
...
...
@@ -50,7 +50,7 @@ server {
# Check security on this
location ~ /static/(?P<file>.*) {
root {{app_
base_
dir}};
root {{app_dir}};
try_files /staticfiles/$file /course_static/$file =404;
# return a 403 for static files that shouldn't be
...
...
playbooks/roles/notifier/defaults/main.yml
View file @
e807e76c
...
...
@@ -38,7 +38,7 @@ NOTIFIER_USER_SERVICE_HTTP_AUTH_USER: "guido"
NOTIFIER_USER_SERVICE_HTTP_AUTH_PASS
:
"
vanrossum"
NOTIFIER_CELERY_BROKER_URL
:
"
django://"
NOTIFIER_SUPERVISOR_LOG_DEST
:
"
{{
data_
base_
dir
}}/logs/supervisor"
NOTIFIER_SUPERVISOR_LOG_DEST
:
"
{{
data_dir
}}/logs/supervisor"
NOTIFER_REQUESTS_CA_BUNDLE
:
"
/etc/ssl/certs/ca-certificates.crt"
...
...
playbooks/roles/ora/defaults/main.yml
View file @
e807e76c
...
...
@@ -3,7 +3,7 @@
ORA_NGINX_PORT
:
18060
ORA_BASIC_AUTH
:
False
ora_code_dir
:
"
{{
app_
base_
dir
}}/edx-ora"
ora_code_dir
:
"
{{
app_dir
}}/edx-ora"
# Default nginx listen port
# These should be overrided if you want
# to serve all content on port 80
...
...
@@ -72,7 +72,7 @@ ora_version: 'HEAD'
ora_pre_requirements_file
:
"
{{
ora_code_dir
}}/pre-requirements.txt"
ora_post_requirements_file
:
"
{{
ora_code_dir
}}/requirements.txt"
ease_code_dir
:
"
{{
app_
base_
dir
}}/ease"
ease_code_dir
:
"
{{
app_dir
}}/ease"
ease_source_repo
:
https://github.com/edx/ease.git
ease_version
:
'
HEAD'
ease_pre_requirements_file
:
"
{{
ease_code_dir
}}/pre-requirements.txt"
...
...
playbooks/roles/ora/tasks/deploy.yml
View file @
e807e76c
...
...
@@ -54,7 +54,7 @@
-
deploy
# Do A Checkout
-
name
:
ora | git checkout ora repo into $app_
base_
dir
-
name
:
ora | git checkout ora repo into $app_dir
git
:
dest={{ora_code_dir}} repo={{ora_source_repo}} version={{ora_version}}
notify
:
-
ora | restart edx-ora
...
...
playbooks/roles/s3fs/tasks/main.yml
View file @
e807e76c
...
...
@@ -23,7 +23,7 @@
# Assuming the following config
#
# my_role_s3fs_mounts:
# - { bucket: "my_bucket", mount_point: "{{ data_
base_
dir}}/s3/my_bucket", owner: "root", group: "adm", mode: "0755" }
# - { bucket: "my_bucket", mount_point: "{{ data_dir}}/s3/my_bucket", owner: "root", group: "adm", mode: "0755" }
#
# The role would need to include tasks like the following
#
...
...
playbooks/roles/xqueue/defaults/main.yml
View file @
e807e76c
...
...
@@ -4,12 +4,12 @@
XQUEUE_NGINX_PORT
:
18040
XQUEUE_BASIC_AUTH
:
False
xqueue_code_dir
:
"
{{
app_
base_
dir
}}/xqueue"
xqueue_code_dir
:
"
{{
app_dir
}}/xqueue"
# Default nginx listen port
# These should be overrided if you want
# to serve all content on port 80
xqueue_code_dir
:
"
{{
app_
base_
dir
}}/xqueue"
xqueue_code_dir
:
"
{{
app_dir
}}/xqueue"
xqueue_gunicorn_port
:
8040
xqueue_gunicorn_host
:
127.0.0.1
...
...
@@ -49,7 +49,7 @@ xqueue_env_config:
XQUEUE_WORKERS_PER_QUEUE
:
12
LOGGING_ENV
:
$XQUEUE_LOGGING_ENV
SYSLOG_SERVER
:
$XQUEUE_SYSLOG_SERVER
LOG_DIR
:
"
{{
data_
base_
dir
}}/logs/xqueue"
LOG_DIR
:
"
{{
data_dir
}}/logs/xqueue"
RABBIT_HOST
:
$XQUEUE_RABBITMQ_HOSTNAME
S3_BUCKET
:
$XQUEUE_S3_BUCKET
S3_PATH_PREFIX
:
$XQUEUE_S3_PATH_PREFIX
...
...
playbooks/roles/xqueue/tasks/deploy.yml
View file @
e807e76c
...
...
@@ -12,19 +12,19 @@
-
deploy
-
name
:
xqueue | create xqueue application config
template
:
src=xqueue.env.json.j2 dest={{app_
base_
dir}}/xqueue.env.json mode=0640 owner={{ xqueue_user }} group=adm
template
:
src=xqueue.env.json.j2 dest={{app_dir}}/xqueue.env.json mode=0640 owner={{ xqueue_user }} group=adm
tags
:
-
xqueue
-
deploy
-
name
:
xqueue | create xqueue auth file
template
:
src=xqueue.auth.json.j2 dest={{app_
base_
dir}}/xqueue.auth.json mode=0640 owner={{ xqueue_user }} group=adm
template
:
src=xqueue.auth.json.j2 dest={{app_dir}}/xqueue.auth.json mode=0640 owner={{ xqueue_user }} group=adm
tags
:
-
xqueue
-
deploy
# Do A Checkout
-
name
:
xqueue | git checkout xqueue repo into {{app_
base_
dir}}
-
name
:
xqueue | git checkout xqueue repo into {{app_dir}}
git
:
dest={{xqueue_code_dir}} repo={{xqueue_source_repo}} version={{xqueue_version}}
tags
:
-
xqueue
...
...
playbooks/roles/xserver/defaults/main.yml
View file @
e807e76c
...
...
@@ -18,18 +18,18 @@ xserver_env_config:
RUN_URL
:
$RABBIT_RUN_URL
GRADER_ROOT
:
$RABBIT_GRADER_ROOT
LOGGING_ENV
:
$RABBIT_LOGGING_ENV
LOG_DIR
:
"
{{
data_
base_
dir
}}/logs/xserver"
LOG_DIR
:
"
{{
data_dir
}}/logs/xserver"
SYSLOG_SERVER
:
$RABBIT_SYSLOG_SERVER
SANDBOX_PYTHON
:
'
/opt/edx_apparmor_sandbox/bin/python'
xserver_git_identity_path
:
"
{{
secure_dir
}}/files/git-identity"
xserver_code_dir
:
"
{{
app_
base_
dir
}}/xserver"
xserver_code_dir
:
"
{{
app_dir
}}/xserver"
xserver_source_repo
:
"
git://github.com/edx/xserver.git"
# This should probably be overridden in the playbook or groupvars
# with the default pointing to the head of master.
xserver_version
:
HEAD
xserver_grader_dir
:
"
{{
app_
base_
dir
}}/data/content-mit-600x~2012_Fall"
xserver_grader_dir
:
"
{{
app_dir
}}/data/content-mit-600x~2012_Fall"
xserver_grader_source
:
"
git@github.com:/MITx/6.00x.git"
xserver_grader_version
:
HEAD
...
...
playbooks/roles/xserver/tasks/deploy.yml
View file @
e807e76c
...
...
@@ -19,7 +19,7 @@
-
deploy
-
name
:
xserver | create xserver application config
template
:
src=xserver.env.json.j2 dest={{app_
base_
dir}}/env.json mode=640 owner=www-data group=adm
template
:
src=xserver.env.json.j2 dest={{app_dir}}/env.json mode=640 owner=www-data group=adm
tags
:
-
deploy
...
...
playbooks/roles/xserver/templates/xserver.conf.j2
View file @
e807e76c
...
...
@@ -10,7 +10,7 @@ respawn
respawn limit 3 30
env PID=/var/tmp/xserver.pid
env NEW_RELIC_CONFIG_FILE={{ app_
base_
dir }}/newrelic.ini
env NEW_RELIC_CONFIG_FILE={{ app_dir }}/newrelic.ini
env NEWRELIC={{ venv_dir }}/bin/newrelic-admin
env WORKERS={{ ansible_processor|length }}
env PORT={{ xserver_gunicorn_port }}
...
...
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