diff options
author | 2018-04-24 13:59:00 +0300 | |
---|---|---|
committer | 2018-04-24 14:59:09 +0300 | |
commit | c033cdce906efc3b6ccd1d2f45544af47e328ed4 (patch) | |
tree | 40c4657a73d9a52f5f2784cff9a3dcb1833467ce /catalog-be/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/recipes/BE_5_setup_elasticsearch.rb | |
parent | c175a0de2f05d37c1c774684318a525eb96bb59b (diff) |
Add cluster resiliance support
Add configuration support for CS/ES cluster
and add truststore default files to support
ssl connection
Change-Id: Icc2831704e8a3c55ce9b380a39001891ce8d41ab
Issue-ID: SDC-1254
Signed-off-by: Areli, Fuss (af732p) <af732p@intl.att.com>
Diffstat (limited to 'catalog-be/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/recipes/BE_5_setup_elasticsearch.rb')
-rw-r--r-- | catalog-be/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/recipes/BE_5_setup_elasticsearch.rb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/catalog-be/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/recipes/BE_5_setup_elasticsearch.rb b/catalog-be/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/recipes/BE_5_setup_elasticsearch.rb index 28f611267c..7a2f24e57a 100644 --- a/catalog-be/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/recipes/BE_5_setup_elasticsearch.rb +++ b/catalog-be/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/recipes/BE_5_setup_elasticsearch.rb @@ -1,5 +1,13 @@ clusterName = node['elasticsearch'][:cluster_name]+node.chef_environment +elasticsearch_list = '' + +node['Nodes']['ES'].each do |item| + elasticsearch_list += "- " + item + ":9300\n" +end + + + template "elasticsearch.yml-config" do path "#{ENV['JETTY_BASE']}/config/elasticsearch.yml" source "BE-elasticsearch.yml.erb" @@ -8,6 +16,6 @@ template "elasticsearch.yml-config" do mode "0755" variables ({ :cluster_name => "#{clusterName}", - :es_host_ip => node['Nodes']['ES'] + :es_host_ip => "#{elasticsearch_list}" }) end |