summaryrefslogtreecommitdiffstats
path: root/sdc-os-chef/sdc-elasticsearch/chef-repo/cookbooks/sdc-elasticsearch/recipes/ES_1_setup_elasticsearch.rb
blob: 68c1154ec618b59d1c8f0fa6e49b0108976a237d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
template "/usr/share/elasticsearch/config/elasticsearch.yml" do
   source "ES-elasticsearch.yml.erb"
   owner "elasticsearch"
   group "elasticsearch"
   mode "0755"
   variables({
        :cluster_name => node['elasticsearch'][:cluster_name]+node.chef_environment,
        :node_name => node[:hostname],
        :ES_IP => node['Nodes']['ES'],
        :num_of_shards => node['elasticsearch'][:num_of_shards],
        :num_of_replicas => node['elasticsearch'][:num_of_replicas]
   })
end