mirror of
https://github.com/CISOfy/lynis.git
synced 2025-04-08 17:15:25 +02:00
Add additional check for Puppet tool
This commit is contained in:
parent
8d5243c928
commit
b306ab891f
@ -101,15 +101,25 @@
|
||||
done
|
||||
|
||||
# Puppet
|
||||
if [ ! "${PUPPETBINARY}" = "" ]; then
|
||||
|
||||
# Check for Puppet installation provided by Puppetlabs package
|
||||
if [ -z "${PUPPETBINARY}" ]; then
|
||||
if [ -f ${ROOTDIR}opt/puppetlabs/puppet/bin/puppet ]; then
|
||||
PUPPETBINARY="${ROOTDIR}opt/puppetlabs/puppet/bin/puppet"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ ! -z "${PUPPETBINARY}" ]; then
|
||||
LogText "Result: Puppet is installed (${PUPPETBINARY})"
|
||||
AUTOMATION_TOOL_FOUND=1
|
||||
Report "automation_tool_running[]=puppet-agent"
|
||||
Display --indent 4 --text "Found: Puppet (agent)" --result "${STATUS_FOUND}" --color GREEN
|
||||
fi
|
||||
|
||||
IsRunning "puppet master"
|
||||
if [ ${RUNNING} -eq 1 ]; then
|
||||
LogText "Result: found puppet master"
|
||||
AUTOMATION_TOOL_FOUND=1
|
||||
PUPPET_MASTER_RUNNING=1
|
||||
Report "automation_tool_running[]=puppet-master"
|
||||
Display --indent 4 --text "Found: Puppet (master)" --result "${STATUS_FOUND}" --color GREEN
|
||||
|
Loading…
x
Reference in New Issue
Block a user