Resources
File["/etc/elasticsearch/elasticsearch.yml"]
content => template("elasticsearch/elasticsearch.yml.erb")
owner => "root"
group => "root"
mode => "0644"
notify => Service["elasticsearch"]
require => Package["elasticsearch"]
File["/etc/sysconfig/elasticsearch"]
content => template("elasticsearch/sysconfig-elasticsearch.erb")
owner => "root"
group => "root"
mode => "0644"
notify => Service["elasticsearch"]
Package["elasticsearch"]
ensure => installed
Typical main package and service
Service["elasticsearch"]
enable => true
ensure => running
hasstatus => true
require => Package["elasticsearch"]