config.vm.provision :chef_client do |chef|
chef.node_name = 'my_node'
chef.chef_server_url = 'https://ec2-<my_chef_server_ip>.us-west-2.compute.amazonaws.com/organizations/my_org'
c = 'c:\my_chef_fir\chef-repo\.chef\my-validator.pem'
chef.validation_client_name = 'my-validator'
chef.client_key_path = 'c:\my_chef_fir\chef-repo\.chef\client.pem'
chef.provisioning_path = "/etc/chef"
chef.log_level = :debug
chef.run_list = [ "recipe[AmazonTest::touch_file]" ]
end
Введите код...my_chef_firch ef-repo.chefclient.pem is not present - registeringclient.pem into /etc/chef and run vagrant provision - it works...
Why vagrant copy into provisioning virtual machine file from line chef.client_key_path, but perfectly copy chef.client_key_path?
Is there a way to cause vagrant to do such a copy, or - I have to do it manually (that means through sync folders or shell provisioner) before chef_client provisioner?