chef 13.11.3-universal-mingw32 → 13.12.3-universal-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (260) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +4 -3
  3. data/README.md +35 -40
  4. data/Rakefile +18 -22
  5. data/chef-universal-mingw32.gemspec +1 -1
  6. data/chef.gemspec +3 -3
  7. data/lib/chef/client.rb +1 -1
  8. data/lib/chef/mixin/params_validate.rb +3 -1
  9. data/lib/chef/provider/script.rb +2 -2
  10. data/lib/chef/version.rb +1 -1
  11. data/spec/functional/http/simple_spec.rb +12 -6
  12. data/spec/functional/resource/remote_file_spec.rb +19 -15
  13. data/spec/support/platform_helpers.rb +2 -1
  14. data/tasks/announce.rb +1 -1
  15. data/tasks/dependencies.rb +5 -39
  16. data/tasks/maintainers.rb +10 -10
  17. data/tasks/rspec.rb +2 -2
  18. data/tasks/templates/prerelease.md.erb +11 -2
  19. data/tasks/templates/release.md.erb +9 -1
  20. metadata +6 -247
  21. data/CONTRIBUTING.md +0 -151
  22. data/VERSION +0 -1
  23. data/acceptance/.gitignore +0 -3
  24. data/acceptance/.shared/kitchen_acceptance/.kitchen.digitalocean.yml +0 -33
  25. data/acceptance/.shared/kitchen_acceptance/.kitchen.ec2.yml +0 -283
  26. data/acceptance/.shared/kitchen_acceptance/.kitchen.vagrant.yml +0 -59
  27. data/acceptance/.shared/kitchen_acceptance/libraries/kitchen.rb +0 -68
  28. data/acceptance/.shared/kitchen_acceptance/metadata.rb +0 -1
  29. data/acceptance/Gemfile +0 -19
  30. data/acceptance/Gemfile.lock +0 -266
  31. data/acceptance/README.md +0 -137
  32. data/acceptance/basics/.acceptance/acceptance-cookbook/.gitignore +0 -2
  33. data/acceptance/basics/.acceptance/acceptance-cookbook/metadata.rb +0 -3
  34. data/acceptance/basics/.acceptance/acceptance-cookbook/recipes/destroy.rb +0 -1
  35. data/acceptance/basics/.acceptance/acceptance-cookbook/recipes/provision.rb +0 -1
  36. data/acceptance/basics/.acceptance/acceptance-cookbook/recipes/verify.rb +0 -1
  37. data/acceptance/basics/.kitchen.yml +0 -4
  38. data/acceptance/basics/test/integration/chef-current-install/serverspec/chef_client_spec.rb +0 -19
  39. data/acceptance/basics/test/integration/chef-current-install/serverspec/spec_helper.rb +0 -6
  40. data/acceptance/basics/test/integration/helpers/serverspec/Gemfile +0 -8
  41. data/acceptance/data-collector/.acceptance/acceptance-cookbook/.gitignore +0 -2
  42. data/acceptance/data-collector/.acceptance/acceptance-cookbook/metadata.rb +0 -3
  43. data/acceptance/data-collector/.acceptance/acceptance-cookbook/recipes/destroy.rb +0 -2
  44. data/acceptance/data-collector/.acceptance/acceptance-cookbook/recipes/provision.rb +0 -2
  45. data/acceptance/data-collector/.acceptance/acceptance-cookbook/recipes/verify.rb +0 -2
  46. data/acceptance/data-collector/.acceptance/data-collector-test/.gitignore +0 -16
  47. data/acceptance/data-collector/.acceptance/data-collector-test/Berksfile +0 -3
  48. data/acceptance/data-collector/.acceptance/data-collector-test/files/default/api.rb +0 -101
  49. data/acceptance/data-collector/.acceptance/data-collector-test/files/default/apigemfile +0 -3
  50. data/acceptance/data-collector/.acceptance/data-collector-test/files/default/client-rb-both-mode.rb +0 -4
  51. data/acceptance/data-collector/.acceptance/data-collector-test/files/default/client-rb-client-mode.rb +0 -4
  52. data/acceptance/data-collector/.acceptance/data-collector-test/files/default/client-rb-no-endpoint.rb +0 -2
  53. data/acceptance/data-collector/.acceptance/data-collector-test/files/default/client-rb-solo-mode.rb +0 -4
  54. data/acceptance/data-collector/.acceptance/data-collector-test/files/default/config.ru +0 -2
  55. data/acceptance/data-collector/.acceptance/data-collector-test/metadata.rb +0 -7
  56. data/acceptance/data-collector/.acceptance/data-collector-test/recipes/default.rb +0 -44
  57. data/acceptance/data-collector/.kitchen.yml +0 -9
  58. data/acceptance/data-collector/Berksfile +0 -3
  59. data/acceptance/data-collector/test/integration/default/serverspec/default_spec.rb +0 -208
  60. data/acceptance/data-collector/test/integration/helpers/serverspec/Gemfile +0 -8
  61. data/acceptance/omnitruck/.acceptance/acceptance-cookbook/.gitignore +0 -2
  62. data/acceptance/omnitruck/.acceptance/acceptance-cookbook/metadata.rb +0 -1
  63. data/acceptance/omnitruck/.acceptance/acceptance-cookbook/recipes/destroy.rb +0 -1
  64. data/acceptance/omnitruck/.acceptance/acceptance-cookbook/recipes/provision.rb +0 -1
  65. data/acceptance/omnitruck/.acceptance/acceptance-cookbook/recipes/verify.rb +0 -61
  66. data/acceptance/top-cookbooks/.acceptance/acceptance-cookbook/.gitignore +0 -2
  67. data/acceptance/top-cookbooks/.acceptance/acceptance-cookbook/libraries/cookbook_kitchen.rb +0 -43
  68. data/acceptance/top-cookbooks/.acceptance/acceptance-cookbook/libraries/top_cookbooks.rb +0 -41
  69. data/acceptance/top-cookbooks/.acceptance/acceptance-cookbook/metadata.rb +0 -3
  70. data/acceptance/top-cookbooks/.acceptance/acceptance-cookbook/recipes/destroy.rb +0 -1
  71. data/acceptance/top-cookbooks/.acceptance/acceptance-cookbook/recipes/provision.rb +0 -1
  72. data/acceptance/top-cookbooks/.acceptance/acceptance-cookbook/recipes/verify.rb +0 -1
  73. data/acceptance/top-cookbooks/.gitignore +0 -1
  74. data/acceptance/top-cookbooks/.kitchen.chocolatey.yml +0 -6
  75. data/acceptance/top-cookbooks/.kitchen.iis.yml +0 -4
  76. data/acceptance/top-cookbooks/.kitchen.learn-the-basics-rhel.yml +0 -7
  77. data/acceptance/top-cookbooks/.kitchen.learn-the-basics-ubuntu.yml +0 -7
  78. data/acceptance/top-cookbooks/.kitchen.learn-the-basics-windows.yml +0 -7
  79. data/acceptance/top-cookbooks/.kitchen.powershell.yml +0 -4
  80. data/acceptance/top-cookbooks/.kitchen.sql_server.yml +0 -5
  81. data/acceptance/top-cookbooks/.kitchen.winbox.yml +0 -8
  82. data/acceptance/top-cookbooks/.kitchen.windows.yml +0 -38
  83. data/acceptance/trivial/.acceptance/acceptance-cookbook/.gitignore +0 -2
  84. data/acceptance/trivial/.acceptance/acceptance-cookbook/metadata.rb +0 -2
  85. data/acceptance/trivial/.acceptance/acceptance-cookbook/recipes/destroy.rb +0 -1
  86. data/acceptance/trivial/.acceptance/acceptance-cookbook/recipes/provision.rb +0 -1
  87. data/acceptance/trivial/.acceptance/acceptance-cookbook/recipes/verify.rb +0 -1
  88. data/acceptance/trivial/.kitchen.yml +0 -7
  89. data/acceptance/trivial/test/integration/chef-current-install/inspec/chef_client_spec.rb +0 -5
  90. data/acceptance/windows-service/.acceptance/acceptance-cookbook/.gitignore +0 -2
  91. data/acceptance/windows-service/.acceptance/acceptance-cookbook/metadata.rb +0 -2
  92. data/acceptance/windows-service/.acceptance/acceptance-cookbook/recipes/destroy.rb +0 -1
  93. data/acceptance/windows-service/.acceptance/acceptance-cookbook/recipes/provision.rb +0 -1
  94. data/acceptance/windows-service/.acceptance/acceptance-cookbook/recipes/verify.rb +0 -1
  95. data/acceptance/windows-service/.kitchen.yml +0 -7
  96. data/acceptance/windows-service/test/integration/chef-windows-service/inspec/chef_windows_service_spec.rb +0 -58
  97. data/distro/common/html/_sources/ctl_chef_client.txt +0 -36
  98. data/distro/common/html/_sources/ctl_chef_server.txt +0 -341
  99. data/distro/common/html/_sources/ctl_chef_shell.txt +0 -15
  100. data/distro/common/html/_sources/ctl_chef_solo.txt +0 -25
  101. data/distro/common/html/_sources/index.txt +0 -135
  102. data/distro/common/html/_sources/knife.txt +0 -74
  103. data/distro/common/html/_sources/knife_bootstrap.txt +0 -56
  104. data/distro/common/html/_sources/knife_client.txt +0 -151
  105. data/distro/common/html/_sources/knife_common_options.txt +0 -6
  106. data/distro/common/html/_sources/knife_configure.txt +0 -29
  107. data/distro/common/html/_sources/knife_cookbook.txt +0 -236
  108. data/distro/common/html/_sources/knife_cookbook_site.txt +0 -157
  109. data/distro/common/html/_sources/knife_data_bag.txt +0 -160
  110. data/distro/common/html/_sources/knife_delete.txt +0 -26
  111. data/distro/common/html/_sources/knife_deps.txt +0 -61
  112. data/distro/common/html/_sources/knife_diff.txt +0 -34
  113. data/distro/common/html/_sources/knife_download.txt +0 -44
  114. data/distro/common/html/_sources/knife_edit.txt +0 -26
  115. data/distro/common/html/_sources/knife_environment.txt +0 -158
  116. data/distro/common/html/_sources/knife_exec.txt +0 -47
  117. data/distro/common/html/_sources/knife_index_rebuild.txt +0 -21
  118. data/distro/common/html/_sources/knife_list.txt +0 -33
  119. data/distro/common/html/_sources/knife_node.txt +0 -250
  120. data/distro/common/html/_sources/knife_raw.txt +0 -35
  121. data/distro/common/html/_sources/knife_recipe_list.txt +0 -23
  122. data/distro/common/html/_sources/knife_role.txt +0 -157
  123. data/distro/common/html/_sources/knife_search.txt +0 -53
  124. data/distro/common/html/_sources/knife_serve.txt +0 -19
  125. data/distro/common/html/_sources/knife_show.txt +0 -27
  126. data/distro/common/html/_sources/knife_ssh.txt +0 -43
  127. data/distro/common/html/_sources/knife_ssl_check.txt +0 -41
  128. data/distro/common/html/_sources/knife_ssl_fetch.txt +0 -41
  129. data/distro/common/html/_sources/knife_status.txt +0 -37
  130. data/distro/common/html/_sources/knife_tag.txt +0 -69
  131. data/distro/common/html/_sources/knife_upload.txt +0 -49
  132. data/distro/common/html/_sources/knife_user.txt +0 -127
  133. data/distro/common/html/_sources/knife_using.txt +0 -43
  134. data/distro/common/html/_sources/knife_xargs.txt +0 -30
  135. data/distro/common/html/_static/ajax-loader.gif +0 -0
  136. data/distro/common/html/_static/basic.css +0 -537
  137. data/distro/common/html/_static/chef.ico +0 -0
  138. data/distro/common/html/_static/chef_html_logo.png +0 -0
  139. data/distro/common/html/_static/comment-bright.png +0 -0
  140. data/distro/common/html/_static/comment-close.png +0 -0
  141. data/distro/common/html/_static/comment.png +0 -0
  142. data/distro/common/html/_static/contents.png +0 -0
  143. data/distro/common/html/_static/doctools.js +0 -238
  144. data/distro/common/html/_static/down-pressed.png +0 -0
  145. data/distro/common/html/_static/down.png +0 -0
  146. data/distro/common/html/_static/file.png +0 -0
  147. data/distro/common/html/_static/guide.css +0 -505
  148. data/distro/common/html/_static/jquery.js +0 -2
  149. data/distro/common/html/_static/minus.png +0 -0
  150. data/distro/common/html/_static/navigation.png +0 -0
  151. data/distro/common/html/_static/plus.png +0 -0
  152. data/distro/common/html/_static/pygments.css +0 -62
  153. data/distro/common/html/_static/searchtools.js +0 -622
  154. data/distro/common/html/_static/underscore.js +0 -31
  155. data/distro/common/html/_static/up-pressed.png +0 -0
  156. data/distro/common/html/_static/up.png +0 -0
  157. data/distro/common/html/_static/websupport.js +0 -808
  158. data/distro/common/html/ctl_chef_client.html +0 -270
  159. data/distro/common/html/ctl_chef_server.html +0 -728
  160. data/distro/common/html/ctl_chef_shell.html +0 -163
  161. data/distro/common/html/ctl_chef_solo.html +0 -194
  162. data/distro/common/html/index.html +0 -202
  163. data/distro/common/html/knife.html +0 -170
  164. data/distro/common/html/knife_bootstrap.html +0 -285
  165. data/distro/common/html/knife_client.html +0 -285
  166. data/distro/common/html/knife_common_options.html +0 -96
  167. data/distro/common/html/knife_configure.html +0 -105
  168. data/distro/common/html/knife_cookbook.html +0 -487
  169. data/distro/common/html/knife_cookbook_site.html +0 -375
  170. data/distro/common/html/knife_data_bag.html +0 -374
  171. data/distro/common/html/knife_delete.html +0 -93
  172. data/distro/common/html/knife_deps.html +0 -143
  173. data/distro/common/html/knife_diff.html +0 -123
  174. data/distro/common/html/knife_download.html +0 -145
  175. data/distro/common/html/knife_edit.html +0 -89
  176. data/distro/common/html/knife_environment.html +0 -322
  177. data/distro/common/html/knife_exec.html +0 -220
  178. data/distro/common/html/knife_index_rebuild.html +0 -83
  179. data/distro/common/html/knife_list.html +0 -114
  180. data/distro/common/html/knife_node.html +0 -458
  181. data/distro/common/html/knife_raw.html +0 -110
  182. data/distro/common/html/knife_recipe_list.html +0 -91
  183. data/distro/common/html/knife_role.html +0 -295
  184. data/distro/common/html/knife_search.html +0 -203
  185. data/distro/common/html/knife_serve.html +0 -79
  186. data/distro/common/html/knife_show.html +0 -104
  187. data/distro/common/html/knife_ssh.html +0 -177
  188. data/distro/common/html/knife_ssl_check.html +0 -151
  189. data/distro/common/html/knife_ssl_fetch.html +0 -151
  190. data/distro/common/html/knife_status.html +0 -144
  191. data/distro/common/html/knife_tag.html +0 -138
  192. data/distro/common/html/knife_upload.html +0 -153
  193. data/distro/common/html/knife_user.html +0 -242
  194. data/distro/common/html/knife_using.html +0 -210
  195. data/distro/common/html/knife_xargs.html +0 -122
  196. data/distro/common/html/objects.inv +0 -0
  197. data/distro/common/html/search.html +0 -82
  198. data/distro/common/html/searchindex.js +0 -1
  199. data/distro/common/man/man1/README.md +0 -58
  200. data/distro/common/man/man1/chef-shell.1 +0 -194
  201. data/distro/common/man/man1/knife-bootstrap.1 +0 -215
  202. data/distro/common/man/man1/knife-client.1 +0 -443
  203. data/distro/common/man/man1/knife-configure.1 +0 -161
  204. data/distro/common/man/man1/knife-cookbook-site.1 +0 -552
  205. data/distro/common/man/man1/knife-cookbook.1 +0 -770
  206. data/distro/common/man/man1/knife-data-bag.1 +0 -617
  207. data/distro/common/man/man1/knife-delete.1 +0 -127
  208. data/distro/common/man/man1/knife-deps.1 +0 -246
  209. data/distro/common/man/man1/knife-diff.1 +0 -226
  210. data/distro/common/man/man1/knife-download.1 +0 -258
  211. data/distro/common/man/man1/knife-edit.1 +0 -121
  212. data/distro/common/man/man1/knife-environment.1 +0 -496
  213. data/distro/common/man/man1/knife-exec.1 +0 -362
  214. data/distro/common/man/man1/knife-index-rebuild.1 +0 -63
  215. data/distro/common/man/man1/knife-list.1 +0 -174
  216. data/distro/common/man/man1/knife-node.1 +0 -716
  217. data/distro/common/man/man1/knife-raw.1 +0 -172
  218. data/distro/common/man/man1/knife-recipe-list.1 +0 -85
  219. data/distro/common/man/man1/knife-role.1 +0 -426
  220. data/distro/common/man/man1/knife-search.1 +0 -359
  221. data/distro/common/man/man1/knife-serve.1 +0 -109
  222. data/distro/common/man/man1/knife-show.1 +0 -160
  223. data/distro/common/man/man1/knife-ssh.1 +0 -284
  224. data/distro/common/man/man1/knife-ssl-check.1 +0 -207
  225. data/distro/common/man/man1/knife-ssl-fetch.1 +0 -207
  226. data/distro/common/man/man1/knife-status.1 +0 -234
  227. data/distro/common/man/man1/knife-tag.1 +0 -189
  228. data/distro/common/man/man1/knife-upload.1 +0 -280
  229. data/distro/common/man/man1/knife-user.1 +0 -356
  230. data/distro/common/man/man1/knife-xargs.1 +0 -189
  231. data/distro/common/man/man1/knife.1 +0 -332
  232. data/distro/common/man/man8/chef-apply.8 +0 -86
  233. data/distro/common/man/man8/chef-client.8 +0 -398
  234. data/distro/common/man/man8/chef-solo.8 +0 -260
  235. data/distro/common/markdown/README +0 -3
  236. data/distro/common/markdown/man1/chef-shell.mkd +0 -195
  237. data/distro/common/markdown/man1/knife-bootstrap.mkd +0 -141
  238. data/distro/common/markdown/man1/knife-client.mkd +0 -103
  239. data/distro/common/markdown/man1/knife-configure.mkd +0 -71
  240. data/distro/common/markdown/man1/knife-cookbook-site.mkd +0 -123
  241. data/distro/common/markdown/man1/knife-cookbook.mkd +0 -263
  242. data/distro/common/markdown/man1/knife-data-bag.mkd +0 -121
  243. data/distro/common/markdown/man1/knife-environment.mkd +0 -151
  244. data/distro/common/markdown/man1/knife-exec.mkd +0 -42
  245. data/distro/common/markdown/man1/knife-index.mkd +0 -30
  246. data/distro/common/markdown/man1/knife-node.mkd +0 -130
  247. data/distro/common/markdown/man1/knife-role.mkd +0 -85
  248. data/distro/common/markdown/man1/knife-search.mkd +0 -180
  249. data/distro/common/markdown/man1/knife-ssh.mkd +0 -69
  250. data/distro/common/markdown/man1/knife-status.mkd +0 -36
  251. data/distro/common/markdown/man1/knife-tag.mkd +0 -39
  252. data/distro/common/markdown/man1/knife.mkd +0 -213
  253. data/distro/common/markdown/man8/chef-client.mkd +0 -75
  254. data/distro/common/markdown/man8/chef-expander.mkd +0 -81
  255. data/distro/common/markdown/man8/chef-expanderctl.mkd +0 -57
  256. data/distro/common/markdown/man8/chef-server-webui.mkd +0 -121
  257. data/distro/common/markdown/man8/chef-server.mkd +0 -120
  258. data/distro/common/markdown/man8/chef-solo.mkd +0 -107
  259. data/distro/common/markdown/man8/chef-solr.mkd +0 -89
  260. data/tasks/cbgb.rb +0 -84
@@ -1,215 +0,0 @@
1
- .\" Man page generated from reStructuredText.
2
- .
3
- .TH "KNIFE-BOOTSTRAP" "1" "Chef 12.0" "" "knife bootstrap"
4
- .SH NAME
5
- knife-bootstrap \- The man page for the knife bootstrap subcommand.
6
- .
7
- .nr rst2man-indent-level 0
8
- .
9
- .de1 rstReportMargin
10
- \\$1 \\n[an-margin]
11
- level \\n[rst2man-indent-level]
12
- level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
13
- -
14
- \\n[rst2man-indent0]
15
- \\n[rst2man-indent1]
16
- \\n[rst2man-indent2]
17
- ..
18
- .de1 INDENT
19
- .\" .rstReportMargin pre:
20
- . RS \\$1
21
- . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
22
- . nr rst2man-indent-level +1
23
- .\" .rstReportMargin post:
24
- ..
25
- .de UNINDENT
26
- . RE
27
- .\" indent \\n[an-margin]
28
- .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
29
- .nr rst2man-indent-level -1
30
- .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
31
- .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
32
- ..
33
- .sp
34
- A bootstrap is a process that installs the chef\-client on a target system so that it can run as a chef\-client and communicate with a Chef server\&.
35
- .sp
36
- The \fBknife bootstrap\fP subcommand is used to run a bootstrap operation that installs the chef\-client on the target system. The bootstrap operation must specify the IP address or FQDN of the target system.
37
- .sp
38
- \fBSyntax\fP
39
- .sp
40
- This subcommand has the following syntax:
41
- .INDENT 0.0
42
- .INDENT 3.5
43
- .sp
44
- .nf
45
- .ft C
46
- $ knife bootstrap FQDN_or_IP_ADDRESS (options)
47
- .ft P
48
- .fi
49
- .UNINDENT
50
- .UNINDENT
51
- .sp
52
- \fBOptions\fP
53
- .sp
54
- This subcommand has the following options:
55
- .INDENT 0.0
56
- .TP
57
- .B \fB\-A\fP, \fB\-\-forward\-agent\fP
58
- Use to enable SSH agent forwarding.
59
- .TP
60
- .B \fB\-\-bootstrap\-curl\-options OPTIONS\fP
61
- Use to specify arbitrary options to be added to the bootstrap command when using cURL\&. This option may not be used in the same command with \fB\-\-bootstrap\-install\-command\fP\&.
62
- .TP
63
- .B \fB\-\-bootstrap\-install\-command COMMAND\fP
64
- Use to execute a custom installation command sequence for the chef\-client\&. This option may not be used in the same command with \fB\-\-bootstrap\-curl\-options\fP, \fB\-\-bootstrap\-install\-sh\fP, or \fB\-\-bootstrap\-wget\-options\fP\&.
65
- .TP
66
- .B \fB\-\-bootstrap\-install\-sh URL\fP
67
- Use to fetch and execute an installation script at the specified URL. This option may not be used in the same command with \fB\-\-bootstrap\-install\-command\fP\&.
68
- .TP
69
- .B \fB\-\-bootstrap\-no\-proxy NO_PROXY_URL_or_IP\fP
70
- A URL or IP address that specifies a location that should not be proxied.
71
- .sp
72
- \fBNOTE:\fP
73
- .INDENT 7.0
74
- .INDENT 3.5
75
- This option is used internally by Chef to help verify bootstrap operations during testing and should never be used during an actual bootstrap operation.
76
- .UNINDENT
77
- .UNINDENT
78
- .TP
79
- .B \fB\-\-bootstrap\-proxy PROXY_URL\fP
80
- The proxy server for the node that is the target of a bootstrap operation.
81
- .TP
82
- .B \fB\-\-bootstrap\-version VERSION\fP
83
- The version of the chef\-client to install.
84
- .TP
85
- .B \fB\-\-bootstrap\-wget\-options OPTIONS\fP
86
- Use to specify arbitrary options to be added to the bootstrap command when using GNU Wget\&. This option may not be used in the same command with \fB\-\-bootstrap\-install\-command\fP\&.
87
- .TP
88
- .B \fB\-E ENVIRONMENT\fP, \fB\-\-environment ENVIRONMENT\fP
89
- The name of the environment. When this option is added to a command, the command will run only against the named environment.
90
- .TP
91
- .B \fB\-G GATEWAY\fP, \fB\-\-ssh\-gateway GATEWAY\fP
92
- The SSH tunnel or gateway that is used to run a bootstrap action on a machine that is not accessible from the workstation.
93
- .TP
94
- .B \fB\-\-hint HINT_NAME[=HINT_FILE]\fP
95
- Use to specify an Ohai hint to be set on the target node.
96
- .sp
97
- Ohai hints are used to tell Ohai something about the system that it is running on that it would not be able to discover itself. An Ohai hint exists if a JSON file exists in the hint directory with the same name as the hint. For example, calling \fBhint?(\(aqantartica\(aq)\fP in an Ohai plugin would return an empty hash if the file \fBantartica.json\fP existed in the hints directory, and return nil if the file does not exist.
98
- .sp
99
- If the hint file contains JSON content, it will be returned as a hash from the call to \fBhint?\fP\&.
100
- .INDENT 7.0
101
- .INDENT 3.5
102
- .sp
103
- .nf
104
- .ft C
105
- {
106
- "snow": true,
107
- "penguins": "many"
108
- }
109
- .ft P
110
- .fi
111
- .UNINDENT
112
- .UNINDENT
113
- .INDENT 7.0
114
- .INDENT 3.5
115
- .sp
116
- .nf
117
- .ft C
118
- arctic_hint = hint?(\(aqantartica\(aq)
119
- if arctic_hint[\(aqsnow\(aq]
120
- "There are #{arctic_hint[\(aqpenguins\(aq]} penguins here."
121
- else
122
- "There is no snow here, and penguins like snow."
123
- end
124
- .ft P
125
- .fi
126
- .UNINDENT
127
- .UNINDENT
128
- .sp
129
- The default directory in which hint files are located is \fB/etc/chef/ohai/hints/\fP\&. Use the \fBOhai::Config[:hints_path]\fP setting in the client.rb file to customize this location.
130
- .sp
131
- \fBHINT_FILE\fP is the name of the JSON file. \fBHINT_NAME\fP is the name of a hint in a JSON file. Use multiple \fB\-\-hint\fP options to specify multiple hints.
132
- .TP
133
- .B \fB\-i IDENTITY_FILE\fP, \fB\-\-identity\-file IDENTITY_FILE\fP
134
- The SSH identity file used for authentication. Key\-based authentication is recommended.
135
- .TP
136
- .B \fB\-j JSON_ATTRIBS\fP, \fB\-\-json\-attributes JSON_ATTRIBS\fP
137
- A JSON string that is added to the first run of a chef\-client\&.
138
- .TP
139
- .B \fB\-N NAME\fP, \fB\-\-node\-name NAME\fP
140
- The name of the node.
141
- .TP
142
- .B \fB\-\-[no\-]host\-key\-verify\fP
143
- Use \fB\-\-no\-host\-key\-verify\fP to disable host key verification. Default setting: \fB\-\-host\-key\-verify\fP\&.
144
- .TP
145
- .B \fB\-\-[no\-]node\-verify\-api\-cert\fP
146
- Use \fBverify_api_cert\fP to only do SSL validation of the Chef server connection; may be needed if the chef\-client needs to talk to other services that have broken SSL certificates. If this option is not specified, the setting for \fBverify_api_cert\fP in the configuration file is applied.
147
- .TP
148
- .B \fB\-\-node\-ssl\-verify\-mode PEER_OR_NONE\fP
149
- The verify mode for HTTPS requests.
150
- .sp
151
- Use \fB:verify_none\fP to do no validation of SSL certificates.
152
- .sp
153
- Use \fB:verify_peer\fP to do validation of all SSL certificates, including the Chef server connections, S3 connections, and any HTTPS \fBremote_file\fP resource URLs used in the chef\-client run. This is the recommended setting.
154
- .sp
155
- If this option is not specified, the setting for \fBssl_verify_mode\fP in the configuration file is applied.
156
- .TP
157
- .B \fB\-p PORT\fP, \fB\-\-ssh\-port PORT\fP
158
- The SSH port.
159
- .TP
160
- .B \fB\-P PASSWORD\fP, \fB\-\-ssh\-password PASSWORD\fP
161
- The SSH password. This can be used to pass the password directly on the command line. If this option is not specified (and a password is required) knife will prompt for the password.
162
- .TP
163
- .B \fB\-\-prerelease\fP
164
- Use to install pre\-release gems.
165
- .TP
166
- .B \fB\-r RUN_LIST\fP, \fB\-\-run\-list RUN_LIST\fP
167
- A comma\-separated list of roles and/or recipes to be applied.
168
- .TP
169
- .B \fB\-\-secret SECRET\fP
170
- The encryption key that is used for values contained within a data bag item.
171
- .TP
172
- .B \fB\-\-secret\-file FILE\fP
173
- The path to the file that contains the encryption key.
174
- .TP
175
- .B \fB\-\-sudo\fP
176
- Use to execute a bootstrap operation with sudo\&.
177
- .TP
178
- .B \fB\-t TEMPLATE\fP, \fB\-\-bootstrap\-template TEMPLATE\fP
179
- Use to specify the bootstrap template to use. This may specify the name of a bootstrap template\-\-\-\fBchef\-full\fP, for example\-\-\-or it may specify the full path to an Embedded Ruby (ERB) template that defines a custom bootstrap. Default value: \fBchef\-full\fP, which installs the chef\-client using the omnibus installer on all supported platforms.
180
- .TP
181
- .B \fB\-\-use\-sudo\-password\fP
182
- Use to perform a bootstrap operation with sudo; specify the password with the \fB\-P\fP (or \fB\-\-ssh\-password\fP) option.
183
- .TP
184
- .B \fB\-V \-V\fP
185
- Use to run the initial chef\-client run at the \fBdebug\fP log\-level (e.g. \fBchef\-client \-l debug\fP).
186
- .TP
187
- .B \fB\-x USERNAME\fP, \fB\-\-ssh\-user USERNAME\fP
188
- The SSH user name.
189
- .UNINDENT
190
- .sp
191
- \fBExamples\fP
192
- .INDENT 0.0
193
- .INDENT 3.5
194
- .sp
195
- .nf
196
- .ft C
197
- $ knife bootstrap 192.168.1.1 \-x username \-P PASSWORD \-\-sudo
198
- .ft P
199
- .fi
200
- .UNINDENT
201
- .UNINDENT
202
- .INDENT 0.0
203
- .INDENT 3.5
204
- .sp
205
- .nf
206
- .ft C
207
- $ knife bootstrap 192.168.1.1 \-x username \-i ~/.ssh/id_rsa \-\-sudo
208
- .ft P
209
- .fi
210
- .UNINDENT
211
- .UNINDENT
212
- .SH AUTHOR
213
- Chef
214
- .\" Generated by docutils manpage writer.
215
- .
@@ -1,443 +0,0 @@
1
- .\" Man page generated from reStructuredText.
2
- .
3
- .TH "KNIFE-CLIENT" "1" "Chef 12.0" "" "knife client"
4
- .SH NAME
5
- knife-client \- The man page for the knife client subcommand.
6
- .
7
- .nr rst2man-indent-level 0
8
- .
9
- .de1 rstReportMargin
10
- \\$1 \\n[an-margin]
11
- level \\n[rst2man-indent-level]
12
- level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
13
- -
14
- \\n[rst2man-indent0]
15
- \\n[rst2man-indent1]
16
- \\n[rst2man-indent2]
17
- ..
18
- .de1 INDENT
19
- .\" .rstReportMargin pre:
20
- . RS \\$1
21
- . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
22
- . nr rst2man-indent-level +1
23
- .\" .rstReportMargin post:
24
- ..
25
- .de UNINDENT
26
- . RE
27
- .\" indent \\n[an-margin]
28
- .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
29
- .nr rst2man-indent-level -1
30
- .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
31
- .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
32
- ..
33
- .sp
34
- Every request made by the chef\-client to the Chef server must be an authenticated request using the Chef server API and a private key. When the chef\-client makes a request to the Chef server, the chef\-client authenticates each request using a private key located in \fB/etc/chef/client.pem\fP\&.
35
- .sp
36
- However, during the first chef\-client run, this private key does not exist. Instead, the chef\-client will attempt to use the private key assigned to the chef\-validator, located in \fB/etc/chef/validation.pem\fP\&. (If, for any reason, the chef\-validator is unable to make an authenticated request to the Chef server, the initial chef\-client run will fail.)
37
- .sp
38
- During the initial chef\-client run, the chef\-client will register with the Chef server using the private key assigned to the chef\-validator, after which the chef\-client will obtain a \fBclient.pem\fP private key for all future authentication requests to the Chef server\&.
39
- .sp
40
- After the initial chef\-client run has completed successfully, the chef\-validator is no longer required and may be deleted from the node. Use the \fBdelete_validation\fP recipe found in the \fBchef\-client\fP cookbook (\fI\%https://github.com/chef\-cookbooks/chef\-client\fP) to remove the chef\-validator\&.
41
- .sp
42
- The \fBknife client\fP subcommand is used to manage an API client list and their associated RSA public key\-pairs. This allows authentication requests to be made to the Chef server by any entity that uses the Chef server API, such as the chef\-client and knife\&.
43
- .SH COMMON OPTIONS
44
- .sp
45
- The following options may be used with any of the arguments available to the \fBknife client\fP subcommand:
46
- .INDENT 0.0
47
- .TP
48
- .B \fB\-\-chef\-zero\-port PORT\fP
49
- The port on which chef\-zero will listen.
50
- .TP
51
- .B \fB\-c CONFIG_FILE\fP, \fB\-\-config CONFIG_FILE\fP
52
- The configuration file to use.
53
- .TP
54
- .B \fB\-d\fP, \fB\-\-disable\-editing\fP
55
- Use to prevent the $EDITOR from being opened and to accept data as\-is.
56
- .TP
57
- .B \fB\-\-defaults\fP
58
- Use to have knife use the default value instead of asking a user to provide one.
59
- .TP
60
- .B \fB\-e EDITOR\fP, \fB\-\-editor EDITOR\fP
61
- The $EDITOR that is used for all interactive commands.
62
- .TP
63
- .B \fB\-E ENVIRONMENT\fP, \fB\-\-environment ENVIRONMENT\fP
64
- The name of the environment. When this option is added to a command, the command will run only against the named environment.
65
- .TP
66
- .B \fB\-F FORMAT\fP, \fB\-\-format FORMAT\fP
67
- The output format: \fBsummary\fP (default), \fBtext\fP, \fBjson\fP, \fByaml\fP, and \fBpp\fP\&.
68
- .TP
69
- .B \fB\-h\fP, \fB\-\-help\fP
70
- Shows help for the command.
71
- .TP
72
- .B \fB\-k KEY\fP, \fB\-\-key KEY\fP
73
- The private key that knife will use to sign requests made by the API client to the Chef server\&.
74
- .TP
75
- .B \fB\-\-[no\-]color\fP
76
- Use to view colored output.
77
- .TP
78
- .B \fB\-\-print\-after\fP
79
- Use to show data after a destructive operation.
80
- .TP
81
- .B \fB\-s URL\fP, \fB\-\-server\-url URL\fP
82
- The URL for the Chef server\&.
83
- .TP
84
- .B \fB\-u USER\fP, \fB\-\-user USER\fP
85
- 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.
86
- .TP
87
- .B \fB\-V\fP, \fB\-\-verbose\fP
88
- Set for more verbose outputs. Use \fB\-VV\fP for maximum verbosity.
89
- .TP
90
- .B \fB\-v\fP, \fB\-\-version\fP
91
- The version of the chef\-client\&.
92
- .TP
93
- .B \fB\-y\fP, \fB\-\-yes\fP
94
- Use to respond to all confirmation prompts with "Yes". knife will not ask for confirmation.
95
- .TP
96
- .B \fB\-z\fP, \fB\-\-local\-mode\fP
97
- Use to run the chef\-client in local mode. This allows all commands that work against the Chef server to also work against the local chef\-repo\&.
98
- .UNINDENT
99
- .SH BULK DELETE
100
- .sp
101
- The \fBbulk delete\fP argument is used to delete any API client that matches a pattern defined by a regular expression. The regular expression must be within quotes and not be surrounded by forward slashes (\fB/\fP).
102
- .sp
103
- \fBSyntax\fP
104
- .sp
105
- This argument has the following syntax:
106
- .INDENT 0.0
107
- .INDENT 3.5
108
- .sp
109
- .nf
110
- .ft C
111
- $ knife client bulk delete REGEX
112
- .ft P
113
- .fi
114
- .UNINDENT
115
- .UNINDENT
116
- .sp
117
- \fBOptions\fP
118
- .sp
119
- This command does not have any specific options.
120
- .SH CREATE
121
- .sp
122
- The \fBcreate\fP argument is used to create a new API client\&. This process will generate an RSA key pair for the named API client\&. The public key will be stored on the Chef server and the private key will be displayed on \fBSTDOUT\fP or written to a named file.
123
- .INDENT 0.0
124
- .IP \(bu 2
125
- For the chef\-client, the private key should be copied to the system as \fB/etc/chef/client.pem\fP\&.
126
- .IP \(bu 2
127
- For knife, the private key is typically copied to \fB~/.chef/client_name.pem\fP and referenced in the knife.rb configuration file.
128
- .UNINDENT
129
- .sp
130
- \fBSyntax\fP
131
- .sp
132
- This argument has the following syntax:
133
- .INDENT 0.0
134
- .INDENT 3.5
135
- .sp
136
- .nf
137
- .ft C
138
- $ knife client create CLIENT_NAME (options)
139
- .ft P
140
- .fi
141
- .UNINDENT
142
- .UNINDENT
143
- .sp
144
- \fBOptions\fP
145
- .sp
146
- This argument has the following options:
147
- .INDENT 0.0
148
- .TP
149
- .B \fB\-a\fP, \fB\-\-admin\fP
150
- Use to create a client as an admin client. This is required for any user to access Open Source Chef as an administrator. This option only works when used with the open source Chef server and will have no effect when used with Enterprise Chef\&.
151
- .TP
152
- .B \fB\-f FILE\fP, \fB\-\-file FILE\fP
153
- Use to save a private key to the specified file name.
154
- .TP
155
- .B \fB\-\-validator\fP
156
- Use to create the client as the chef\-validator\&. Default value: \fBtrue\fP\&.
157
- .UNINDENT
158
- .sp
159
- \fBExamples\fP
160
- .sp
161
- To create a chef\-client that can access the Chef server API as an administrator\-\-\-sometimes referred to as an "API chef\-client"\-\-\-with the name "exampleorg" and save its private key to a file, enter:
162
- .INDENT 0.0
163
- .INDENT 3.5
164
- .sp
165
- .nf
166
- .ft C
167
- $ knife client create exampleorg \-a \-f "/etc/chef/client.pem"
168
- .ft P
169
- .fi
170
- .UNINDENT
171
- .UNINDENT
172
- .sp
173
- When running the \fBcreate\fP argument on Enterprise Chef, be sure to omit the \fB\-a\fP option:
174
- .INDENT 0.0
175
- .INDENT 3.5
176
- .sp
177
- .nf
178
- .ft C
179
- $ knife client create exampleorg \-f "/etc/chef/client.pem"
180
- .ft P
181
- .fi
182
- .UNINDENT
183
- .UNINDENT
184
- .SH DELETE
185
- .sp
186
- The \fBdelete\fP argument is used to delete a registered API client\&.
187
- .sp
188
- \fBSyntax\fP
189
- .sp
190
- This argument has the following syntax:
191
- .INDENT 0.0
192
- .INDENT 3.5
193
- .sp
194
- .nf
195
- .ft C
196
- $ knife client delete CLIENT_NAME
197
- .ft P
198
- .fi
199
- .UNINDENT
200
- .UNINDENT
201
- .sp
202
- \fBOptions\fP
203
- .sp
204
- This command does not have any specific options.
205
- .sp
206
- \fBExamples\fP
207
- .sp
208
- To delete a client with the name "client_foo", enter:
209
- .INDENT 0.0
210
- .INDENT 3.5
211
- .sp
212
- .nf
213
- .ft C
214
- $ knife client delete client_foo
215
- .ft P
216
- .fi
217
- .UNINDENT
218
- .UNINDENT
219
- .sp
220
- Type \fBY\fP to confirm a deletion.
221
- .SH EDIT
222
- .sp
223
- The \fBedit\fP argument is used to edit the details of a registered API client\&. When this argument is run, knife will open $EDITOR to enable editing of the \fBadmin\fP attribute. (None of the other attributes should be changed using this argument.) When finished, knife will update the Chef server with those changes.
224
- .sp
225
- \fBSyntax\fP
226
- .sp
227
- This argument has the following syntax:
228
- .INDENT 0.0
229
- .INDENT 3.5
230
- .sp
231
- .nf
232
- .ft C
233
- $ knife client edit CLIENT_NAME
234
- .ft P
235
- .fi
236
- .UNINDENT
237
- .UNINDENT
238
- .sp
239
- \fBOptions\fP
240
- .sp
241
- This command does not have any specific options.
242
- .sp
243
- \fBExamples\fP
244
- .sp
245
- To edit a client with the name "exampleorg", enter:
246
- .INDENT 0.0
247
- .INDENT 3.5
248
- .sp
249
- .nf
250
- .ft C
251
- $ knife client edit exampleorg
252
- .ft P
253
- .fi
254
- .UNINDENT
255
- .UNINDENT
256
- .SH LIST
257
- .sp
258
- The \fBlist\fP argument is used to view a list of registered API client\&.
259
- .sp
260
- \fBSyntax\fP
261
- .sp
262
- This argument has the following syntax:
263
- .INDENT 0.0
264
- .INDENT 3.5
265
- .sp
266
- .nf
267
- .ft C
268
- $ knife client list (options)
269
- .ft P
270
- .fi
271
- .UNINDENT
272
- .UNINDENT
273
- .sp
274
- \fBOptions\fP
275
- .sp
276
- This argument has the following options:
277
- .INDENT 0.0
278
- .TP
279
- .B \fB\-w\fP, \fB\-\-with\-uri\fP
280
- Use to show the corresponding URIs.
281
- .UNINDENT
282
- .sp
283
- \fBExamples\fP
284
- .sp
285
- To verify the API client list for the Chef server, enter:
286
- .INDENT 0.0
287
- .INDENT 3.5
288
- .sp
289
- .nf
290
- .ft C
291
- $ knife client list
292
- .ft P
293
- .fi
294
- .UNINDENT
295
- .UNINDENT
296
- .sp
297
- to return something similar to:
298
- .INDENT 0.0
299
- .INDENT 3.5
300
- .sp
301
- .nf
302
- .ft C
303
- exampleorg
304
- i\-12345678
305
- rs\-123456
306
- .ft P
307
- .fi
308
- .UNINDENT
309
- .UNINDENT
310
- .sp
311
- To verify that an API client can authenticate to the
312
- Chef server correctly, try getting a list of clients using \fB\-u\fP and \fB\-k\fP options to specify its name and private key:
313
- .INDENT 0.0
314
- .INDENT 3.5
315
- .sp
316
- .nf
317
- .ft C
318
- $ knife client list \-u ORGNAME \-k .chef/ORGNAME.pem
319
- .ft P
320
- .fi
321
- .UNINDENT
322
- .UNINDENT
323
- .SH REREGISTER
324
- .sp
325
- The \fBreregister\fP argument is used to regenerate an RSA key pair for an API client\&. The public key will be stored on the Chef server and the private key will be displayed on \fBSTDOUT\fP or written to a named file.
326
- .sp
327
- \fBNOTE:\fP
328
- .INDENT 0.0
329
- .INDENT 3.5
330
- Running this argument will invalidate the previous RSA key pair, making it unusable during authentication to the Chef server\&.
331
- .UNINDENT
332
- .UNINDENT
333
- .sp
334
- \fBSyntax\fP
335
- .sp
336
- This argument has the following syntax:
337
- .INDENT 0.0
338
- .INDENT 3.5
339
- .sp
340
- .nf
341
- .ft C
342
- $ knife client reregister CLIENT_NAME (options)
343
- .ft P
344
- .fi
345
- .UNINDENT
346
- .UNINDENT
347
- .sp
348
- \fBOptions\fP
349
- .sp
350
- This argument has the following options:
351
- .INDENT 0.0
352
- .TP
353
- .B \fB\-f FILE_NAME\fP, \fB\-\-file FILE_NAME\fP
354
- Use to save a private key to the specified file name.
355
- .UNINDENT
356
- .sp
357
- \fBExamples\fP
358
- .sp
359
- To regenerate the RSA key pair for a client named "testclient" and save it to a file named "rsa_key", enter:
360
- .INDENT 0.0
361
- .INDENT 3.5
362
- .sp
363
- .nf
364
- .ft C
365
- $ knife client regenerate testclient \-f rsa_key
366
- .ft P
367
- .fi
368
- .UNINDENT
369
- .UNINDENT
370
- .SH SHOW
371
- .sp
372
- The \fBshow\fP argument is used to show the details of an API client\&.
373
- .sp
374
- \fBSyntax\fP
375
- .sp
376
- This argument has the following syntax:
377
- .INDENT 0.0
378
- .INDENT 3.5
379
- .sp
380
- .nf
381
- .ft C
382
- $ knife client show CLIENT_NAME (options)
383
- .ft P
384
- .fi
385
- .UNINDENT
386
- .UNINDENT
387
- .sp
388
- \fBOptions\fP
389
- .sp
390
- This argument has the following options:
391
- .INDENT 0.0
392
- .TP
393
- .B \fB\-a ATTR\fP, \fB\-\-attribute ATTR\fP
394
- The attribute (or attributes) to show.
395
- .UNINDENT
396
- .sp
397
- \fBExamples\fP
398
- .sp
399
- To view a client named "testclient", enter:
400
- .INDENT 0.0
401
- .INDENT 3.5
402
- .sp
403
- .nf
404
- .ft C
405
- $ knife client show testclient
406
- .ft P
407
- .fi
408
- .UNINDENT
409
- .UNINDENT
410
- .sp
411
- to return something like:
412
- .INDENT 0.0
413
- .INDENT 3.5
414
- .sp
415
- .nf
416
- .ft C
417
- admin: false
418
- chef_type: client
419
- json_class: Chef::ApiClient
420
- name: testclient
421
- public_key:
422
- .ft P
423
- .fi
424
- .UNINDENT
425
- .UNINDENT
426
- .sp
427
- To view information in JSON format, use the \fB\-F\fP common option as part of the command like this:
428
- .INDENT 0.0
429
- .INDENT 3.5
430
- .sp
431
- .nf
432
- .ft C
433
- $ knife role show devops \-F json
434
- .ft P
435
- .fi
436
- .UNINDENT
437
- .UNINDENT
438
- .sp
439
- Other formats available include \fBtext\fP, \fByaml\fP, and \fBpp\fP\&.
440
- .SH AUTHOR
441
- Chef
442
- .\" Generated by docutils manpage writer.
443
- .