Skip to content

Instantly share code, notes, and snippets.

@198d
Last active December 20, 2015 20:08
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 198d/6187725 to your computer and use it in GitHub Desktop.
Save 198d/6187725 to your computer and use it in GitHub Desktop.
java:
pkg.installed:
- name: openjdk-7-jre-headless
elasticsearch:
pkg.installed:
- sources:
- elasticsearch:all: https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.3.deb
- require:
- pkg: java
$ sudo salt-call pkg.install sources='[{"elasticsearch": "https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.3.deb"}]'
[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'
[ERROR ] Package file https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.3.deb (Name: elasticsearch:all) does not match the specified package name (elasticsearch).
[INFO ] Executing command "dpkg-query --showformat='${Status} ${Package} ${Version} ${Architecture}\n' -W" in directory '/home/ubuntu'
[INFO ] Executing command 'grep-available -F Provides -s Package,Provides -e "^.+$"' in directory '/home/ubuntu'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment