Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormboelen <michael@cisofy.com>2015-05-25 18:20:58 +0300
committermboelen <michael@cisofy.com>2015-05-25 18:20:58 +0300
commit45114e6557ede683308c0031c976921016bcb0c9 (patch)
tree3843c210c0881b84b660406f87a345913661c7ab /include/tests_tooling
parentf3bd9ca9ad4266eff8f4ad8d632fe07f8b30cffe (diff)
Chef support added
Diffstat (limited to 'include/tests_tooling')
-rw-r--r--include/tests_tooling19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/tests_tooling b/include/tests_tooling
index 6f8e6150..6d4b9917 100644
--- a/include/tests_tooling
+++ b/include/tests_tooling
@@ -45,6 +45,25 @@
Display --indent 4 --text "Found: Cfengine (cfagent)" --result FOUND --color GREEN
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
if [ ! "${PUPPETBINARY}" = "" ]; then
logtext "Result: Puppet is installed (${PUPPETBINARY})"