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
ac36b37f
Commit
ac36b37f
authored
Oct 14, 2013
by
John Jarvis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
using edx pypy mirror for edxapp and common
parent
60466be4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
9 deletions
+32
-9
playbooks/roles/common/defaults/main.yml
+1
-0
playbooks/roles/common/tasks/create_venv.yml
+13
-3
playbooks/roles/edxapp/tasks/deploy.yml
+13
-5
playbooks/roles/edxlocal/tasks/main.yml
+5
-1
No files found.
playbooks/roles/common/defaults/main.yml
View file @
ac36b37f
...
...
@@ -8,3 +8,4 @@ common_debian_pkgs:
-
tree
-
git
-
unzip
common_pip_index_url
:
'
https://pypy.edx.org/root/pypi/+simple/'
playbooks/roles/common/tasks/create_venv.yml
View file @
ac36b37f
...
...
@@ -11,13 +11,19 @@
-
install
-
name
:
common | pip install virtualenv
pip
:
name=virtualenv state=present
pip
:
>
name=virtualenv
state=present
extra_args="-i {{ common_pip_index_url }}"
tags
:
-
venv_base
-
install
-
name
:
common | pip install virtualenvwrapper
pip
:
name=virtualenvwrapper state=present
pip
:
>
name=virtualenvwrapper
state=present
extra_args="-i {{ common_pip_index_url }}"
tags
:
-
venv_base
-
install
...
...
@@ -35,7 +41,11 @@
-
install
-
name
:
common | pip install gunicorn
pip
:
name=gunicorn virtualenv="{{venv_dir}}" state=present
pip
:
>
name=gunicorn
virtualenv="{{venv_dir}}"
state=present
extra_args="-i {{ common_pip_index_url }}"
tags
:
-
gunicorn
-
install
playbooks/roles/edxapp/tasks/deploy.yml
View file @
ac36b37f
...
...
@@ -108,7 +108,11 @@
# Install the python pre requirements into {{ venv_dir }}
-
name
:
install python pre-requirements
pip
:
requirements="{{pre_requirements_file}}" virtualenv="{{venv_dir}}" state=present
pip
:
>
requirements="{{pre_requirements_file}}"
virtualenv="{{venv_dir}}"
state=present
extra_args="-i {{ common_pip_index_url }}"
tags
:
-
lms
-
cms
...
...
@@ -120,7 +124,7 @@
# 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 {{ edx_platform_code_dir }} && {{ venv_dir }}/bin/pip install --exists-action w --use-mirrors -r {{ base_requirements_file }}
shell
:
cd {{ edx_platform_code_dir }} && {{ venv_dir }}/bin/pip install -
i {{ common_pip_index_url }} -
-exists-action w --use-mirrors -r {{ base_requirements_file }}
tags
:
-
lms
-
cms
...
...
@@ -129,7 +133,11 @@
# Install the python post requirements into {{ venv_dir }}
-
name
:
install python post-requirements
pip
:
requirements="{{post_requirements_file}}" virtualenv="{{venv_dir}}" state=present
pip
:
>
requirements="{{post_requirements_file}}"
virtualenv="{{venv_dir}}"
state=present
extra_args="-i {{ common_pip_index_url }}"
tags
:
-
lms
-
cms
...
...
@@ -141,7 +149,7 @@
# 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 {{ edx_platform_code_dir }} && {{ venv_dir }}/bin/pip install --exists-action w --use-mirrors -r {{ item }}
shell
:
cd {{ edx_platform_code_dir }} && {{ venv_dir }}/bin/pip install -
i {{ common_pip_index_url }} -
-exists-action w --use-mirrors -r {{ item }}
with_items
:
-
"
{{
repo_requirements_file
}}"
-
"
{{
github_requirements_file
}}"
...
...
@@ -158,7 +166,7 @@
# 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 {{ edx_platform_code_dir }} && {{ venv_dir }}/bin/pip install --exists-action w --use-mirrors -r {{ item }}
shell
:
cd {{ edx_platform_code_dir }} && {{ venv_dir }}/bin/pip install -
i {{ common_pip_index_url }} -
-exists-action w --use-mirrors -r {{ item }}
with_items
:
-
"
{{
sandbox_base_requirements
}}"
-
"
{{
sandbox_local_requirements
}}"
...
...
playbooks/roles/edxlocal/tasks/main.yml
View file @
ac36b37f
...
...
@@ -14,7 +14,11 @@
apt
:
pkg={{','.join(edxlocal_debian_pkgs)}} install_recommends=yes state=present
-
name
:
edxlocal | install python pymongo for mongo_user ansible module
pip
:
name=pymongo state=present version=2.6.3
pip
:
>
name=pymongo
state=present
version=2.6.3
extra_args="-i {{ common_pip_index_url }}"
-
name
:
edxlocal | create a database for edxapp
mysql_db
:
>
...
...
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