chef 11.12.8-x86-mingw32 → 11.14.0.alpha.2-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (193) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +4 -2
  3. data/distro/common/html/_sources/index.txt +6 -0
  4. data/distro/common/html/_sources/knife_ssl_check.txt +41 -0
  5. data/distro/common/html/_sources/knife_ssl_fetch.txt +41 -0
  6. data/distro/common/html/_static/basic.css +2 -5
  7. data/distro/common/html/_static/doctools.js +5 -14
  8. data/distro/common/html/_static/jquery.js +2 -154
  9. data/distro/common/html/_static/pygments.css +2 -2
  10. data/distro/common/html/_static/searchtools.js +212 -150
  11. data/distro/common/html/_static/underscore.js +29 -21
  12. data/distro/common/html/_static/websupport.js +1 -1
  13. data/distro/common/html/ctl_chef_client.html +15 -18
  14. data/distro/common/html/ctl_chef_server.html +7 -7
  15. data/distro/common/html/ctl_chef_shell.html +6 -6
  16. data/distro/common/html/ctl_chef_solo.html +7 -8
  17. data/distro/common/html/index.html +34 -24
  18. data/distro/common/html/knife.html +23 -24
  19. data/distro/common/html/knife_bootstrap.html +13 -9
  20. data/distro/common/html/knife_client.html +10 -11
  21. data/distro/common/html/knife_common_options.html +6 -7
  22. data/distro/common/html/knife_configure.html +3 -4
  23. data/distro/common/html/knife_cookbook.html +18 -11
  24. data/distro/common/html/knife_cookbook_site.html +14 -14
  25. data/distro/common/html/knife_data_bag.html +24 -23
  26. data/distro/common/html/knife_delete.html +4 -5
  27. data/distro/common/html/knife_deps.html +4 -5
  28. data/distro/common/html/knife_diff.html +6 -7
  29. data/distro/common/html/knife_download.html +12 -13
  30. data/distro/common/html/knife_edit.html +4 -5
  31. data/distro/common/html/knife_environment.html +8 -9
  32. data/distro/common/html/knife_exec.html +9 -10
  33. data/distro/common/html/knife_index_rebuild.html +4 -5
  34. data/distro/common/html/knife_list.html +8 -9
  35. data/distro/common/html/knife_node.html +34 -33
  36. data/distro/common/html/knife_raw.html +2 -3
  37. data/distro/common/html/knife_recipe_list.html +3 -4
  38. data/distro/common/html/knife_role.html +30 -29
  39. data/distro/common/html/knife_search.html +7 -7
  40. data/distro/common/html/knife_show.html +4 -5
  41. data/distro/common/html/knife_ssh.html +2 -3
  42. data/distro/common/html/knife_ssl_check.html +148 -0
  43. data/distro/common/html/knife_ssl_fetch.html +152 -0
  44. data/distro/common/html/knife_status.html +4 -5
  45. data/distro/common/html/knife_tag.html +2 -3
  46. data/distro/common/html/knife_upload.html +5 -6
  47. data/distro/common/html/knife_user.html +9 -10
  48. data/distro/common/html/knife_using.html +12 -12
  49. data/distro/common/html/knife_xargs.html +11 -12
  50. data/distro/common/html/search.html +1 -2
  51. data/distro/common/html/searchindex.js +1 -1
  52. data/distro/common/man/man1/chef-shell.1 +19 -11
  53. data/distro/common/man/man1/knife-bootstrap.1 +35 -19
  54. data/distro/common/man/man1/knife-client.1 +111 -28
  55. data/distro/common/man/man1/knife-configure.1 +30 -14
  56. data/distro/common/man/man1/knife-cookbook-site.1 +105 -22
  57. data/distro/common/man/man1/knife-cookbook.1 +164 -23
  58. data/distro/common/man/man1/knife-data-bag.1 +157 -33
  59. data/distro/common/man/man1/knife-delete.1 +21 -17
  60. data/distro/common/man/man1/knife-deps.1 +60 -16
  61. data/distro/common/man/man1/knife-diff.1 +37 -17
  62. data/distro/common/man/man1/knife-download.1 +68 -24
  63. data/distro/common/man/man1/knife-edit.1 +19 -15
  64. data/distro/common/man/man1/knife-environment.1 +105 -17
  65. data/distro/common/man/man1/knife-exec.1 +78 -18
  66. data/distro/common/man/man1/knife-index-rebuild.1 +16 -8
  67. data/distro/common/man/man1/knife-list.1 +39 -23
  68. data/distro/common/man/man1/knife-node.1 +170 -22
  69. data/distro/common/man/man1/knife-raw.1 +33 -13
  70. data/distro/common/man/man1/knife-recipe-list.1 +17 -5
  71. data/distro/common/man/man1/knife-role.1 +86 -18
  72. data/distro/common/man/man1/knife-search.1 +80 -16
  73. data/distro/common/man/man1/knife-show.1 +30 -14
  74. data/distro/common/man/man1/knife-ssh.1 +54 -14
  75. data/distro/common/man/man1/knife-ssl-check.1 +207 -0
  76. data/distro/common/man/man1/knife-ssl-fetch.1 +207 -0
  77. data/distro/common/man/man1/knife-status.1 +48 -12
  78. data/distro/common/man/man1/knife-tag.1 +30 -10
  79. data/distro/common/man/man1/knife-upload.1 +72 -20
  80. data/distro/common/man/man1/knife-user.1 +79 -23
  81. data/distro/common/man/man1/knife-xargs.1 +61 -53
  82. data/distro/common/man/man8/chef-client.8 +87 -29
  83. data/distro/common/man/man8/chef-solo.8 +36 -15
  84. data/lib/chef/application.rb +19 -14
  85. data/lib/chef/application/client.rb +5 -0
  86. data/lib/chef/application/solo.rb +5 -0
  87. data/lib/chef/application/windows_service_manager.rb +3 -0
  88. data/lib/chef/chef_fs/chef_fs_data_store.rb +72 -24
  89. data/lib/chef/chef_fs/file_system/chef_repository_file_system_cookbook_dir.rb +20 -4
  90. data/lib/chef/chef_fs/file_system/chef_repository_file_system_cookbooks_dir.rb +20 -1
  91. data/lib/chef/chef_fs/file_system/file_system_entry.rb +10 -2
  92. data/lib/chef/client.rb +2 -3
  93. data/lib/chef/config.rb +34 -8
  94. data/lib/chef/cookbook/cookbook_version_loader.rb +45 -4
  95. data/lib/chef/cookbook_version.rb +38 -30
  96. data/lib/chef/dsl/recipe.rb +4 -1
  97. data/lib/chef/event_dispatch/base.rb +14 -0
  98. data/lib/chef/event_dispatch/events_output_stream.rb +29 -0
  99. data/lib/chef/exceptions.rb +8 -0
  100. data/lib/chef/formatters/base.rb +16 -45
  101. data/lib/chef/formatters/doc.rb +51 -26
  102. data/lib/chef/formatters/indentable_output_stream.rb +165 -0
  103. data/lib/chef/knife/node_environment_set.rb +54 -0
  104. data/lib/chef/knife/user_create.rb +1 -1
  105. data/lib/chef/monkey_patches/pathname.rb +32 -0
  106. data/lib/chef/node.rb +1 -1
  107. data/lib/chef/platform/provider_mapping.rb +345 -338
  108. data/lib/chef/policy_builder/expand_node_object.rb +1 -1
  109. data/lib/chef/policy_builder/policyfile.rb +1 -1
  110. data/lib/chef/provider.rb +1 -0
  111. data/lib/chef/provider/git.rb +1 -1
  112. data/lib/chef/provider/link.rb +2 -2
  113. data/lib/chef/provider/remote_file/content.rb +1 -1
  114. data/lib/chef/provider/remote_file/local_file.rb +8 -2
  115. data/lib/chef/provider/service/arch.rb +0 -1
  116. data/lib/chef/provider/service/debian.rb +0 -2
  117. data/lib/chef/provider/service/freebsd.rb +2 -1
  118. data/lib/chef/provider/service/gentoo.rb +1 -1
  119. data/lib/chef/provider/service/init.rb +0 -1
  120. data/lib/chef/provider/service/insserv.rb +0 -2
  121. data/lib/chef/provider/service/invokercd.rb +0 -2
  122. data/lib/chef/provider/service/macosx.rb +2 -1
  123. data/lib/chef/provider/service/redhat.rb +0 -1
  124. data/lib/chef/provider/service/simple.rb +1 -0
  125. data/lib/chef/provider/service/solaris.rb +1 -0
  126. data/lib/chef/provider/service/systemd.rb +1 -1
  127. data/lib/chef/provider/service/upstart.rb +1 -1
  128. data/lib/chef/provider/user.rb +9 -9
  129. data/lib/chef/provider/user/solaris.rb +2 -0
  130. data/lib/chef/resource.rb +1 -0
  131. data/lib/chef/resource/remote_file.rb +32 -6
  132. data/lib/chef/run_context.rb +22 -0
  133. data/lib/chef/run_lock.rb +43 -4
  134. data/lib/chef/version.rb +2 -2
  135. data/spec/functional/http/simple_spec.rb +84 -0
  136. data/spec/functional/resource/remote_file_spec.rb +107 -43
  137. data/spec/functional/rest_spec.rb +94 -0
  138. data/spec/functional/run_lock_spec.rb +1 -1
  139. data/spec/functional/win32/service_manager_spec.rb +6 -0
  140. data/spec/integration/knife/chef_fs_data_store_spec.rb +2 -0
  141. data/spec/integration/recipes/lwrp_inline_resources_spec.rb +76 -0
  142. data/spec/spec_helper.rb +2 -0
  143. data/spec/support/mock/platform.rb +7 -0
  144. data/spec/support/pedant/pedant_config.rb +121 -0
  145. data/spec/support/pedant/run_pedant.rb +63 -0
  146. data/spec/support/pedant/stickywicket.pem +27 -0
  147. data/spec/support/shared/functional/http.rb +242 -0
  148. data/spec/support/shared/unit/api_error_inspector.rb +2 -2
  149. data/spec/unit/api_client_spec.rb +2 -2
  150. data/spec/unit/application/client_spec.rb +6 -1
  151. data/spec/unit/application/knife_spec.rb +4 -0
  152. data/spec/unit/application/solo_spec.rb +2 -0
  153. data/spec/unit/application_spec.rb +7 -0
  154. data/spec/unit/client_spec.rb +16 -0
  155. data/spec/unit/config_spec.rb +3 -20
  156. data/spec/unit/cookbook_version_spec.rb +224 -122
  157. data/spec/unit/formatters/error_inspectors/compile_error_inspector_spec.rb +2 -2
  158. data/spec/unit/formatters/error_inspectors/cookbook_resolve_error_inspector_spec.rb +2 -2
  159. data/spec/unit/formatters/error_inspectors/cookbook_sync_error_inspector_spec.rb +2 -2
  160. data/spec/unit/formatters/error_inspectors/resource_failure_inspector_spec.rb +2 -2
  161. data/spec/unit/formatters/error_inspectors/run_list_expansion_error_inspector_spec.rb +2 -2
  162. data/spec/unit/handler_spec.rb +0 -1
  163. data/spec/unit/knife/client_bulk_delete_spec.rb +3 -0
  164. data/spec/unit/knife/cookbook_bulk_delete_spec.rb +2 -0
  165. data/spec/unit/knife/cookbook_metadata_spec.rb +2 -2
  166. data/spec/unit/knife/cookbook_site_install_spec.rb +3 -1
  167. data/spec/unit/knife/cookbook_upload_spec.rb +10 -10
  168. data/spec/unit/knife/node_environment_set_spec.rb +80 -0
  169. data/spec/unit/knife/user_create_spec.rb +6 -4
  170. data/spec/unit/knife/user_edit_spec.rb +5 -0
  171. data/spec/unit/knife_spec.rb +3 -0
  172. data/spec/unit/mixin/securable_spec.rb +18 -20
  173. data/spec/unit/node/attribute_spec.rb +15 -2
  174. data/spec/unit/node/immutable_collections_spec.rb +4 -4
  175. data/spec/unit/provider/cron_spec.rb +14 -14
  176. data/spec/unit/provider/git_spec.rb +4 -4
  177. data/spec/unit/provider/group_spec.rb +1 -1
  178. data/spec/unit/provider/ohai_spec.rb +2 -2
  179. data/spec/unit/provider/remote_file/content_spec.rb +58 -35
  180. data/spec/unit/provider/remote_file/local_file_spec.rb +23 -0
  181. data/spec/unit/provider/service/solaris_smf_service_spec.rb +13 -13
  182. data/spec/unit/resource/mount_spec.rb +0 -1
  183. data/spec/unit/resource/remote_file_spec.rb +29 -0
  184. data/spec/unit/resource_spec.rb +1 -1
  185. data/spec/unit/run_context_spec.rb +7 -0
  186. data/spec/unit/run_lock_spec.rb +98 -0
  187. data/spec/unit/version_constraint_spec.rb +1 -1
  188. metadata +166 -153
  189. data/distro/common/html/_static/chef.css +0 -507
  190. data/distro/common/html/_static/chef_logo.png +0 -0
  191. data/lib/chef/checksum/storage.rb +0 -18
  192. data/lib/chef/checksum/storage/filesystem.rb +0 -56
  193. data/spec/unit/checksum/storage/filesystem_spec.rb +0 -70
@@ -1,4 +1,6 @@
1
- .TH "KNIFE-DATA-BAG" "1" "Chef 11.10.0" "" "knife data bag"
1
+ .\" Man page generated from reStructuredText.
2
+ .
3
+ .TH "KNIFE-DATA-BAG" "1" "Chef 11.12.0" "" "knife data bag"
2
4
  .SH NAME
3
5
  knife-data-bag \- The man page for the knife data bag subcommand.
4
6
  .
@@ -28,12 +30,10 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
28
30
  .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
29
31
  .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
30
32
  ..
31
- .\" Man page generated from reStructuredText.
32
- .
33
33
  .sp
34
- A data bag is a global variable that is stored as JSON data and is accessible from a server. A data bag is indexed for searching and can be loaded by a recipe or accessed during a search. The contents of a data bag can vary, but they often include sensitive information (such as database passwords).
34
+ A data bag is a global variable that is stored as JSON data and is accessible from a Chef server\&. A data bag is indexed for searching and can be loaded by a recipe or accessed during a search.
35
35
  .sp
36
- A data bag item may be encrypted using \fI\%shared secret encryption\fP. This allows each data bag item to store confidential information (such as a database password) or to be managed in a source control system (without plain\-text data appearing in revision history). Each data bag item may be encrypted individually; if a data bag contains multiple encrypted data bag items, these data bag items are not required to share the same encryption keys.
36
+ A data bag item may be encrypted using \fI\%shared secret encryption\fP\&. This allows each data bag item to store confidential information (such as a database password) or to be managed in a source control system (without plain\-text data appearing in revision history). Each data bag item may be encrypted individually; if a data bag contains multiple encrypted data bag items, these data bag items are not required to share the same encryption keys.
37
37
  .sp
38
38
  The \fBknife data bag\fP subcommand is used to manage arbitrary stores of globally available JSON data.
39
39
  .SH COMMON OPTIONS
@@ -60,13 +60,13 @@ The $EDITOR that is used for all interactive commands.
60
60
  The name of the environment. When this option is added to a command, the command will run only against the named environment.
61
61
  .TP
62
62
  .B \fB\-F FORMAT\fP, \fB\-\-format FORMAT\fP
63
- The output format: \fBsummary\fP (default), \fBtext\fP, \fBjson\fP, \fByaml\fP, and \fBpp\fP.
63
+ The output format: \fBsummary\fP (default), \fBtext\fP, \fBjson\fP, \fByaml\fP, and \fBpp\fP\&.
64
64
  .TP
65
65
  .B \fB\-h\fP, \fB\-\-help\fP
66
66
  Shows help for the command.
67
67
  .TP
68
68
  .B \fB\-k KEY\fP, \fB\-\-key KEY\fP
69
- The private key that Knife will use to sign requests made by the API client to the server.
69
+ The private key that Knife will use to sign requests made by the API client to the Chef server\&.
70
70
  .TP
71
71
  .B \fB\-\-[no\-]color\fP
72
72
  Indicates whether colored output will be used.
@@ -75,36 +75,40 @@ Indicates whether colored output will be used.
75
75
  Indicates that data will be shown after a destructive operation.
76
76
  .TP
77
77
  .B \fB\-s URL\fP, \fB\-\-server\-url URL\fP
78
- The URL for the server.
78
+ The URL for the Chef server\&.
79
79
  .TP
80
80
  .B \fB\-u USER\fP, \fB\-\-user USER\fP
81
- The user name used by Knife to sign requests made by the API client to the server. Authentication will fail if the user name does not match the private key.
81
+ The user name used by Knife to sign requests made by the API client to the Chef server\&. Authentication will fail if the user name does not match the private key.
82
82
  .TP
83
83
  .B \fB\-V\fP, \fB\-\-verbose\fP
84
84
  Set for more verbose outputs. Use \fB\-VV\fP for maximum verbosity.
85
85
  .TP
86
86
  .B \fB\-v\fP, \fB\-\-version\fP
87
- The version of the chef\-client.
87
+ The version of the chef\-client\&.
88
88
  .TP
89
89
  .B \fB\-y\fP, \fB\-\-yes\fP
90
90
  Indicates that the response to all confirmation prompts will be "Yes" (and that Knife will not ask for confirmation).
91
91
  .TP
92
92
  .B \fB\-z\fP, \fB\-\-local\-mode\fP
93
- Indicates that the chef\-client will be run in local mode, which allows all commands that work against the server to also work against the local chef\-repo.
93
+ Indicates that the chef\-client will be run in local mode, which allows all commands that work against the Chef server to also work against the local chef\-repo\&.
94
94
  .UNINDENT
95
95
  .SH CREATE
96
96
  .sp
97
- The \fBcreate\fP argument is used to add a data bag to the server.
97
+ The \fBcreate\fP argument is used to add a data bag to the Chef server\&.
98
98
  .sp
99
99
  \fBSyntax\fP
100
100
  .sp
101
101
  This argument has the following syntax:
102
+ .INDENT 0.0
103
+ .INDENT 3.5
102
104
  .sp
103
105
  .nf
104
106
  .ft C
105
107
  $ knife data bag create DATA_BAG_NAME [DATA_BAG_ITEM] (options)
106
108
  .ft P
107
109
  .fi
110
+ .UNINDENT
111
+ .UNINDENT
108
112
  .sp
109
113
  \fBOptions\fP
110
114
  .sp
@@ -120,40 +124,56 @@ The encryption key that is used for values contained within a data bag item.
120
124
  .B \fB\-\-secret\-file FILE\fP
121
125
  The path to the file that contains the encryption key.
122
126
  .UNINDENT
123
- .IP Note
127
+ .sp
128
+ \fBNOTE:\fP
129
+ .INDENT 0.0
130
+ .INDENT 3.5
124
131
  For encrypted data bag items, use \fIeither\fP \fB\-\-secret\fP or \fB\-\-secret\-file\fP, not both.
125
- .RE
132
+ .UNINDENT
133
+ .UNINDENT
126
134
  .sp
127
135
  \fBExamples\fP
128
136
  .sp
129
137
  To create a data bag named "admins", enter:
138
+ .INDENT 0.0
139
+ .INDENT 3.5
130
140
  .sp
131
141
  .nf
132
142
  .ft C
133
143
  $ knife data bag create admins
134
144
  .ft P
135
145
  .fi
146
+ .UNINDENT
147
+ .UNINDENT
136
148
  .sp
137
149
  to return:
150
+ .INDENT 0.0
151
+ .INDENT 3.5
138
152
  .sp
139
153
  .nf
140
154
  .ft C
141
155
  Created data_bag[admins]
142
156
  .ft P
143
157
  .fi
158
+ .UNINDENT
159
+ .UNINDENT
144
160
  .SH DELETE
145
161
  .sp
146
- The \fBdelete\fP argument is used to delete a data bag or a data bag item from a server.
162
+ The \fBdelete\fP argument is used to delete a data bag or a data bag item from a Chef server\&.
147
163
  .sp
148
164
  \fBSyntax\fP
149
165
  .sp
150
166
  This argument has the following syntax:
167
+ .INDENT 0.0
168
+ .INDENT 3.5
151
169
  .sp
152
170
  .nf
153
171
  .ft C
154
172
  $ knife data bag delete DATA_BAG_NAME [DATA_BAG_ITEM] (options)
155
173
  .ft P
156
174
  .fi
175
+ .UNINDENT
176
+ .UNINDENT
157
177
  .sp
158
178
  \fBOptions\fP
159
179
  .sp
@@ -165,35 +185,47 @@ The name of a specific item within a data bag.
165
185
  .UNINDENT
166
186
  .sp
167
187
  \fBExamples\fP
188
+ .INDENT 0.0
189
+ .INDENT 3.5
168
190
  .sp
169
191
  .nf
170
192
  .ft C
171
193
  $ knife data bag delete data_bag_name
172
194
  .ft P
173
195
  .fi
196
+ .UNINDENT
197
+ .UNINDENT
174
198
  .sp
175
199
  To delete an item named "charlie", enter:
200
+ .INDENT 0.0
201
+ .INDENT 3.5
176
202
  .sp
177
203
  .nf
178
204
  .ft C
179
205
  $ knife data bag delete admins charlie
180
206
  .ft P
181
207
  .fi
208
+ .UNINDENT
209
+ .UNINDENT
182
210
  .sp
183
211
  Type \fBY\fP to confirm a deletion.
184
212
  .SH EDIT
185
213
  .sp
186
- The \fBedit\fP argument is used to edit the data contained in a data bag. If encryption is being used, the data bag will be decrypted, the data will be made available in the $EDITOR, and then encrypted again before saving it to the server.
214
+ The \fBedit\fP argument is used to edit the data contained in a data bag. If encryption is being used, the data bag will be decrypted, the data will be made available in the $EDITOR, and then encrypted again before saving it to the Chef server\&.
187
215
  .sp
188
216
  \fBSyntax\fP
189
217
  .sp
190
218
  This argument has the following syntax:
219
+ .INDENT 0.0
220
+ .INDENT 3.5
191
221
  .sp
192
222
  .nf
193
223
  .ft C
194
224
  $ knife data bag edit DATA_BAG_NAME [DATA_BAG_ITEM] (options)
195
225
  .ft P
196
226
  .fi
227
+ .UNINDENT
228
+ .UNINDENT
197
229
  .sp
198
230
  \fBOptions\fP
199
231
  .sp
@@ -209,29 +241,43 @@ The encryption key that is used for values contained within a data bag item.
209
241
  .B \fB\-\-secret\-file FILE\fP
210
242
  The path to the file that contains the encryption key.
211
243
  .UNINDENT
212
- .IP Note
244
+ .sp
245
+ \fBNOTE:\fP
246
+ .INDENT 0.0
247
+ .INDENT 3.5
213
248
  For encrypted data bag items, use \fIeither\fP \fB\-\-secret\fP or \fB\-\-secret\-file\fP, not both.
214
- .RE
249
+ .UNINDENT
250
+ .UNINDENT
215
251
  .sp
216
252
  \fBExamples\fP
217
253
  .sp
218
254
  To edit the contents of a data bag, enter:
255
+ .INDENT 0.0
256
+ .INDENT 3.5
219
257
  .sp
220
258
  .nf
221
259
  .ft C
222
260
  $ knife data bag edit admins
223
261
  .ft P
224
262
  .fi
263
+ .UNINDENT
264
+ .UNINDENT
225
265
  .sp
226
266
  To edit an item named "charlie" that is contained in a data bag named "admins", enter:
267
+ .INDENT 0.0
268
+ .INDENT 3.5
227
269
  .sp
228
270
  .nf
229
271
  .ft C
230
272
  $ knife data bag edit admins charlie
231
273
  .ft P
232
274
  .fi
275
+ .UNINDENT
276
+ .UNINDENT
233
277
  .sp
234
- to open the $EDITOR. Once opened, you can update the data before saving it to the server. For example, by changing:
278
+ to open the $EDITOR\&. Once opened, you can update the data before saving it to the Chef server\&. For example, by changing:
279
+ .INDENT 0.0
280
+ .INDENT 3.5
235
281
  .sp
236
282
  .nf
237
283
  .ft C
@@ -240,23 +286,29 @@ to open the $EDITOR. Once opened, you can update the data before saving it to th
240
286
  }
241
287
  .ft P
242
288
  .fi
289
+ .UNINDENT
290
+ .UNINDENT
243
291
  .sp
244
292
  to:
293
+ .INDENT 0.0
294
+ .INDENT 3.5
245
295
  .sp
246
296
  .nf
247
297
  .ft C
248
298
  {
249
299
  "id": "charlie",
250
300
  "uid": 1005,
251
- "gid":"ops",
252
- "shell":"/bin/zsh",
253
- "comment":"Crazy Charlie"
301
+ "gid": "ops",
302
+ "shell": "/bin/zsh",
303
+ "comment": "Crazy Charlie"
254
304
  }
255
305
  .ft P
256
306
  .fi
307
+ .UNINDENT
308
+ .UNINDENT
257
309
  .SH FROM FILE
258
310
  .sp
259
- The \fBfrom file\fP argument is used to create a data bag on the server from a file. The path to the data bag file must specify one of the following:
311
+ The \fBfrom file\fP argument is used to create a data bag on the Chef server from a file. The path to the data bag file must specify one of the following:
260
312
  .INDENT 0.0
261
313
  .IP \(bu 2
262
314
  the name of a data bag
@@ -264,20 +316,28 @@ the name of a data bag
264
316
  a relative or absolute path to a file
265
317
  .UNINDENT
266
318
  .sp
267
- If the name of a data bag is specified, Knife will search for the data bag in \fB./data_bags/bag_name/file\fP. Once opened, the JSON file should be a hash that contains at least an ID key which represents the name of the data bag item.
268
- .IP Warning
319
+ If the name of a data bag is specified, Knife will search for the data bag in \fB\&./data_bags/bag_name/file\fP\&. Once opened, the JSON file should be a hash that contains at least an ID key which represents the name of the data bag item.
320
+ .sp
321
+ \fBWARNING:\fP
322
+ .INDENT 0.0
323
+ .INDENT 3.5
269
324
  A chef\-client must be version 11.6 (or higher) when using the \fBknife data bag from file\fP argument with the Enterprise Chef or Open Source Chef version 11 servers.
270
- .RE
325
+ .UNINDENT
326
+ .UNINDENT
271
327
  .sp
272
328
  \fBSyntax\fP
273
329
  .sp
274
330
  This argument has the following syntax:
331
+ .INDENT 0.0
332
+ .INDENT 3.5
275
333
  .sp
276
334
  .nf
277
335
  .ft C
278
336
  $ knife data bag from file DATA_BAG_NAME_or_PATH
279
337
  .ft P
280
338
  .fi
339
+ .UNINDENT
340
+ .UNINDENT
281
341
  .sp
282
342
  \fBOptions\fP
283
343
  .sp
@@ -293,40 +353,56 @@ The encryption key that is used for values contained within a data bag item.
293
353
  .B \fB\-\-secret\-file FILE\fP
294
354
  The path to the file that contains the encryption key.
295
355
  .UNINDENT
296
- .IP Note
356
+ .sp
357
+ \fBNOTE:\fP
358
+ .INDENT 0.0
359
+ .INDENT 3.5
297
360
  For encrypted data bag items, use \fIeither\fP \fB\-\-secret\fP or \fB\-\-secret\-file\fP, not both.
298
- .RE
361
+ .UNINDENT
362
+ .UNINDENT
299
363
  .sp
300
364
  \fBExamples\fP
301
365
  .sp
302
- To create a data bag on the server from a file:
366
+ To create a data bag on the Chef server from a file:
367
+ .INDENT 0.0
368
+ .INDENT 3.5
303
369
  .sp
304
370
  .nf
305
371
  .ft C
306
372
  $ knife data bag from file "path to JSON file"
307
373
  .ft P
308
374
  .fi
375
+ .UNINDENT
376
+ .UNINDENT
309
377
  .sp
310
378
  To create a data bag named "devops_data" that contains encrypted data, enter:
379
+ .INDENT 0.0
380
+ .INDENT 3.5
311
381
  .sp
312
382
  .nf
313
383
  .ft C
314
384
  $ knife data bag from file devops_data \-\-secret\-file "path to decryption file"
315
385
  .ft P
316
386
  .fi
387
+ .UNINDENT
388
+ .UNINDENT
317
389
  .SH LIST
318
390
  .sp
319
- The \fBlist\fP argument is used to view a list of data bags that are currently available on the server.
391
+ The \fBlist\fP argument is used to view a list of data bags that are currently available on the Chef server\&.
320
392
  .sp
321
393
  \fBSyntax\fP
322
394
  .sp
323
395
  This argument has the following syntax:
396
+ .INDENT 0.0
397
+ .INDENT 3.5
324
398
  .sp
325
399
  .nf
326
400
  .ft C
327
401
  $ knife data bag list
328
402
  .ft P
329
403
  .fi
404
+ .UNINDENT
405
+ .UNINDENT
330
406
  .sp
331
407
  \fBOptions\fP
332
408
  .sp
@@ -338,12 +414,16 @@ Indicates that the corresponding URIs will be shown.
338
414
  .UNINDENT
339
415
  .sp
340
416
  \fBExamples\fP
417
+ .INDENT 0.0
418
+ .INDENT 3.5
341
419
  .sp
342
420
  .nf
343
421
  .ft C
344
422
  $ knife data bag list
345
423
  .ft P
346
424
  .fi
425
+ .UNINDENT
426
+ .UNINDENT
347
427
  .SH SHOW
348
428
  .sp
349
429
  The \fBshow\fP argument is used to view the contents of a data bag.
@@ -351,12 +431,16 @@ The \fBshow\fP argument is used to view the contents of a data bag.
351
431
  \fBSyntax\fP
352
432
  .sp
353
433
  This argument has the following syntax:
434
+ .INDENT 0.0
435
+ .INDENT 3.5
354
436
  .sp
355
437
  .nf
356
438
  .ft C
357
439
  $ knife data bag show DATA_BAG_NAME (options)
358
440
  .ft P
359
441
  .fi
442
+ .UNINDENT
443
+ .UNINDENT
360
444
  .sp
361
445
  \fBOptions\fP
362
446
  .sp
@@ -372,35 +456,53 @@ The encryption key that is used for values contained within a data bag item.
372
456
  .B \fB\-\-secret\-file FILE\fP
373
457
  The path to the file that contains the encryption key.
374
458
  .UNINDENT
375
- .IP Note
459
+ .sp
460
+ \fBNOTE:\fP
461
+ .INDENT 0.0
462
+ .INDENT 3.5
376
463
  For encrypted data bag items, use \fIeither\fP \fB\-\-secret\fP or \fB\-\-secret\-file\fP, not both.
377
- .RE
464
+ .UNINDENT
465
+ .UNINDENT
378
466
  .sp
379
467
  \fBExamples\fP
468
+ .INDENT 0.0
469
+ .INDENT 3.5
380
470
  .sp
381
471
  .nf
382
472
  .ft C
383
473
  $ knife data bag show admins
384
474
  .ft P
385
475
  .fi
476
+ .UNINDENT
477
+ .UNINDENT
386
478
  .sp
387
479
  to return something like:
480
+ .INDENT 0.0
481
+ .INDENT 3.5
388
482
  .sp
389
483
  .nf
390
484
  .ft C
391
485
  charlie
392
486
  .ft P
393
487
  .fi
488
+ .UNINDENT
489
+ .UNINDENT
394
490
  .sp
395
491
  To show the contents of a specific item within data bag, enter:
492
+ .INDENT 0.0
493
+ .INDENT 3.5
396
494
  .sp
397
495
  .nf
398
496
  .ft C
399
497
  $ knife data bag show admins charlie
400
498
  .ft P
401
499
  .fi
500
+ .UNINDENT
501
+ .UNINDENT
402
502
  .sp
403
503
  to return:
504
+ .INDENT 0.0
505
+ .INDENT 3.5
404
506
  .sp
405
507
  .nf
406
508
  .ft C
@@ -411,16 +513,24 @@ shell: /bin/zsh
411
513
  uid: 1005
412
514
  .ft P
413
515
  .fi
516
+ .UNINDENT
517
+ .UNINDENT
414
518
  .sp
415
519
  To show the contents of a data bag named "passwords" with an item that contains encrypted data named "mysql", enter:
520
+ .INDENT 0.0
521
+ .INDENT 3.5
416
522
  .sp
417
523
  .nf
418
524
  .ft C
419
525
  $ knife data bag show passwords mysql
420
526
  .ft P
421
527
  .fi
528
+ .UNINDENT
529
+ .UNINDENT
422
530
  .sp
423
531
  to return:
532
+ .INDENT 0.0
533
+ .INDENT 3.5
424
534
  .sp
425
535
  .nf
426
536
  .ft C
@@ -432,16 +542,24 @@ to return:
432
542
  }
433
543
  .ft P
434
544
  .fi
545
+ .UNINDENT
546
+ .UNINDENT
435
547
  .sp
436
548
  To show the decrypted contents of the same data bag, enter:
549
+ .INDENT 0.0
550
+ .INDENT 3.5
437
551
  .sp
438
552
  .nf
439
553
  .ft C
440
554
  $ knife data bag show \-\-secret\-file /path/to/decryption/file passwords mysql
441
555
  .ft P
442
556
  .fi
557
+ .UNINDENT
558
+ .UNINDENT
443
559
  .sp
444
560
  to return:
561
+ .INDENT 0.0
562
+ .INDENT 3.5
445
563
  .sp
446
564
  .nf
447
565
  .ft C
@@ -453,16 +571,22 @@ to return:
453
571
  }
454
572
  .ft P
455
573
  .fi
574
+ .UNINDENT
575
+ .UNINDENT
456
576
  .sp
457
577
  To view information in JSON format, use the \fB\-F\fP common option as part of the command like this:
578
+ .INDENT 0.0
579
+ .INDENT 3.5
458
580
  .sp
459
581
  .nf
460
582
  .ft C
461
583
  $ knife data bag show admins \-F json
462
584
  .ft P
463
585
  .fi
586
+ .UNINDENT
587
+ .UNINDENT
464
588
  .sp
465
- Other formats available include \fBtext\fP, \fByaml\fP, and \fBpp\fP.
589
+ Other formats available include \fBtext\fP, \fByaml\fP, and \fBpp\fP\&.
466
590
  .SH AUTHOR
467
591
  Chef
468
592
  .\" Generated by docutils manpage writer.