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