--Excerpt from .kitchen.yml
provisioner:
name: chef_solo
data_bags_path: ~/chef-fundamentals-repo/data_bags
#json files with data bag items go in this path
--from the default recipe in the 'users' data bag
#I added the line below
users=data_bag("users")
#from the original cookbook
search("users", "*:*").each do |user_data|
user user_data["id"] do
comment user_data["comment"]
uid user_data["uid"]
gid user_data["gid"]
home user_data["home"]
shell user_data["shell"]
end
end
The 'search' fails with 'I cannot read the /tmp/kitchen/client.pem.' This is the same error I get if I specify a recipe in the run list that does not exist.