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

View File

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