]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/elasticsearch/recipes/default.rb
Use multipackage installs throughout
[chef.git] / cookbooks / elasticsearch / recipes / default.rb
index aaabe4c7489cedc56e844db82c4e26c8f2ab8f8d..36858b77de1ce36e76975a90a6af9846d7a7d5e0 100644 (file)
 # limitations under the License.
 #
 
-package "openjdk-7-jre-headless"
-package "elasticsearch" do
-  action :install
+package %w[
+  default-jre-headless
+  elasticsearch
+]
+
+template "/etc/elasticsearch/elasticsearch.yml" do
+  source "elasticsearch.yml.erb"
+  user "root"
+  group "root"
+  mode 0o644
+  notifies :restart, "service[elasticsearch]"
 end
 
 service "elasticsearch" do