blob: c196ca7b942131e23c858dbddab4360e91ff341c [file] [log] [blame]
Areli Fusseeec5042018-02-09 00:08:52 +02001interface = node['interfaces']['application']
2application_host = ''
3node['network']['interfaces'][interface][:addresses].each do | addr , details |
4 if details['family'] == ('inet')
5 application_host = addr
6 end
7end
8
Yuli Shlosberg0875ce02018-01-25 13:53:36 +02009template "/var/lib/ready-probe.sh" do
10 source "ready-probe.sh.erb"
11 sensitive true
12 mode 0755
13 variables({
Areli Fusseeec5042018-02-09 00:08:52 +020014 :cassandra_ip => application_host,
Yuli Shlosberg0875ce02018-01-25 13:53:36 +020015 :cassandra_pwd => ENV['CS_PASSWORD']
16 })
Yuli Shlosberg0875ce02018-01-25 13:53:36 +020017end