Can't provision with chef-zero (chef-client -z) and have the node point to a chef-server

In the docs, it says that one can add the following to their knife.rb and have the nodes they provision with chef-client -z get pointed to the chef server given:

with_chef_server "https://chef.example.com/organizations/yourorg",
  :client_name => Chef::Config[:node_name],
  :signing_key_filename => Chef::Config[:client_key]

when I do this the node being provisioned does not attempt to authenticate with my chef-server. How would I accomplish this?

You wouldn’t add that stanza to your knife.rb, you’d add it to your provisioning recipe.

Would I add it to the machine resource? Is there an example of that somewhere?

It’s like the machine options – it’s added at the top level, not in another resource

That worked. Thanks!