-
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
Windows 2008 isn't being detected. #346
Comments
@geerzo Windows detections was only solved within the latest 0.9.8 release, which will be released within the next days. Once it is released, you get this installed via |
Thanks @chris-rock. I'll give it a shot when it comes out. |
@geerzo We just pushed the latest version. We may used some powershell scripts that run on Win 2012 only. We plan to add more integration tests for Windows. Let us know if you run into any issues |
Still having problems. Here is my spec file
Here are the results
|
You are running this locally right? |
I'm running using test-kitchen...so I guess the answer is no. Looking at the VM spun up by kitchen, it doesn't even have the inspec gem on it at all. |
Got you. |
I don't have a publicly available one. But I used this packer repo to build mine. https://github.com/joefitzgerald/packer-windows FYI - Windows updates take up to 8 hours so that variable needs to be tweaked potentially. Maybe you can turn them off though. |
Thanks for sharing this. We are currently working on appveyor integration to make windows testing a lot easier for each PR. I apologize for the delay. |
@geerzo we improved the windows support a lot during the last release cycle, especially if InSpec is used locally on Windows. We started adding continuous Windows tests in appveyor for InSpec and Train to ensure better quality for Windows. Unfortunately we could not fix all issues for Windows 2008 this week, but we continue working on this topic during the coming week. |
@chris-rock Thanks for the update. Let me know what I can do to help. |
@geerzo Okay, I analyzed the problem and I found the root cause. Our version detection uses features that require at least Powershell 3. At this point of time I recommend to install the newer Windows Management Framework. Could you try that @geerzo in you vbox? Current situation:
|
@chris-rock It took a bit to get Powershell installed properly using test-kitchen but it appears as if things work much better now. |
@geerzo Thanks for trying out the solution. Could you share how you have done it. It may helps other until we improved Windows 2008 OS Detection |
I used this driver config in my kitchen.yml file
Then I created the Vagrant file to include the following
|
@geerzo Awesome, we are going to fix the version detection with inspec/train#70 |
Split out from #323
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?
puts os.debian?
puts os.suse?
puts os.bsd?
puts os.solaris?
puts os.linux?
puts os.unix?
puts os.windows?
Below is the gem list from running
chef gem list
. There are definitely outdated gems but I was hesitant to update them since they all come pre-packaged.The text was updated successfully, but these errors were encountered: