chef 0.10.0.beta.8 → 0.10.0.beta.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. data/distro/common/html/knife-bootstrap.1.html +69 -10
  2. data/distro/common/html/knife-client.1.html +25 -22
  3. data/distro/common/html/knife-configure.1.html +1 -1
  4. data/distro/common/html/knife-cookbook-site.1.html +91 -19
  5. data/distro/common/html/knife-cookbook.1.html +216 -76
  6. data/distro/common/html/knife-data-bag.1.html +1 -1
  7. data/distro/common/html/knife-environment.1.html +177 -3
  8. data/distro/common/html/knife-exec.1.html +44 -3
  9. data/distro/common/html/knife-index.1.html +1 -1
  10. data/distro/common/html/knife-node.1.html +5 -3
  11. data/distro/common/html/knife-recipe.1.html +1 -1
  12. data/distro/common/html/knife-role.1.html +83 -19
  13. data/distro/common/html/knife-search.1.html +43 -2
  14. data/distro/common/html/knife-ssh.1.html +57 -2
  15. data/distro/common/html/knife-status.1.html +33 -2
  16. data/distro/common/html/knife-tag.1.html +45 -1
  17. data/distro/common/html/knife.1.html +94 -161
  18. data/distro/common/html/shef.1.html +283 -0
  19. data/distro/common/man/man1/knife-bootstrap.1 +56 -4
  20. data/distro/common/man/man1/knife-client.1 +12 -11
  21. data/distro/common/man/man1/knife-configure.1 +1 -1
  22. data/distro/common/man/man1/knife-cookbook-site.1 +64 -22
  23. data/distro/common/man/man1/knife-cookbook.1 +200 -122
  24. data/distro/common/man/man1/knife-data-bag.1 +1 -1
  25. data/distro/common/man/man1/knife-environment.1 +167 -2
  26. data/distro/common/man/man1/knife-exec.1 +36 -3
  27. data/distro/common/man/man1/knife-index.1 +1 -1
  28. data/distro/common/man/man1/knife-node.1 +2 -1
  29. data/distro/common/man/man1/knife-role.1 +48 -24
  30. data/distro/common/man/man1/knife-search.1 +27 -3
  31. data/distro/common/man/man1/knife-ssh.1 +43 -2
  32. data/distro/common/man/man1/knife-status.1 +14 -2
  33. data/distro/common/man/man1/knife-tag.1 +32 -2
  34. data/distro/common/man/man1/knife.1 +91 -186
  35. data/distro/common/man/man1/shef.1 +237 -26
  36. data/distro/common/markdown/man1/knife-bootstrap.mkd +57 -7
  37. data/distro/common/markdown/man1/knife-client.mkd +19 -17
  38. data/distro/common/markdown/man1/knife-cookbook-site.mkd +63 -15
  39. data/distro/common/markdown/man1/knife-cookbook.mkd +220 -103
  40. data/distro/common/markdown/man1/knife-environment.mkd +144 -1
  41. data/distro/common/markdown/man1/knife-exec.mkd +29 -1
  42. data/distro/common/markdown/man1/knife-node.mkd +1 -1
  43. data/distro/common/markdown/man1/knife-role.mkd +36 -30
  44. data/distro/common/markdown/man1/knife-search.mkd +0 -1
  45. data/distro/common/markdown/man1/knife-ssh.mkd +0 -2
  46. data/distro/common/markdown/man1/knife-status.mkd +0 -2
  47. data/distro/common/markdown/man1/knife-tag.mkd +31 -0
  48. data/distro/common/markdown/man1/knife.mkd +93 -165
  49. data/distro/common/markdown/man1/shef.mkd +189 -0
  50. data/lib/chef/api_client.rb +36 -35
  51. data/lib/chef/application/knife.rb +1 -1
  52. data/lib/chef/client.rb +1 -0
  53. data/lib/chef/cookbook/cookbook_version_loader.rb +29 -7
  54. data/lib/chef/cookbook_uploader.rb +55 -36
  55. data/lib/chef/cookbook_version.rb +3 -1
  56. data/lib/chef/couchdb.rb +0 -1
  57. data/lib/chef/knife/cookbook_list.rb +1 -1
  58. data/lib/chef/knife/cookbook_show.rb +1 -0
  59. data/lib/chef/knife/core/generic_presenter.rb +3 -3
  60. data/lib/chef/knife/help.rb +6 -2
  61. data/lib/chef/knife/tag_create.rb +26 -5
  62. data/lib/chef/knife/tag_delete.rb +34 -5
  63. data/lib/chef/knife/tag_list.rb +24 -6
  64. data/lib/chef/node.rb +1 -0
  65. data/lib/chef/role.rb +1 -0
  66. data/lib/chef/shef.rb +1 -0
  67. data/lib/chef/version.rb +1 -1
  68. metadata +4 -4
  69. data/distro/common/man/man1/knife-recipe.1 +0 -13
  70. data/distro/common/markdown/man1/knife-recipe.mkd +0 -24
@@ -1,242 +1,320 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "KNIFE\-COOKBOOK" "1" "April 2011" "Chef 0.10.0.beta.8" "Chef Manual"
4
+ .TH "KNIFE\-COOKBOOK" "1" "April 2011" "Chef 0.10.0.beta.9" "Chef Manual"
5
5
  .
6
6
  .SH "NAME"
7
- \fBknife\-cookbook\fR \- Upload and manage Chef cookbooks
7
+ \fBknife\-cookbook\fR \- upload and manage chef cookbooks
8
8
  .
9
9
  .SH "SYNOPSIS"
10
10
  \fBknife\fR \fBcookbook\fR \fIsub\-command\fR \fI(options)\fR
11
11
  .
12
- .SH "COOKBOOK SUB\-COMMANDS"
13
- Cookbooks are the fundamental unit of distribution in Chef\. They encapsulate all recipes of resources and assets used to configure a particular aspect of the infrastructure\. The following sub\-commands can be used to manipulate the cookbooks stored on the Chef Server\.
12
+ .SH "SUB\-COMMANDS"
13
+ \fBknife cookbook\fR supports the following sub commands:
14
14
  .
15
- .P
16
- \fBcookbook bulk delete REGEX\fR \fI(options)\fR
15
+ .SH "LIST"
16
+ \fBknife cookbook list\fR \fI(options)\fR
17
17
  .
18
18
  .TP
19
- \fB\-p\fR, \fB\-\-purge\fR
20
- Purge files from backing store\. This will disable any cookbook that contains any of the same files as the cookbook being purged\.
19
+ \fB\-a\fR, \fB\-\-all\fR
20
+ show all versions of a cookbook instead of just the most recent
21
21
  .
22
- .P
23
- Delete cookbooks on the Chef Server based on a regular expression\. The regular expression (\fIREGEX\fR) should be in quotes, not in //\'s\.
22
+ .TP
23
+ \fB\-w\fR, \fB\-\-with\-uri\fR
24
+ show corresponding uris
24
25
  .
25
26
  .P
26
- \fBcookbook create COOKBOOK\fR \fI(options)\fR
27
- .
28
- .TP
29
- \fB\-o\fR, \fB\-\-cookbook\-path PATH\fR
30
- The directory where the cookbook will be created
27
+ Lists the cookbooks available on the Chef server\.
31
28
  .
32
- .TP
33
- \fB\-r\fR, \fB\-\-readme\-format FORMAT\fR
34
- Format of the README file
29
+ .SH "SHOW"
30
+ \fBknife cookbook show cookbook [version] [part] [filename]\fR \fI(options)\fR
35
31
  .
36
32
  .TP
37
- \fB\-C\fR, \fB\-\-copyright COPYRIGHT\fR
38
- Name of Copyright holder
33
+ \fB\-f\fR, \fB\-\-fqdn fqdn\fR
34
+ the fqdn of the host to see the file for
39
35
  .
40
36
  .TP
41
- \fB\-I\fR, \fB\-\-license LICENSE\fR
42
- License for cookbook, apachev2 or none
37
+ \fB\-p\fR, \fB\-\-platform platform\fR
38
+ the platform to see the file for
43
39
  .
44
40
  .TP
45
- \fB\-E\fR, \fB\-\-email EMAIL\fR
46
- Email address of cookbook maintainer
41
+ \fB\-v\fR, \fB\-\-platform\-version version\fR
42
+ the platform version to see the file for
47
43
  .
48
44
  .P
49
- This is a helper command that creates a new cookbook directory in the \fBcookbook_path\fR\. The following directories and files are created for the named cookbook\.
50
- .
51
- .IP "\(bu" 4
52
- COOKBOOK/attributes
45
+ show a particular part of a \fIcookbook\fR for the specified \fIversion\fR\. \fIpart\fR can be one of:
53
46
  .
54
47
  .IP "\(bu" 4
55
- COOKBOOK/definitions
56
- .
57
- .IP "\(bu" 4
58
- COOKBOOK/files/default
48
+ \fIattributes\fR
59
49
  .
60
50
  .IP "\(bu" 4
61
- COOKBOOK/libraries
51
+ \fIdefinitions\fR
62
52
  .
63
53
  .IP "\(bu" 4
64
- COOKBOOK/metadata\.rb
54
+ \fIfiles\fR
65
55
  .
66
56
  .IP "\(bu" 4
67
- COOKBOOK/providers
57
+ \fIlibraries\fR
68
58
  .
69
59
  .IP "\(bu" 4
70
- COOKBOOK/README\.rdoc
60
+ \fIproviders\fR
71
61
  .
72
62
  .IP "\(bu" 4
73
- COOKBOOK/recipes/default\.rb
63
+ \fIrecipes\fR
74
64
  .
75
65
  .IP "\(bu" 4
76
- COOKBOOK/resources
66
+ \fIresources\fR
77
67
  .
78
68
  .IP "\(bu" 4
79
- COOKBOOK/templates/default
69
+ \fItemplates\fR
80
70
  .
81
71
  .IP "" 0
82
72
  .
83
- .P
84
- Supported README formats are \'rdoc\' (default), \'md\', \'mkd\', \'txt\'\. The README file will be written with the specified extension and a set of helpful starting headers\.
85
- .
86
- .P
87
- Specify \fB\-C\fR or \fB\-\-copyright\fR with the name of the copyright holder as your name or your company/organization name in a quoted string\. If this value is not specified an all\-caps string \fBYOUR_COMPANY_NAME\fR is used which can be easily changed with find/replace\.
88
- .
89
- .P
90
- Specify \fB\-I\fR or \fB\-\-license\fR with the license that the cookbook is distributed under for sharing with other people or posting to the Opscode Cookbooks site\. Be aware of the licenses of files you put inside the cookbook and follow any restrictions they describe\. When using \fBnone\fR (default) or \fBapachev2\fR, comment header text and metadata file are pre\-filled\. The \fBnone\fR license will be treated as non\-redistributable\.
91
- .
92
- .P
93
- Specify \fB\-E\fR or \fB\-\-email\fR with the email address of the cookbook\'s maintainer\. If this value is not specified, an all\-caps string \fBYOUR_EMAIL\fR is used which can easily be changed with find/replace\.
94
- .
95
- .P
96
- The cookbook copyright, license and email settings can be filled in the \fBknife\.rb\fR, for example with default values:
73
+ .SH "UPLOAD"
74
+ \fBknife cookbook upload [cookbooks\.\.\.]\fR \fI(options)\fR
97
75
  .
98
- .IP "" 4
99
- .
100
- .nf
101
-
102
- cookbook_copyright "YOUR_COMPANY_NAME"
103
- cookbook_license "none"
104
- cookbook_email "YOUR_EMAIL"
105
- .
106
- .fi
76
+ .TP
77
+ \fB\-a\fR, \fB\-\-all\fR
78
+ upload all cookbooks, rather than just a single cookbook
107
79
  .
108
- .IP "" 0
80
+ .TP
81
+ \fB\-o\fR, \fB\-\-cookbook\-path path:path\fR
82
+ a colon\-separated path to look for cookbooks in
109
83
  .
110
- .P
111
- \fBcookbook delete COOKBOOK [VERSION]\fR \fI(options)\fR
84
+ .TP
85
+ \fB\-E\fR, \fB\-\-environment ENVIRONMENT\fR
86
+ An \fIENVIRONMENT\fR to apply the uploaded cookbooks to\. Specifying this option will cause knife to edit the \fIENVIRONMENT\fR to place a strict version constraint on the cookbook version(s) uploaded\.
112
87
  .
113
88
  .TP
114
- \fB\-a\fR, \fB\-\-all\fR
115
- Delete all versions
89
+ \fB\-\-freeze\fR
90
+ Sets the frozen flag on the uploaded cookbook(s) Any future attempt to modify the cookbook without changing the version number will return an error unless \-\-force is specified\.
116
91
  .
117
92
  .TP
118
- \fB\-p\fR, \fB\-\-purge\fR
119
- Purge files from backing store\. This will disable any cookbook that contains any of the same files as the cookbook being purged\.
93
+ \fB\-\-force\fR
94
+ Overrides the frozen flag on a cookbook, allowing you to overwrite a cookbook version that has previously been uploaded with the \-\-freeze option\.
120
95
  .
121
96
  .P
122
- Delete the specified \fIVERSION\fR of the named \fICOOKBOOK\fR\. If no version is specified, and only one version exists on the server, that version will be deleted\. If multiple versions are available on the server, you will be prompted for a version to delete\.
97
+ Uploads one or more cookbooks from your local cookbook repository(ies) to the Chef Server\. Only files that don\'t yet exist on the server will be uploaded\.
123
98
  .
124
- .P
125
- \fBcookbook download COOKBOOK [VERSION]\fR \fI(options)\fR
99
+ .SH "DOWNLOAD"
100
+ \fBknife cookbook download cookbook [version]\fR \fI(options)\fR
126
101
  .
127
102
  .TP
128
- \fB\-d\fR, \fB\-\-dir DOWNLOAD_DIRECTORY\fR
129
- The directory to download the cookbook into
103
+ \fB\-d\fR, \fB\-\-dir download_directory\fR
104
+ the directory to download the cookbook into
130
105
  .
131
106
  .TP
132
107
  \fB\-f\fR, \fB\-\-force\fR
133
- Overwrite an existing directory with the download
108
+ overwrite an existing directory with the download
134
109
  .
135
110
  .TP
136
- \fB\-N\fR, \fB\-\-latest\fR
137
- Download the latest version of the cookbook
111
+ \fB\-n\fR, \fB\-\-latest\fR
112
+ download the latest version of the cookbook
138
113
  .
139
114
  .P
140
- Download a cookbook from the Chef Server\. If no version is specified and only one version exists on the server, that version will be downloaded\. If no version is specified and multiple versions are available on the server, you will be prompted for a version to download\.
115
+ download a cookbook from the chef server\. if no version is specified and only one version exists on the server, that version will be downloaded\. if no version is specified and multiple versions are available on the server, you will be prompted for a version to download\.
141
116
  .
142
- .P
143
- \fBcookbook list\fR \fI(options)\fR
117
+ .SH "DELETE"
118
+ \fBknife cookbook delete cookbook [version]\fR \fI(options)\fR
144
119
  .
145
120
  .TP
146
- \fB\-w\fR, \fB\-\-with\-uri\fR
147
- Show corresponding URIs
121
+ \fB\-a\fR, \fB\-\-all\fR
122
+ delete all versions
148
123
  .
149
- .P
150
- List all the cookbooks\.
124
+ .TP
125
+ \fB\-p\fR, \fB\-\-purge\fR
126
+ purge files from backing store\. this will disable any cookbook that contains any of the same files as the cookbook being purged\.
151
127
  .
152
128
  .P
153
- \fBcookbook metadata COOKBOOK\fR \fI(options)\fR
129
+ delete the specified \fIversion\fR of the named \fIcookbook\fR\. if no version is specified, and only one version exists on the server, that version will be deleted\. if multiple versions are available on the server, you will be prompted for a version to delete\.
154
130
  .
155
- .TP
156
- \fB\-a\fR, \fB\-\-all\fR
157
- Generate metadata for all cookbooks, rather than just a single cookbook
131
+ .SH "BULK DELETE"
132
+ \fBknife cookbook bulk delete regex\fR \fI(options)\fR
158
133
  .
159
134
  .TP
160
- \fB\-o\fR, \fB\-\-cookbook\-path PATH:PATH\fR
161
- A colon\-separated path to look for cookbooks in
135
+ \fB\-p\fR, \fB\-\-purge\fR
136
+ purge files from backing store\. this will disable any cookbook that contains any of the same files as the cookbook being purged\.
162
137
  .
163
138
  .P
164
- Generate cookbook metadata for the named \fICOOKBOOK\fR\. The \fIPATH\fR used here specifies where the cookbooks directory is located and corresponds to the \fBcookbook_path\fR configuration option\.
139
+ delete cookbooks on the chef server based on a regular expression\. the regular expression (\fIregex\fR) should be in quotes, not in //\'s\.
165
140
  .
166
- .P
167
- \fBcookbook metadata from FILE\fR \fI(options)\fR
141
+ .SH "COOKBOOK CREATE"
142
+ \fBknife cookbook create cookbook\fR \fI(options)\fR
168
143
  .
169
- .P
170
- Load the cookbook metadata from a specified file\.
144
+ .TP
145
+ \fB\-o\fR, \fB\-\-cookbook\-path path\fR
146
+ the directory where the cookbook will be created
171
147
  .
172
- .P
173
- \fBcookbook show COOKBOOK [VERSION] [PART] [FILENAME]\fR \fI(options)\fR
148
+ .TP
149
+ \fB\-r\fR, \fB\-\-readme\-format format\fR
150
+ format of the readme file
174
151
  .
175
152
  .TP
176
- \fB\-f\fR, \fB\-\-fqdn FQDN\fR
177
- The FQDN of the host to see the file for
153
+ \fB\-c\fR, \fB\-\-copyright copyright\fR
154
+ name of copyright holder
178
155
  .
179
156
  .TP
180
- \fB\-p\fR, \fB\-\-platform PLATFORM\fR
181
- The platform to see the file for
157
+ \fB\-i\fR, \fB\-\-license license\fR
158
+ license for cookbook, apachev2 or none
182
159
  .
183
160
  .TP
184
- \fB\-V\fR, \fB\-\-platform\-version VERSION\fR
185
- The platform version to see the file for
161
+ \fB\-e\fR, \fB\-\-email email\fR
162
+ email address of cookbook maintainer
186
163
  .
187
164
  .P
188
- Show a particular part of a \fICOOKBOOK\fR for the specified \fIVERSION\fR\. \fIPART\fR can be one of:
165
+ this is a helper command that creates a new cookbook directory in the \fBcookbook_path\fR\. the following directories and files are created for the named cookbook\.
189
166
  .
190
167
  .IP "\(bu" 4
191
- \fIattributes\fR
168
+ cookbook/attributes
192
169
  .
193
170
  .IP "\(bu" 4
194
- \fIdefinitions\fR
171
+ cookbook/definitions
195
172
  .
196
173
  .IP "\(bu" 4
197
- \fIfiles\fR
174
+ cookbook/files/default
198
175
  .
199
176
  .IP "\(bu" 4
200
- \fIlibraries\fR
177
+ cookbook/libraries
201
178
  .
202
179
  .IP "\(bu" 4
203
- \fIproviders\fR
180
+ cookbook/metadata\.rb
204
181
  .
205
182
  .IP "\(bu" 4
206
- \fIrecipes\fR
183
+ cookbook/providers
207
184
  .
208
185
  .IP "\(bu" 4
209
- \fIresources\fR
186
+ cookbook/readme\.rdoc
210
187
  .
211
188
  .IP "\(bu" 4
212
- \fItemplates\fR
189
+ cookbook/recipes/default\.rb
190
+ .
191
+ .IP "\(bu" 4
192
+ cookbook/resources
193
+ .
194
+ .IP "\(bu" 4
195
+ cookbook/templates/default
213
196
  .
214
197
  .IP "" 0
215
198
  .
216
199
  .P
217
- \fBcookbook test [COOKBOOKS\.\.\.]\fR \fI(options)\fR
200
+ supported readme formats are \'rdoc\' (default), \'md\', \'mkd\', \'txt\'\. the readme file will be written with the specified extension and a set of helpful starting headers\.
201
+ .
202
+ .P
203
+ specify \fB\-c\fR or \fB\-\-copyright\fR with the name of the copyright holder as your name or your company/organization name in a quoted string\. if this value is not specified an all\-caps string \fByour_company_name\fR is used which can be easily changed with find/replace\.
204
+ .
205
+ .P
206
+ specify \fB\-i\fR or \fB\-\-license\fR with the license that the cookbook is distributed under for sharing with other people or posting to the opscode cookbooks site\. be aware of the licenses of files you put inside the cookbook and follow any restrictions they describe\. when using \fBnone\fR (default) or \fBapachev2\fR, comment header text and metadata file are pre\-filled\. the \fBnone\fR license will be treated as non\-redistributable\.
207
+ .
208
+ .P
209
+ specify \fB\-e\fR or \fB\-\-email\fR with the email address of the cookbook\'s maintainer\. if this value is not specified, an all\-caps string \fByour_email\fR is used which can easily be changed with find/replace\.
210
+ .
211
+ .P
212
+ the cookbook copyright, license and email settings can be filled in the \fBknife\.rb\fR, for example with default values:
213
+ .
214
+ .IP "" 4
215
+ .
216
+ .nf
217
+
218
+ cookbook_copyright "your_company_name"
219
+ cookbook_license "none"
220
+ cookbook_email "your_email"
221
+ .
222
+ .fi
223
+ .
224
+ .IP "" 0
225
+ .
226
+ .SH "METADATA"
227
+ \fBknife cookbook metadata cookbook\fR \fI(options)\fR
218
228
  .
219
229
  .TP
220
230
  \fB\-a\fR, \fB\-\-all\fR
221
- Test all cookbooks, rather than just a single cookbook
231
+ generate metadata for all cookbooks, rather than just a single cookbook
222
232
  .
223
233
  .TP
224
- \fB\-o\fR, \fB\-\-cookbook\-path PATH:PATH\fR
225
- A colon\-separated path to look for cookbooks in
234
+ \fB\-o\fR, \fB\-\-cookbook\-path path:path\fR
235
+ a colon\-separated path to look for cookbooks in
226
236
  .
227
237
  .P
228
- Test the specified cookbooks for syntax errors\. This uses the built\-in Ruby syntax checking option for files in the cookbook ending in \fB\.rb\fR, and the ERB syntax check for files ending in \fB\.erb\fR (templates)\.
238
+ generate cookbook metadata for the named \fIcookbook\fR\. the \fIpath\fR used here specifies where the cookbooks directory is located and corresponds to the \fBcookbook_path\fR configuration option\.
239
+ .
240
+ .SH "METADATA FROM FILE"
241
+ \fBknife cookbook metadata from file\fR \fI(options)\fR
229
242
  .
230
243
  .P
231
- \fBcookbook upload [COOKBOOKS\.\.\.]\fR \fI(options)\fR
244
+ load the cookbook metadata from a specified file\.
245
+ .
246
+ .SH "TEST"
247
+ \fBknife cookbook test [cookbooks\.\.\.]\fR \fI(options)\fR
232
248
  .
233
249
  .TP
234
250
  \fB\-a\fR, \fB\-\-all\fR
235
- Upload all cookbooks, rather than just a single cookbook
251
+ test all cookbooks, rather than just a single cookbook
236
252
  .
237
253
  .TP
238
- \fB\-o\fR, \fB\-\-cookbook\-path PATH:PATH\fR
239
- A colon\-separated path to look for cookbooks in
254
+ \fB\-o\fR, \fB\-\-cookbook\-path path:path\fR
255
+ a colon\-separated path to look for cookbooks in
240
256
  .
241
257
  .P
242
- Uploads the specified cookbooks to the Chef Server\. The actual upload executes a number of commands, most of which occur on the local machine\. The cookbook is staged in a temporary location\. Then the \fBcookbook_path\fR (or \fB\-o PATH\fR) is processed to search for the named cookbook, and each occurance is copied in the order specified\. A syntax check is performed a la \fBcookbook test\fR, above\. The metadata is generated, a la \fBcookbook metadata\fR\. A gzip(1)\'ed, tar(1) file is created, and is uploaded to the server\.
258
+ test the specified cookbooks for syntax errors\. this uses the built\-in ruby syntax checking option for files in the cookbook ending in \fB\.rb\fR, and the erb syntax check for files ending in \fB\.erb\fR (templates)\.
259
+ .
260
+ .SH "RECIPE LIST"
261
+ \fBknife recipe list [PATTERN]\fR
262
+ .
263
+ .P
264
+ List available recipes from the server\. Specify \fIPATTERN\fR as a regular expression to limit the results\.
265
+ .
266
+ .SH "DESCRIPTION"
267
+ Cookbooks are the fundamental unit of distribution in Chef\. They encapsulate all recipes of resources and assets used to configure a particular aspect of the infrastructure\. The following sub\-commands can be used to manipulate the cookbooks stored on the Chef Server\.
268
+ .
269
+ .P
270
+ On disk, cookbooks are directories with a defined structure\. The following directories may appear within a cookbook:
271
+ .
272
+ .TP
273
+ COOKBOOK/attributes/
274
+ Ruby files that define default parameters to be used in recipes
275
+ .
276
+ .TP
277
+ COOKBOOK/definitions/
278
+ Ruby files that contain \fIresource definitions\fR
279
+ .
280
+ .TP
281
+ COOKBOOK/files/SPECIFICITY
282
+ Files of arbitrary type\. These files may be downloaded by chef\-client(8) when configuring a host\.
283
+ .
284
+ .TP
285
+ COOKBOOK/libraries/
286
+ Ruby files that contain library code needed for recipes
287
+ .
288
+ .TP
289
+ COOKBOOK/providers/
290
+ Ruby files that contain Lightweight Provider definitions
291
+ .
292
+ .TP
293
+ COOKBOOK/recipes/
294
+ Ruby files that use Chef\'s recipe DSL to describe the desired configuration of a system
295
+ .
296
+ .TP
297
+ COOKBOOK/resources/
298
+ Ruby files that contain Lightweight Resource definitions
299
+ .
300
+ .TP
301
+ COOKBOOK/templates/SPECIFICITY
302
+ ERuby (ERb) template files\. These are referenced by \fIrecipes\fR and evaluated to dynamically generate configuration files\.
303
+ .
304
+ .P
305
+ \fBSPECIFICITY\fR is a feature of \fIfiles\fR and \fItemplates\fR that allow you to specify alternate files to be used on a specific OS platform or host\. The default specificity setting is \fIdefault\fR, that is files in \fBCOOKBOOK/files/default\fR will be used when a more specific copy is not available\. Further documentation for this feature is available on the Chef wiki: \fIhttp://wiki\.opscode\.com/display/chef/File+Distribution#FileDistribution\-FileSpecificity\fR
306
+ .
307
+ .P
308
+ Cookbooks also contain a metadata file that defines various properties of the cookbook\. The most important of these are the \fIversion\fR and the \fIdependencies\fR\. The \fIversion\fR is used in combination with environments to select which copy of a given cookbook is distributed to a node\. The \fIdependencies\fR are used by the server to determine which additional cookbooks must be distributed to a given host when it requires a cookbook\.
309
+ .
310
+ .SH "SEE ALSO"
311
+ \fBknife\-environment(1)\fR \fBknife\-cookbook\-site(1)\fR \fIhttp://wiki\.opscode\.com/display/chef/Cookbooks\fR \fIhttp://wiki\.opscode\.com/display/chef/Metadata\fR
312
+ .
313
+ .SH "AUTHOR"
314
+ Chef was written by Adam Jacob \fIadam@opscode\.com\fR with many contributions from the community\.
315
+ .
316
+ .SH "DOCUMENTATION"
317
+ 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\.
318
+ .
319
+ .SH "CHEF"
320
+ Knife is distributed with Chef\. \fIhttp://wiki\.opscode\.com/display/chef/Home\fR
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "KNIFE\-DATA\-BAG" "1" "April 2011" "Chef 0.10.0.beta.8" "Chef Manual"
4
+ .TH "KNIFE\-DATA\-BAG" "1" "April 2011" "Chef 0.10.0.beta.9" "Chef Manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBknife\-data\-bag\fR \- Store arbitrary data on a Chef Server