Open benjsmi opened 8 years ago
I was eventually able to get logstash to install the correct version once I set:
logstash_instance 'logstash' do
action :create
install_type "tarball"
source_url "https://download.elasticsearch.org/logstash/logstash/logstash-2.4.0.tar.gz"
version "2.4.0"
checksum "622c435c5c0f40e205fd4d9411eb409cc52992cf62dde4c7cd46e480cd8247cc"
end
So I would have been helped by something in the docs that explains that there is no "package" installation and you have to declare the checksum and source_url of your desired version if you don't want 1.5.4.
I was thinking I could use
@version
to set the desired version of Logstash using this cookbook because of https://github.com/lusis/chef-logstash/blob/master/resources/instance.rb#L17, which says:The last line is the relevant one that made me think I could use it this way.
Well that, and README.md says that the order of precedence is:
In my recipe, I have:
but I keep seeing Logstash 1.5.4 being installed:
Relevant Chef client-run output: