chef-utils 15.8.23 → 15.12.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/chef-utils.rb +1 -1
- data/lib/chef-utils/dsl/architecture.rb +42 -10
- data/lib/chef-utils/dsl/cloud.rb +32 -23
- data/lib/chef-utils/dsl/introspection.rb +12 -5
- data/lib/chef-utils/dsl/os.rb +7 -5
- data/lib/chef-utils/dsl/path_sanity.rb +2 -1
- data/lib/chef-utils/dsl/platform.rb +57 -29
- data/lib/chef-utils/dsl/platform_family.rb +61 -35
- data/lib/chef-utils/dsl/platform_version.rb +1 -1
- data/lib/chef-utils/dsl/service.rb +11 -1
- data/lib/chef-utils/dsl/train_helpers.rb +2 -2
- data/lib/chef-utils/dsl/virtualization.rb +2 -2
- data/lib/chef-utils/dsl/which.rb +5 -5
- data/lib/chef-utils/dsl/windows.rb +14 -9
- data/lib/chef-utils/internal.rb +2 -2
- data/lib/chef-utils/version.rb +2 -2
- data/spec/unit/dsl/architecture_spec.rb +16 -5
- data/spec/unit/dsl/cloud_spec.rb +7 -1
- data/spec/unit/dsl/dsl_spec.rb +1 -1
- data/spec/unit/dsl/introspection_spec.rb +2 -2
- data/spec/unit/dsl/os_spec.rb +1 -1
- data/spec/unit/dsl/path_sanity_spec.rb +1 -1
- data/spec/unit/dsl/platform_family_spec.rb +1 -1
- data/spec/unit/dsl/platform_spec.rb +1 -1
- data/spec/unit/dsl/service_spec.rb +1 -1
- data/spec/unit/dsl/virtualization_spec.rb +1 -1
- data/spec/unit/dsl/which_spec.rb +1 -1
- data/spec/unit/dsl/windows_spec.rb +1 -1
- data/spec/unit/mash_spec.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: 81e15a504ddee5f21a0250e393016604fc3ac087d115419b735ef1e1c19e7398
|
4
|
+
data.tar.gz: 51c6a77d8e0cd0d32ec38cfa85480c12cb5232092bab07fecb64b2a5d4fac045
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e9c35ab5596a7dbeb9510a6747da5a4a1ed333bd07c99bfbcba73db6c00672e9a06cd04d7a84bed8a09b6dc26aac0bb2dfc6b29f827856269e3474921ee5a88
|
7
|
+
data.tar.gz: 2ef4f147c4e13bbfa051f09938bf0cea58ccd52fa2cfb011a710b96e515838a05c3fff3c00efeb7a09bf75c3cc42857b915b9e423a40ba3df60cf25c69bf08f6
|
data/lib/chef-utils.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
#
|
2
|
-
# Copyright:: Copyright
|
2
|
+
# Copyright:: Copyright (c) Chef Software Inc.
|
3
3
|
# License:: Apache License, Version 2.0
|
4
4
|
#
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -22,7 +22,9 @@ module ChefUtils
|
|
22
22
|
module Architecture
|
23
23
|
include Internal
|
24
24
|
|
25
|
-
# Determine if the current architecture is 64-bit
|
25
|
+
# Determine if the current architecture is 64-bit.
|
26
|
+
#
|
27
|
+
# @since 15.5
|
26
28
|
#
|
27
29
|
# @return [Boolean]
|
28
30
|
#
|
@@ -31,7 +33,9 @@ module ChefUtils
|
|
31
33
|
.include?(node["kernel"]["machine"])
|
32
34
|
end
|
33
35
|
|
34
|
-
# Determine if the current architecture is 32-bit
|
36
|
+
# Determine if the current architecture is 32-bit.
|
37
|
+
#
|
38
|
+
# @since 15.5
|
35
39
|
#
|
36
40
|
# @return [Boolean]
|
37
41
|
#
|
@@ -39,7 +43,9 @@ module ChefUtils
|
|
39
43
|
!_64_bit?(node)
|
40
44
|
end
|
41
45
|
|
42
|
-
# Determine if the current architecture is i386
|
46
|
+
# Determine if the current architecture is i386.
|
47
|
+
#
|
48
|
+
# @since 15.5
|
43
49
|
#
|
44
50
|
# @return [Boolean]
|
45
51
|
#
|
@@ -49,6 +55,8 @@ module ChefUtils
|
|
49
55
|
|
50
56
|
# Determine if the current architecture is Intel.
|
51
57
|
#
|
58
|
+
# @since 15.5
|
59
|
+
#
|
52
60
|
# @return [Boolean]
|
53
61
|
#
|
54
62
|
def intel?(node = __getnode)
|
@@ -57,13 +65,17 @@ module ChefUtils
|
|
57
65
|
|
58
66
|
# Determine if the current architecture is SPARC.
|
59
67
|
#
|
68
|
+
# @since 15.5
|
69
|
+
#
|
60
70
|
# @return [Boolean]
|
61
71
|
#
|
62
72
|
def sparc?(node = __getnode)
|
63
73
|
%w{sun4u sun4v}.include?(node["kernel"]["machine"])
|
64
74
|
end
|
65
75
|
|
66
|
-
# Determine if the current architecture is PowerPC 64bit Big Endian
|
76
|
+
# Determine if the current architecture is PowerPC 64bit Big Endian.
|
77
|
+
#
|
78
|
+
# @since 15.5
|
67
79
|
#
|
68
80
|
# @return [Boolean]
|
69
81
|
#
|
@@ -71,7 +83,9 @@ module ChefUtils
|
|
71
83
|
%w{ppc64}.include?(node["kernel"]["machine"])
|
72
84
|
end
|
73
85
|
|
74
|
-
# Determine if the current architecture is PowerPC 64bit Little Endian
|
86
|
+
# Determine if the current architecture is PowerPC 64bit Little Endian.
|
87
|
+
#
|
88
|
+
# @since 15.5
|
75
89
|
#
|
76
90
|
# @return [Boolean]
|
77
91
|
#
|
@@ -81,21 +95,37 @@ module ChefUtils
|
|
81
95
|
|
82
96
|
# Determine if the current architecture is PowerPC.
|
83
97
|
#
|
98
|
+
# @since 15.5
|
99
|
+
#
|
84
100
|
# @return [Boolean]
|
85
101
|
#
|
86
102
|
def powerpc?(node = __getnode)
|
87
103
|
%w{powerpc}.include?(node["kernel"]["machine"])
|
88
104
|
end
|
89
105
|
|
90
|
-
# Determine if the current architecture is
|
106
|
+
# Determine if the current architecture is arm
|
107
|
+
#
|
108
|
+
# @since 15.10
|
109
|
+
#
|
110
|
+
# @return [Boolean]
|
111
|
+
#
|
112
|
+
def arm?(node = __getnode)
|
113
|
+
%w{armv6l armv7l armhf aarch64 arm64 arch64}.include?(node["kernel"]["machine"])
|
114
|
+
end
|
115
|
+
|
116
|
+
# Determine if the current architecture is 32-bit ARM hard float.
|
117
|
+
#
|
118
|
+
# @since 15.5
|
91
119
|
#
|
92
120
|
# @return [Boolean]
|
93
121
|
#
|
94
122
|
def armhf?(node = __getnode)
|
95
|
-
%w{armhf}.include?(node["kernel"]["machine"])
|
123
|
+
%w{armv6l armv7l armhf}.include?(node["kernel"]["machine"])
|
96
124
|
end
|
97
125
|
|
98
|
-
# Determine if the current architecture is s390x
|
126
|
+
# Determine if the current architecture is s390x.
|
127
|
+
#
|
128
|
+
# @since 15.5
|
99
129
|
#
|
100
130
|
# @return [Boolean]
|
101
131
|
#
|
@@ -103,7 +133,9 @@ module ChefUtils
|
|
103
133
|
%w{s390x}.include?(node["kernel"]["machine"])
|
104
134
|
end
|
105
135
|
|
106
|
-
# Determine if the current architecture is s390
|
136
|
+
# Determine if the current architecture is s390.
|
137
|
+
#
|
138
|
+
# @since 15.5
|
107
139
|
#
|
108
140
|
# @return [Boolean]
|
109
141
|
#
|
data/lib/chef-utils/dsl/cloud.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
#
|
2
|
-
# Copyright:: Copyright
|
2
|
+
# Copyright:: Copyright (c) Chef Software Inc.
|
3
3
|
# License:: Apache License, Version 2.0
|
4
4
|
#
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -24,17 +24,20 @@ module ChefUtils
|
|
24
24
|
|
25
25
|
# Determine if the current node is "in the cloud".
|
26
26
|
#
|
27
|
-
# @param [Chef::Node] node
|
27
|
+
# @param [Chef::Node] node the node to check
|
28
|
+
# @since 15.8
|
28
29
|
#
|
29
30
|
# @return [Boolean]
|
30
31
|
#
|
31
32
|
def cloud?(node = __getnode)
|
32
|
-
|
33
|
+
# cloud is always present, but nil if not on a cloud
|
34
|
+
!node["cloud"].nil?
|
33
35
|
end
|
34
36
|
|
35
|
-
# Return true if the current current node is in EC2
|
37
|
+
# Return true if the current current node is in EC2.
|
36
38
|
#
|
37
|
-
# @param [Chef::Node] node
|
39
|
+
# @param [Chef::Node] node the node to check
|
40
|
+
# @since 15.8
|
38
41
|
#
|
39
42
|
# @return [Boolean]
|
40
43
|
#
|
@@ -42,9 +45,10 @@ module ChefUtils
|
|
42
45
|
node.key?("ec2")
|
43
46
|
end
|
44
47
|
|
45
|
-
# Return true if the current current node is in GCE
|
48
|
+
# Return true if the current current node is in GCE.
|
46
49
|
#
|
47
|
-
# @param [Chef::Node] node
|
50
|
+
# @param [Chef::Node] node the node to check
|
51
|
+
# @since 15.8
|
48
52
|
#
|
49
53
|
# @return [Boolean]
|
50
54
|
#
|
@@ -52,9 +56,10 @@ module ChefUtils
|
|
52
56
|
node.key?("gce")
|
53
57
|
end
|
54
58
|
|
55
|
-
# Return true if the current current node is in Rackspace
|
59
|
+
# Return true if the current current node is in Rackspace.
|
56
60
|
#
|
57
|
-
# @param [Chef::Node] node
|
61
|
+
# @param [Chef::Node] node the node to check
|
62
|
+
# @since 15.8
|
58
63
|
#
|
59
64
|
# @return [Boolean]
|
60
65
|
#
|
@@ -62,9 +67,10 @@ module ChefUtils
|
|
62
67
|
node.key?("rackspace")
|
63
68
|
end
|
64
69
|
|
65
|
-
# Return true if the current current node is in Eucalyptus
|
70
|
+
# Return true if the current current node is in Eucalyptus.
|
66
71
|
#
|
67
|
-
# @param [Chef::Node] node
|
72
|
+
# @param [Chef::Node] node the node to check
|
73
|
+
# @since 15.8
|
68
74
|
#
|
69
75
|
# @return [Boolean]
|
70
76
|
#
|
@@ -74,9 +80,10 @@ module ChefUtils
|
|
74
80
|
# chef-sugar backcompat method
|
75
81
|
alias_method :euca?, :eucalyptus?
|
76
82
|
|
77
|
-
# Return true if the current current node is in Linode
|
83
|
+
# Return true if the current current node is in Linode.
|
78
84
|
#
|
79
|
-
# @param [Chef::Node] node
|
85
|
+
# @param [Chef::Node] node the node to check
|
86
|
+
# @since 15.8
|
80
87
|
#
|
81
88
|
# @return [Boolean]
|
82
89
|
#
|
@@ -84,9 +91,10 @@ module ChefUtils
|
|
84
91
|
node.key?("linode")
|
85
92
|
end
|
86
93
|
|
87
|
-
# Return true if the current current node is in
|
94
|
+
# Return true if the current current node is in OpenStack.
|
88
95
|
#
|
89
|
-
# @param [Chef::Node] node
|
96
|
+
# @param [Chef::Node] node the node to check
|
97
|
+
# @since 15.8
|
90
98
|
#
|
91
99
|
# @return [Boolean]
|
92
100
|
#
|
@@ -94,9 +102,10 @@ module ChefUtils
|
|
94
102
|
node.key?("openstack")
|
95
103
|
end
|
96
104
|
|
97
|
-
# Return true if the current current node is in Azure
|
105
|
+
# Return true if the current current node is in Azure.
|
98
106
|
#
|
99
|
-
# @param [Chef::Node] node
|
107
|
+
# @param [Chef::Node] node the node to check
|
108
|
+
# @since 15.8
|
100
109
|
#
|
101
110
|
# @return [Boolean]
|
102
111
|
#
|
@@ -104,10 +113,10 @@ module ChefUtils
|
|
104
113
|
node.key?("azure")
|
105
114
|
end
|
106
115
|
|
107
|
-
# Return true if the current current node is in DigitalOcean
|
116
|
+
# Return true if the current current node is in DigitalOcean.
|
108
117
|
#
|
109
|
-
# @param [Chef::Node] node
|
110
|
-
#
|
118
|
+
# @param [Chef::Node] node the node to check
|
119
|
+
# @since 15.8
|
111
120
|
#
|
112
121
|
# @return [Boolean]
|
113
122
|
#
|
@@ -117,10 +126,10 @@ module ChefUtils
|
|
117
126
|
# chef-sugar backcompat method
|
118
127
|
alias_method :digitalocean?, :digital_ocean?
|
119
128
|
|
120
|
-
# Return true if the current current node is in SoftLayer
|
129
|
+
# Return true if the current current node is in SoftLayer.
|
121
130
|
#
|
122
|
-
# @param [Chef::Node] node
|
123
|
-
#
|
131
|
+
# @param [Chef::Node] node the node to check
|
132
|
+
# @since 15.8
|
124
133
|
#
|
125
134
|
# @return [Boolean]
|
126
135
|
#
|
@@ -1,5 +1,5 @@
|
|
1
1
|
#
|
2
|
-
# Copyright:: Copyright
|
2
|
+
# Copyright:: Copyright (c) Chef Software Inc.
|
3
3
|
# License:: Apache License, Version 2.0
|
4
4
|
#
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -30,7 +30,8 @@ module ChefUtils
|
|
30
30
|
|
31
31
|
# Determine if the node is a docker container.
|
32
32
|
#
|
33
|
-
# @param [Chef::Node] node
|
33
|
+
# @param [Chef::Node] node the node to check
|
34
|
+
# @since 12.11
|
34
35
|
#
|
35
36
|
# @return [Boolean]
|
36
37
|
#
|
@@ -42,7 +43,8 @@ module ChefUtils
|
|
42
43
|
|
43
44
|
# Determine if the node uses the systemd init system.
|
44
45
|
#
|
45
|
-
# @param [Chef::Node] node
|
46
|
+
# @param [Chef::Node] node the node to check
|
47
|
+
# @since 15.5
|
46
48
|
#
|
47
49
|
# @return [Boolean]
|
48
50
|
#
|
@@ -52,7 +54,8 @@ module ChefUtils
|
|
52
54
|
|
53
55
|
# Determine if the node is running in Test Kitchen.
|
54
56
|
#
|
55
|
-
# @param [Chef::Node] node
|
57
|
+
# @param [Chef::Node] node the node to check
|
58
|
+
# @since 15.5
|
56
59
|
#
|
57
60
|
# @return [Boolean]
|
58
61
|
#
|
@@ -62,7 +65,8 @@ module ChefUtils
|
|
62
65
|
|
63
66
|
# Determine if the node is running in a CI system that sets the CI env var.
|
64
67
|
#
|
65
|
-
# @param [Chef::Node] node
|
68
|
+
# @param [Chef::Node] node the node to check
|
69
|
+
# @since 15.5
|
66
70
|
#
|
67
71
|
# @return [Boolean]
|
68
72
|
#
|
@@ -73,6 +77,7 @@ module ChefUtils
|
|
73
77
|
# Determine if the a systemd service unit is present on the system.
|
74
78
|
#
|
75
79
|
# @param [String] svc_name
|
80
|
+
# @since 15.5
|
76
81
|
#
|
77
82
|
# @return [Boolean]
|
78
83
|
#
|
@@ -87,6 +92,7 @@ module ChefUtils
|
|
87
92
|
# Determine if the a systemd unit of any type is present on the system.
|
88
93
|
#
|
89
94
|
# @param [String] svc_name
|
95
|
+
# @since 15.5
|
90
96
|
#
|
91
97
|
# @return [Boolean]
|
92
98
|
#
|
@@ -100,6 +106,7 @@ module ChefUtils
|
|
100
106
|
# Determine if the current node includes the given recipe name.
|
101
107
|
#
|
102
108
|
# @param [String] recipe_name
|
109
|
+
# @since 15.8
|
103
110
|
#
|
104
111
|
# @return [Boolean]
|
105
112
|
#
|
data/lib/chef-utils/dsl/os.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
#
|
2
|
-
# Copyright:: Copyright
|
2
|
+
# Copyright:: Copyright (c) Chef Software Inc.
|
3
3
|
# License:: Apache License, Version 2.0
|
4
4
|
#
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -29,9 +29,10 @@ module ChefUtils
|
|
29
29
|
# only the platform helper should be added.
|
30
30
|
#
|
31
31
|
|
32
|
-
# Determine if the current node is
|
32
|
+
# Determine if the current node is Linux.
|
33
33
|
#
|
34
|
-
# @param [Chef::Node] node
|
34
|
+
# @param [Chef::Node] node the node to check
|
35
|
+
# @since 15.5
|
35
36
|
#
|
36
37
|
# @return [Boolean]
|
37
38
|
#
|
@@ -39,9 +40,10 @@ module ChefUtils
|
|
39
40
|
node["os"] == "linux"
|
40
41
|
end
|
41
42
|
|
42
|
-
# Determine if the current node is
|
43
|
+
# Determine if the current node is Darwin.
|
43
44
|
#
|
44
|
-
# @param [Chef::Node] node
|
45
|
+
# @param [Chef::Node] node the node to check
|
46
|
+
# @since 15.5
|
45
47
|
#
|
46
48
|
# @return [Boolean]
|
47
49
|
#
|
@@ -1,5 +1,5 @@
|
|
1
1
|
#
|
2
|
-
# Copyright:: Copyright
|
2
|
+
# Copyright:: Copyright (c) Chef Software Inc.
|
3
3
|
# License:: Apache License, Version 2.0
|
4
4
|
#
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -23,6 +23,7 @@ module ChefUtils
|
|
23
23
|
module PathSanity
|
24
24
|
include Internal
|
25
25
|
|
26
|
+
# @since 15.5
|
26
27
|
def sanitized_path(env = nil)
|
27
28
|
env_path = env ? env["PATH"] : __env_path
|
28
29
|
env_path = "" if env_path.nil?
|
@@ -1,5 +1,5 @@
|
|
1
1
|
#
|
2
|
-
# Copyright:: Copyright
|
2
|
+
# Copyright:: Copyright (c) Chef Software Inc.
|
3
3
|
# License:: Apache License, Version 2.0
|
4
4
|
#
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -29,7 +29,8 @@ module ChefUtils
|
|
29
29
|
|
30
30
|
# Determine if the current node is linux mint.
|
31
31
|
#
|
32
|
-
# @param [Chef::Node] node
|
32
|
+
# @param [Chef::Node] node the node to check
|
33
|
+
# @since 15.5
|
33
34
|
#
|
34
35
|
# @return [Boolean]
|
35
36
|
#
|
@@ -45,7 +46,8 @@ module ChefUtils
|
|
45
46
|
|
46
47
|
# Determine if the current node is Ubuntu.
|
47
48
|
#
|
48
|
-
# @param [Chef::Node] node
|
49
|
+
# @param [Chef::Node] node the node to check
|
50
|
+
# @since 15.5
|
49
51
|
#
|
50
52
|
# @return [Boolean]
|
51
53
|
#
|
@@ -57,7 +59,8 @@ module ChefUtils
|
|
57
59
|
|
58
60
|
# Determine if the current node is Raspbian.
|
59
61
|
#
|
60
|
-
# @param [Chef::Node] node
|
62
|
+
# @param [Chef::Node] node the node to check
|
63
|
+
# @since 15.5
|
61
64
|
#
|
62
65
|
# @return [Boolean]
|
63
66
|
#
|
@@ -69,7 +72,8 @@ module ChefUtils
|
|
69
72
|
|
70
73
|
# Determine if the current node is Debian.
|
71
74
|
#
|
72
|
-
# @param [Chef::Node] node
|
75
|
+
# @param [Chef::Node] node the node to check
|
76
|
+
# @since 15.5
|
73
77
|
#
|
74
78
|
# @return [Boolean]
|
75
79
|
#
|
@@ -79,7 +83,8 @@ module ChefUtils
|
|
79
83
|
|
80
84
|
# Determine if the current node is Amazon Linux.
|
81
85
|
#
|
82
|
-
# @param [Chef::Node] node
|
86
|
+
# @param [Chef::Node] node the node to check
|
87
|
+
# @since 15.5
|
83
88
|
#
|
84
89
|
# @return [Boolean]
|
85
90
|
#
|
@@ -89,7 +94,8 @@ module ChefUtils
|
|
89
94
|
|
90
95
|
# Determine if the current node is Red Hat Enterprise Linux.
|
91
96
|
#
|
92
|
-
# @param [Chef::Node] node
|
97
|
+
# @param [Chef::Node] node the node to check
|
98
|
+
# @since 15.5
|
93
99
|
#
|
94
100
|
# @return [Boolean]
|
95
101
|
#
|
@@ -105,7 +111,8 @@ module ChefUtils
|
|
105
111
|
|
106
112
|
# Determine if the current node is CentOS.
|
107
113
|
#
|
108
|
-
# @param [Chef::Node] node
|
114
|
+
# @param [Chef::Node] node the node to check
|
115
|
+
# @since 15.5
|
109
116
|
#
|
110
117
|
# @return [Boolean]
|
111
118
|
#
|
@@ -117,7 +124,8 @@ module ChefUtils
|
|
117
124
|
|
118
125
|
# Determine if the current node is Oracle Linux.
|
119
126
|
#
|
120
|
-
# @param [Chef::Node] node
|
127
|
+
# @param [Chef::Node] node the node to check
|
128
|
+
# @since 15.5
|
121
129
|
#
|
122
130
|
# @return [Boolean]
|
123
131
|
#
|
@@ -131,7 +139,8 @@ module ChefUtils
|
|
131
139
|
|
132
140
|
# Determine if the current node is Scientific Linux.
|
133
141
|
#
|
134
|
-
# @param [Chef::Node] node
|
142
|
+
# @param [Chef::Node] node the node to check
|
143
|
+
# @since 15.5
|
135
144
|
#
|
136
145
|
# @return [Boolean]
|
137
146
|
#
|
@@ -145,7 +154,8 @@ module ChefUtils
|
|
145
154
|
|
146
155
|
# Determine if the current node is ClearOS.
|
147
156
|
#
|
148
|
-
# @param [Chef::Node] node
|
157
|
+
# @param [Chef::Node] node the node to check
|
158
|
+
# @since 15.5
|
149
159
|
#
|
150
160
|
# @return [Boolean]
|
151
161
|
#
|
@@ -157,7 +167,8 @@ module ChefUtils
|
|
157
167
|
|
158
168
|
# Determine if the current node is Fedora.
|
159
169
|
#
|
160
|
-
# @param [Chef::Node] node
|
170
|
+
# @param [Chef::Node] node the node to check
|
171
|
+
# @since 15.5
|
161
172
|
#
|
162
173
|
# @return [Boolean]
|
163
174
|
#
|
@@ -167,7 +178,8 @@ module ChefUtils
|
|
167
178
|
|
168
179
|
# Determine if the current node is Arch Linux
|
169
180
|
#
|
170
|
-
# @param [Chef::Node] node
|
181
|
+
# @param [Chef::Node] node the node to check
|
182
|
+
# @since 15.5
|
171
183
|
#
|
172
184
|
# @return [Boolean]
|
173
185
|
#
|
@@ -177,7 +189,8 @@ module ChefUtils
|
|
177
189
|
|
178
190
|
# Determine if the current node is Solaris2.
|
179
191
|
#
|
180
|
-
# @param [Chef::Node] node
|
192
|
+
# @param [Chef::Node] node the node to check
|
193
|
+
# @since 15.5
|
181
194
|
#
|
182
195
|
# @return [Boolean]
|
183
196
|
#
|
@@ -187,7 +200,8 @@ module ChefUtils
|
|
187
200
|
|
188
201
|
# Determine if the current node is SmartOS.
|
189
202
|
#
|
190
|
-
# @param [Chef::Node] node
|
203
|
+
# @param [Chef::Node] node the node to check
|
204
|
+
# @since 15.5
|
191
205
|
#
|
192
206
|
# @return [Boolean]
|
193
207
|
#
|
@@ -197,7 +211,8 @@ module ChefUtils
|
|
197
211
|
|
198
212
|
# Determine if the current node is OmniOS.
|
199
213
|
#
|
200
|
-
# @param [Chef::Node] node
|
214
|
+
# @param [Chef::Node] node the node to check
|
215
|
+
# @since 15.5
|
201
216
|
#
|
202
217
|
# @return [Boolean]
|
203
218
|
#
|
@@ -209,7 +224,8 @@ module ChefUtils
|
|
209
224
|
|
210
225
|
# Determine if the current node is OpenIndiana.
|
211
226
|
#
|
212
|
-
# @param [Chef::Node] node
|
227
|
+
# @param [Chef::Node] node the node to check
|
228
|
+
# @since 15.5
|
213
229
|
#
|
214
230
|
# @return [Boolean]
|
215
231
|
#
|
@@ -221,7 +237,8 @@ module ChefUtils
|
|
221
237
|
|
222
238
|
# Determine if the current node is Nexenta Core Platform aka Nexenta OS.
|
223
239
|
#
|
224
|
-
# @param [Chef::Node] node
|
240
|
+
# @param [Chef::Node] node the node to check
|
241
|
+
# @since 15.5
|
225
242
|
#
|
226
243
|
# @return [Boolean]
|
227
244
|
#
|
@@ -233,7 +250,8 @@ module ChefUtils
|
|
233
250
|
|
234
251
|
# Determine if the current node is AIX.
|
235
252
|
#
|
236
|
-
# @param [Chef::Node] node
|
253
|
+
# @param [Chef::Node] node the node to check
|
254
|
+
# @since 15.5
|
237
255
|
#
|
238
256
|
# @return [Boolean]
|
239
257
|
#
|
@@ -243,7 +261,8 @@ module ChefUtils
|
|
243
261
|
|
244
262
|
# Determine if the current node is FreeBSD.
|
245
263
|
#
|
246
|
-
# @param [Chef::Node] node
|
264
|
+
# @param [Chef::Node] node the node to check
|
265
|
+
# @since 15.5
|
247
266
|
#
|
248
267
|
# @return [Boolean]
|
249
268
|
#
|
@@ -253,7 +272,8 @@ module ChefUtils
|
|
253
272
|
|
254
273
|
# Determine if the current node is OpenBSD.
|
255
274
|
#
|
256
|
-
# @param [Chef::Node] node
|
275
|
+
# @param [Chef::Node] node the node to check
|
276
|
+
# @since 15.5
|
257
277
|
#
|
258
278
|
# @return [Boolean]
|
259
279
|
#
|
@@ -263,7 +283,8 @@ module ChefUtils
|
|
263
283
|
|
264
284
|
# Determine if the current node is NetBSD.
|
265
285
|
#
|
266
|
-
# @param [Chef::Node] node
|
286
|
+
# @param [Chef::Node] node the node to check
|
287
|
+
# @since 15.5
|
267
288
|
#
|
268
289
|
# @return [Boolean]
|
269
290
|
#
|
@@ -273,7 +294,8 @@ module ChefUtils
|
|
273
294
|
|
274
295
|
# Determine if the current node is DragonFly BSD.
|
275
296
|
#
|
276
|
-
# @param [Chef::Node] node
|
297
|
+
# @param [Chef::Node] node the node to check
|
298
|
+
# @since 15.5
|
277
299
|
#
|
278
300
|
# @return [Boolean]
|
279
301
|
#
|
@@ -283,7 +305,8 @@ module ChefUtils
|
|
283
305
|
|
284
306
|
# Determine if the current node is macOS.
|
285
307
|
#
|
286
|
-
# @param [Chef::Node] node
|
308
|
+
# @param [Chef::Node] node the node to check
|
309
|
+
# @since 15.5
|
287
310
|
#
|
288
311
|
# @return [Boolean]
|
289
312
|
#
|
@@ -295,7 +318,8 @@ module ChefUtils
|
|
295
318
|
|
296
319
|
# Determine if the current node is Gentoo.
|
297
320
|
#
|
298
|
-
# @param [Chef::Node] node
|
321
|
+
# @param [Chef::Node] node the node to check
|
322
|
+
# @since 15.5
|
299
323
|
#
|
300
324
|
# @return [Boolean]
|
301
325
|
#
|
@@ -305,7 +329,8 @@ module ChefUtils
|
|
305
329
|
|
306
330
|
# Determine if the current node is Slackware.
|
307
331
|
#
|
308
|
-
# @param [Chef::Node] node
|
332
|
+
# @param [Chef::Node] node the node to check
|
333
|
+
# @since 15.5
|
309
334
|
#
|
310
335
|
# @return [Boolean]
|
311
336
|
#
|
@@ -315,7 +340,8 @@ module ChefUtils
|
|
315
340
|
|
316
341
|
# Determine if the current node is SuSE.
|
317
342
|
#
|
318
|
-
# @param [Chef::Node] node
|
343
|
+
# @param [Chef::Node] node the node to check
|
344
|
+
# @since 15.5
|
319
345
|
#
|
320
346
|
# @return [Boolean]
|
321
347
|
#
|
@@ -325,7 +351,8 @@ module ChefUtils
|
|
325
351
|
|
326
352
|
# Determine if the current node is OpenSUSE.
|
327
353
|
#
|
328
|
-
# @param [Chef::Node] node
|
354
|
+
# @param [Chef::Node] node the node to check
|
355
|
+
# @since 15.5
|
329
356
|
#
|
330
357
|
# @return [Boolean]
|
331
358
|
#
|
@@ -342,7 +369,8 @@ module ChefUtils
|
|
342
369
|
|
343
370
|
# Determine if the current node is Windows.
|
344
371
|
#
|
345
|
-
# @param [Chef::Node] node
|
372
|
+
# @param [Chef::Node] node the node to check
|
373
|
+
# @since 15.5
|
346
374
|
#
|
347
375
|
# @return [Boolean]
|
348
376
|
#
|