mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-27 07:44:14 +02:00
Chef support added
This commit is contained in:
parent
f3bd9ca9ad
commit
45114e6557
@ -45,6 +45,25 @@
|
|||||||
Display --indent 4 --text "Found: Cfengine (cfagent)" --result FOUND --color GREEN
|
Display --indent 4 --text "Found: Cfengine (cfagent)" --result FOUND --color GREEN
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
CHEF_LOCATIONS="/opt/chef/bin /opt/chef-server/sv /opt/chefdk/bin"
|
||||||
|
for I in ${CHEF_LOCATIONS}; do
|
||||||
|
if [ -d ${I} ]; then
|
||||||
|
if [ -f ${I}/chef-client ]; then
|
||||||
|
CHEFCLIENTBINARY="${I}/chef-client"
|
||||||
|
AUTOMATION_TOOL_FOUND=1
|
||||||
|
Display --indent 4 --text "Found: Chef client (chef-client)" --result FOUND --color GREEN
|
||||||
|
logtext "Result: found chef-client (chef client daemon) in ${I}"
|
||||||
|
fi
|
||||||
|
if [ -f ${I}/erchef ]; then
|
||||||
|
CHEFSERVERBINARY="${I}/erchef"
|
||||||
|
logtext "Result: Chef Server (erchef) is installed (${CHEFSERVERBINARY})"
|
||||||
|
AUTOMATION_TOOL_FOUND=1
|
||||||
|
Display --indent 4 --text "Found: Chef Server (erchef)" --result FOUND --color GREEN
|
||||||
|
logtext "Result: found erchef (chef server daemon) in ${I}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
# Puppet
|
# Puppet
|
||||||
if [ ! "${PUPPETBINARY}" = "" ]; then
|
if [ ! "${PUPPETBINARY}" = "" ]; then
|
||||||
logtext "Result: Puppet is installed (${PUPPETBINARY})"
|
logtext "Result: Puppet is installed (${PUPPETBINARY})"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user