chef 14.4.56-universal-mingw32 → 14.5.27-universal-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +0 -1
- data/VERSION +1 -1
- data/lib/.DS_Store +0 -0
- data/lib/chef/.DS_Store +0 -0
- data/lib/chef/client.rb +1 -1
- data/lib/chef/cookbook_version.rb +2 -2
- data/lib/chef/mixin/powershell_out.rb +1 -1
- data/lib/chef/node_map.rb +4 -10
- data/lib/chef/provider/.DS_Store +0 -0
- data/lib/chef/provider/dsc_resource.rb +2 -2
- data/lib/chef/provider/dsc_script.rb +4 -4
- data/lib/chef/provider/package/powershell.rb +1 -1
- data/lib/chef/provider/powershell_script.rb +3 -3
- data/lib/chef/provider/script.rb +2 -2
- data/lib/chef/resource/apt_package.rb +1 -0
- data/lib/chef/resource/apt_repository.rb +1 -1
- data/lib/chef/resource/build_essential.rb +38 -38
- data/lib/chef/resource/chef_gem.rb +4 -1
- data/lib/chef/resource/chocolatey_package.rb +2 -1
- data/lib/chef/resource/directory.rb +6 -2
- data/lib/chef/resource/dmg_package.rb +1 -4
- data/lib/chef/resource/dnf_package.rb +20 -23
- data/lib/chef/resource/dpkg_package.rb +1 -3
- data/lib/chef/resource/dsc_resource.rb +2 -5
- data/lib/chef/resource/dsc_script.rb +1 -8
- data/lib/chef/resource/execute.rb +4 -1
- data/lib/chef/resource/gem_package.rb +17 -19
- data/lib/chef/resource/git.rb +4 -4
- data/lib/chef/resource/homebrew_cask.rb +2 -2
- data/lib/chef/resource/homebrew_tap.rb +3 -3
- data/lib/chef/resource/hostname.rb +4 -4
- data/lib/chef/resource/http_request.rb +1 -3
- data/lib/chef/resource/ifconfig.rb +1 -1
- data/lib/chef/resource/locale.rb +93 -0
- data/lib/chef/resource/macos_userdefaults.rb +2 -4
- data/lib/chef/resource/macosx_service.rb +2 -3
- data/lib/chef/resource/mount.rb +45 -18
- data/lib/chef/resource/msu_package.rb +10 -7
- data/lib/chef/resource/ohai.rb +2 -4
- data/lib/chef/resource/ohai_hint.rb +3 -3
- data/lib/chef/resource/openssl_dhparam.rb +5 -5
- data/lib/chef/resource/openssl_ec_private_key.rb +5 -5
- data/lib/chef/resource/openssl_ec_public_key.rb +5 -5
- data/lib/chef/resource/openssl_rsa_private_key.rb +6 -6
- data/lib/chef/resource/openssl_rsa_public_key.rb +7 -7
- data/lib/chef/resource/openssl_x509_certificate.rb +11 -11
- data/lib/chef/resource/openssl_x509_crl.rb +2 -2
- data/lib/chef/resource/openssl_x509_request.rb +7 -7
- data/lib/chef/resource/osx_profile.rb +13 -8
- data/lib/chef/resource/package.rb +26 -8
- data/lib/chef/resource/paludis_package.rb +3 -1
- data/lib/chef/resource/portage_package.rb +2 -1
- data/lib/chef/resource/powershell_package.rb +17 -9
- data/lib/chef/resource/powershell_package_source.rb +1 -1
- data/lib/chef/resource/reboot.rb +7 -2
- data/lib/chef/resource/rhsm_errata_level.rb +1 -3
- data/lib/chef/resource/route.rb +1 -1
- data/lib/chef/resource/scm.rb +42 -14
- data/lib/chef/resource/subversion.rb +7 -0
- data/lib/chef/resource/sudo.rb +7 -7
- data/lib/chef/resource/swap_file.rb +2 -2
- data/lib/chef/resource/sysctl.rb +1 -1
- data/lib/chef/resource/systemd_unit.rb +2 -1
- data/lib/chef/resource/windows_ad_join.rb +9 -4
- data/lib/chef/resource/windows_auto_run.rb +5 -5
- data/lib/chef/resource/windows_env.rb +1 -3
- data/lib/chef/resource/windows_feature_dism.rb +4 -5
- data/lib/chef/resource/windows_font.rb +3 -5
- data/lib/chef/resource/windows_package.rb +1 -2
- data/lib/chef/resource/windows_printer.rb +7 -9
- data/lib/chef/resource/windows_printer_port.rb +1 -1
- data/lib/chef/resource/windows_service.rb +26 -21
- data/lib/chef/resource/windows_shortcut.rb +4 -4
- data/lib/chef/resource/windows_task.rb +82 -36
- data/lib/chef/resource/windows_workgroup.rb +101 -0
- data/lib/chef/resource/yum_package.rb +30 -20
- data/lib/chef/resource/yum_repository.rb +134 -45
- data/lib/chef/resource/zypper_package.rb +8 -4
- data/lib/chef/resource/zypper_repository.rb +58 -20
- data/lib/chef/resource_inspector.rb +5 -3
- data/lib/chef/resources.rb +2 -0
- data/lib/chef/util/powershell/cmdlet.rb +1 -1
- data/lib/chef/version.rb +1 -1
- data/spec/functional/resource/dsc_resource_spec.rb +3 -3
- data/spec/functional/resource/powershell_script_spec.rb +2 -2
- data/spec/functional/win32/crypto_spec.rb +1 -1
- data/spec/unit/cookbook_version_file_specificity_spec.rb +20 -0
- data/spec/unit/node_map_spec.rb +3 -3
- data/spec/unit/platform/query_helpers_spec.rb +4 -4
- data/spec/unit/provider/dsc_resource_spec.rb +2 -2
- data/spec/unit/provider/dsc_script_spec.rb +1 -1
- data/spec/unit/resource/dsc_resource_spec.rb +1 -1
- data/spec/unit/resource/locale_spec.rb +60 -0
- data/spec/unit/resource/scm_spec.rb +0 -10
- data/spec/unit/resource/windows_workgroup_spec.rb +47 -0
- data/tasks/dependencies.rb +2 -22
- data/tasks/templates/prerelease.md.erb +2 -2
- data/tasks/templates/release.md.erb +1 -1
- metadata +8 -5
- data/tasks/cbgb.rb +0 -84
@@ -45,14 +45,14 @@ class Chef
|
|
45
45
|
description: "The desired Diffie-Hellmann generator.",
|
46
46
|
default: 2
|
47
47
|
|
48
|
-
property :owner,
|
49
|
-
description: "The owner
|
48
|
+
property :owner, String,
|
49
|
+
description: "The owner applied to all files created by the resource."
|
50
50
|
|
51
|
-
property :group,
|
52
|
-
description: "The group
|
51
|
+
property :group, String,
|
52
|
+
description: "The group ownership applied to all files created by the resource."
|
53
53
|
|
54
54
|
property :mode, [Integer, String],
|
55
|
-
description: "The permission mode
|
55
|
+
description: "The permission mode applied to all files created by the resource.",
|
56
56
|
default: "0640"
|
57
57
|
|
58
58
|
action :create do
|
@@ -27,7 +27,7 @@ class Chef
|
|
27
27
|
preview_resource true
|
28
28
|
resource_name :openssl_ec_private_key
|
29
29
|
|
30
|
-
description "Use the openssl_ec_private_key resource to generate
|
30
|
+
description "Use the openssl_ec_private_key resource to generate an elliptic curve (EC) private key file. If a valid EC key file can be opened at the specified location, no new file will be created. If the EC key file cannot be opened, either because it does not exist or because the password to the EC key file does not match the password in the recipe, then it will be overwritten."
|
31
31
|
introduced "14.4"
|
32
32
|
|
33
33
|
property :path, String,
|
@@ -49,17 +49,17 @@ class Chef
|
|
49
49
|
default: "des3"
|
50
50
|
|
51
51
|
property :owner, String,
|
52
|
-
description: "The owner
|
52
|
+
description: "The owner applied to all files created by the resource."
|
53
53
|
|
54
54
|
property :group, String,
|
55
|
-
description: "The group
|
55
|
+
description: "The group ownership applied to all files created by the resource."
|
56
56
|
|
57
57
|
property :mode, [Integer, String],
|
58
|
-
description: "The permission mode
|
58
|
+
description: "The permission mode applied to all files created by the resource.",
|
59
59
|
default: "0600"
|
60
60
|
|
61
61
|
property :force, [TrueClass, FalseClass],
|
62
|
-
description: "Force
|
62
|
+
description: "Force creation of the key even if the same key already exists on the node.",
|
63
63
|
default: false, desired_state: false
|
64
64
|
|
65
65
|
action :create do
|
@@ -35,22 +35,22 @@ class Chef
|
|
35
35
|
name_property: true
|
36
36
|
|
37
37
|
property :private_key_path, String,
|
38
|
-
description: "The path to the private key."
|
38
|
+
description: "The path to the private key file."
|
39
39
|
|
40
40
|
property :private_key_content, String,
|
41
|
-
description: "The content of the private key including new lines.
|
41
|
+
description: "The content of the private key including new lines. This property is used in place of private_key_path to avoid having to first write a key to disk."
|
42
42
|
|
43
43
|
property :private_key_pass, String,
|
44
44
|
description: "The passphrase of the provided private key."
|
45
45
|
|
46
46
|
property :owner, String,
|
47
|
-
description: "The owner
|
47
|
+
description: "The owner applied to all files created by the resource."
|
48
48
|
|
49
49
|
property :group, String,
|
50
|
-
description: "The group
|
50
|
+
description: "The group ownership applied to all files created by the resource."
|
51
51
|
|
52
52
|
property :mode, [Integer, String],
|
53
|
-
description: "The permission mode
|
53
|
+
description: "The permission mode applied to all files created by the resource.",
|
54
54
|
default: "0640"
|
55
55
|
|
56
56
|
action :create do
|
@@ -49,18 +49,18 @@ class Chef
|
|
49
49
|
description: "The designed cipher to use when generating your key. Run `openssl list-cipher-algorithms` to see available options.",
|
50
50
|
default: "des3"
|
51
51
|
|
52
|
-
property :owner,
|
53
|
-
description: "The owner
|
52
|
+
property :owner, String,
|
53
|
+
description: "The owner applied to all files created by the resource."
|
54
54
|
|
55
|
-
property :group,
|
56
|
-
description: "The group
|
55
|
+
property :group, String,
|
56
|
+
description: "The group ownership applied to all files created by the resource."
|
57
57
|
|
58
58
|
property :mode, [Integer, String],
|
59
|
-
description: "The permission mode
|
59
|
+
description: "The permission mode applied to all files created by the resource.",
|
60
60
|
default: "0600"
|
61
61
|
|
62
62
|
property :force, [TrueClass, FalseClass],
|
63
|
-
description: "Force
|
63
|
+
description: "Force creation of the key even if the same key already exists on the node.",
|
64
64
|
default: false, desired_state: false
|
65
65
|
|
66
66
|
action :create do
|
@@ -34,22 +34,22 @@ class Chef
|
|
34
34
|
name_property: true
|
35
35
|
|
36
36
|
property :private_key_path, String,
|
37
|
-
description: "The path to the private key."
|
37
|
+
description: "The path to the private key file."
|
38
38
|
|
39
39
|
property :private_key_content, String,
|
40
|
-
description: "The content of the private key including new lines.
|
40
|
+
description: "The content of the private key including new lines. This property is used in place of private_key_path to avoid having to first write a key to disk."
|
41
41
|
|
42
42
|
property :private_key_pass, String,
|
43
43
|
description: "The passphrase of the provided private key."
|
44
44
|
|
45
|
-
property :owner,
|
46
|
-
description: "The owner
|
45
|
+
property :owner, String,
|
46
|
+
description: "The owner applied to all files created by the resource."
|
47
47
|
|
48
|
-
property :group,
|
49
|
-
description: "The group
|
48
|
+
property :group, String,
|
49
|
+
description: "The group ownership applied to all files created by the resource."
|
50
50
|
|
51
51
|
property :mode, [Integer, String],
|
52
|
-
description: "The permission mode
|
52
|
+
description: "The permission mode applied to all files created by the resource.",
|
53
53
|
default: "0640"
|
54
54
|
|
55
55
|
action :create do
|
@@ -26,7 +26,7 @@ class Chef
|
|
26
26
|
|
27
27
|
preview_resource true
|
28
28
|
resource_name :openssl_x509_certificate
|
29
|
-
|
29
|
+
provides(:openssl_x509) { true } # legacy cookbook name.
|
30
30
|
|
31
31
|
description "Use the openssl_x509_certificate resource to generate signed or self-signed, PEM-formatted x509 certificates. If no existing key is specified, the resource will automatically generate a passwordless key with the certificate. If a CA private key and certificate are provided, the certificate will be signed with them. Note: This resource was renamed from openssl_x509 to openssl_x509_certificate. The legacy name will continue to function, but cookbook code should be updated for the new resource name."
|
32
32
|
introduced "14.4"
|
@@ -36,20 +36,20 @@ class Chef
|
|
36
36
|
name_property: true
|
37
37
|
|
38
38
|
property :owner, String,
|
39
|
-
description: "The owner
|
39
|
+
description: "The owner applied to all files created by the resource."
|
40
40
|
|
41
41
|
property :group, String,
|
42
|
-
description: "The group
|
42
|
+
description: "The group ownership applied to all files created by the resource."
|
43
43
|
|
44
44
|
property :expire, Integer,
|
45
45
|
description: "Value representing the number of days from now through which the issued certificate cert will remain valid. The certificate will expire after this period.",
|
46
46
|
default: 365
|
47
47
|
|
48
48
|
property :mode, [Integer, String],
|
49
|
-
description: "The permission mode
|
49
|
+
description: "The permission mode applied to all files created by the resource."
|
50
50
|
|
51
51
|
property :country, String,
|
52
|
-
description: "Value for the C
|
52
|
+
description: "Value for the C certificate field."
|
53
53
|
|
54
54
|
property :state, String,
|
55
55
|
description: "Value for the ST certificate field."
|
@@ -67,7 +67,7 @@ class Chef
|
|
67
67
|
description: "Value for the CN certificate field."
|
68
68
|
|
69
69
|
property :email, String,
|
70
|
-
description: "Value for the email
|
70
|
+
description: "Value for the email certificate field."
|
71
71
|
|
72
72
|
property :extensions, Hash,
|
73
73
|
description: "Hash of X509 Extensions entries, in format { 'keyUsage' => { 'values' => %w( keyEncipherment digitalSignature), 'critical' => true } }.",
|
@@ -78,7 +78,7 @@ class Chef
|
|
78
78
|
default: lazy { [] }
|
79
79
|
|
80
80
|
property :key_file, String,
|
81
|
-
description: "The path to a certificate key file on the filesystem. If the key_file
|
81
|
+
description: "The path to a certificate key file on the filesystem. If the key_file property is specified, the resource will attempt to source a key from this location. If no key file is found, the resource will generate a new key file at this location. If the key_file property is not specified, the resource will generate a key file in the same directory as the generated certificate, with the same name as the generated certificate."
|
82
82
|
|
83
83
|
property :key_pass, String,
|
84
84
|
description: "The passphrase for an existing key's passphrase."
|
@@ -90,7 +90,7 @@ class Chef
|
|
90
90
|
|
91
91
|
property :key_length, Integer,
|
92
92
|
equal_to: [1024, 2048, 4096, 8192],
|
93
|
-
description: "The desired
|
93
|
+
description: "The desired bit length of the generated key (if key_type is equal to 'rsa').",
|
94
94
|
default: 2048
|
95
95
|
|
96
96
|
property :key_curve, String,
|
@@ -99,13 +99,13 @@ class Chef
|
|
99
99
|
default: "prime256v1"
|
100
100
|
|
101
101
|
property :csr_file, String,
|
102
|
-
description: "The path to a X509 Certificate Request (CSR) on the filesystem. If the csr_file
|
102
|
+
description: "The path to a X509 Certificate Request (CSR) on the filesystem. If the csr_file property is specified, the resource will attempt to source a CSR from this location. If no CSR file is found, the resource will generate a Self-Signed Certificate and the certificate fields must be specified (common_name at last)."
|
103
103
|
|
104
104
|
property :ca_cert_file, String,
|
105
|
-
description: "The path to the CA X509 Certificate on the filesystem. If the ca_cert_file
|
105
|
+
description: "The path to the CA X509 Certificate on the filesystem. If the ca_cert_file property is specified, the ca_key_file property must also be specified, the certificate will be signed with them."
|
106
106
|
|
107
107
|
property :ca_key_file, String,
|
108
|
-
description: "The path to the CA private key on the filesystem. If the ca_key_file
|
108
|
+
description: "The path to the CA private key on the filesystem. If the ca_key_file property is specified, the 'ca_cert_file' property must also be specified, the certificate will be signed with them."
|
109
109
|
|
110
110
|
property :ca_key_pass, String,
|
111
111
|
description: "The passphrase for CA private key's passphrase."
|
@@ -38,7 +38,7 @@ class Chef
|
|
38
38
|
description: "Serial of the X509 Certificate to revoke."
|
39
39
|
|
40
40
|
property :revocation_reason, Integer,
|
41
|
-
description: "Reason for the
|
41
|
+
description: "Reason for the revocation.",
|
42
42
|
default: 0
|
43
43
|
|
44
44
|
property :expire, Integer,
|
@@ -50,7 +50,7 @@ class Chef
|
|
50
50
|
default: 1
|
51
51
|
|
52
52
|
property :ca_cert_file, String,
|
53
|
-
description: "The path to the CA X509 Certificate on the filesystem. If the ca_cert_file
|
53
|
+
description: "The path to the CA X509 Certificate on the filesystem. If the ca_cert_file property is specified, the ca_key_file property must also be specified, the CRL will be signed with them.",
|
54
54
|
required: true
|
55
55
|
|
56
56
|
property :ca_key_file, String,
|
@@ -34,16 +34,16 @@ class Chef
|
|
34
34
|
description: "The optional path to write the file to if you'd like to specify it here instead of in the resource name."
|
35
35
|
|
36
36
|
property :owner, String,
|
37
|
-
description: "The owner
|
37
|
+
description: "The owner applied to all files created by the resource."
|
38
38
|
|
39
39
|
property :group, String,
|
40
|
-
description: "The group
|
40
|
+
description: "The group ownership applied to all files created by the resource."
|
41
41
|
|
42
42
|
property :mode, [Integer, String],
|
43
|
-
description: "The permission mode
|
43
|
+
description: "The permission mode applied to all files created by the resource."
|
44
44
|
|
45
45
|
property :country, String,
|
46
|
-
description: "Value for the C
|
46
|
+
description: "Value for the C certificate field."
|
47
47
|
|
48
48
|
property :state, String,
|
49
49
|
description: "Value for the ST certificate field."
|
@@ -62,10 +62,10 @@ class Chef
|
|
62
62
|
description: "Value for the CN certificate field."
|
63
63
|
|
64
64
|
property :email, String,
|
65
|
-
description: "Value for the email
|
65
|
+
description: "Value for the email certificate field."
|
66
66
|
|
67
67
|
property :key_file, String,
|
68
|
-
description: "The path to a certificate key file on the filesystem. If the key_file
|
68
|
+
description: "The path to a certificate key file on the filesystem. If the key_file property is specified, the resource will attempt to source a key from this location. If no key file is found, the resource will generate a new key file at this location. If the key_file property is not specified, the resource will generate a key file in the same directory as the generated certificate, with the same name as the generated certificate."
|
69
69
|
|
70
70
|
property :key_pass, String,
|
71
71
|
description: "The passphrase for an existing key's passphrase."
|
@@ -76,7 +76,7 @@ class Chef
|
|
76
76
|
|
77
77
|
property :key_length, Integer,
|
78
78
|
equal_to: [1024, 2048, 4096, 8192], default: 2048,
|
79
|
-
description: "The desired
|
79
|
+
description: "The desired bit length of the generated key (if key_type is equal to 'rsa')."
|
80
80
|
|
81
81
|
property :key_curve, String,
|
82
82
|
equal_to: %w{secp384r1 secp521r1 prime256v1}, default: "prime256v1",
|
@@ -25,19 +25,24 @@ class Chef
|
|
25
25
|
provides :osx_profile
|
26
26
|
provides :osx_config_profile
|
27
27
|
|
28
|
-
description "Use the osx_profile resource to manage configuration profiles (.mobileconfig files)"
|
29
|
-
" on the macOS platform. The osx_profile resource installs profiles by using"\
|
30
|
-
" the uuidgen library to generate a unique ProfileUUID, and then using the"\
|
31
|
-
" profiles command to install the profile on the system."
|
28
|
+
description "Use the osx_profile resource to manage configuration profiles (.mobileconfig files) on the macOS platform. The osx_profile resource installs profiles by using the uuidgen library to generate a unique ProfileUUID, and then using the profiles command to install the profile on the system."
|
32
29
|
introduced "12.7"
|
33
30
|
|
34
31
|
default_action :install
|
35
32
|
allowed_actions :install, :remove
|
36
33
|
|
37
|
-
property :profile_name, String,
|
38
|
-
|
39
|
-
|
40
|
-
|
34
|
+
property :profile_name, String,
|
35
|
+
description: "Use to specify the name of the profile, if different from the name of the resource block.",
|
36
|
+
name_property: true, identity: true
|
37
|
+
|
38
|
+
property :profile, [ String, Hash ],
|
39
|
+
description: "Use to specify a profile. This may be the name of a profile contained in a cookbook or a Hash that contains the contents of the profile."
|
40
|
+
|
41
|
+
property :identifier, String,
|
42
|
+
description: "Use to specify the identifier for the profile, such as com.company.screensaver."
|
43
|
+
|
44
|
+
property :path, String,
|
45
|
+
description: "The path to write the profile to disk before loading it."
|
41
46
|
end
|
42
47
|
end
|
43
48
|
end
|
@@ -41,14 +41,32 @@ class Chef
|
|
41
41
|
super
|
42
42
|
end
|
43
43
|
|
44
|
-
property :package_name, [ String, Array ],
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
property :
|
49
|
-
|
50
|
-
|
51
|
-
property :
|
44
|
+
property :package_name, [ String, Array ],
|
45
|
+
description: "The name of the package. Defaults to the name of the resourse block unless specified.",
|
46
|
+
identity: true
|
47
|
+
|
48
|
+
property :version, [ String, Array ],
|
49
|
+
description: "The version of a package to be installed or upgraded."
|
50
|
+
|
51
|
+
property :options, [ String, Array ],
|
52
|
+
description: "One (or more) additional command options that are passed to the command.",
|
53
|
+
coerce: proc { |x| x.is_a?(String) ? x.shellsplit : x }
|
54
|
+
|
55
|
+
property :response_file, String,
|
56
|
+
description: "The direct path to the file used to pre-seed a package.",
|
57
|
+
desired_state: false
|
58
|
+
|
59
|
+
property :response_file_variables, Hash,
|
60
|
+
description: "A Hash of response file variables in the form of {'VARIABLE' => 'VALUE'}.",
|
61
|
+
default: lazy { Hash.new }, desired_state: false
|
62
|
+
|
63
|
+
property :source, String,
|
64
|
+
description: "The direct path to a the package on the host.",
|
65
|
+
desired_state: false
|
66
|
+
|
67
|
+
property :timeout, [ String, Integer ],
|
68
|
+
description: "The amount of time (in seconds) to wait before timing out.",
|
69
|
+
desired_state: false
|
52
70
|
|
53
71
|
end
|
54
72
|
end
|
@@ -26,7 +26,8 @@ class Chef
|
|
26
26
|
|
27
27
|
description "Use the portage_package resource to manage packages for the Gentoo platform."
|
28
28
|
|
29
|
-
property :timeout, default: 3600
|
29
|
+
property :timeout, default: 3600,
|
30
|
+
description: "The amount of time (in seconds) to wait before timing out."
|
30
31
|
end
|
31
32
|
end
|
32
33
|
end
|
@@ -26,19 +26,27 @@ class Chef
|
|
26
26
|
resource_name :powershell_package
|
27
27
|
provides :powershell_package
|
28
28
|
|
29
|
-
description "Use the powershell_package resource to install and manage packages via"
|
30
|
-
" the Powershell Package Manager for the Microsoft Windows platform. The"\
|
31
|
-
" powershell_package resource requires administrative access, and a source"\
|
32
|
-
" must be configured in the Powershell Package Manager via the Register-PackageSource command"
|
29
|
+
description "Use the powershell_package resource to install and manage packages via the PowerShell Package Manager for the Microsoft Windows platform. The powershell_package resource requires administrative access, and a source must be configured in the PowerShell Package Manager via the Register-PackageSource command"
|
33
30
|
introduced "12.16"
|
34
31
|
|
35
32
|
allowed_actions :install, :remove
|
36
33
|
|
37
|
-
property :package_name, [String, Array],
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
34
|
+
property :package_name, [String, Array],
|
35
|
+
description: "The name of the package. Default value: the name of the resource block.",
|
36
|
+
coerce: proc { |x| [x].flatten }
|
37
|
+
|
38
|
+
property :version, [String, Array],
|
39
|
+
description: "The version of a package to be installed or upgraded.",
|
40
|
+
coerce: proc { |x| [x].flatten }
|
41
|
+
|
42
|
+
property :source, String,
|
43
|
+
description: "Specify the source of the package.",
|
44
|
+
introduced: "14.0"
|
45
|
+
|
46
|
+
property :skip_publisher_check, [true, false],
|
47
|
+
description: "Skip validating module author.",
|
48
|
+
default: false, introduced: "14.3"
|
49
|
+
|
42
50
|
end
|
43
51
|
end
|
44
52
|
end
|
@@ -24,7 +24,7 @@ class Chef
|
|
24
24
|
preview_resource true
|
25
25
|
resource_name "powershell_package_source"
|
26
26
|
|
27
|
-
description "Use the powershell_package_source resource to register a
|
27
|
+
description "Use the powershell_package_source resource to register a PowerShell package repository."
|
28
28
|
introduced "14.3"
|
29
29
|
|
30
30
|
property :source_name, String,
|
data/lib/chef/resource/reboot.rb
CHANGED
@@ -34,8 +34,13 @@ class Chef
|
|
34
34
|
allowed_actions :request_reboot, :reboot_now, :cancel
|
35
35
|
default_action :nothing # make sure people are quite clear what they want
|
36
36
|
|
37
|
-
property :reason, String,
|
38
|
-
|
37
|
+
property :reason, String,
|
38
|
+
description: "A string that describes the reboot action.",
|
39
|
+
default: "Reboot by Chef"
|
40
|
+
|
41
|
+
property :delay_mins, Integer,
|
42
|
+
description: "The amount of time (in minutes) to delay a reboot request.",
|
43
|
+
default: 0
|
39
44
|
end
|
40
45
|
end
|
41
46
|
end
|
@@ -23,9 +23,7 @@ class Chef
|
|
23
23
|
resource_name :rhsm_errata_level
|
24
24
|
provides(:rhsm_errata_level) { true }
|
25
25
|
|
26
|
-
description "
|
27
|
-
" from the Red Hat Subscript Manager. For example, you can ensure that all packages associated"\
|
28
|
-
" with errata marked at a 'Critical' security level are installed."
|
26
|
+
description "Use the rhsm_errata_level resource to install all packages of a specified errata level from the Red Hat Subscription Manager. For example, you can ensure that all packages associated with errata marked at a 'Critical' security level are installed."
|
29
27
|
introduced "14.0"
|
30
28
|
|
31
29
|
property :errata_level, String,
|
data/lib/chef/resource/route.rb
CHANGED
@@ -28,7 +28,7 @@ class Chef
|
|
28
28
|
description "Use the route resource to manage the system routing table in a Linux environment."
|
29
29
|
|
30
30
|
property :target, String, identity: true, name_property: true
|
31
|
-
property :comment, [String, nil]
|
31
|
+
property :comment, [String, nil], introduced: "14.0"
|
32
32
|
property :metric, [Integer, nil]
|
33
33
|
property :netmask, [String, nil]
|
34
34
|
property :gateway, [String, nil]
|