.\" generated with Ronn/v0.7.3 .\" http://github.com/rtomayko/ronn/tree/0.7.3 . .TH "KNIFE\-CONFIGURE" "1" "June 2012" "Chef 10.12.0" "Chef Manual" . .SH "NAME" \fBknife\-configure\fR \- Generate configuration files for knife or Chef Client . .SH "SYNOPSIS" \fBknife\fR \fBconfigure\fR [client] \fI(options)\fR . .SH "DESCRIPTION" Generates a knife\.rb configuration file interactively\. When given the \-\-initial option, also creates a new administrative user\. . .SH "CONFIGURE SUBCOMMANDS" \fBknife configure\fR \fI(options)\fR . .TP \fB\-i\fR, \fB\-\-initial\fR Create an initial API Client . .TP \fB\-r\fR, \fB\-\-repository REPO\fR The path to your chef\-repo . .P Create a configuration file for knife\. This will prompt for values to enter into the file\. Default values are listed in square brackets if no other entry is typed\. See \fBknife\fR(1) for a description of configuration options\. . .P \fBknife configure client\fR \fIdirectory\fR . .P Read the \fIknife\.rb\fR config file and generate a config file suitable for use in \fI/etc/chef/client\.rb\fR and copy the validation certificate into the specified \fIdirectory\fR\. . .SH "EXAMPLES" . .IP "\(bu" 4 On a freshly installed Chef Server, use \fIknife configure \-i\fR to create an administrator and knife configuration file\. Leave the field blank to accept the default value\. On most systems, the default values are acceptable\. . .IP user@host$ knife configure \-i . .br Please enter the chef server URL: [http://localhost:4000] . .br Please enter a clientname for the new client: [username] . .br Please enter the existing admin clientname: [chef\-webui] . .br Please enter the location of the existing admin client\'s private key: [/etc/chef/webui\.pem] . .br Please enter the validation clientname: [chef\-validator] . .br Please enter the location of the validation key: [/etc/chef/validation\.pem] . .br Please enter the path to a chef repository (or leave blank): . .br Creating initial API user\.\.\. . .br Created (or updated) client[username] . .br Configuration file written to /home/username/\.chef/knife\.rb . .IP This creates a new administrator client named \fIusername\fR, writes a configuration file to \fI/home/username/\.chef/knife\.rb\fR, and the private key to \fI/home/username/\.chef/username\.pem\fR\. The configuration file and private key may be copied to another system to facilitate administration of the Chef Server from a remote system\. Depending on the value given for the Chef Server URL, you may need to modify that setting after copying to a remote host\. . .IP "" 0 . .SH "SEE ALSO" \fBknife\fR(1) \fBknife\-client\fR(1) . .SH "AUTHOR" Chef was written by Adam Jacob \fIadam@opscode\.com\fR with many contributions from the community\. . .SH "DOCUMENTATION" This manual page was written by Joshua Timberman \fIjoshua@opscode\.com\fR\. Permission is granted to copy, distribute and / or modify this document under the terms of the Apache 2\.0 License\. . .SH "CHEF" Knife is distributed with Chef\. \fIhttp://wiki\.opscode\.com/display/chef/Home\fR