chef-utils 17.7.22 → 17.9.26
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 +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f47014045f587dc8068916558ed55aadbb57d0fffaeee8d28b68f05339aba0ec
|
4
|
+
data.tar.gz: 7570547a79fe336b7b6abb992cbe0a1c0c11af19202256e750eef0c3479e4610
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa28f826fd0f54abdbb3e81c51891382cff05c9c5b9d71507de470d331bf1bf386adb6464f796254466a97e115d69bed5b37d87ec24bdb45a13aaa576d74f942
|
7
|
+
data.tar.gz: fd7939a8fae9ea08d5e0e38b667260edc93bc912d428d18f609f555e26fb9a48a1625b367e61f0ad9751816ffb059dc95a652781d8ff36233575acfb6db06583
|
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.26
|
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:
|
11
|
+
date: 2022-01-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|
@@ -94,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
94
94
|
- !ruby/object:Gem::Version
|
95
95
|
version: '0'
|
96
96
|
requirements: []
|
97
|
-
rubygems_version: 3.2.
|
97
|
+
rubygems_version: 3.2.32
|
98
98
|
signing_key:
|
99
99
|
specification_version: 4
|
100
100
|
summary: Basic utility functions for Core Chef Infra development
|