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 | CWD="$(dirname "$(readlink -f "$0")")" |
| 5 | |
| 6 | # Import common functions |
Simon Pasquier | d3a0b91 | 2017-05-02 15:32:20 +0200 | [diff] [blame] | 7 | COMMONS="$CWD"/common_functions.sh |
Jeepyb User | dd14e0b | 2017-02-28 15:19:32 +0000 | [diff] [blame] | 8 | if [ ! -f "$COMMONS" ]; then |
| 9 | echo "File $COMMONS does not exist" |
| 10 | exit 1 |
| 11 | fi |
| 12 | . "$COMMONS" |
| 13 | |
| 14 | # Verify that Salt master is correctly bootstrapped |
| 15 | salt-key |
| 16 | reclass-salt --top |
| 17 | |
| 18 | # Verify that Salt minions are responding and have the same version as the master |
| 19 | salt-call --version |
| 20 | salt '*' test.version |