Skip to content

Instantly share code, notes, and snippets.

@nguyent
Created October 21, 2014 20:41
Show Gist options
  • Select an option

  • Save nguyent/6f675ed6c5e17e8afc90 to your computer and use it in GitHub Desktop.

Select an option

Save nguyent/6f675ed6c5e17e8afc90 to your computer and use it in GitHub Desktop.
## Attempting to use puppet to install logstash with java already installed
fpm -s empty -t rpm --depends jre -n zc-jre-1.7.0 --provides 'jre = 1.7.0' --provides 'jdk = 1.7.0'
=> zc-jre-1.0-1.x86_64.rpm
# logstash rpm via: https://download.elasticsearch.org/logstash/logstash/packages/centos/logstash-1.4.2-1_2c0f5a1.noarch.rpm
[vagrant@logstash tmp]$ rpm -qp --requires logstash-1.4.2-1_2c0f5a1.noarch.rpm
jre >= 1.6.0
[vagrant@logstash tmp]$ rpm -qp --provides zc-jre-1.0-1.x86_64.rpm
jre = 1.7.0
zc-jre-1.7.0 = 1.0-1
## `rpm -i` works when done via vagrant ssh, but not during vagrant up:
Error: Execution of '/bin/rpm -i /var/lib/logstash/swdl/logstash-1.4.2-1_2c0f5a1.noarch.rpm' returned 1: error: Failed dependencies:
==> logstash: jre >= 1.6.0 is needed by logstash-1.4.2-1_2c0f5a1.noarch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment