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
c7cb2681
Commit
c7cb2681
authored
Apr 02, 2014
by
Han Su Kim
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #971 from edx/han/devpi
Using PyPi URL instead of DevPi
parents
082bc994
0a1d5b56
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
11 deletions
+10
-11
playbooks/roles/edxapp/defaults/main.yml
+0
-1
playbooks/roles/edxapp/tasks/deploy.yml
+9
-9
playbooks/roles/supervisor/templates/etc/init/supervisor-upstart.conf.j2
+1
-1
No files found.
playbooks/roles/edxapp/defaults/main.yml
View file @
c7cb2681
...
...
@@ -193,7 +193,6 @@ edxapp_upload_dir: "{{ edxapp_data_dir }}/uploads"
edxapp_theme_dir
:
"
{{
edxapp_data_dir
}}/themes"
edxapp_git_identity
:
"
{{
edxapp_app_dir
}}/edxapp-git-identity"
edxapp_git_ssh
:
"
/tmp/edxapp_git_ssh.sh"
edxapp_pypi_local_mirror
:
"
http://localhost:{{
devpi_port
}}/root/pypi/+simple"
edxapp_workers
:
-
queue
:
low
service_variant
:
cms
...
...
playbooks/roles/edxapp/tasks/deploy.yml
View file @
c7cb2681
...
...
@@ -128,7 +128,7 @@
requirements="{{pre_requirements_file}}"
virtualenv="{{edxapp_venv_dir}}"
state=present
extra_args="-i {{
edxapp_pypi_local_mirror
}}"
extra_args="-i {{
COMMON_PYPI_MIRROR_URL
}}"
sudo_user
:
"
{{
edxapp_user
}}"
environment
:
"
{{
edxapp_environment
}}"
notify
:
...
...
@@ -142,7 +142,7 @@
# 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
:
>
{{ edxapp_venv_dir }}/bin/pip install -i {{
edxapp_pypi_local_mirror
}} --exists-action w --use-mirrors -r {{ base_requirements_file }}
{{ edxapp_venv_dir }}/bin/pip install -i {{
COMMON_PYPI_MIRROR_URL
}} --exists-action w --use-mirrors -r {{ base_requirements_file }}
chdir={{ edxapp_code_dir }}
environment
:
"
{{
edxapp_environment
}}"
sudo_user
:
"
{{
edxapp_user
}}"
...
...
@@ -157,7 +157,7 @@
requirements="{{post_requirements_file}}"
virtualenv="{{edxapp_venv_dir}}"
state=present
extra_args="-i {{
edxapp_pypi_local_mirror
}}"
extra_args="-i {{
COMMON_PYPI_MIRROR_URL
}}"
sudo_user
:
"
{{
edxapp_user
}}"
environment
:
"
{{
edxapp_environment
}}"
notify
:
...
...
@@ -171,7 +171,7 @@
# 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
:
>
{{ edxapp_venv_dir }}/bin/pip install -i {{
edxapp_pypi_local_mirror
}} --exists-action w --use-mirrors -r {{ item }}
{{ edxapp_venv_dir }}/bin/pip install -i {{
COMMON_PYPI_MIRROR_URL
}} --exists-action w --use-mirrors -r {{ item }}
chdir={{ edxapp_code_dir }}
with_items
:
-
"
{{
repo_requirements_file
}}"
...
...
@@ -189,7 +189,7 @@
# 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
:
>
{{ edxapp_venv_dir }}/bin/pip install -i {{
edxapp_pypi_local_mirror
}} --exists-action w --use-mirrors -r {{ item }}
{{ edxapp_venv_dir }}/bin/pip install -i {{
COMMON_PYPI_MIRROR_URL
}} --exists-action w --use-mirrors -r {{ item }}
chdir={{ edxapp_code_dir }}
with_items
:
-
"
{{
private_requirements_file
}}"
...
...
@@ -209,7 +209,7 @@
name="{{ EDXAPP_CAS_ATTRIBUTE_PACKAGE }}"
virtualenv="{{edxapp_venv_dir}}"
state=present
extra_args="-i {{
edxapp_pypi_local_mirror
}} --exists-action w --use-mirrors"
extra_args="-i {{
COMMON_PYPI_MIRROR_URL
}} --exists-action w --use-mirrors"
sudo_user
:
"
{{
edxapp_user
}}"
when
:
EDXAPP_CAS_ATTRIBUTE_PACKAGE|length > 0
notify
:
"
restart
edxapp"
...
...
@@ -220,7 +220,7 @@
# 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
:
>
{{ edxapp_venv_dir }}/bin/pip install -i {{
edxapp_pypi_local_mirror
}} --exists-action w --use-mirrors -r {{ item }}
{{ edxapp_venv_dir }}/bin/pip install -i {{
COMMON_PYPI_MIRROR_URL
}} --exists-action w --use-mirrors -r {{ item }}
chdir={{ edxapp_code_dir }}
with_items
:
-
"
{{
sandbox_base_requirements
}}"
...
...
@@ -247,7 +247,7 @@
requirements="{{sandbox_base_requirements}}"
virtualenv="{{edxapp_sandbox_venv_dir}}"
state=present
extra_args="-i {{
edxapp_pypi_local_mirror
}} --exists-action w --use-mirrors"
extra_args="-i {{
COMMON_PYPI_MIRROR_URL
}} --exists-action w --use-mirrors"
sudo_user
:
"
{{
edxapp_sandbox_user
}}"
when
:
EDXAPP_PYTHON_SANDBOX
notify
:
...
...
@@ -258,7 +258,7 @@
-
name
:
code sandbox | Install sandbox requirements into sandbox venv
shell
:
>
{{ edxapp_sandbox_venv_dir }}/bin/pip install -i {{
edxapp_pypi_local_mirror
}} --exists-action w --use-mirrors -r {{ item }}
{{ edxapp_sandbox_venv_dir }}/bin/pip install -i {{
COMMON_PYPI_MIRROR_URL
}} --exists-action w --use-mirrors -r {{ item }}
chdir={{ edxapp_code_dir }}
with_items
:
-
"
{{
sandbox_local_requirements
}}"
...
...
playbooks/roles/supervisor/templates/etc/init/supervisor-upstart.conf.j2
View file @
c7cb2681
description "supervisord"
{% if disable_edx_services -%}
{% if disable_edx_services
and not devstack
-%}
start on stopped pre_supervisor
{% else %}
start on runlevel [2345]
...
...
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