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
4eb78c91
Commit
4eb78c91
authored
Jun 12, 2013
by
Feanil Patel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move the platform checkout and related tasks to deploy.yml
parent
2dacc8d9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
67 additions
and
66 deletions
+67
-66
playbooks/roles/edxapp/tasks/deploy.yml
+67
-0
playbooks/roles/edxapp/tasks/main.yml
+0
-66
No files found.
playbooks/roles/edxapp/tasks/deploy.yml
View file @
4eb78c91
...
...
@@ -8,8 +8,75 @@
-
cms
-
deploy
# Do A Checkout
-
name
:
git checkout edx-platform repo into $app_base_dir
git
:
dest={{platform_code_dir}} repo={{lms_source_repo}} version={{lms_version}}
environment
:
GIT_SSH
:
/tmp/git_ssh.sh
tags
:
-
lms
-
cms
-
install
# Do Post Checkout Tasks.
-
name
:
create platform code dir
file
:
path={{platform_code_dir}} state=directory owner=www-data group=www-data mode=755
tags
:
-
lms
-
cms
-
install
-
name
:
sets permissions on platform code dir and contents
file
:
path={{platform_code_dir}} state=directory owner=www-data group=www-data recurse=yes
tags
:
-
lms
-
cms
-
install
# Install the python pre requirements into {{ venv_dir }}
-
name
:
install python pre-requirements
pip
:
requirements="{{pre_requirements_file}}" virtualenv="{{venv_dir}}" state=present
tags
:
-
lms
-
cms
-
install
# Install the python modules into {{ venv_dir }}
-
name
:
install base python packages using the shell
# Need to use shell rather than pip so that we can maintain the context of our current working directory; some
# requirements are pathed relative to the edx-platform repo. Using the pip from inside the virtual environment implicitly
# installs everything into that virtual environment.
shell
:
cd {{ platform_code_dir }} && {{ venv_dir }}/bin/pip install --use-mirrors -r {{ base_requirements_file }}
tags
:
-
lms
-
cms
-
install
# Install the python post requirements into {{ venv_dir }}
-
name
:
install python post-requirements
pip
:
requirements="{{post_requirements_file}}" virtualenv="{{venv_dir}}" state=present
tags
:
-
lms
-
cms
-
install
# Install the final python modules into {{ venv_dir }}
-
name
:
install python post-post requirements using the shell
# Need to use shell rather than pip so that we can maintain the context of our current working directory; some
# requirements are pathed relative to the edx-platform repo. Using the pip from inside the virtual environment implicitly
# installs everything into that virtual environment.
shell
:
cd {{ platform_code_dir }} && {{ venv_dir }}/bin/pip install --use-mirrors -r {{ item }}
with_items
:
-
"
{{
repo_requirements_file
}}"
-
"
{{
github_requirements_file
}}"
-
"
{{
local_requirements_file
}}"
tags
:
-
lms
-
cms
-
install
# This checks needs to be run to see if rake can be used but its failure should not stop the run.
-
name
:
check if rake gather_assets is available
...
...
playbooks/roles/edxapp/tasks/main.yml
View file @
4eb78c91
...
...
@@ -53,29 +53,6 @@
-
lms
-
cms
-
name
:
git checkout edx-platform repo into $app_base_dir
git
:
dest={{platform_code_dir}} repo={{lms_source_repo}} version={{lms_version}}
environment
:
GIT_SSH
:
/tmp/git_ssh.sh
tags
:
-
lms
-
cms
-
install
-
name
:
create platform code dir
file
:
path={{platform_code_dir}} state=directory owner=www-data group=www-data mode=755
tags
:
-
lms
-
cms
-
install
-
name
:
sets permissions on platform code dir and contents
file
:
path={{platform_code_dir}} state=directory owner=www-data group=www-data recurse=yes
tags
:
-
lms
-
cms
-
install
-
name
:
install a bunch of system packages on which LMS and CMS rely
apt
:
pkg={{item}} state=present
with_items
:
lms_debian_pkgs
...
...
@@ -85,49 +62,6 @@
-
install
# Install the python pre requirements into {{ venv_dir }}
-
name
:
install python pre-requirements
pip
:
requirements="{{pre_requirements_file}}" virtualenv="{{venv_dir}}" state=present
tags
:
-
lms
-
cms
-
install
# Install the python modules into {{ venv_dir }}
-
name
:
install base python packages using the shell
# Need to use shell rather than pip so that we can maintain the context of our current working directory; some
# requirements are pathed relative to the edx-platform repo. Using the pip from inside the virtual environment implicitly
# installs everything into that virtual environment.
shell
:
cd {{ platform_code_dir }} && {{ venv_dir }}/bin/pip install --use-mirrors -r {{ base_requirements_file }}
tags
:
-
lms
-
cms
-
install
# Install the python post requirements into {{ venv_dir }}
-
name
:
install python post-requirements
pip
:
requirements="{{post_requirements_file}}" virtualenv="{{venv_dir}}" state=present
tags
:
-
lms
-
cms
-
install
# Install the final python modules into {{ venv_dir }}
-
name
:
install python post-post requirements using the shell
# Need to use shell rather than pip so that we can maintain the context of our current working directory; some
# requirements are pathed relative to the edx-platform repo. Using the pip from inside the virtual environment implicitly
# installs everything into that virtual environment.
shell
:
cd {{ platform_code_dir }} && {{ venv_dir }}/bin/pip install --use-mirrors -r {{ item }}
with_items
:
-
"
{{
repo_requirements_file
}}"
-
"
{{
github_requirements_file
}}"
-
"
{{
local_requirements_file
}}"
tags
:
-
lms
-
cms
-
install
-
include
:
lms.yml
when
:
"
'lms'
in
service_variants_enabled"
-
include
:
lms-xml.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