blob: c583876e2d33808da03d3eb5b6852e6300c52954 [file] [log] [blame]
Alexis de Talhouƫta6445582017-03-08 17:33:55 -05001#!/bin/bash
Michael Lando451a3402017-02-19 10:28:42 +02002
3cd /root/chef-solo
Yuli Shlosberg0875ce02018-01-25 13:53:36 +02004chef-solo -c solo.rb -o recipe[cassandra-actions::01-configureCassandra] -E ${ENVNAME}
Michael Lando451a3402017-02-19 10:28:42 +02005rc=$?
Michael Lando451a3402017-02-19 10:28:42 +02006if [[ $rc != 0 ]]; then exit $rc; fi
Yuli Shlosberg0875ce02018-01-25 13:53:36 +02007
Michael Lando451a3402017-02-19 10:28:42 +02008echo "########### starting cassandra ###########"
9# start cassandra
10/docker-entrypoint.sh cassandra -f &
11
Yuli Shlosberg0875ce02018-01-25 13:53:36 +020012chef-solo -c solo.rb -E ${ENVNAME}
Areli Fuss46315432018-02-11 12:33:52 +020013rc=$?
Michael Lando50ffa6b2018-01-08 10:52:07 +020014if [[ $rc != 0 ]]; then exit $rc; fi
Areli Fuss46315432018-02-11 12:33:52 +020015while true; do sleep 30; done
Yuli Shlosberg0875ce02018-01-25 13:53:36 +020016
Michael Lando451a3402017-02-19 10:28:42 +020017