Use the knife configure subcommand to create the knife.rb and client.rb files so that they can be distributed to workstations and nodes.
This subcommand has the following syntax when creating a knife.rb file:
$ knife configure (options)
and the following syntax when creating a client.rb file:
$ knife configure client DIRECTORY
Note
Review the list of common options available to this (and all) knife subcommands and plugins.
This subcommand has the following options for use when configuring a knife.rb file:
--admin-client-name NAME--admin-client-key PATHadmin.pem.-i, --initial
-r REPO, --repository REPO
--validation-client-name NAME--validation-key PATHNote
See knife.rb for more information about how to add certain knife options as settings in the knife.rb file.
The following examples show how to use this knife subcommand:
Configure knife.rb
$ 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-archive.chef.io/release/12-13/knife_configure.html