Allow tags and system-customer-name to be specified

This commit is contained in:
Michael Boelen 2017-06-22 10:15:39 +02:00
parent f4b6d8d401
commit f903b6f079
No known key found for this signature in database
GPG Key ID: 26141F77A09D7F04
2 changed files with 24 additions and 0 deletions

View File

@ -141,6 +141,20 @@ plugin=systemd
plugin=users
#################################################################################
#
# Lynis Enterprise options
#
#################################################################################
# Provide the name of the customer/client
system-customer-name=
# Provide tags (tags=db,production,ssn-1304)
tags=
#################################################################################
#
# Configuration (Old Style) - will be replaced in phases

View File

@ -315,6 +315,16 @@
FIND=$(echo "${VALUE}" | egrep "^(1|true|yes)") && SET_STRICT=1
;;
# The name of the customer/client that uses this system
system-customer-name)
if [ ! -z "${VALUE}" ]; then Report "system-customer-name=${VALUE}"; fi
;;
# Tags (tags=db,production,ssn-1304)
tags)
if [ ! -z "${VALUE}" ]; then Report "tags=${VALUE}"; fi
;;
# Define what kind of scan we are performing
test_scan_mode | test-scan-mode)
if [ "${VALUE}" = "light" ]; then SCAN_TEST_LIGHT="YES"; SCAN_TEST_MEDIUM="NO"; SCAN_TEST_HEAVY="NO"; fi