summaryrefslogtreecommitdiffstats
path: root/sdc-os-chef/sdc-elasticsearch/chef-repo/cookbooks
diff options
context:
space:
mode:
authorYuli Shlosberg <ys9693@att.com>2017-10-03 18:18:51 +0300
committerYuli Shlosberg <ys9693@att.com>2017-10-03 15:59:56 +0000
commit5571a86069aa180b87e090bc7fb07059ff4e21cc (patch)
treeb9af0b12e4cef38707d8ba6bb95b696e51a69aa4 /sdc-os-chef/sdc-elasticsearch/chef-repo/cookbooks
parent4e6552008b61d38cd48547b3c968ad653231d7a5 (diff)
New docker start monitor engine
New docker start monitor engine based on docker log prints Change-Id: I592b235faa090e558b13520d830bfd9cb6af924b Issue-Id: SDC-432 Signed-off-by: Yuli Shlosberg <ys9693@att.com>
Diffstat (limited to 'sdc-os-chef/sdc-elasticsearch/chef-repo/cookbooks')
-rw-r--r--sdc-os-chef/sdc-elasticsearch/chef-repo/cookbooks/sdc-elasticsearch/recipes/ES_5_create_monitoring_template.rb6
-rw-r--r--sdc-os-chef/sdc-elasticsearch/chef-repo/cookbooks/sdc-elasticsearch/recipes/ES_6_create_kibana_dashboard_virtualization.rb11
2 files changed, 12 insertions, 5 deletions
diff --git a/sdc-os-chef/sdc-elasticsearch/chef-repo/cookbooks/sdc-elasticsearch/recipes/ES_5_create_monitoring_template.rb b/sdc-os-chef/sdc-elasticsearch/chef-repo/cookbooks/sdc-elasticsearch/recipes/ES_5_create_monitoring_template.rb
index dfb68c1dfa..5b1f9f8180 100644
--- a/sdc-os-chef/sdc-elasticsearch/chef-repo/cookbooks/sdc-elasticsearch/recipes/ES_5_create_monitoring_template.rb
+++ b/sdc-os-chef/sdc-elasticsearch/chef-repo/cookbooks/sdc-elasticsearch/recipes/ES_5_create_monitoring_template.rb
@@ -20,6 +20,12 @@ ruby_block "check_ElasticSearch_Cluster_Health" do
retry_delay 2
end
+bash "echo status" do
+ code <<-EOH
+ echo "DOCKER STARTED"
+ EOH
+end
+
bash "create monitoring mapping" do
code <<-EOH
curl -i -X PUT -d '{ "order": 1, "template": "monitoring_events-*", "settings": {}, "mappings":
diff --git a/sdc-os-chef/sdc-elasticsearch/chef-repo/cookbooks/sdc-elasticsearch/recipes/ES_6_create_kibana_dashboard_virtualization.rb b/sdc-os-chef/sdc-elasticsearch/chef-repo/cookbooks/sdc-elasticsearch/recipes/ES_6_create_kibana_dashboard_virtualization.rb
index a3b15073a1..216d103fa3 100644
--- a/sdc-os-chef/sdc-elasticsearch/chef-repo/cookbooks/sdc-elasticsearch/recipes/ES_6_create_kibana_dashboard_virtualization.rb
+++ b/sdc-os-chef/sdc-elasticsearch/chef-repo/cookbooks/sdc-elasticsearch/recipes/ES_6_create_kibana_dashboard_virtualization.rb
@@ -29,6 +29,11 @@ ruby_block "check_ElasticSearch_Cluster_Health" do
retry_delay 2
end
+bash "echo status" do
+ code <<-EOH
+ echo "DOCKER STARTED"
+ EOH
+end
bash "create Kibana dashboard" do
code <<-EOH
@@ -41,7 +46,6 @@ bash "create Kibana dashboard" do
EOH
end
-
bash "create Kibana visualization" do
code <<-EOH
for file in /root/chef-solo/cookbooks/sdc-elasticsearch/files/default/visualization_*.json; do
@@ -51,7 +55,4 @@ bash "create Kibana visualization" do
echo
done
EOH
-end
-
-
-
+end \ No newline at end of file