Julian,
Here is the info
require 'yaml'
config = YAML::load(File.open(ENV["CHEF_CONFIG"]))
provider = ENV['CHEF_PROVIDER'] || "internal"
environment = ENV['CHEF_ENVIRONMENT'] || "development"
log_level :info
log_location STDOUT
node_name config[environment]["user"]
client_key config[environment]["user_key"]
validation_client_name config[environment]["validation_key_name"]
validation_key config[environment]["validation_key"]
chef_server_url config[environment]["url"]
cache_type 'BasicFile'
cache_options(:path => config[environment]["cache_path"])
cookbook_path ["#{Dir.pwd}/cookbooks"]
cookbook_copyright "Lifelock"
cookbook_license "apachev2"
encrypted_data_bag_secret "#{Dir.pwd}/data_bags/encrypted_data_bag_secret"
knife[:ssh_user] = config[environment]["ssh_user"]
knife[:vsphere_host] = config["vsphere_host"]
knife[:vsphere_user] = config["vsphere_user"]
knife[:vsphere_pass] = config["vsphere_pass"]
knife[:vsphere_dc] = config["vsphere_dc"]
knife[:vsphere_insecure] = config["vsphere_insecure"]
case provider
when "amazon"
knife[:aws_access_key_id] = config["aws_access_key_id"]
knife[:aws_secret_access_key] = config["aws_secret_access_key"]
end