]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/elasticsearch/recipes/default.rb
Rework apt repository configuration
[chef.git] / cookbooks / elasticsearch / recipes / default.rb
index cd7e8ff0165cea04d206aed537d2e43535bedbe3..05c6c27d5c24618f26029d9e064ad4bb87b9ed2b 100644 (file)
 # limitations under the License.
 #
 
-include_recipe "apt"
+case node[:elasticsearch][:version]
+when "6.x" then include_recipe "apt::elasticsearch6"
+when "8.x" then include_recipe "apt::elasticsearch8"
+end
 
 package "default-jre-headless"
 package "elasticsearch"