From 6bba87337f66cc22a83e59bc82c3875884ff8b79 Mon Sep 17 00:00:00 2001 From: Yuli Shlosberg Date: Sun, 25 Feb 2018 20:48:29 +0200 Subject: prints for debug Change-Id: I8271618b605858bdb76cf1e6ac844eabd8876573 Issue-ID: SDC-920 Signed-off-by: Yuli Shlosberg --- .../cookbooks/cassandra-actions/recipes/03-prepareProbeFile.rb | 7 +++++++ .../cassandra-actions/templates/default/ready-probe.sh.erb | 2 ++ 2 files changed, 9 insertions(+) (limited to 'sdc-os-chef/sdc-cassandra') diff --git a/sdc-os-chef/sdc-cassandra/chef-repo/cookbooks/cassandra-actions/recipes/03-prepareProbeFile.rb b/sdc-os-chef/sdc-cassandra/chef-repo/cookbooks/cassandra-actions/recipes/03-prepareProbeFile.rb index c196ca7b94..3d722021da 100644 --- a/sdc-os-chef/sdc-cassandra/chef-repo/cookbooks/cassandra-actions/recipes/03-prepareProbeFile.rb +++ b/sdc-os-chef/sdc-cassandra/chef-repo/cookbooks/cassandra-actions/recipes/03-prepareProbeFile.rb @@ -14,4 +14,11 @@ template "/var/lib/ready-probe.sh" do :cassandra_ip => application_host, :cassandra_pwd => ENV['CS_PASSWORD'] }) +end + + +bash "run_probe_script" do + code <<-EOH + /var/lib/ready-probe.sh + EOH end \ No newline at end of file diff --git a/sdc-os-chef/sdc-cassandra/chef-repo/cookbooks/cassandra-actions/templates/default/ready-probe.sh.erb b/sdc-os-chef/sdc-cassandra/chef-repo/cookbooks/cassandra-actions/templates/default/ready-probe.sh.erb index 2f97d0768e..25dfbf66a6 100644 --- a/sdc-os-chef/sdc-cassandra/chef-repo/cookbooks/cassandra-actions/templates/default/ready-probe.sh.erb +++ b/sdc-os-chef/sdc-cassandra/chef-repo/cookbooks/cassandra-actions/templates/default/ready-probe.sh.erb @@ -1,5 +1,7 @@ #!/bin/bash +set -x + CASSANDRA_PASS=<%= @cassandra_pwd %> CASSANDRA_IP=<%= @cassandra_ip %> -- cgit 1.2.3-korg