summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrishichawda <rishichawda@users.noreply.github.com>2022-04-27 14:49:44 +0530
committerrishichawda <rishichawda@users.noreply.github.com>2022-05-26 14:39:03 +0530
commite057b2dd2fba34d20bd8d309231ca7a3881c1255 (patch)
tree01375e10bdbc4d2fc8af9e11f46027471c3c2201
parentae0ce0b875255f638a7564f52e556e6ff5191953 (diff)
downloadchef-backport-fix-for-macos-userdefaults-user-attr-bug.tar.gz
Signed-off-by: rishichawda <rishichawda@users.noreply.github.com>
-rw-r--r--lib/chef/resource/macos_userdefaults.rb12
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/chef/resource/macos_userdefaults.rb b/lib/chef/resource/macos_userdefaults.rb
index 6cbee1e6fa..4aec345edc 100644
--- a/lib/chef/resource/macos_userdefaults.rb
+++ b/lib/chef/resource/macos_userdefaults.rb
@@ -51,15 +51,17 @@ class Chef
end
```
- **Specifying the type of a key to skip automatic type detection**
+ **Setting a value for specific user and hosts**
```ruby
- macos_userdefaults 'Finder expanded save dialogs' do
- key 'NSNavPanelExpandedStateForSaveMode'
- value 'TRUE'
- type 'bool'
+ macos_userdefaults 'Enable macOS firewall' do
+ key 'globalstate'
+ value 1
+ user 'jane'
+ host :current
end
```
+
DOC
property :domain, String,