You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the Issue
When trying to execute the audit manually, it runs into an error and stops. Trying it via the sh file produces other, also flawed results.
Expected Behavior
It should run the audit accordingly.
Actual Behavior
After running the goss command from the README, I receive the error Error: template: test:86:33: executing "test" at <.Vars.machine_uuid>: map has no entry for key "machine_uuid"
Environment (please complete the following information):
branch being used: main
Ansible Version: N/A
Host Python Version: N/A
Ansible Server Python Version: N/A
Additional Details:
The text was updated successfully, but these errors were encountered:
Thank you for raising this issue. Can you please let us know how you are running this manually?
Are you running via the run_audit script (which contains this data) or running goss directly against the goss file?
root@linux02:/home/azureuser# goss --vars /home/azureuser/UBUNTU24-CIS-Audit/vars/CIS.yml -g /home/azureuser/UBUNTU24-CIS-Audit/goss.yml validate
Error: template: test:86:33: executing "test" at <.Vars.machine_uuid>: map has no entry for key "machine_uuid"
But running via script works. However I am not sure about the accuracy of the results.
Why is the count showing 702 when there are only about 380 odd policies in total on the CIS recommendations.
root@linux02:/opt# ./UBUNTU24-CIS-Audit/run_audit.sh
## Pre-Checks Start
OK - Audit binary /usr/local/bin/goss is available
OK - Goss is installed and version is ok (0.4.9 >= 0.4.4)
OK - /opt/UBUNTU24-CIS-Audit/goss.yml is available
## Pre-checks Successful
#############
Audit Started
#############
"summary": {
"failed-count": 107,
"skipped-count": 22,
"summary-line": "Count: 702, Failed: 107, Skipped: 22, Duration: 14.013s",
"test-count": 702,
Completed file can be found at /opt/audit_linux02-CIS-UBUNTU24_1729610744.json
Describe the Issue
When trying to execute the audit manually, it runs into an error and stops. Trying it via the sh file produces other, also flawed results.
Expected Behavior
It should run the audit accordingly.
Actual Behavior
After running the goss command from the README, I receive the error
Error: template: test:86:33: executing "test" at <.Vars.machine_uuid>: map has no entry for key "machine_uuid"
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: