# 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 0o644
+ notifies :restart, "service[elasticsearch]"
end
service "elasticsearch" do
- action [ :enable, :start ]
+ action [:enable, :start]
supports :status => true, :restart => true
end