Use the knife configure subcommand to create the client.rb and credential files so that they can be distributed to workstations and nodes.
This subcommand has the following syntax when creating a credentials file:
knife configure (options)
and the following syntax when creating a client.rb file:
knife configure client DIRECTORY
Note
This subcommand has the following options for use when configuring a config.rb file:
--admin-client-name NAMEThe name of the client, typically the name of the admin client.
--admin-client-key PATHThe path to the private key used by the client, typically a file named admin.pem.
-i, --initial
Create a API client, typically an administrator client on a freshly-installed Chef Infra Server.
-r REPO, --repository REPO
The path to the chef-repo.
--validation-client-name NAMEThe name of the validation client, typically a client named chef-validator.
--validation-key PATHThe path to the validation key used by the client, typically a file named chef-validator.pem.
Note
The following examples show how to use this knife subcommand:
Configure credentials file
knife configure
Configure client.rb
knife configure client '/directory'
© Chef Software, Inc.
Licensed under the Creative Commons Attribution 3.0 Unported License.
The Chef™ Mark and Chef Logo are either registered trademarks/service marks or trademarks/servicemarks of Chef, in the United States and other countries and are used with Chef Inc's permission.
We are not affiliated with, endorsed or sponsored by Chef Inc.
https://docs.chef.io/workstation/knife_configure/