Comments (6)
Is this information not in the ohai Virtualization plugin? You should be able to look for items in the node['virtualization']['systems'] mash that are of the type 'guest'. If parallels isn't properly detecting there please let me know over in the Ohai repo and I'll get that fixed up.
from macos-cookbook.
If something is missing just ping me on slack. I'm around. This cookbook is getting great and super important to us.
from macos-cookbook.
We didn't know it existed - thanks! We'll aim to get this resolved in next week's release.
from macos-cookbook.
Thanks, @clburlison for the issue submission and @tas50 for that tip.
@jazaval This should do it:
node['virtualization']['systems'].values.include? 'guest'
from macos-cookbook.
I honestly didn't know the ohai virtualization code was designed to detect VM guests. Looking through the current ohai virtualization code Parallels is the only hypervisor that supports guest detection. So I opened chef/ohai#1163
For what it is worth using the following block works right now with the currently shipping chef code:
Chef.node['cpu']['flags'].include? 'vmm'
from macos-cookbook.
This is resolved via #73 - @clburlison if node['virtualization']['systems']
returns an empty hash, we assume are not running on bare metal.
from macos-cookbook.
Related Issues (20)
- Maintain Users
- Unable to install Xcode in macOS 10.14.5 HOT 2
- Command Line Tools install fails for Catalina HOT 1
- Xcode install fails on Chef 15
- Remove `command_line_tools` resource HOT 1
- [BUG] AutoUpdate key does not exists on MacOS Mojave HOT 6
- [BUG] `plist` resource does not properly work with `dict` types HOT 2
- Can't configure xcode resource to only install GM version HOT 6
- command_line_tools library doesn't support latest Big Sur betas
- [BUG] HOT 4
- 2MFA bypass HOT 3
- [BUG] xcode resource attempts to auth with Apple even if the on-disk Xcode is up-to-date
- [BUG] defaults resource passes array values incorrectly to /usr/bin/defaults
- [BUG] defaults resource does not handle whitespace in strings HOT 1
- [BUG] defaults resource doesn't handle dictionaries correctly
- [BUG] Latest version in the supermarket is 3.4.2 HOT 2
- [BUG] Certificate installation fails (due to wrong order of parameters?)
- [FEATURE] keychain resource should be able to update an existing keychain's password
- [FEATURE] macos_user should be able to update passwords and be more atomic HOT 1
- This repo is missing important files
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from macos-cookbook.