summaryrefslogtreecommitdiff
path: root/lib/chef/resource
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-10-27 18:22:25 -0700
committerTim Smith <tsmith@chef.io>2018-10-31 12:37:01 -0700
commit8b73ae6bc73feaad036ff5bb721495591070409a (patch)
tree20da28bba3b8d9a734d0e9f29991734fb18ed176 /lib/chef/resource
parentbdeba011490b737b3722c744414c49ba9b6a8d7d (diff)
downloadchef-8b73ae6bc73feaad036ff5bb721495591070409a.tar.gz
Set desired state on several properties
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/resource')
-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")