-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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