aboutsummaryrefslogtreecommitdiffstats
path: root/sdc-os-chef/sdc-cassandra
diff options
context:
space:
mode:
authorYuli Shlosberg <ys9693@att.com>2018-02-25 20:48:29 +0200
committerYuli Shlosberg <ys9693@att.com>2018-02-25 20:48:29 +0200
commit6bba87337f66cc22a83e59bc82c3875884ff8b79 (patch)
tree62f46d0f9b373d9f067b5c55b8c7bb06b0aec5aa /sdc-os-chef/sdc-cassandra
parentb4deec1b837dff7276dd4cb149359c6fe3deddf8 (diff)
prints for debug
Change-Id: I8271618b605858bdb76cf1e6ac844eabd8876573 Issue-ID: SDC-920 Signed-off-by: Yuli Shlosberg <ys9693@att.com>
Diffstat (limited to 'sdc-os-chef/sdc-cassandra')
-rw-r--r--sdc-os-chef/sdc-cassandra/chef-repo/cookbooks/cassandra-actions/recipes/03-prepareProbeFile.rb7
-rw-r--r--sdc-os-chef/sdc-cassandra/chef-repo/cookbooks/cassandra-actions/templates/default/ready-probe.sh.erb2
2 files changed, 9 insertions, 0 deletions
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 %>