summaryrefslogtreecommitdiffstats
path: root/sdc-os-chef/sdc-elasticsearch/chef-repo/cookbooks/sdc-elasticsearch/recipes/ES_1_setup_elasticsearch.rb
diff options
context:
space:
mode:
Diffstat (limited to 'sdc-os-chef/sdc-elasticsearch/chef-repo/cookbooks/sdc-elasticsearch/recipes/ES_1_setup_elasticsearch.rb')
-rw-r--r--sdc-os-chef/sdc-elasticsearch/chef-repo/cookbooks/sdc-elasticsearch/recipes/ES_1_setup_elasticsearch.rb21
1 files changed, 0 insertions, 21 deletions
diff --git a/sdc-os-chef/sdc-elasticsearch/chef-repo/cookbooks/sdc-elasticsearch/recipes/ES_1_setup_elasticsearch.rb b/sdc-os-chef/sdc-elasticsearch/chef-repo/cookbooks/sdc-elasticsearch/recipes/ES_1_setup_elasticsearch.rb
deleted file mode 100644
index f32e736f53..0000000000
--- a/sdc-os-chef/sdc-elasticsearch/chef-repo/cookbooks/sdc-elasticsearch/recipes/ES_1_setup_elasticsearch.rb
+++ /dev/null
@@ -1,21 +0,0 @@
-elasticsearch_list = ''
-
-node['Nodes']['ES'].each do |item|
- elasticsearch_list += "- " + item + ":9300\n"
-end
-
-
-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_list => "#{elasticsearch_list}",
- :es_ip_list_XXX => node['Nodes']['ES'],
- :num_of_shards => node['elasticsearch'][:num_of_shards],
- :num_of_replicas => node['elasticsearch'][:num_of_replicas]
- })
-end