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
bf50b5b8
Commit
bf50b5b8
authored
Jun 11, 2013
by
Feanil Patel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Un-capitalize variable names.
parent
2c2a033a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
playbooks/roles/deploy/tasks/main.yml
+8
-8
playbooks/roles/deploy/vars/main.yml
+2
-2
No files found.
playbooks/roles/deploy/tasks/main.yml
View file @
bf50b5b8
...
...
@@ -43,7 +43,7 @@
-
deploy
-
name
:
check if django can collect lms static data
shell
:
SERVICE_VARIANT={{
LMS_VARIANT
}} django-admin.py help collectstatic --pythonpath={{ platform_code_dir }} --settings=lms.envs.aws
shell
:
SERVICE_VARIANT={{
lms_variant
}} django-admin.py help collectstatic --pythonpath={{ platform_code_dir }} --settings=lms.envs.aws
register
:
check_lms_collect_static
sudo
:
yes
sudo_user
:
www-data
...
...
@@ -55,7 +55,7 @@
-
deploy
-
name
:
check if django can collect cms static data
shell
:
SERVICE_VARIANT={{
LMS_VARIANT
}} django-admin.py help collectstatic --pythonpath={{ platform_code_dir }} --settings=cms.envs.aws
shell
:
SERVICE_VARIANT={{
lms_variant
}} django-admin.py help collectstatic --pythonpath={{ platform_code_dir }} --settings=cms.envs.aws
register
:
check_cms_collect_static
sudo
:
yes
sudo_user
:
www-data
...
...
@@ -65,7 +65,7 @@
-
deploy
-
name
:
check if django can update cms templates
shell
:
SERVICE_VARIANT={{
CMS_VARIANT
}} django-admin.py help update_templates --pythonpath={{ platform_code_dir }} --settings=cms.envs.aws
shell
:
SERVICE_VARIANT={{
cms_variant
}} django-admin.py help update_templates --pythonpath={{ platform_code_dir }} --settings=cms.envs.aws
register
:
check_cms_update_templates
sudo
:
yes
sudo_user
:
www-data
...
...
@@ -76,7 +76,7 @@
# Gather lms assets using rake if possible
-
name
:
gather lms static assets with rake
shell
:
executable=/bin/bash chdir={{ platform_code_dir }} SERVICE_VARIANT={{
LMS_VARIANT
}} rake lms:gather_assets:aws
shell
:
executable=/bin/bash chdir={{ platform_code_dir }} SERVICE_VARIANT={{
lms_variant
}} rake lms:gather_assets:aws
when
:
grep_gather_assets.rc == 0
notify
:
-
restart lms
...
...
@@ -93,7 +93,7 @@
# Gather lms assets using django if necessary(When rake doesn't know how)
-
name
:
gather lms static assets with django
shell
:
SERVICE_VARIANT={{
LMS_VARIANT
}} django-admin.py collectstatic --pythonpath={{ platform_code_dir }} --settings=lms.envs.aws --noinput --verbosity=0
shell
:
SERVICE_VARIANT={{
lms_variant
}} django-admin.py collectstatic --pythonpath={{ platform_code_dir }} --settings=lms.envs.aws --noinput --verbosity=0
when
:
grep_gather_assets.rc != 0 and check_lms_collect_static.rc == 0
notify
:
-
restart lms
...
...
@@ -112,7 +112,7 @@
# Gather cms assets using rake if possible
-
name
:
gather cms static assets with rake
# script: gather_assets.sh
shell
:
executable=/bin/bash chdir={{ platform_code_dir }} SERVICE_VARIANT={{
CMS_VARIANT
}} rake cms:gather_assets:aws
shell
:
executable=/bin/bash chdir={{ platform_code_dir }} SERVICE_VARIANT={{
cms_variant
}} rake cms:gather_assets:aws
when
:
grep_gather_assets.rc == 0
notify
:
-
restart cms
...
...
@@ -124,7 +124,7 @@
-
deploy
-
name
:
gather cms static assets with django
shell
:
SERVICE_VARIANT={{
CMS_VARIANT
}} django-admin.py collectstatic --pythonpath={{ platform_code_dir }} --settings=lms.envs.aws --noinput --verbosity=0
shell
:
SERVICE_VARIANT={{
cms_variant
}} django-admin.py collectstatic --pythonpath={{ platform_code_dir }} --settings=lms.envs.aws --noinput --verbosity=0
when
:
grep_gather_assets.rc != 0 and check_cms_collect_static.rc == 0
notify
:
-
restart cms
...
...
@@ -136,7 +136,7 @@
-
deploy
-
name
:
update cms templates
shell
:
SERVICE_VARIANT={{
CMS_VARIANT
}} django-admin.py update_templates --pythonpath={{ platform_code_dir }} --settings=cms.envs.aws
shell
:
SERVICE_VARIANT={{
cms_variant
}} django-admin.py update_templates --pythonpath={{ platform_code_dir }} --settings=cms.envs.aws
when
:
check_cms_update_templates.rc == 0
notify
:
-
restart cms
...
...
playbooks/roles/deploy/vars/main.yml
View file @
bf50b5b8
# Variables used to deploy the CMS and LMS
LMS_VARIANT
:
lms
CMS_VARIANT
:
cms
lms_variant
:
lms
cms_variant
:
cms
rbenv_dir
:
/opt/www/.rbenv
gem_home
:
/opt/www/.gem
...
...
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