blob: b9e5fd6edf9bf4dde674c7976f181dd12daee563 [file] [log] [blame]
Michael Lando451a3402017-02-19 10:28:42 +02001#!/bin/sh
2
3export CHEFNAME=${ENVNAME}
4cd /root/chef-solo
5echo "normal['HOST_IP'] = \"${HOST_IP}\"" > /root/chef-solo/cookbooks/sdc-elasticsearch/attributes/default.rb
6
7sed -i '/^exec/iES_JAVA_OPTS=\"-Xms1024M -Xmx1024M\"' /docker-entrypoint.sh
8
9chef-solo -c solo.rb -E ${CHEFNAME}
10
11/docker-entrypoint.sh elasticsearch &
12
13cd /root/chef-solo
14chef-solo -c solo.rb -o recipe[sdc-elasticsearch::ES_3_create_audit_template]
15chef-solo -c solo.rb -o recipe[sdc-elasticsearch::ES_4_create_resources_template]
16chef-solo -c solo.rb -o recipe[sdc-elasticsearch::ES_5_create_monitoring_template]
17chef-solo -c solo.rb -o recipe[sdc-elasticsearch::ES_6_create_kibana_dashboard_virtualization]
18
19while true; do sleep 2; done