Description of Issue/Question
My servers have a limited access to internet, so I want to pip install a package using a local tar.gz file.
This tar.gz file works well when installing it directly with pip
pip install file:///collectd-ntp-0.0.4.tar.gz
I have searched in documentation and issues and do not find any clear statement that local files are supported in pip.installed state.
Setup
Saltstack version 2016.11.8+ds1 (some servers run .5), either running in master-minion setup or masterless (using salt-call in test-kitchen environment)
My original SLS file looks (I removed require/require_in and other ID in file)
# collectd/ntpd.sls
collectd-ntp-module:
pip.installed:
- name: 'collectd-ntp'
- source: salt://collectd/files/collectd-ntp-0.0.4.tar.gz
collectd-ntp-0.0.4.tar.gz is in directory collectd/files
Steps to Reproduce Issue
In masterless environnement, I run
salt-call --local state.sls_id collectd-ntp-module collectd.ntpd
I always have an error about the impossibility to reach https://pypi.python.org
ID: collectd-ntp-module
Function: pip.installed
Name: collectd-ntp
Result: False
Comment: Failed to install packages: collectd-ntp. Error: Downloading/unpacking collectd-ntp
Cannot fetch index base URL https://pypi.python.org/simple/
Could not find any downloads that satisfy the requirement collectd-ntp
Cleaning up...
No distributions at all found for collectd-ntp
Storing debug log for failure in /root/.pip/pip.log
Versions Report
$ salt-call --versions-report
Salt Version:
Salt: 2016.11.8
Dependency Versions:
cffi: 0.8.6
cherrypy: Not Installed
dateutil: 2.2
docker-py: Not Installed
gitdb: 0.5.4
gitpython: 0.3.2 RC1
ioflo: Not Installed
Jinja2: 2.9.4
libgit2: Not Installed
libnacl: Not Installed
M2Crypto: Not Installed
Mako: Not Installed
msgpack-pure: Not Installed
msgpack-python: 0.4.2
mysql-python: 1.2.3
pycparser: 2.10
pycrypto: 2.6.1
pycryptodome: Not Installed
pygit2: Not Installed
Python: 2.7.9 (default, Jun 29 2016, 13:08:31)
python-gnupg: Not Installed
PyYAML: 3.11
PyZMQ: 14.4.0
RAET: Not Installed
smmap: 0.8.2
timelib: Not Installed
Tornado: 4.2.1
ZMQ: 4.0.5
System Versions:
dist: debian 8.9
machine: x86_64
release: 3.16.0-4-amd64
system: Linux
version: debian 8.9
Description of Issue/Question
My servers have a limited access to internet, so I want to pip install a package using a local tar.gz file.
This tar.gz file works well when installing it directly with pip
I have searched in documentation and issues and do not find any clear statement that local files are supported in pip.installed state.
Setup
Saltstack version 2016.11.8+ds1 (some servers run .5), either running in master-minion setup or masterless (using salt-call in test-kitchen environment)
My original SLS file looks (I removed require/require_in and other ID in file)
collectd-ntp-0.0.4.tar.gz is in directory collectd/files
Steps to Reproduce Issue
In masterless environnement, I run
I always have an error about the impossibility to reach https://pypi.python.org
Versions Report