aboutsummaryrefslogtreecommitdiffstats
path: root/sdc-os-chef/sdc-elasticsearch/chef-repo
diff options
context:
space:
mode:
authorvasraz <vasyl.razinkov@est.tech>2020-01-31 14:38:43 +0000
committerYuli Shlosberg <ys9693@att.com>2020-02-05 07:42:14 +0000
commit73fa45ca5aa62dfa4aa074125c384ffbaad60387 (patch)
tree50f6538e1a7baf99a72bff1a205253d7b6853fe1 /sdc-os-chef/sdc-elasticsearch/chef-repo
parent65f0aa37a9d182b406a3615af36b139e0b7091ed (diff)
Remove ES & Kibana
Change-Id: I983a0fe570b1a2cbf641f4285ef030be686bed32 Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Issue-ID: SDC-2724
Diffstat (limited to 'sdc-os-chef/sdc-elasticsearch/chef-repo')
-rw-r--r--sdc-os-chef/sdc-elasticsearch/chef-repo/cookbooks/sdc-elasticsearch/files/default/logging.yml23
-rw-r--r--sdc-os-chef/sdc-elasticsearch/chef-repo/cookbooks/sdc-elasticsearch/recipes/ES_1_setup_elasticsearch.rb21
-rw-r--r--sdc-os-chef/sdc-elasticsearch/chef-repo/cookbooks/sdc-elasticsearch/recipes/ES_2_setup_logging.rb6
-rw-r--r--sdc-os-chef/sdc-elasticsearch/chef-repo/cookbooks/sdc-elasticsearch/recipes/ES_3_prepareProbeFile.rb5
-rw-r--r--sdc-os-chef/sdc-elasticsearch/chef-repo/cookbooks/sdc-elasticsearch/templates/default/ES-elasticsearch.yml.erb16
-rw-r--r--sdc-os-chef/sdc-elasticsearch/chef-repo/cookbooks/sdc-elasticsearch/templates/default/ready-probe.sh.erb8
6 files changed, 0 insertions, 79 deletions
diff --git a/sdc-os-chef/sdc-elasticsearch/chef-repo/cookbooks/sdc-elasticsearch/files/default/logging.yml b/sdc-os-chef/sdc-elasticsearch/chef-repo/cookbooks/sdc-elasticsearch/files/default/logging.yml
deleted file mode 100644
index a78fb3c0e3..0000000000
--- a/sdc-os-chef/sdc-elasticsearch/chef-repo/cookbooks/sdc-elasticsearch/files/default/logging.yml
+++ /dev/null
@@ -1,23 +0,0 @@
-# you can override this using by setting a system property, for example -Des.logger.level=DEBUG
-es.logger.level: INFO
-rootLogger: ${es.logger.level}, console
-logger:
- # log action execution errors for easier debugging
- action: DEBUG
- # reduce the logging for aws, too much is logged under the default INFO
- com.amazonaws: WARN
-
-appender:
- console:
- type: console
- layout:
- type: consolePattern
- conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n"
-
- file:
- type: dailyRollingFile
- file: ${path.logs}/${cluster.name}.log
- datePattern: "'.'yyyy-MM-dd"
- layout:
- type: pattern
- conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %.10000m%n"
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
diff --git a/sdc-os-chef/sdc-elasticsearch/chef-repo/cookbooks/sdc-elasticsearch/recipes/ES_2_setup_logging.rb b/sdc-os-chef/sdc-elasticsearch/chef-repo/cookbooks/sdc-elasticsearch/recipes/ES_2_setup_logging.rb
deleted file mode 100644
index 5e462966ed..0000000000
--- a/sdc-os-chef/sdc-elasticsearch/chef-repo/cookbooks/sdc-elasticsearch/recipes/ES_2_setup_logging.rb
+++ /dev/null
@@ -1,6 +0,0 @@
-cookbook_file "/usr/share/elasticsearch/config/logging.yml" do
- source "logging.yml"
- owner "elasticsearch"
- group "elasticsearch"
- mode "0755"
-end
diff --git a/sdc-os-chef/sdc-elasticsearch/chef-repo/cookbooks/sdc-elasticsearch/recipes/ES_3_prepareProbeFile.rb b/sdc-os-chef/sdc-elasticsearch/chef-repo/cookbooks/sdc-elasticsearch/recipes/ES_3_prepareProbeFile.rb
deleted file mode 100644
index 14d08be94c..0000000000
--- a/sdc-os-chef/sdc-elasticsearch/chef-repo/cookbooks/sdc-elasticsearch/recipes/ES_3_prepareProbeFile.rb
+++ /dev/null
@@ -1,5 +0,0 @@
-template "/var/lib/ready-probe.sh" do
- source "ready-probe.sh.erb"
- sensitive true
- mode 0755
-end \ No newline at end of file
diff --git a/sdc-os-chef/sdc-elasticsearch/chef-repo/cookbooks/sdc-elasticsearch/templates/default/ES-elasticsearch.yml.erb b/sdc-os-chef/sdc-elasticsearch/chef-repo/cookbooks/sdc-elasticsearch/templates/default/ES-elasticsearch.yml.erb
deleted file mode 100644
index 0a2057dca6..0000000000
--- a/sdc-os-chef/sdc-elasticsearch/chef-repo/cookbooks/sdc-elasticsearch/templates/default/ES-elasticsearch.yml.erb
+++ /dev/null
@@ -1,16 +0,0 @@
-network.host: 0.0.0.0
-discovery.zen.ping.multicast.enabled: false
-discovery.zen.ping.unicast.enabled: true
-#discovery.zen.ping.unicast.hosts: <%= @es_ip_list_XXXXX %>
-
-cluster.name: <%= @cluster_name %>
-node.name: <%= @node_name %>
-elasticSearch.transportclient: true
-
-transport.client.initial_nodes:
-<%= @es_ip_list %>
-
-index.number_of_shards: <%= @num_of_shards %>
-index.number_of_replicas: <%= @num_of_replicas %>
-
-path.logs: /usr/share/elasticsearch/logs
diff --git a/sdc-os-chef/sdc-elasticsearch/chef-repo/cookbooks/sdc-elasticsearch/templates/default/ready-probe.sh.erb b/sdc-os-chef/sdc-elasticsearch/chef-repo/cookbooks/sdc-elasticsearch/templates/default/ready-probe.sh.erb
deleted file mode 100644
index 66b07873e5..0000000000
--- a/sdc-os-chef/sdc-elasticsearch/chef-repo/cookbooks/sdc-elasticsearch/templates/default/ready-probe.sh.erb
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/bin/bash
-
-health_Check_http_code=$(curl -o /dev/null -w '%{http_code}' http://127.0.0.1:9200/_cluster/health?wait_for_status=yellow&timeout=120s)
-if [[ "$health_Check_http_code" -eq 200 ]]; then
- exit 200
-else
- exit $health_Check_http_code
-fi