Log status of Salt tools and add them to report

This commit is contained in:
mboelen 2014-12-05 12:41:33 +01:00
parent f0ae9d015c
commit a70e0558c8
1 changed files with 9 additions and 1 deletions

View File

@ -18,6 +18,8 @@
AUTOMATION_TOOL_RUNNING=""
BACKUP_AGENT_FOUND=0
PUPPET_MASTER_RUNNING=0
SALT_MASTER_RUNNING=0
SALT_MINION_RUNNING=0
#
#################################################################################
#
@ -61,6 +63,7 @@
if [ ! "${SALTMINIONBINARY}" = "" ]; then
logtext "Result: SaltStack (salt-minion) is installed (${SALTMINIONBINARY})"
AUTOMATION_TOOL_FOUND=1
SALT_MINION_RUNNING=1
Display --indent 4 --text "Found: SaltStack minion (salt-minion)" --result FOUND --color GREEN
fi
if [ ! "${SALTMASTERBINARY}" = "" ]; then
@ -95,7 +98,12 @@
#
#################################################################################
#
report "puppet_master=${PUPPET_MASTER_RUNNING}"
report "salt_master=${SALT_MASTER_RUNNING}"
report "salt_minion=${SALT_MINION_RUNNING}"
wait_for_keypress
#
#================================================================================
# Lynis - Copyright 2007-2014, Michael Boelen - www.rootkit.nl - The Netherlands
# Lynis - Copyright 2007-2014, Michael Boelen, CISOfy - https://cisofy.com