chef 0.10.4.rc.4 → 0.10.4.rc.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. data/distro/common/html/chef-client.8.html +4 -4
  2. data/distro/common/html/chef-expander.8.html +4 -4
  3. data/distro/common/html/chef-expanderctl.8.html +4 -4
  4. data/distro/common/html/chef-server-webui.8.html +4 -4
  5. data/distro/common/html/chef-server.8.html +4 -4
  6. data/distro/common/html/chef-solo.8.html +4 -4
  7. data/distro/common/html/chef-solr.8.html +4 -4
  8. data/distro/common/html/knife-bootstrap.1.html +4 -4
  9. data/distro/common/html/knife-client.1.html +4 -4
  10. data/distro/common/html/knife-configure.1.html +4 -4
  11. data/distro/common/html/knife-cookbook-site.1.html +6 -6
  12. data/distro/common/html/knife-cookbook.1.html +11 -4
  13. data/distro/common/html/knife-data-bag.1.html +4 -4
  14. data/distro/common/html/knife-environment.1.html +4 -4
  15. data/distro/common/html/knife-exec.1.html +4 -4
  16. data/distro/common/html/knife-index.1.html +4 -4
  17. data/distro/common/html/knife-node.1.html +7 -6
  18. data/distro/common/html/knife-role.1.html +4 -4
  19. data/distro/common/html/knife-search.1.html +177 -24
  20. data/distro/common/html/knife-ssh.1.html +5 -4
  21. data/distro/common/html/knife-status.1.html +4 -4
  22. data/distro/common/html/knife-tag.1.html +4 -4
  23. data/distro/common/html/knife.1.html +4 -4
  24. data/distro/common/html/shef.1.html +4 -4
  25. data/distro/common/man/man1/knife-bootstrap.1 +189 -0
  26. data/distro/common/man/man1/knife-client.1 +99 -0
  27. data/distro/common/man/man1/knife-configure.1 +88 -0
  28. data/distro/common/man/man1/knife-cookbook-site.1 +137 -0
  29. data/distro/common/man/man1/knife-cookbook.1 +340 -0
  30. data/distro/common/man/man1/knife-data-bag.1 +130 -0
  31. data/distro/common/man/man1/knife-environment.1 +178 -0
  32. data/distro/common/man/man1/knife-exec.1 +46 -0
  33. data/distro/common/man/man1/knife-index.1 +29 -0
  34. data/distro/common/man/man1/knife-node.1 +154 -0
  35. data/distro/common/man/man1/knife-role.1 +88 -0
  36. data/distro/common/man/man1/knife-search.1 +270 -0
  37. data/distro/common/man/man1/knife-ssh.1 +78 -0
  38. data/distro/common/man/man1/knife-status.1 +29 -0
  39. data/distro/common/man/man1/knife-tag.1 +43 -0
  40. data/distro/common/man/man1/knife.1 +251 -0
  41. data/distro/common/man/man1/shef.1 +256 -0
  42. data/distro/common/man/man8/chef-client.8 +84 -0
  43. data/distro/common/man/man8/chef-expander.8 +97 -0
  44. data/distro/common/man/man8/chef-expanderctl.8 +62 -0
  45. data/distro/common/man/man8/chef-server-webui.8 +155 -0
  46. data/distro/common/man/man8/chef-server.8 +147 -0
  47. data/distro/common/man/man8/chef-solo.8 +158 -0
  48. data/distro/common/man/man8/chef-solr.8 +114 -0
  49. data/distro/common/markdown/man1/knife-search.mkd +130 -6
  50. data/lib/chef/provider/package/apt.rb +34 -24
  51. data/lib/chef/version.rb +1 -1
  52. metadata +28 -4
@@ -0,0 +1,130 @@
1
+ .\" generated with Ronn/v0.7.3
2
+ .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
+ .
4
+ .TH "KNIFE\-DATA\-BAG" "1" "August 2011" "Chef 0.10.4.rc.5" "Chef Manual"
5
+ .
6
+ .SH "NAME"
7
+ \fBknife\-data\-bag\fR \- Store arbitrary data on a Chef Server
8
+ .
9
+ .SH "SYNOPSIS"
10
+ \fBknife\fR \fBdata bag\fR \fIsub\-command\fR \fI(options)\fR
11
+ .
12
+ .SH "DESCRIPTION"
13
+ Data bags are stores of arbitrary JSON data\. Each data bag is a collection that may contain many items\. Data Bag Items are indexed by the Chef Server and can be searched via \fBknife\-search\fR(1)\.
14
+ .
15
+ .P
16
+ Data bags are available to all nodes configured by \fBchef\-client\fR(8), and are therefore a convenient mechanism to store global information, such as lists of administrative accounts that should be configured on all hosts\.
17
+ .
18
+ .SH "DATA BAG SUB\-COMMANDS"
19
+ .
20
+ .SH "CREATE"
21
+ \fBknife data bag create\fR \fIbag name\fR [item id] \fI(options)\fR
22
+ .
23
+ .TP
24
+ \fB\-s\fR, \fB\-\-secret SECRET\fR
25
+ A secret key used to encrypt the data bag item\. See \fBencryption support\fR below\.
26
+ .
27
+ .TP
28
+ \fB\-\-secret\-file SECRET_FILE\fR
29
+ The path to a file containing the secret key to be used to encrypt the data bag item\.
30
+ .
31
+ .P
32
+ If \fIitem id\fR is given, creates a new, empty data bag item and opens it for editing in your editor\. The data bag will be created if it does not exist\.
33
+ .
34
+ .P
35
+ If \fIitem id\fR is not given, the data bag will be created\.
36
+ .
37
+ .SH "DELETE"
38
+ \fBknife data bag delete\fR \fIbag name\fR [item id] \fI(options)\fR
39
+ .
40
+ .P
41
+ Delete a data bag, or an item from a data bag\.
42
+ .
43
+ .SH "EDIT"
44
+ \fBknife data bag edit\fR \fIbag name\fR \fIitem id\fR \fI(options)\fR
45
+ .
46
+ .TP
47
+ \fB\-s\fR, \fB\-\-secret SECRET\fR
48
+ A secret key used to encrypt the data bag item\. See \fBencryption support\fR below\.
49
+ .
50
+ .TP
51
+ \fB\-\-secret\-file SECRET_FILE\fR
52
+ The path to a file containing the secret key to be used to encrypt the data bag item\.
53
+ .
54
+ .P
55
+ Edit an item in a data bag\.
56
+ .
57
+ .SH "FROM FILE"
58
+ \fBknife data bag from file\fR \fIbag name\fR \fIfile\fR \fI(options)\fR
59
+ .
60
+ .TP
61
+ \fB\-s\fR, \fB\-\-secret SECRET\fR
62
+ A secret key used to encrypt the data bag item\. See \fBencryption support\fR below\.
63
+ .
64
+ .TP
65
+ \fB\-\-secret\-file SECRET_FILE\fR
66
+ The path to a file containing the secret key to be used to encrypt the data bag item\.
67
+ .
68
+ .P
69
+ Load a data bag item from a JSON file\. If \fIfile\fR is a relative or absolute path to the file, that file will be used\. Otherwise, the \fIfile\fR parameter is treated as the base name of a data bag file in a Chef repository, and \fBknife\fR will search for the file in \fB\./data_bags/bag_name/file\fR\. For example \fBknife data bag from file users dan\.json\fR would attempt to load the file \fB\./data_bags/users/dan\.json\fR\.
70
+ .
71
+ .SH "LIST"
72
+ \fBknife data bag list\fR \fI(options)\fR
73
+ .
74
+ .TP
75
+ \fB\-w\fR, \fB\-\-with\-uri\fR
76
+ Show corresponding URIs
77
+ .
78
+ .P
79
+ Lists the data bags that exist on the Chef Server\.
80
+ .
81
+ .SH "SHOW"
82
+ \fBknife data bag show BAG [ITEM]\fR \fI(options)\fR
83
+ .
84
+ .TP
85
+ \fB\-s\fR, \fB\-\-secret SECRET\fR
86
+ A secret key used to encrypt the data bag item\. See \fBencryption support\fR below\.
87
+ .
88
+ .TP
89
+ \fB\-\-secret\-file SECRET_FILE\fR
90
+ The path to a file containing the secret key to be used to encrypt the data bag item\.
91
+ .
92
+ .P
93
+ Show a specific data bag or an item in a data bag\. The output will be formatted according to the \-\-format option\.
94
+ .
95
+ .SH "ENCRYPTION SUPPORT"
96
+ Data Bag Items may be encrypted to keep their contents secret\. This may be desireable when storing sensitive information such as database passwords, API keys, etc\.
97
+ .
98
+ .P
99
+ Data Bag Item encryption uses the AES\-256 CBC symmetric key algorithm\.
100
+ .
101
+ .P
102
+ \fBCAVEATS:\fR Keys are not encrypted; only values are encrypted\. The "id" of a Data Bag Item is not encrypted, since it is used by Chef Server to store the item in its database\. For example, given the following data bag item:
103
+ .
104
+ .IP "" 4
105
+ .
106
+ .nf
107
+
108
+ {"id": "important_passwords", "secret_password": "opensesame"}
109
+ .
110
+ .fi
111
+ .
112
+ .IP "" 0
113
+ .
114
+ .P
115
+ The key "secret_password" will be visible to an evesdropper, but the value "opensesame" will be protected\. Both the key "id" and its value "important_passwords" will be visible to an evesdropper\.
116
+ .
117
+ .P
118
+ Chef Server does not provide a secure mechanism for distributing encryption keys\.
119
+ .
120
+ .SH "SEE ALSO"
121
+ \fBknife\-search\fR(1)
122
+ .
123
+ .SH "AUTHOR"
124
+ Chef was written by Adam Jacob \fIadam@opscode\.com\fR with many contributions from the community\.
125
+ .
126
+ .SH "DOCUMENTATION"
127
+ 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\.
128
+ .
129
+ .SH "CHEF"
130
+ Knife is distributed with Chef\. http://wiki\.opscode\.com/display/chef/Home
@@ -0,0 +1,178 @@
1
+ .\" generated with Ronn/v0.7.3
2
+ .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
+ .
4
+ .TH "KNIFE\-ENVIRONMENT" "1" "August 2011" "Chef 0.10.4.rc.5" "Chef Manual"
5
+ .
6
+ .SH "NAME"
7
+ \fBknife\-environment\fR \- Define cookbook policies for the environments in your infrastructure
8
+ .
9
+ .SH "SYNOPSIS"
10
+ \fBknife\fR \fBenvironment\fR \fIsub\-command\fR \fI(options)\fR
11
+ .
12
+ .SH "SUBCOMMANDS"
13
+ Environment subcommands follow a basic create, read, update, delete (CRUD) pattern\. The following subcommands are available:
14
+ .
15
+ .SH "CREATE"
16
+ \fBknife environment create\fR \fIenvironment\fR \fI(options)\fR
17
+ .
18
+ .TP
19
+ \fB\-d\fR, \fB\-\-description DESCRIPTION\fR
20
+ The value of the description field\.
21
+ .
22
+ .P
23
+ Create a new environment object on the Chef Server\. The envrionment will be opened in the text editor for editing prior to creation if the \-n option is not present\.
24
+ .
25
+ .SH "DELETE"
26
+ \fBknife environment delete\fR \fIenvironment\fR \fI(options)\fR
27
+ .
28
+ .P
29
+ Destroy an environment on the Chef Server\. A prompt for confirmation will be displayed if the \-y options is not given\.
30
+ .
31
+ .SH "EDIT"
32
+ \fBknife environment edit\fR \fIenvironment\fR \fI(options)\fR
33
+ .
34
+ .P
35
+ Fetch \fIenvironment\fR and display it in the text editor for editing\. The environment will be saved to the Chef Server when the editing session exits\.
36
+ .
37
+ .SH "FROM FILE"
38
+ \fBknife environment from file\fR \fIfile\fR \fI(options)\fR
39
+ .
40
+ .P
41
+ Create or update an environment from the JSON or Ruby format \fIfile\fR\. See \fBformat\fR for the proper format of this file\.
42
+ .
43
+ .SH "LIST"
44
+ \fBknife environment list\fR \fI(options)\fR * \fB\-w\fR, \fB\-\-with\-uri\fR:
45
+ .
46
+ .IP "" 4
47
+ .
48
+ .nf
49
+
50
+ Show the resource URI for each environment
51
+ .
52
+ .fi
53
+ .
54
+ .IP "" 0
55
+ .
56
+ .SH "SHOW"
57
+ \fBknife environment show\fR \fIenvironment\fR \fI(options)\fR
58
+ .
59
+ .SH "DESCRIPTION"
60
+ Environments provide a means to apply policies to hosts in your infrastructure based on business function\. For example, you may have a separate copy of your infrastructure called "dev" that runs the latest version of your application and should use the newest versions of your cookbooks when configuring systems, and a production instance of your infrastructure where you wish to update code and cookbooks in a more controlled fashion\. In Chef, this function is implemented with \fIenvironments\fR\.
61
+ .
62
+ .P
63
+ Environments contain two major components: a set of cookbook version constraints and environment attributes\.
64
+ .
65
+ .SH "SYNTAX"
66
+ A cookbook version constraint is comprised of a \fIcookbook name\fR and a \fIversion constraint\fR\. The \fIcookbook name\fR is the name of a cookbook in your system, and the \fIversion constraint\fR is a String describing the version(s) of that cookbook allowed in the environment\. Only one \fIversion constraint\fR is supported for a given \fIcookbook name\fR\.
67
+ .
68
+ .P
69
+ The exact syntax used to define a cookbook version constraint varies depending on whether you use the JSON format or the Ruby format\. In the JSON format, the cookbook version constraints for an environment are represented as a single JSON object, like this:
70
+ .
71
+ .IP "" 4
72
+ .
73
+ .nf
74
+
75
+ {"apache2": ">= 1\.5\.0"}
76
+ .
77
+ .fi
78
+ .
79
+ .IP "" 0
80
+ .
81
+ .P
82
+ In the Ruby format, the cookbook version contraints for an environment are represented as a Ruby Hash, like this:
83
+ .
84
+ .IP "" 4
85
+ .
86
+ .nf
87
+
88
+ {"apache2" => ">= 1\.5\.0"}
89
+ .
90
+ .fi
91
+ .
92
+ .IP "" 0
93
+ .
94
+ .P
95
+ A \fIversion number\fR is a String comprised of two or three digits separated by a dot (\.) character, or in other words, strings of the form "major\.minor" or "major\.minor\.patch"\. "1\.2" and "1\.2\.3" are examples of valid version numbers\. Version numbers containing more than three digits or alphabetic characters are not supported\.
96
+ .
97
+ .P
98
+ A \fIversion constraint\fR String is composed of an \fIoperator\fR and a \fIversion number\fR\. The following operators are available:
99
+ .
100
+ .TP
101
+ \fB= VERSION\fR
102
+ Equality\. Only the exact version specified may be used\.
103
+ .
104
+ .TP
105
+ \fB> VERSION\fR
106
+ Greater than\. Only versions greater than \fBVERSION\fR may be used\.
107
+ .
108
+ .TP
109
+ \fB>= VERSION\fR
110
+ Greater than or equal to\. Only versions equal to VERSION or greater may be used\.
111
+ .
112
+ .TP
113
+ \fB< VERSION\fR
114
+ Less than\. Only versions less than VERSION may be used\.
115
+ .
116
+ .TP
117
+ \fB<= VERSION\fR
118
+ Less than or equal to\. Only versions lesser or equal to VERSION may be used\.
119
+ .
120
+ .TP
121
+ \fB~> VERSION\fR
122
+ Pessimistic greater than\. Depending on the number of components in the given VERSION, the constraint will be optimistic about future minor or patch revisions only\. For example, \fB~> 1\.1\fR will match any version less than \fB2\.0\fR and greater than or equal to \fB1\.1\.0\fR, whereas \fB~> 2\.0\.5\fR will match any version less than \fB2\.1\.0\fR and greater than or equal to \fB2\.0\.5\fR\.
123
+ .
124
+ .SH "FORMAT"
125
+ The JSON format of an envioronment is as follows:
126
+ .
127
+ .IP "" 4
128
+ .
129
+ .nf
130
+
131
+ {
132
+ "name": "dev",
133
+ "description": "The development environment",
134
+ "cookbook_versions": {
135
+ "couchdb": "= 11\.0\.0"
136
+ },
137
+ "json_class": "Chef::Environment",
138
+ "chef_type": "environment",
139
+ "default_attributes": {
140
+ "apache2": { "listen_ports": [ "80", "443" ] }
141
+ },
142
+ "override_attributes": {
143
+ "aws_s3_bucket": "production"
144
+ }
145
+ }
146
+ .
147
+ .fi
148
+ .
149
+ .IP "" 0
150
+ .
151
+ .P
152
+ The Ruby format of an environment is as follows:
153
+ .
154
+ .IP "" 4
155
+ .
156
+ .nf
157
+
158
+ name "dev"
159
+ description "The development environment"
160
+ cookbook_versions "couchdb" => "= 11\.0\.0"
161
+ default_attributes "apache2" => { "listen_ports" => [ "80", "443" ] }
162
+ override_attributes "aws_s3_bucket" => "production"
163
+ .
164
+ .fi
165
+ .
166
+ .IP "" 0
167
+ .
168
+ .SH "SEE ALSO"
169
+ \fBknife\-node(1)\fR \fBknife\-cookbook(1)\fR \fBknife\-role(1)\fR \fIhttp://wiki\.opscode\.com/display/chef/Environments\fR \fIhttp://wiki\.opscode\.com/display/chef/Version+Constraints\fR
170
+ .
171
+ .SH "AUTHOR"
172
+ Chef was written by Adam Jacob \fIadam@opscode\.com\fR with many contributions from the community\.
173
+ .
174
+ .SH "DOCUMENTATION"
175
+ This manual page was written by Daniel DeLeo \fIdan@opscode\.com\fR\. Permission is granted to copy, distribute and / or modify this document under the terms of the Apache 2\.0 License\.
176
+ .
177
+ .SH "CHEF"
178
+ Knife is distributed with Chef\. \fIhttp://wiki\.opscode\.com/display/chef/Home\fR
@@ -0,0 +1,46 @@
1
+ .\" generated with Ronn/v0.7.3
2
+ .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
+ .
4
+ .TH "KNIFE\-EXEC" "1" "August 2011" "Chef 0.10.4.rc.5" "Chef Manual"
5
+ .
6
+ .SH "NAME"
7
+ \fBknife\-exec\fR \- Run user scripts using the Chef API DSL
8
+ .
9
+ .SH "SYNOPSIS"
10
+ \fBknife\fR \fBexec\fR \fI(options)\fR
11
+ .
12
+ .TP
13
+ \fB\-E\fR, \fB\-\-exec CODE\fR
14
+ Provide a snippet of code to evaluate on the command line
15
+ .
16
+ .SH "DESCRIPTION"
17
+ \fBknife exec\fR runs arbitrary ruby scripts in a context similar to that of the shef(1) DSL\. See the shef documentation for a description of the commands available\.
18
+ .
19
+ .SH "EXAMPLES"
20
+ .
21
+ .TP
22
+ Make an API call against an arbitrary endpoint
23
+ knife exec \-E \'api\.get("nodes/fluke\.localdomain/cookbooks")\'
24
+ .
25
+ .br
26
+ => list of cookbooks for the node \fIfluke\.localdomain\fR
27
+ .
28
+ .TP
29
+ Remove the role \fIobsolete\fR from all nodes
30
+ knife exec \-E \'nodes\.transform(:all){|n| n\.run_list\.delete("role[obsolete]")}\'
31
+ .
32
+ .TP
33
+ Generate the expanded run list for hosts in the \fBwebserver\fR role
34
+ knife exec \-E \'nodes\.find(:roles => "webserver") {|n| n\.expand!; n[:recipes]}\'
35
+ .
36
+ .SH "SEE ALSO"
37
+ \fBshef(1)\fR
38
+ .
39
+ .SH "AUTHOR"
40
+ Chef was written by Adam Jacob \fIadam@opscode\.com\fR with many contributions from the community\.
41
+ .
42
+ .SH "DOCUMENTATION"
43
+ 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\.
44
+ .
45
+ .SH "CHEF"
46
+ Knife is distributed with Chef\. \fIhttp://wiki\.opscode\.com/display/chef/Home\fR
@@ -0,0 +1,29 @@
1
+ .\" generated with Ronn/v0.7.3
2
+ .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
+ .
4
+ .TH "KNIFE\-INDEX" "1" "August 2011" "Chef 0.10.4.rc.5" "Chef Manual"
5
+ .
6
+ .SH "NAME"
7
+ \fBknife\-index\fR \- Rebuild the search index on a Chef Server
8
+ .
9
+ .SH "SYNOPSIS"
10
+ \fBknife\fR \fBindex rebuild\fR \fI(options)\fR
11
+ .
12
+ .TP
13
+ \fB\-y\fR, \fB\-\-yes\fR
14
+ don\'t bother to ask if I\'m sure
15
+ .
16
+ .SH "DESCRIPTION"
17
+ Rebuilds all the search indexes on the server\. This is accomplished by deleting all objects from the search index, and then forwarding each item in the database to \fBchef\-expander\fR(8) via \fBrabbitmq\-server\fR(1)\. Depending on the number of objects in the database, it may take some time for all objects to be indexed and available for search\.
18
+ .
19
+ .SH "SEE ALSO"
20
+ \fBknife\-search\fR(1)
21
+ .
22
+ .SH "AUTHOR"
23
+ Chef was written by Adam Jacob \fIadam@opscode\.com\fR with many contributions from the community\.
24
+ .
25
+ .SH "DOCUMENTATION"
26
+ 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\.
27
+ .
28
+ .SH "CHEF"
29
+ Knife is distributed with Chef\. \fIhttp://wiki\.opscode\.com/display/chef/Home\fR
@@ -0,0 +1,154 @@
1
+ .\" generated with Ronn/v0.7.3
2
+ .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
+ .
4
+ .TH "KNIFE\-NODE" "1" "August 2011" "Chef 0.10.4.rc.5" "Chef Manual"
5
+ .
6
+ .SH "NAME"
7
+ \fBknife\-node\fR \- Manage the hosts in your infrastructure
8
+ .
9
+ .SH "SYNOPSIS"
10
+ \fBknife\fR \fBnode\fR \fIsub\-command\fR \fI(options)\fR
11
+ .
12
+ .SH "DESCRIPTION"
13
+ Nodes are data structures that represent hosts configured with Chef\. Nodes have a \fBname\fR, a String that uniquely identifies the node, \fBattributes\fR, a nested Hash of properties that describe how the host should be configured, a \fBchef_environment\fR, a String representing the environment to which the node belongs, and a \fBrun_list\fR, an ordered list of \fBrecipes\fR or \fBroles\fR that chef\-client should apply when configuring a host\.
14
+ .
15
+ .P
16
+ When a host communicates with a Chef Server, it authenticates using its \fBnode_name\fR for identification and signs its reqests with a private key\. The Server validates the request by looking up a \fBclient\fR object with a name identical to the \fBnode_name\fR submitted with the request and verifes the signature using the public key for that \fBclient\fR object\. \fBNOTE\fR that the \fBclient\fR is a different object in the system\. It is associated with a node by virtue of having a matching name\.
17
+ .
18
+ .P
19
+ By default \fBchef\-client\fR(8) will create a node using the FQDN of the host for the node name, though this may be overridden by configuration settings\.
20
+ .
21
+ .SH "NODE SUB\-COMMANDS"
22
+ The following \fBnode\fR subcommands are available:
23
+ .
24
+ .SH "BULK DELETE"
25
+ \fBknife node bulk delete\fR \fIregex\fR \fI(options)\fR
26
+ .
27
+ .P
28
+ Deletes nodes for which the name matches the regular expression \fIregex\fR on the Chef Server\. The regular expression should be given in quotes, and should not be surrounded with forward slashes (as is typical of regular expression literals in scripting languages)\.
29
+ .
30
+ .SH "CREATE"
31
+ \fBknife node create\fR \fIname\fR \fI(options)\fR
32
+ .
33
+ .P
34
+ Create a new node\. Unless the \-\-no\-editor option is given, an empty node object will be created and displayed in your text editor\. If the editor exits with a successful exit status, the node data will be posted to the Chef Server to create the node\.
35
+ .
36
+ .SH "DELETE"
37
+ \fBknife node delete\fR \fIname\fR \fI(options)\fR
38
+ .
39
+ .P
40
+ Deletes the node identified by \fIname\fR on the Chef Server\.
41
+ .
42
+ .SH "EDIT"
43
+ \fBknife node edit\fR \fIname\fR \fI(options)\fR
44
+ .
45
+ .TP
46
+ \fB\-a\fR, \fB\-\-all\fR
47
+ Display all node data in the editor\. By default, default, override, and automatic attributes are not shown\.
48
+ .
49
+ .P
50
+ Edit the node identified by \fIname\fR\. Like \fBknife node create\fR, the node will be displayed in your text editor unless the \-n option is present\.
51
+ .
52
+ .SH "FROM FILE"
53
+ \fBknife node from file\fR \fIfile\fR \fI(options)\fR
54
+ .
55
+ .P
56
+ Create a node from a JSON format \fIfile\fR\.
57
+ .
58
+ .SH "LIST"
59
+ \fBknife node list\fR \fI(options)\fR
60
+ .
61
+ .TP
62
+ \fB\-w\fR, \fB\-\-with\-uri\fR
63
+ Show corresponding URIs
64
+ .
65
+ .P
66
+ List all nodes\.
67
+ .
68
+ .SH "RUN_LIST ADD"
69
+ \fBknife node run_list add\fR \fIname\fR \fIrun list item\fR \fI(options)\fR
70
+ .
71
+ .TP
72
+ \fB\-a\fR, \fB\-\-after ITEM\fR
73
+ Place the ENTRY in the run list after ITEM
74
+ .
75
+ .P
76
+ Add the \fIrun list item\fR to the node\'s \fBrun_list\fR\. See Run list
77
+ .
78
+ .SH "RUN_LIST REMOVE"
79
+ \fBknife node run_list remove\fR \fInode name\fR \fIrun list item\fR \fI(options)\fR
80
+ .
81
+ .P
82
+ Remove the \fIrun list item\fR from the node\'s \fBrun_list\fR\.
83
+ .
84
+ .SH "SHOW"
85
+ \fBknife node show\fR \fInode name\fR \fI(options)\fR
86
+ .
87
+ .TP
88
+ \fB\-a\fR, \fB\-\-attribute [ATTR]\fR
89
+ Show only one attribute
90
+ .
91
+ .TP
92
+ \fB\-r\fR, \fB\-\-run\-list\fR
93
+ Show only the run list
94
+ .
95
+ .TP
96
+ \fB\-F\fR, \fB\-\-format FORMAT\fR
97
+ Display the node in a different format\.
98
+ .
99
+ .TP
100
+ \fB\-m\fR, \fB\-\-medium\fR
101
+ Display more, but not all, of the node\'s data when using the default \fIsummary\fR format
102
+ .
103
+ .P
104
+ Displays the node identified by \fInode name\fR on stdout\. The amount of content displayed and the output format are modified by the \-\-format option\. If no alternate format is selected, the default is summary\. Valid formats are:
105
+ .
106
+ .IP "\(bu" 4
107
+ summary: displays the node in a custom, summarized format (default)
108
+ .
109
+ .IP "\(bu" 4
110
+ text displays the node data in its entirety using the colorized tree display
111
+ .
112
+ .IP "\(bu" 4
113
+ json: displays the node in JSON format
114
+ .
115
+ .IP "\(bu" 4
116
+ yaml: displays the node in YAML format
117
+ .
118
+ .IP "\(bu" 4
119
+ pp displays the node using Ruby\'s pretty printer\.
120
+ .
121
+ .IP "" 0
122
+ .
123
+ .P
124
+ For brevity, only the first character of the format is required, for example, \-Fj will produce JSON format output\.
125
+ .
126
+ .SH "RUN LIST ITEM FORMAT"
127
+ Run list items may be either roles or recipes\. When adding a role to a run list, the correct syntax is "role[ROLE_NAME]"
128
+ .
129
+ .P
130
+ When adding a recipe to a run list, there are several valid formats:
131
+ .
132
+ .TP
133
+ Fully Qualified Format
134
+ "recipe[COOKBOOK::RECIPE_NAME]", for example, "recipe[chef::client]"
135
+ .
136
+ .TP
137
+ Cookbook Recipe Format
138
+ For brevity, the recipe part of the fully qualified format may be omitted, and recipes specified as "COOKBOOK::RECIPE_NAME", e\.g\., "chef::client"
139
+ .
140
+ .TP
141
+ Default Recipe Format
142
+ When adding the default recipe of a cookbook to a run list, the recipe name may be omitted as well, e\.g\., "chef::default" may be written as just "chef"
143
+ .
144
+ .SH "SEE ALSO"
145
+ \fBknife\-client\fR(1) \fBknife\-search\fR(1) \fBknife\-role\fR(1)
146
+ .
147
+ .SH "AUTHOR"
148
+ Chef was written by Adam Jacob \fIadam@opscode\.com\fR with many contributions from the community\.
149
+ .
150
+ .SH "DOCUMENTATION"
151
+ 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\.
152
+ .
153
+ .SH "CHEF"
154
+ Knife is distributed with Chef\. \fIhttp://wiki\.opscode\.com/display/chef/Home\fR