Skip to content

Instantly share code, notes, and snippets.

@lusid
Created October 30, 2013 18:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lusid/e4a1c0729153f08a3542 to your computer and use it in GitHub Desktop.
Save lusid/e4a1c0729153f08a3542 to your computer and use it in GitHub Desktop.
Problem with SaltStack using pkg.installed with sources parameter at external https site
Configuration of external package:
elasticsearch:
pkg.installed:
- sources:
- elasticsearch: https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.3.deb
When running state.highstate:
[INFO ] Executing state pkg.installed for elasticsearch
[INFO ] Executing command 'apt-get -q update' in directory '/home/ubuntu'
[INFO ] Executing command 'dpkg-deb -I "/var/cache/salt/minion/extrn_files/base/download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.3.deb"' in directory '/home/ubuntu'
[INFO ] Executing command 'dpkg -i --force-confold /var/cache/salt/minion/extrn_files/base/download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.3.deb' in directory '/home/ubuntu'
[ERROR ] An exception occurred in this state: Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/salt/state.py", line 1258, in call
*cdata['args'], **cdata['kwargs'])
File "/usr/lib/pymodules/python2.7/salt/states/pkg.py", line 459, in installed
**kwargs)
File "/usr/lib/pymodules/python2.7/salt/modules/apt.py", line 420, in install
__salt__['cmd.run_all'](cmd, python_shell=False)
File "/usr/lib/pymodules/python2.7/salt/modules/cmdmod.py", line 685, in run_all
reset_system_locale=reset_system_locale)
File "/usr/lib/pymodules/python2.7/salt/modules/cmdmod.py", line 346, in _run
raise CommandExecutionError('Unable to run command: {0}'.format(exc))
CommandExecutionError: Unable to run command: [Errno 2] No such file or directory
Versions report of master:
Salt: 0.17.0-1610-g614a009
Python: 2.7.3 (default, Sep 26 2013, 20:03:06)
Jinja2: 2.6
M2Crypto: 0.21.1
msgpack-python: 0.1.10
msgpack-pure: Not Installed
pycrypto: 2.4.1
PyYAML: 3.10
PyZMQ: 13.0.0
ZMQ: 3.2.2
Versions report of minion:
Salt: 0.17.1
Python: 2.7.3 (default, Sep 26 2013, 20:03:06)
Jinja2: 2.6
M2Crypto: 0.21.1
msgpack-python: 0.1.10
msgpack-pure: Not Installed
pycrypto: 2.4.1
PyYAML: 3.10
PyZMQ: 13.0.0
ZMQ: 3.2.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment