From 1223e23ee9420cb671dd63525f090f984d340183 Mon Sep 17 00:00:00 2001 From: Mark Bolwell Date: Tue, 3 May 2022 10:24:03 +0100 Subject: [PATCH] updated with content location option Signed-off-by: Mark Bolwell --- run_audit.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/run_audit.sh b/run_audit.sh index e69523c..0fa9c88 100755 --- a/run_audit.sh +++ b/run_audit.sh @@ -8,6 +8,7 @@ # 17 Dec 2021 - Added system_type variable - default Server will change to workstations with -w switch # 02 Mar 2022 - Updated benchmark variable naming # 06 Apr 2022 - Added format option in output inline with goss options e.g. json documentation this is for fault finding +# 03 May 2022 - update for audit variables improvement added by @pavloos - https://github.com/ansible-lockdown/RHEL8-CIS-Audit/pull/29 #!/bin/bash @@ -17,9 +18,10 @@ # lower case variables are discovered or built from other variables # Goss host Variables -AUDIT_BIN=/usr/local/bin/goss # location of the goss executable -AUDIT_FILE=goss.yml # the default goss file used by the audit provided by the audit configuration -AUDIT_CONTENT_LOCATION=/var/tmp # Location of the audit configuration file as available to the OS +AUDIT_BIN="${AUDIT_BIN:-/usr/local/bin/goss}" # location of the goss executable +AUDIT_FILE="${AUDIT_FILE:-goss.yml}" # the default goss file used by the audit provided by the audit configuration +AUDIT_CONTENT_LOCATION="${AUDIT_CONTENT_LOCATION:-/var/tmp}" # Location of the audit configuration file as available to the OS + # Goss benchmark variables (these should not need changing unless new release)