Created
October 21, 2014 20:41
-
-
Save nguyent/6f675ed6c5e17e8afc90 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| ## 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