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.
- data/distro/common/html/knife-bootstrap.1.html +69 -10
- data/distro/common/html/knife-client.1.html +25 -22
- data/distro/common/html/knife-configure.1.html +1 -1
- data/distro/common/html/knife-cookbook-site.1.html +91 -19
- data/distro/common/html/knife-cookbook.1.html +216 -76
- data/distro/common/html/knife-data-bag.1.html +1 -1
- data/distro/common/html/knife-environment.1.html +177 -3
- data/distro/common/html/knife-exec.1.html +44 -3
- data/distro/common/html/knife-index.1.html +1 -1
- data/distro/common/html/knife-node.1.html +5 -3
- data/distro/common/html/knife-recipe.1.html +1 -1
- data/distro/common/html/knife-role.1.html +83 -19
- data/distro/common/html/knife-search.1.html +43 -2
- data/distro/common/html/knife-ssh.1.html +57 -2
- data/distro/common/html/knife-status.1.html +33 -2
- data/distro/common/html/knife-tag.1.html +45 -1
- data/distro/common/html/knife.1.html +94 -161
- data/distro/common/html/shef.1.html +283 -0
- data/distro/common/man/man1/knife-bootstrap.1 +56 -4
- data/distro/common/man/man1/knife-client.1 +12 -11
- data/distro/common/man/man1/knife-configure.1 +1 -1
- data/distro/common/man/man1/knife-cookbook-site.1 +64 -22
- data/distro/common/man/man1/knife-cookbook.1 +200 -122
- data/distro/common/man/man1/knife-data-bag.1 +1 -1
- data/distro/common/man/man1/knife-environment.1 +167 -2
- data/distro/common/man/man1/knife-exec.1 +36 -3
- data/distro/common/man/man1/knife-index.1 +1 -1
- data/distro/common/man/man1/knife-node.1 +2 -1
- data/distro/common/man/man1/knife-role.1 +48 -24
- data/distro/common/man/man1/knife-search.1 +27 -3
- data/distro/common/man/man1/knife-ssh.1 +43 -2
- data/distro/common/man/man1/knife-status.1 +14 -2
- data/distro/common/man/man1/knife-tag.1 +32 -2
- data/distro/common/man/man1/knife.1 +91 -186
- data/distro/common/man/man1/shef.1 +237 -26
- data/distro/common/markdown/man1/knife-bootstrap.mkd +57 -7
- data/distro/common/markdown/man1/knife-client.mkd +19 -17
- data/distro/common/markdown/man1/knife-cookbook-site.mkd +63 -15
- data/distro/common/markdown/man1/knife-cookbook.mkd +220 -103
- data/distro/common/markdown/man1/knife-environment.mkd +144 -1
- data/distro/common/markdown/man1/knife-exec.mkd +29 -1
- data/distro/common/markdown/man1/knife-node.mkd +1 -1
- data/distro/common/markdown/man1/knife-role.mkd +36 -30
- data/distro/common/markdown/man1/knife-search.mkd +0 -1
- data/distro/common/markdown/man1/knife-ssh.mkd +0 -2
- data/distro/common/markdown/man1/knife-status.mkd +0 -2
- data/distro/common/markdown/man1/knife-tag.mkd +31 -0
- data/distro/common/markdown/man1/knife.mkd +93 -165
- data/distro/common/markdown/man1/shef.mkd +189 -0
- data/lib/chef/api_client.rb +36 -35
- data/lib/chef/application/knife.rb +1 -1
- data/lib/chef/client.rb +1 -0
- data/lib/chef/cookbook/cookbook_version_loader.rb +29 -7
- data/lib/chef/cookbook_uploader.rb +55 -36
- data/lib/chef/cookbook_version.rb +3 -1
- data/lib/chef/couchdb.rb +0 -1
- data/lib/chef/knife/cookbook_list.rb +1 -1
- data/lib/chef/knife/cookbook_show.rb +1 -0
- data/lib/chef/knife/core/generic_presenter.rb +3 -3
- data/lib/chef/knife/help.rb +6 -2
- data/lib/chef/knife/tag_create.rb +26 -5
- data/lib/chef/knife/tag_delete.rb +34 -5
- data/lib/chef/knife/tag_list.rb +24 -6
- data/lib/chef/node.rb +1 -0
- data/lib/chef/role.rb +1 -0
- data/lib/chef/shef.rb +1 -0
- data/lib/chef/version.rb +1 -1
- metadata +4 -4
- data/distro/common/man/man1/knife-recipe.1 +0 -13
- 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.
|
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 \-
|
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 "
|
13
|
-
|
12
|
+
.SH "SUB\-COMMANDS"
|
13
|
+
\fBknife cookbook\fR supports the following sub commands:
|
14
14
|
.
|
15
|
-
.
|
16
|
-
\
|
15
|
+
.SH "LIST"
|
16
|
+
\fBknife cookbook list\fR \fI(options)\fR
|
17
17
|
.
|
18
18
|
.TP
|
19
|
-
\fB\-
|
20
|
-
|
19
|
+
\fB\-a\fR, \fB\-\-all\fR
|
20
|
+
show all versions of a cookbook instead of just the most recent
|
21
21
|
.
|
22
|
-
.
|
23
|
-
|
22
|
+
.TP
|
23
|
+
\fB\-w\fR, \fB\-\-with\-uri\fR
|
24
|
+
show corresponding uris
|
24
25
|
.
|
25
26
|
.P
|
26
|
-
|
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
|
-
.
|
33
|
-
\
|
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\-
|
38
|
-
|
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\-
|
42
|
-
|
37
|
+
\fB\-p\fR, \fB\-\-platform platform\fR
|
38
|
+
the platform to see the file for
|
43
39
|
.
|
44
40
|
.TP
|
45
|
-
\fB\-
|
46
|
-
|
41
|
+
\fB\-v\fR, \fB\-\-platform\-version version\fR
|
42
|
+
the platform version to see the file for
|
47
43
|
.
|
48
44
|
.P
|
49
|
-
|
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
|
-
|
56
|
-
.
|
57
|
-
.IP "\(bu" 4
|
58
|
-
COOKBOOK/files/default
|
48
|
+
\fIattributes\fR
|
59
49
|
.
|
60
50
|
.IP "\(bu" 4
|
61
|
-
|
51
|
+
\fIdefinitions\fR
|
62
52
|
.
|
63
53
|
.IP "\(bu" 4
|
64
|
-
|
54
|
+
\fIfiles\fR
|
65
55
|
.
|
66
56
|
.IP "\(bu" 4
|
67
|
-
|
57
|
+
\fIlibraries\fR
|
68
58
|
.
|
69
59
|
.IP "\(bu" 4
|
70
|
-
|
60
|
+
\fIproviders\fR
|
71
61
|
.
|
72
62
|
.IP "\(bu" 4
|
73
|
-
|
63
|
+
\fIrecipes\fR
|
74
64
|
.
|
75
65
|
.IP "\(bu" 4
|
76
|
-
|
66
|
+
\fIresources\fR
|
77
67
|
.
|
78
68
|
.IP "\(bu" 4
|
79
|
-
|
69
|
+
\fItemplates\fR
|
80
70
|
.
|
81
71
|
.IP "" 0
|
82
72
|
.
|
83
|
-
.
|
84
|
-
|
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
|
-
.
|
99
|
-
|
100
|
-
|
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
|
-
.
|
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
|
-
.
|
111
|
-
\
|
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
|
115
|
-
|
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
|
119
|
-
|
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
|
-
|
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
|
-
.
|
125
|
-
\
|
99
|
+
.SH "DOWNLOAD"
|
100
|
+
\fBknife cookbook download cookbook [version]\fR \fI(options)\fR
|
126
101
|
.
|
127
102
|
.TP
|
128
|
-
\fB\-d\fR, \fB\-\-dir
|
129
|
-
|
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
|
-
|
108
|
+
overwrite an existing directory with the download
|
134
109
|
.
|
135
110
|
.TP
|
136
|
-
\fB\-
|
137
|
-
|
111
|
+
\fB\-n\fR, \fB\-\-latest\fR
|
112
|
+
download the latest version of the cookbook
|
138
113
|
.
|
139
114
|
.P
|
140
|
-
|
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
|
-
.
|
143
|
-
\
|
117
|
+
.SH "DELETE"
|
118
|
+
\fBknife cookbook delete cookbook [version]\fR \fI(options)\fR
|
144
119
|
.
|
145
120
|
.TP
|
146
|
-
\fB\-
|
147
|
-
|
121
|
+
\fB\-a\fR, \fB\-\-all\fR
|
122
|
+
delete all versions
|
148
123
|
.
|
149
|
-
.
|
150
|
-
|
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
|
-
|
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
|
-
.
|
156
|
-
\
|
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\-
|
161
|
-
|
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
|
-
|
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
|
-
.
|
167
|
-
\
|
141
|
+
.SH "COOKBOOK CREATE"
|
142
|
+
\fBknife cookbook create cookbook\fR \fI(options)\fR
|
168
143
|
.
|
169
|
-
.
|
170
|
-
|
144
|
+
.TP
|
145
|
+
\fB\-o\fR, \fB\-\-cookbook\-path path\fR
|
146
|
+
the directory where the cookbook will be created
|
171
147
|
.
|
172
|
-
.
|
173
|
-
\
|
148
|
+
.TP
|
149
|
+
\fB\-r\fR, \fB\-\-readme\-format format\fR
|
150
|
+
format of the readme file
|
174
151
|
.
|
175
152
|
.TP
|
176
|
-
\fB\-
|
177
|
-
|
153
|
+
\fB\-c\fR, \fB\-\-copyright copyright\fR
|
154
|
+
name of copyright holder
|
178
155
|
.
|
179
156
|
.TP
|
180
|
-
\fB\-
|
181
|
-
|
157
|
+
\fB\-i\fR, \fB\-\-license license\fR
|
158
|
+
license for cookbook, apachev2 or none
|
182
159
|
.
|
183
160
|
.TP
|
184
|
-
\fB\-
|
185
|
-
|
161
|
+
\fB\-e\fR, \fB\-\-email email\fR
|
162
|
+
email address of cookbook maintainer
|
186
163
|
.
|
187
164
|
.P
|
188
|
-
|
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
|
-
|
168
|
+
cookbook/attributes
|
192
169
|
.
|
193
170
|
.IP "\(bu" 4
|
194
|
-
|
171
|
+
cookbook/definitions
|
195
172
|
.
|
196
173
|
.IP "\(bu" 4
|
197
|
-
|
174
|
+
cookbook/files/default
|
198
175
|
.
|
199
176
|
.IP "\(bu" 4
|
200
|
-
|
177
|
+
cookbook/libraries
|
201
178
|
.
|
202
179
|
.IP "\(bu" 4
|
203
|
-
|
180
|
+
cookbook/metadata\.rb
|
204
181
|
.
|
205
182
|
.IP "\(bu" 4
|
206
|
-
|
183
|
+
cookbook/providers
|
207
184
|
.
|
208
185
|
.IP "\(bu" 4
|
209
|
-
|
186
|
+
cookbook/readme\.rdoc
|
210
187
|
.
|
211
188
|
.IP "\(bu" 4
|
212
|
-
|
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
|
-
|
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
|
-
|
231
|
+
generate metadata for all cookbooks, rather than just a single cookbook
|
222
232
|
.
|
223
233
|
.TP
|
224
|
-
\fB\-o\fR, \fB\-\-cookbook\-path
|
225
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
251
|
+
test all cookbooks, rather than just a single cookbook
|
236
252
|
.
|
237
253
|
.TP
|
238
|
-
\fB\-o\fR, \fB\-\-cookbook\-path
|
239
|
-
|
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
|
-
|
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.
|
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
|