chef-zero

How do I use roles in test kitchen?

孤街醉人 提交于 2019-12-24 06:51:21
问题 I can't figure out how to run roles in a run list in test kitchen. I did a knife download roles to my chef repo ( C:\.chef\roles ). I also did a knife download cookbooks to c:\.chef\cookbooks Here is the .kitchen.yml for a cookbook I want to test which I plan to run with a particular role ( C:\.chef\cookbooks\mybook\.kitchen.yml ): --- driver: name: hyperv parent_vhd_folder: c:\HyperV\VHDs\ parent_vhd_name: 2012R2_Fresh_Gen1.vhdx vm_switch: NAT memory_startup_bytes: 2GB provisioner: name:

How do I use roles in test kitchen?

陌路散爱 提交于 2019-12-24 06:51:09
问题 I can't figure out how to run roles in a run list in test kitchen. I did a knife download roles to my chef repo ( C:\.chef\roles ). I also did a knife download cookbooks to c:\.chef\cookbooks Here is the .kitchen.yml for a cookbook I want to test which I plan to run with a particular role ( C:\.chef\cookbooks\mybook\.kitchen.yml ): --- driver: name: hyperv parent_vhd_folder: c:\HyperV\VHDs\ parent_vhd_name: 2012R2_Fresh_Gen1.vhdx vm_switch: NAT memory_startup_bytes: 2GB provisioner: name:

Chef Vault with Test-Kitchen, Vagrant and Chef-Zero provisioner

拥有回忆 提交于 2019-12-11 05:40:39
问题 I have an environment setup with Test-Kitchen v1.5.0, Vagrant v1.8.1. I have a recipe that uses chef vault to decrypt our encrypted passwords that our in our data_bags_path/passwords/pilot.json file. I am using the solution here https://github.com/chef/chef-vault/issues/58 that daxgames provides towards the end of the page. My .kitchen.yml : --- driver: name: vagrant provisioner: name: chef_zero require_chef_omnibus: 12.14.77 roles_path: ../../roles environments_path: ../../environments data