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
edx
configuration
Commits
ffa67ea4
Commit
ffa67ea4
authored
Jan 31, 2018
by
bmedx
Committed by
John Eskew
Feb 23, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding devpi_consumer role for Devstack
parent
388fb907
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
60 additions
and
0 deletions
+60
-0
CHANGELOG.md
+6
-0
docker/plays/edxapp.yml
+1
-0
playbooks/roles/devpi_consumer/defaults/main.yml
+20
-0
playbooks/roles/devpi_consumer/tasks/main.yml
+22
-0
playbooks/roles/devpi_consumer/templates/pip.conf.j2
+11
-0
No files found.
CHANGELOG.md
View file @
ffa67ea4
-
Role: devpi
-
New role added to configure a devpi service as a pass-through cache for PyPI.
-
Role: devpi_consumer
-
Added role to configure Python containers to use devpi for Docker Devstack
-
Role: xqueue
-
Remove S3_BUCKET and S3_PATH_PREFIX - they were deprecated prior to ginkgo
-
Remove SERVICE_VARIANT - it was copied from edxapp but never truly used (except to complicate things)
...
...
docker/plays/edxapp.yml
View file @
ffa67ea4
...
...
@@ -8,6 +8,7 @@
roles
:
-
common_vars
-
docker
-
devpi_consumer
-
role
:
nginx
nginx_sites
:
-
lms
...
...
playbooks/roles/devpi_consumer/defaults/main.yml
0 → 100644
View file @
ffa67ea4
# Variables for the devpi_consumer role
# This role allows a host to use the configured devpi server as a primary source for pip
# Defaults are for Docker Devstack
#
# This should be a directory, pip.conf will be appended
DEVPI_PIP_CONF_PATH
:
/root/.pip
DEVPI_PIP_CONF_OWNER
:
root
DEVPI_PIP_CONF_GROUP
:
root
DEVPI_HOST
:
edx.devstack.devpi
DEVPI_PORT
:
3141
# http or https
#
DEVPI_PROTOCOL
:
http
# Use a leading slash, but no trailing slash here
#
DEVPI_INDEX
:
/root/pypi
playbooks/roles/devpi_consumer/tasks/main.yml
0 → 100644
View file @
ffa67ea4
-
name
:
create pip conf directory
file
:
path
:
"
{{
DEVPI_PIP_CONF_PATH
}}"
state
:
directory
owner
:
"
{{
DEVPI_PIP_CONF_OWNER
}}"
group
:
"
{{
DEVPI_PIP_CONF_GROUP
}}"
when
:
devstack is defined and devstack
tags
:
-
devstack
-
devstack:install
-
name
:
write pip.conf to devstack
template
:
src
:
"
pip.conf.j2"
dest
:
"
{{
DEVPI_PIP_CONF_PATH
}}/pip.conf"
owner
:
"
{{
DEVPI_PIP_CONF_OWNER
}}"
group
:
"
{{
DEVPI_PIP_CONF_GROUP
}}"
mode
:
0744
when
:
devstack is defined and devstack
tags
:
-
devstack
-
devstack:install
playbooks/roles/devpi_consumer/templates/pip.conf.j2
0 → 100644
View file @
ffa67ea4
[global]
index-url = {{ DEVPI_PROTOCOL }}://{{ DEVPI_HOST }}:{{ DEVPI_PORT }}{{ DEVPI_INDEX }}/+simple/
# Enables failover to PyPI if devpi is broken
extra-index-url = https://pypi.python.org/simple
# This is necessary if you aren't using TLS on the DevPI host
trusted-host = {{ DEVPI_HOST }}
[search]
index = {{ DEVPI_PROTOCOL }}://{{ DEVPI_HOST }}:{{ DEVPI_PORT }}{{ DEVPI_INDEX }}/
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