summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-10-27 18:22:25 -0700
committerTim Smith <tsmith@chef.io>2018-10-27 18:22:25 -0700
commit1eed59e7d0d3283b70e3560c1bb61f8f8110a97f (patch)
tree74f6544a005d8725d2222cc2c2a6ef8b97f0ec57
parenta99462051a84bc2f166d9bf359eefec4f6c9fcf6 (diff)
downloadchef-1eed59e7d0d3283b70e3560c1bb61f8f8110a97f.tar.gz
Set desired state on several properties
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/resource/dmg_package.rb11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/chef/resource/dmg_package.rb b/lib/chef/resource/dmg_package.rb
index d0adb15b05..7f8ba16edc 100644
--- a/lib/chef/resource/dmg_package.rb
+++ b/lib/chef/resource/dmg_package.rb
@@ -55,25 +55,26 @@ class Chef
property :type, String,
description: "The type of package.",
equal_to: %w{app pkg mpkg},
- default: "app"
+ default: "app", desired_state: false
property :package_id, String,
description: "The package id registered with pkgutil when a pkg or mpkg is installed."
property :dmg_passphrase, String,
- description: "Specify a passphrase to use to unencrypt the dmg while mounting."
+ description: "Specify a passphrase to use to unencrypt the dmg while mounting.",
+ desired_state: false
property :accept_eula, [TrueClass, FalseClass],
description: "Specify whether to accept the EULA. Certain dmgs require acceptance of EULA before mounting.",
- default: false
+ default: false, desired_state: false
property :headers, [Hash, nil],
description: "Allows custom HTTP headers (like cookies) to be set on the remote_file resource.",
- default: nil
+ default: nil, desired_state: false
property :allow_untrusted, [TrueClass, FalseClass],
description: "Allow installation of packages that do not have trusted certificates.",
- default: false
+ default: false, desired_state: false
load_current_value do |new_resource|
if ::File.directory?("#{new_resource.destination}/#{new_resource.app}.app")