current_dir = File.dirname(__FILE__) cookbook_path ["#{current_dir}/../site-cookbooks", "#{current_dir}/../cookbooks"] node_path "nodes" role_path "roles" environment_path "environments" data_bag_path "data_bags" encrypted_data_bag_secret "#{current_dir}/encrypted_data_bag_secret" local_mode true # Chef local mode, replacing Solo # Knife-Zero config, see https://knife-zero.github.io/40_configuration/ # Prevent attributes from being saved to the node files knife[:automatic_attribute_whitelist] = %w[ fqdn os os_version hostname ipaddress roles recipes ipaddress platform platform_version cloud cloud_v2 chef_packages ] # 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']