{"action":"created","issue":{"url":"https://api.github.com/repos/mitchellh/vagrant/issues/6352","labels_url":"https://api.github.com/repos/mitchellh/vagrant/issues/6352/labels{/name}","comments_url":"https://api.github.com/repos/mitchellh/vagrant/issues/6352/comments","events_url":"https://api.github.com/repos/mitchellh/vagrant/issues/6352/events","html_url":"https://github.com/mitchellh/vagrant/issues/6352","id":109563195,"number":6352,"title":"Chef-client provisioner calls system knife with no configurable arguments","user":{"login":"CVTJNII","id":13871930,"avatar_url":"https://avatars.githubusercontent.com/u/13871930?v=3","gravatar_id":"","url":"https://api.github.com/users/CVTJNII","html_url":"https://github.com/CVTJNII","followers_url":"https://api.github.com/users/CVTJNII/followers","following_url":"https://api.github.com/users/CVTJNII/following{/other_user}","gists_url":"https://api.github.com/users/CVTJNII/gists{/gist_id}","starred_url":"https://api.github.com/users/CVTJNII/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CVTJNII/subscriptions","organizations_url":"https://api.github.com/users/CVTJNII/orgs","repos_url":"https://api.github.com/users/CVTJNII/repos","events_url":"https://api.github.com/users/CVTJNII/events{/privacy}","received_events_url":"https://api.github.com/users/CVTJNII/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-02T20:09:01Z","updated_at":"2015-10-03T14:30:20Z","closed_at":null,"body":"In the Chef-client provisioner the system knife is called to remove node and client details from the server:\r\n\r\nhttps://github.com/mitchellh/vagrant/blob/master/plugins/provisioners/chef/provisioner/chef_client.rb#L132\r\n\r\nWhile this is fine if Vagrant is interacting with a chef server which is configured in ~/.chef/knife.rb, it fails if the user is trying to test against a test chef server which does not use the default knife configuration.\r\n\r\nPlease expose an argument to append options (say, append an array of user specified options) to the command array so that a knife config file can be specified in the Vagrant file.  This will allow Vagrant testing with Chef servers using a custom knife config.\r\n\r\nAlso, it would also be nice to make the knife binary configurable for even more edgy edge cases where the user needs to specify which program to use for knife."},"comment":{"url":"https://api.github.com/repos/mitchellh/vagrant/issues/comments/145253390","html_url":"https://github.com/mitchellh/vagrant/issues/6352#issuecomment-145253390","issue_url":"https://api.github.com/repos/mitchellh/vagrant/issues/6352","id":145253390,"user":{"login":"sethvargo","id":408570,"avatar_url":"https://avatars.githubusercontent.com/u/408570?v=3","gravatar_id":"","url":"https://api.github.com/users/sethvargo","html_url":"https://github.com/sethvargo","followers_url":"https://api.github.com/users/sethvargo/followers","following_url":"https://api.github.com/users/sethvargo/following{/other_user}","gists_url":"https://api.github.com/users/sethvargo/gists{/gist_id}","starred_url":"https://api.github.com/users/sethvargo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sethvargo/subscriptions","organizations_url":"https://api.github.com/users/sethvargo/orgs","repos_url":"https://api.github.com/users/sethvargo/repos","events_url":"https://api.github.com/users/sethvargo/events{/privacy}","received_events_url":"https://api.github.com/users/sethvargo/received_events","type":"User","site_admin":false},"created_at":"2015-10-03T14:30:20Z","updated_at":"2015-10-03T14:30:20Z","body":"Hi @CVTJNII \r\n\r\nPlease take a look at the Common Chef Options: https://docs.vagrantup.com/v2/provisioning/chef_common.html. I think it solves all the things you need."}}