Skip to content

Commit

Permalink
Allow tags and system-customer-name to be specified
Browse files Browse the repository at this point in the history
  • Loading branch information
mboelen committed Jun 22, 2017
1 parent f4b6d8d commit f903b6f
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
14 changes: 14 additions & 0 deletions default.prf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 10 additions & 0 deletions include/profiles
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f903b6f

Please sign in to comment.