chef-utils 17.8.25 → 17.9.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/chef-utils/dist.rb +1 -1
- data/lib/chef-utils/dsl/virtualization.rb +22 -0
- data/lib/chef-utils/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 50daaaba0f5c8b5f6802acc85bc1866207d38185155b457ab320000c4a55b2bf
|
4
|
+
data.tar.gz: fcd8c5d1dc88fa0a710098165cdd20c7b445e76b72336db18fa490115d13acc5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6d24fbbe41376b57d7e93baa81766fb091d69446a3506bbdcfd36cbca8bc0ea7a95c9a565e43126cb83f3f8a9c13f6d5adb17281ff338db85fc52dd248f9d9d
|
7
|
+
data.tar.gz: d7165e5d5151f3727bac95ce41b9ca9d8af13bd7621f749b399fe460bfffbfffad81a0cab378e3107b49620550ccb3529d264ad0d8cd95a09a40783e365cb8c2
|
data/lib/chef-utils/dist.rb
CHANGED
@@ -79,7 +79,7 @@ module ChefUtils
|
|
79
79
|
WEBSITE = "https://chef.io"
|
80
80
|
|
81
81
|
# The downloads site
|
82
|
-
DOWNLOADS_URL = "
|
82
|
+
DOWNLOADS_URL = "chef.io/downloads"
|
83
83
|
|
84
84
|
# The legacy conf folder: C:/opscode/chef. Specifically the "opscode" part
|
85
85
|
# DIR_SUFFIX is appended to it in code where relevant
|
@@ -140,6 +140,28 @@ module ChefUtils
|
|
140
140
|
node.dig("virtualization", "system") == "vmware" && node.dig("virtualization", "role") == "host"
|
141
141
|
end
|
142
142
|
|
143
|
+
# Determine if the current node is virtualized on VMware Desktop (Fusion/Player/Workstation).
|
144
|
+
#
|
145
|
+
# @param [Chef::Node] node
|
146
|
+
# @since 17.9
|
147
|
+
#
|
148
|
+
# @return [Boolean]
|
149
|
+
#
|
150
|
+
def vmware_desktop?(node = __getnode)
|
151
|
+
node.dig("virtualization", "system") == "vmware" && node.dig("vmware", "host", "type") == "vmware_desktop"
|
152
|
+
end
|
153
|
+
|
154
|
+
# Determine if the current node is virtualized on VMware vSphere (ESX).
|
155
|
+
#
|
156
|
+
# @param [Chef::Node] node
|
157
|
+
# @since 17.9
|
158
|
+
#
|
159
|
+
# @return [Boolean]
|
160
|
+
#
|
161
|
+
def vmware_vsphere?(node = __getnode)
|
162
|
+
node.dig("virtualization", "system") == "vmware" && node.dig("vmware", "host", "type") == "vmware_vsphere"
|
163
|
+
end
|
164
|
+
|
143
165
|
# Determine if the current node is an openvz guest.
|
144
166
|
#
|
145
167
|
# @param [Chef::Node] node
|
data/lib/chef-utils/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chef-utils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 17.
|
4
|
+
version: 17.9.18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chef Software, Inc
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-12-
|
11
|
+
date: 2021-12-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|