Skip to content

Commit

Permalink
Use openjdk-11 with elasticsearch 6.x
Browse files Browse the repository at this point in the history
  • Loading branch information
Firefishy committed Sep 9, 2024
1 parent 735703e commit 1fb78e1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cookbooks/elasticsearch/recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,12 @@
when "8.x" then include_recipe "apt::elasticsearch8"
end

package "default-jre-headless"
if node[:elasticsearch][:version] == "6.x"
package "openjdk-11-jre-headless"
else
package "default-jre-headless"
end

package "elasticsearch"

template "/etc/elasticsearch/elasticsearch.yml" do
Expand Down

0 comments on commit 1fb78e1

Please sign in to comment.