Open kb7791 opened 1 month ago
Hi @kb7791 what version of the inspec vmware transport do you have installed and have you installed our custom one or are you using the one from Chef?
The error about PowerCLI not being detected should not occur in the version we provide so if you are not using ours or a really old version please update it and try this again.
You can find ours and install instructions in the readme here: https://github.com/vmware/dod-compliance-and-automation/tree/master/vsphere/8.0/v2r1-stig/vsphere/inspec/vmware-vsphere-8.0-stig-baseline
Describe the bug
Ive been trying to test using this project to Audit and Remediate a test server with VMware ESXi, 8.0.2, 23305546.
When running /vsphere/8.0/v1r1-stig/vsphere/powercli/VMware_vSphere_8.0_STIG_ESXi_InSpec_Runner.ps1 with all the proper variables populated. It seems to not render the json, ckl files. Gets to the following lines....
cinc-auditor exec $inspecPath -t vmware:// --input vmhostName=$name --input-file $inputsFile --show-progress --reporter=json:$reportFile
Invoke-Command -ScriptBlock $command
The ps1 script is being ran by running a bash script locally.
Output being generated:
Expected behavior
Begin to generate the attestation files for testing purposed to expand using the remdiation.
Additional context
ubuntu 24.04 pwsh 7.4.3 powercli 13.3.0.24145081 cinc-auditor 4.56.58 @mitre/saf/1.2.34 linux-x64 node-v20.17.0