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
]
knife[:default_attribute_whitelist] = []
knife[:normal_attribute_whitelist] = ['knife_zero','kosmos-ejabberd']
knife[:override_attribute_whitelist] = []
