From cc91aab1550dbecaea37191773c4710aa0fc0636 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Greg=20Kar=C3=A9kinian?= Date: Mon, 17 Jul 2023 18:06:23 +0200 Subject: [PATCH] Use the new way of setting attribute whitelists --- .chef/config.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.chef/config.rb b/.chef/config.rb index c871c15..a0f2ce6 100644 --- a/.chef/config.rb +++ b/.chef/config.rb @@ -26,8 +26,7 @@ knife[:automatic_attribute_whitelist] = %w[ chef_packages ] -knife[:default_attribute_whitelist] = [] -knife[:normal_attribute_whitelist] = ['knife_zero', 'kosmos_kvm', 'kosmos-ejabberd', 'openresty'] -knife[:override_attribute_whitelist] = [] - +# Added to /etc/chef/client.rb on node bootstrap +# https://docs.chef.io/attribute_persistence/ +knife[:normal_attribute_allowlist] = ['knife_zero', 'kosmos_kvm', 'kosmos-ejabberd', 'openresty'] knife[:allowed_normal_attributes] = ['knife_zero', 'kosmos_kvm', 'kosmos-ejabberd', 'openresty']