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