blob: 3769aa9b28c2f028c987df3647b717e33aac7e5b [file] [log] [blame]
Jeepyb Userdd14e0b2017-02-28 15:19:32 +00001#!/bin/bash -x
2exec > >(tee -i /tmp/"$(basename "$0" .sh)"_"$(date '+%Y-%m-%d_%H-%M-%S')".log) 2>&1
3
4# Install the StackLight backends
5salt -C 'I@elasticsearch:server' state.sls elasticsearch.server -b 1
6salt -C 'I@influxdb:server' state.sls influxdb -b 1
7salt -C 'I@kibana:server' state.sls kibana.server -b 1
8salt -C 'I@grafana:server' state.sls grafana.server -b 1
9salt -C 'I@nagios:server' state.sls nagios.server
10salt -C 'I@elasticsearch:client' state.sls elasticsearch.client.service
11salt -C 'I@kibana:client' state.sls kibana.client.service
12salt -C 'I@kibana:client or I@elasticsearch:client' --async service.restart salt-minion
13sleep 10
14salt -C 'I@elasticsearch:client' state.sls elasticsearch.client
15salt -C 'I@kibana:client' state.sls kibana.client