Closed potatoqualitee closed 2 years ago
Ths is fixed here https://github.com/inspec/train/pull/717
Thanks, @Vasu1105 -- any chance this train can be added to the installers on https://www.chef.io/downloads/tools/inspec
For anyone who doesn't know anything about Ruby, like me, this will get you updated nicely on Windows.
$ENV:RUBYOPT = 'rubygems'
$ENV:RUBY_DIR = 'C:\opscode\inspec\embedded'
$ENV:GEM_PATH = 'C:\opscode\inspec\embedded\lib\ruby\gems\2.7.0\gems'
$ENV:PATH = 'C:\opscode\inspec\embedded\bin;' + $ENV:PATH
gem update train
gem install inspec_tools
Version:
I installed inspec yesterday from the website and --version shows
4.52.9
Environment:
Windows 11, PowerShell 5.1
Scenario:
I'm trying to use inspec as described in VMware's dod-compliance-and-automation repository
Steps to Reproduce:
Install inspec on Windows 11, clone the dod compliance repo, move the directories to the appropriate paths. Set appropriate environmental variables as described in their repo.
Run
C:\opscode\inspec\bin\inspec.bat exec C:\Inspec\Profiles\vmware-vsphere-vcenter-7.0-stig-baseline -t vmware://
from PowerShell 5.1 on Windows 11, as described in the docs.Expected Result:
No exceptions
Actual Result:
I filed an issue here https://github.com/vmware/dod-compliance-and-automation/issues/74 but they suggested it's an issue with train.
Thanks, Chrissy