
New module to setup a Python Package Index mirror. Nginx is setup to serve as the mirror web server. The default setup is to mirror everything. Example of setting up a new mirror, restricting what we will mirror: node "mymirror.mydomain.org" { include openstack_cron class { "pypimirror": base_url => "http://mymirror.mydomain.org", package_matches = ["nose", "pep8", "simplejson"], } } To use it: pip install <package> -i http://mymirror.mydomain.org Change-Id: I36234b8242df0e9d1e7dca7e896005e9e46a9edf
10 lines
107 B
Plaintext
10 lines
107 B
Plaintext
server {
|
|
listen 80;
|
|
|
|
index index.html index.htm;
|
|
|
|
location / {
|
|
root /usr/local/pypimirror;
|
|
}
|
|
}
|