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
63a97e29
Commit
63a97e29
authored
Oct 14, 2013
by
John Jarvis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
moving pip_index_url to group_vars
parent
c76bc70e
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
10 deletions
+10
-10
playbooks/group_vars/all
+1
-0
playbooks/roles/common/defaults/main.yml
+0
-1
playbooks/roles/common/tasks/create_venv.yml
+3
-3
playbooks/roles/edxapp/tasks/deploy.yml
+5
-5
playbooks/roles/edxlocal/tasks/main.yml
+1
-1
No files found.
playbooks/group_vars/all
View file @
63a97e29
...
...
@@ -18,3 +18,4 @@ secure_dir: 'secure_example'
# this indicates the path to site-specific (with precedence)
# things like nginx template files
local_dir: '../../ansible_local'
pip_index_url: 'https://pypi.python.org/simple'
playbooks/roles/common/defaults/main.yml
View file @
63a97e29
...
...
@@ -8,4 +8,3 @@ 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 @
63a97e29
...
...
@@ -14,7 +14,7 @@
pip
:
>
name=virtualenv
state=present
extra_args="-i {{
common_
pip_index_url }}"
extra_args="-i {{ pip_index_url }}"
tags
:
-
venv_base
-
install
...
...
@@ -23,7 +23,7 @@
pip
:
>
name=virtualenvwrapper
state=present
extra_args="-i {{
common_
pip_index_url }}"
extra_args="-i {{ pip_index_url }}"
tags
:
-
venv_base
-
install
...
...
@@ -45,7 +45,7 @@
name=gunicorn
virtualenv="{{venv_dir}}"
state=present
extra_args="-i {{
common_
pip_index_url }}"
extra_args="-i {{ pip_index_url }}"
tags
:
-
gunicorn
-
install
playbooks/roles/edxapp/tasks/deploy.yml
View file @
63a97e29
...
...
@@ -112,7 +112,7 @@
requirements="{{pre_requirements_file}}"
virtualenv="{{venv_dir}}"
state=present
extra_args="-i {{
common_
pip_index_url }}"
extra_args="-i {{ pip_index_url }}"
tags
:
-
lms
-
cms
...
...
@@ -124,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 -i {{
common_
pip_index_url }} --exists-action w --use-mirrors -r {{ base_requirements_file }}
shell
:
cd {{ edx_platform_code_dir }} && {{ venv_dir }}/bin/pip install -i {{ pip_index_url }} --exists-action w --use-mirrors -r {{ base_requirements_file }}
tags
:
-
lms
-
cms
...
...
@@ -137,7 +137,7 @@
requirements="{{post_requirements_file}}"
virtualenv="{{venv_dir}}"
state=present
extra_args="-i {{
common_
pip_index_url }}"
extra_args="-i {{ pip_index_url }}"
tags
:
-
lms
-
cms
...
...
@@ -149,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 -i {{
common_
pip_index_url }} --exists-action w --use-mirrors -r {{ item }}
shell
:
cd {{ edx_platform_code_dir }} && {{ venv_dir }}/bin/pip install -i {{ pip_index_url }} --exists-action w --use-mirrors -r {{ item }}
with_items
:
-
"
{{
repo_requirements_file
}}"
-
"
{{
github_requirements_file
}}"
...
...
@@ -166,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 -i {{
common_
pip_index_url }} --exists-action w --use-mirrors -r {{ item }}
shell
:
cd {{ edx_platform_code_dir }} && {{ venv_dir }}/bin/pip install -i {{ 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 @
63a97e29
...
...
@@ -18,7 +18,7 @@
name=pymongo
state=present
version=2.6.3
extra_args="-i {{
common_
pip_index_url }}"
extra_args="-i {{ 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