-
Notifications
You must be signed in to change notification settings - Fork 683
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
not working under windows, installed from gem #323
Comments
Same situation after trying ruby 2.2.3 - both: 32-bit and 64-bit version |
I have a similar problem on Windows through Test Kitchen via the Chef DK 0.10.0. The os object doesn't seem to be functioning properly. The following commands all return false. puts os.redhat? |
@graf0 Thanks you very much for your feedback. As you figured out, InSpec does not work properly with local mode on Windows. Currently InSpec only works well if used via WinRM. The problem is located in the os-family detection in https://github.com/chef/train/blob/master/lib/train/extras/os_common.rb#L90. I started working on a fix and got this working on Windows 10. We run some extra tests with Windows 7. We expect to release a fix for InSpec by end of this week. In the meantime you can use InSpec via WinRM only. |
@geerzo I assume this is a different issue, since the detection for Windows is working via WinRM. Which gem versions of |
The PR inspec/train#43 fixes this issues mentioned by @graf0 . To explain the issues: |
Train 0.9.3 has been released and fixes this. |
I don't know, and couldn't find how to make it work :(
windows version 7 x64, ruby 2.0.0p645 32-bit, inspec gem 0.9.6
The text was updated successfully, but these errors were encountered: