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
2927a399
Commit
2927a399
authored
Oct 31, 2013
by
John Jarvis
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #397 from edx/jarv/gather-assets-fix
Jarv/gather assets fix
parents
7d4a36ac
e6281209
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
26 deletions
+15
-26
playbooks/roles/edxapp/defaults/main.yml
+2
-7
playbooks/roles/edxapp/tasks/deploy.yml
+10
-16
playbooks/roles/edxapp/tasks/service_variant_config.yml
+3
-3
No files found.
playbooks/roles/edxapp/defaults/main.yml
View file @
2927a399
...
...
@@ -138,14 +138,9 @@ edxapp_workers:
edxapp_all_req_files
:
-
"
{{
pre_requirements_file
}}"
-
"
{{
post_requirements_file
}}"
-
"
{{
repo_requirements_file
}}"
-
"
{{
github_requirements_file
}}"
-
"
{{
local_requirements_file
}}"
-
"
{{
sandbox_base_requirements
}}"
-
"
{{
sandbox_local_requirements
}}"
-
"
{{
base_requirements_file
}}"
-
"
{{
sandbox_post_requirements
}}"
-
"
{{
edxapp_code_dir
}}/package.json"
-
"
{{
edxapp_code_dir
}}/Gemfile"
-
"
{{
sandbox_base_requirements
}}"
# TODO: old style variable syntax is necessary
# for lists and dictionaries
...
...
playbooks/roles/edxapp/tasks/deploy.yml
View file @
2927a399
...
...
@@ -32,16 +32,16 @@
git
:
dest={{edxapp_code_dir}} repo={{edx_platform_repo}} version={{edx_platform_commit}}
register
:
chkout
sudo_user
:
"
{{
edxapp_user
}}"
tags
:
-
deploy
tags
:
deploy
-
name
:
edxapp | git clean after checking out edx-platform
shell
:
cd {{edxapp_code_dir}} && git clean -xdf
when
:
chkout.changed
sudo_user
:
"
{{
edxapp_user
}}"
tags
:
-
deploy
tags
:
deploy
-
name
:
edxapp | compiling all py files in the edx-platform repo
shell
:
"
{{
edxapp_venv_bin
}}/python
-m
compileall
{{
edxapp_code_dir
}}"
tags
:
deploy
-
name
:
edxapp | checkout theme
git
:
dest={{ edxapp_app_dir }}/themes/{{edxapp_theme_name}} repo={{edxapp_theme_source_repo}} version={{edxapp_theme_version}}
...
...
@@ -55,7 +55,6 @@
/usr/bin/md5sum {{ " ".join(edxapp_all_req_files) }} 2>/dev/null > /var/tmp/edxapp.req.new
sudo_user
:
"
{{
edxapp_user
}}"
ignore_errors
:
true
when
:
chkout.changed
tags
:
-
deploy
...
...
@@ -73,7 +72,7 @@
/bin/sed -i -e 's/github\.com/{{ COMMON_GIT_MIRROR }}/g' {{ item }}
with_items
:
edxapp_all_req_files
sudo_user
:
"
{{
edxapp_user
}}"
when
:
chkout.changed and
not inst.stat.exists or new.stat.md5 != inst.stat.md5
when
:
not inst.stat.exists or new.stat.md5 != inst.stat.md5
tags
:
deploy
...
...
@@ -85,7 +84,6 @@
executable=/bin/bash
environment
:
"
{{
edxapp_environment
}}"
sudo_user
:
"
{{
edxapp_user
}}"
when
:
chkout.changed and not inst.stat.exists or new.stat.md5 != inst.stat.md5
tags
:
deploy
-
name
:
edxapp | bundle install
...
...
@@ -95,7 +93,6 @@
executable=/bin/bash
sudo_user
:
"
{{
edxapp_user
}}"
environment
:
"
{{
edxapp_environment
}}"
when
:
chkout.changed and not inst.stat.exists or new.stat.md5 != inst.stat.md5
tags
:
deploy
# Node play that need to be run after platform updates.
...
...
@@ -103,7 +100,6 @@
shell
:
npm install chdir={{ edxapp_code_dir }}
sudo_user
:
"
{{
edxapp_user
}}"
environment
:
"
{{
edxapp_environment
}}"
when
:
chkout.changed and not inst.stat.exists or new.stat.md5 != inst.stat.md5
tags
:
deploy
...
...
@@ -116,7 +112,7 @@
extra_args="-i {{ edxapp_pypi_local_mirror }}"
sudo_user
:
"
{{
edxapp_user
}}"
environment
:
"
{{
edxapp_environment
}}"
when
:
chkout.changed and
not inst.stat.exists or new.stat.md5 != inst.stat.md5
when
:
not inst.stat.exists or new.stat.md5 != inst.stat.md5
tags
:
deploy
# Install the python modules into {{ edxapp_venv_dir }}
...
...
@@ -129,7 +125,7 @@
chdir={{ edxapp_code_dir }}
environment
:
"
{{
edxapp_environment
}}"
sudo_user
:
"
{{
edxapp_user
}}"
when
:
chkout.changed and
not inst.stat.exists or new.stat.md5 != inst.stat.md5
when
:
not inst.stat.exists or new.stat.md5 != inst.stat.md5
tags
:
deploy
# Install the python post requirements into {{ edxapp_venv_dir }}
...
...
@@ -141,7 +137,7 @@
extra_args="-i {{ edxapp_pypi_local_mirror }}"
sudo_user
:
"
{{
edxapp_user
}}"
environment
:
"
{{
edxapp_environment
}}"
when
:
chkout.changed and
not inst.stat.exists or new.stat.md5 != inst.stat.md5
when
:
not inst.stat.exists or new.stat.md5 != inst.stat.md5
tags
:
deploy
# Install the final python modules into {{ edxapp_venv_dir }}
...
...
@@ -155,7 +151,6 @@
-
"
{{
github_requirements_file
}}"
-
"
{{
local_requirements_file
}}"
sudo_user
:
"
{{
edxapp_user
}}"
when
:
chkout.changed and not inst.stat.exists or new.stat.md5 != inst.stat.md5
tags
:
deploy
...
...
@@ -171,13 +166,12 @@
-
"
{{
sandbox_post_requirements
}}"
when
:
install_sandbox_reqs_into_regular_venv
sudo_user
:
"
{{
edxapp_user
}}"
when
:
chkout.changed and
not inst.stat.exists or new.stat.md5 != inst.stat.md5
when
:
not inst.stat.exists or new.stat.md5 != inst.stat.md5
tags
:
deploy
-
name
:
edxapp | create checksum for installed requirements
shell
:
cp /var/tmp/edxapp.req.new /var/tmp/edxapp.req.installed
sudo_user
:
"
{{
edxapp_user
}}"
when
:
chkout.changed
tags
:
deploy
...
...
playbooks/roles/edxapp/tasks/service_variant_config.yml
View file @
2927a399
...
...
@@ -58,7 +58,7 @@
executable=/bin/bash
chdir={{ edxapp_code_dir }}
sudo_user
:
"
{{
edxapp_user
}}"
when
:
c
hkout.changed and c
elery_worker is not defined
when
:
celery_worker is not defined
with_items
:
service_variants_enabled
environment
:
"
{{
edxapp_environment
}}"
tags
:
...
...
@@ -67,13 +67,13 @@
-
name
:
edxapp | syncdb and migrate
shell
:
sudo -u {{ edxapp_user }} SERVICE_VARIANT=lms {{ edxapp_venv_bin}}/django-admin.py syncdb --migrate --noinput --settings=lms.envs.aws --pythonpath={{ edxapp_code_dir }}
when
:
chkout and
migrate_db is defined and migrate_db|lower == "yes"
when
:
migrate_db is defined and migrate_db|lower == "yes"
tags
:
-
deploy
-
name
:
edxapp | db migrate
shell
:
sudo -u {{ edxapp_user }} SERVICE_VARIANT=lms {{ edxapp_venv_bin }}/django-admin.py migrate --noinput --settings=lms.envs.aws --pythonpath={{ edxapp_code_dir }}
when
:
chkout.changed and
migrate_only is defined and migrate_only|lower == "yes"
when
:
migrate_only is defined and migrate_only|lower == "yes"
tags
:
-
deploy
...
...
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