I am trying to bootstrap a chef client manually using user data following https://docs.chef.io/install_bootstrap.html#bash-user-data
This automatically saves the client.pem file at /etc/chef
. How to force save at some different location?
Try to implicitly set client_key
to your custom location. chef-client detects that the client key file is not present and registers the node, saving the generated key to the file.
relevant code:
default filename client.pem
specified in:
Hope this helps