]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/elasticsearch/recipes/default.rb
imagery: fix osstvw_make_diffs find typo
[chef.git] / cookbooks / elasticsearch / recipes / default.rb
index 41ea68a1260ef97ee81c0acf27239824476e55db..3ade99c39b42401a3be97b9b087c1c5d79422865 100644 (file)
 # limitations under the License.
 #
 
-package "openjdk-7-jre-headless"
-package "elasticsearch" do
-  action :install
+package "default-jre-headless"
+package "elasticsearch"
+
+template "/etc/elasticsearch/elasticsearch.yml" do
+  source "elasticsearch.yml.erb"
+  user "root"
+  group "root"
+  mode 0644
+  notifies :restart, "service[elasticsearch]"
 end
 
 service "elasticsearch" do
-  action [ :enable, :start ]
+  action [:enable, :start]
   supports :status => true, :restart => true
 end