1759af98b8
Set the attributes in a Ruby file under /etc/chef/client.d/ instead of editing /etc/chef/client.rb Now uses the new whitelist attribute: https://docs.chef.io/client/19/cookbooks/attributes/attribute_persistence/ Local chef config also uses the same file. That means there is no longer a need to use the sanitize script to remove override and default attributes from nodes.
9 lines
365 B
Ruby
9 lines
365 B
Ruby
allowed_automatic_attributes ["fqdn", "os", "os_version", "hostname",
|
|
"ipaddress", "roles", "recipes", "ipaddress",
|
|
"platform", "platform_version", "cloud",
|
|
"cloud_v2", "chef_packages", "zerotier"]
|
|
allowed_default_attributes []
|
|
allowed_override_attributes []
|
|
allowed_normal_attributes ["knife_zero", "kosmos_kvm", "kosmos-ejabberd",
|
|
"openresty", "vm_host"]
|