Make sure each server has a unique cluster name and is only
listening on localhost.
#
package "openjdk-7-jre-headless"
-package "elasticsearch" do
- action :install
+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
--- /dev/null
+# DO NOT EDIT - This file is being maintained by Chef
+
+cluster.name: <%= node[:elasticsearch][:cluster][:name] %>
+network.host: 127.0.0.1
:apt => {
:sources => ["passenger"]
},
+ :elasticsearch => {
+ :cluster => {
+ :name => "foundation"
+ }
+ },
:memcached => {
:memory_limit => 400,
:chunk_growth_factor => 1.05,
default_attributes(
:apt => {
:sources => ["logstash"]
+ },
+ :elasticsearch => {
+ :cluster => {
+ :name => "logstash"
+ }
}
)
:wiki => { :status => :role }
}
},
+ :elasticsearch => {
+ :cluster => {
+ :name => "wiki"
+ }
+ },
:exim => {
:trusted_users => ["www-data"],
:aliases => {