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
09cd56a8
Commit
09cd56a8
authored
Oct 10, 2013
by
John Jarvis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
moving env/auth json files, upstart and nginx to the deploy.yml files
parent
32fa03ed
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
77 additions
and
70 deletions
+77
-70
playbooks/roles/edxapp/tasks/cms.yml
+3
-2
playbooks/roles/edxapp/tasks/deploy.yml
+10
-0
playbooks/roles/edxapp/tasks/lms-preview.yml
+3
-2
playbooks/roles/edxapp/tasks/lms.yml
+3
-2
playbooks/roles/edxapp/tasks/main.yml
+0
-8
playbooks/roles/edxapp/tasks/upstart.yml
+1
-0
playbooks/roles/nginx/tasks/nginx_site.yml
+2
-0
playbooks/roles/ora/tasks/deploy.yml
+28
-0
playbooks/roles/ora/tasks/main.yml
+0
-23
playbooks/roles/xqueue/tasks/deploy.yml
+27
-0
playbooks/roles/xqueue/tasks/main.yml
+0
-33
No files found.
playbooks/roles/edxapp/tasks/cms.yml
View file @
09cd56a8
...
...
@@ -5,19 +5,19 @@
---
-
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
notify
:
restart edxapp
tags
:
-
cms-env
-
cms
-
update
-
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
notify
:
restart edxapp
tags
:
-
cms-env
-
cms
-
update
-
deploy
-
include
:
../../nginx/tasks/nginx_site.yml state=link site_name=cms
when
:
celery_worker is not defined
...
...
@@ -32,6 +32,7 @@
-
cms-env
-
logging
-
update
-
deploy
# Creates CMS upstart file
-
include
:
upstart.yml basename=cms
...
...
playbooks/roles/edxapp/tasks/deploy.yml
View file @
09cd56a8
...
...
@@ -14,6 +14,16 @@
tags
:
-
deploy
# update json configs for the application
-
include
:
lms.yml
when
:
"
'lms'
in
service_variants_enabled"
-
include
:
cms.yml
when
:
"
'cms'
in
service_variants_enabled"
-
include
:
lms-preview.yml
when
:
"
'lms-preview'
in
service_variants_enabled"
# Do A Checkout
-
name
:
edxapp | checkout edx-platform repo into {{edx_platform_code_dir}}
git
:
dest={{edx_platform_code_dir}} repo={{edx_platform_repo}} version={{edx_platform_commit}}
...
...
playbooks/roles/edxapp/tasks/lms-preview.yml
View file @
09cd56a8
...
...
@@ -5,17 +5,17 @@
---
-
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
notify
:
restart edxapp
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
notify
:
restart edxapp
tags
:
-
lms-preview
-
lms-preview-env
-
deploy
-
name
:
Create lms-preview log target directory
file
:
path={{log_base_dir}}/lms-preview state=directory owner=syslog group=syslog mode=2750
...
...
@@ -24,6 +24,7 @@
-
lms-preview-env
-
logging
-
update
-
deploy
-
include
:
../../nginx/tasks/nginx_site.yml state=link site_name=lms-preview
when
:
celery_worker is not defined
...
...
playbooks/roles/edxapp/tasks/lms.yml
View file @
09cd56a8
---
-
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
notify
:
restart edxapp
tags
:
-
lms
-
lms-env
-
update
-
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
notify
:
restart edxapp
tags
:
-
lms
-
lms-env
-
update
-
deploy
-
name
:
Create lms log target directory
file
:
path={{log_base_dir}}/lms state=directory owner=syslog group=syslog mode=2750
...
...
@@ -22,6 +22,7 @@
-
lms-env
-
logging
-
update
-
deploy
-
include
:
../../nginx/tasks/nginx_site.yml state=link site_name=lms
when
:
celery_worker is not defined
...
...
playbooks/roles/edxapp/tasks/main.yml
View file @
09cd56a8
...
...
@@ -35,14 +35,6 @@
-
cms
-
install
-
include
:
lms.yml
when
:
"
'lms'
in
service_variants_enabled"
-
include
:
cms.yml
when
:
"
'cms'
in
service_variants_enabled"
-
include
:
lms-preview.yml
when
:
"
'lms-preview'
in
service_variants_enabled"
-
name
:
creating edxapp upstart script
sudo
:
True
template
:
src=edxapp.conf.j2 dest=/etc/init/edxapp.conf owner=root group=root
...
...
playbooks/roles/edxapp/tasks/upstart.yml
View file @
09cd56a8
...
...
@@ -6,3 +6,4 @@
-
upstart
-
gunicorn
-
update
-
deploy
playbooks/roles/nginx/tasks/nginx_site.yml
View file @
09cd56a8
...
...
@@ -15,6 +15,7 @@
-
cms
-
nginx-env
-
update
-
deploy
-
name
:
nginx | Creating nginx config link {{ site_name }}
file
:
src=/etc/nginx/sites-available/{{ site_name }} dest=/etc/nginx/sites-enabled/{{ site_name }} state={{ state }} owner=root group=root
...
...
@@ -26,3 +27,4 @@
-
cms
-
nginx-env
-
update
-
deploy
playbooks/roles/ora/tasks/deploy.yml
View file @
09cd56a8
...
...
@@ -29,6 +29,34 @@
-
ora
-
deploy
-
name
:
ora | create ora application config
template
:
src=ora.env.json.j2 dest={{ora_code_dir}}/../ora.env.json mode=0640 owner={{ ora_user }} group=adm
tags
:
-
ora
-
deploy
-
name
:
ora | create ora auth file
template
:
src=ora.auth.json.j2 dest={{ora_code_dir}}/../ora.auth.json mode=0640 owner={{ ora_user }} group=adm
tags
:
-
ora
-
deploy
-
name
:
ora | create ora upstart script
template
:
src=edx-ora.conf.j2 dest=/etc/init/edx-ora.conf mode=0640 owner=root group=adm
tags
:
-
ora
-
deploy
-
name
:
ora | create ora-celery upstart script
template
:
src=edx-ora-celery.conf.j2 dest=/etc/init/edx-ora-celery.conf mode=0640 owner=root group=adm
tags
:
-
ora
-
deploy
# Install nginx site
-
include
:
../../nginx/tasks/nginx_site.yml state=link site_name=ora
# Do A Checkout
-
name
:
ora | git checkout ora repo into $app_base_dir
git
:
dest={{ora_code_dir}} repo={{ora_source_repo}} version={{ora_version}}
...
...
playbooks/roles/ora/tasks/main.yml
View file @
09cd56a8
...
...
@@ -19,34 +19,11 @@
tags
:
-
ora
-
name
:
ora | create ora application config
template
:
src=ora.env.json.j2 dest={{ora_code_dir}}/../ora.env.json mode=0640 owner={{ ora_user }} group=adm
tags
:
-
ora
-
name
:
ora | create ora auth file
template
:
src=ora.auth.json.j2 dest={{ora_code_dir}}/../ora.auth.json mode=0640 owner={{ ora_user }} group=adm
tags
:
-
ora
-
name
:
ora | create ora upstart script
template
:
src=edx-ora.conf.j2 dest=/etc/init/edx-ora.conf mode=0640 owner=root group=adm
tags
:
-
ora
-
name
:
ora | create ora-celery upstart script
template
:
src=edx-ora-celery.conf.j2 dest=/etc/init/edx-ora-celery.conf mode=0640 owner=root group=adm
tags
:
-
ora
-
name
:
ora | install debian packages that ora needs
apt
:
pkg={{item}} state=present
with_items
:
ora_debian_pkgs
tags
:
-
ora
# Install nginx site
-
include
:
../../nginx/tasks/nginx_site.yml state=link site_name=ora
-
include
:
ease.yml
-
include
:
deploy.yml
playbooks/roles/xqueue/tasks/deploy.yml
View file @
09cd56a8
...
...
@@ -11,6 +11,33 @@
-
xqueue
-
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
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
tags
:
-
xqueue
-
deploy
-
name
:
xqueue | creating xqueue upstart script
template
:
src=xqueue.conf.j2 dest=/etc/init/xqueue.conf mode=0640 owner=root group=adm
tags
:
-
xqueue
-
deploy
-
name
:
xqueue | create xqueue consumer upstart script
template
:
src=xqueue_consumer.conf.j2 dest=/etc/init/xqueue_consumer.conf mode=0640 owner=root group=adm
tags
:
-
xqueue
-
deploy
# Install nginx site
-
include
:
../../nginx/tasks/nginx_site.yml state=link site_name=xqueue
# Do A Checkout
-
name
:
xqueue | git checkout xqueue repo into {{app_base_dir}}
git
:
dest={{xqueue_code_dir}} repo={{xqueue_source_repo}} version={{xqueue_version}}
...
...
playbooks/roles/xqueue/tasks/main.yml
View file @
09cd56a8
...
...
@@ -55,37 +55,4 @@
encoding=utf8
when
:
xqueue_create_db is defined and xqueue_create_db|lower == "yes"
-
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
notify
:
-
xqueue | restart xqueue
-
xqueue | restart xqueue consumer
tags
:
-
xqueue
-
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
notify
:
-
xqueue | restart xqueue
-
xqueue | restart xqueue consumer
tags
:
-
xqueue
-
name
:
xqueue | creating xqueue upstart script
template
:
src=xqueue.conf.j2 dest=/etc/init/xqueue.conf mode=0640 owner=root group=adm
notify
:
-
xqueue | restart xqueue
tags
:
-
xqueue
-
name
:
xqueue | create xqueue consumer upstart script
template
:
src=xqueue_consumer.conf.j2 dest=/etc/init/xqueue_consumer.conf mode=0640 owner=root group=adm
notify
:
-
xqueue | restart xqueue consumer
tags
:
-
xqueue
# Install nginx site
-
include
:
../../nginx/tasks/nginx_site.yml state=link site_name=xqueue
-
include
:
deploy.yml
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