chef 11.10.0.alpha.1 → 11.10.0.rc.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (131) hide show
  1. data/README.md +57 -36
  2. data/distro/common/html/chef-client.8.html +4 -4
  3. data/distro/common/html/chef-expander.8.html +4 -4
  4. data/distro/common/html/chef-expanderctl.8.html +4 -4
  5. data/distro/common/html/chef-server-webui.8.html +4 -4
  6. data/distro/common/html/chef-server.8.html +4 -4
  7. data/distro/common/html/chef-shell.1.html +4 -4
  8. data/distro/common/html/chef-solo.8.html +4 -4
  9. data/distro/common/html/chef-solr.8.html +5 -5
  10. data/distro/common/html/knife-bootstrap.1.html +4 -4
  11. data/distro/common/html/knife-client.1.html +4 -4
  12. data/distro/common/html/knife-configure.1.html +4 -4
  13. data/distro/common/html/knife-cookbook-site.1.html +4 -4
  14. data/distro/common/html/knife-cookbook.1.html +4 -4
  15. data/distro/common/html/knife-data-bag.1.html +4 -4
  16. data/distro/common/html/knife-environment.1.html +4 -4
  17. data/distro/common/html/knife-exec.1.html +4 -4
  18. data/distro/common/html/knife-index.1.html +4 -4
  19. data/distro/common/html/knife-node.1.html +4 -4
  20. data/distro/common/html/knife-role.1.html +4 -4
  21. data/distro/common/html/knife-search.1.html +4 -4
  22. data/distro/common/html/knife-ssh.1.html +4 -4
  23. data/distro/common/html/knife-status.1.html +4 -4
  24. data/distro/common/html/knife-tag.1.html +4 -4
  25. data/distro/common/html/knife.1.html +4 -4
  26. data/distro/common/man/man1/knife-bootstrap.1 +58 -64
  27. data/distro/common/man/man1/knife-client.1 +19 -22
  28. data/distro/common/man/man1/knife-configure.1 +37 -46
  29. data/distro/common/man/man1/knife-cookbook-site.1 +14 -17
  30. data/distro/common/man/man1/knife-cookbook.1 +15 -18
  31. data/distro/common/man/man1/knife-data-bag.1 +14 -17
  32. data/distro/common/man/man1/knife-delete.1 +38 -47
  33. data/distro/common/man/man1/knife-deps.1 +39 -48
  34. data/distro/common/man/man1/knife-diff.1 +43 -52
  35. data/distro/common/man/man1/knife-download.1 +47 -53
  36. data/distro/common/man/man1/knife-edit.1 +32 -41
  37. data/distro/common/man/man1/knife-environment.1 +14 -17
  38. data/distro/common/man/man1/knife-exec.1 +52 -61
  39. data/distro/common/man/man1/knife-index-rebuild.1 +1 -61
  40. data/distro/common/man/man1/knife-list.1 +47 -59
  41. data/distro/common/man/man1/knife-node.1 +15 -18
  42. data/distro/common/man/man1/knife-raw.1 +28 -46
  43. data/distro/common/man/man1/knife-recipe-list.1 +1 -61
  44. data/distro/common/man/man1/knife-role.1 +19 -25
  45. data/distro/common/man/man1/knife-search.1 +53 -62
  46. data/distro/common/man/man1/knife-show.1 +36 -28
  47. data/distro/common/man/man1/knife-ssh.1 +55 -61
  48. data/distro/common/man/man1/knife-status.1 +34 -43
  49. data/distro/common/man/man1/knife-tag.1 +14 -17
  50. data/distro/common/man/man1/knife-upload.1 +47 -56
  51. data/distro/common/man/man1/knife-user.1 +17 -20
  52. data/distro/common/man/man1/knife-xargs.1 +60 -69
  53. data/lib/chef/application.rb +3 -1
  54. data/lib/chef/application/windows_service.rb +0 -1
  55. data/lib/chef/client.rb +41 -152
  56. data/lib/chef/config.rb +19 -23
  57. data/lib/chef/data_bag.rb +1 -1
  58. data/lib/chef/data_bag_item.rb +1 -1
  59. data/lib/chef/exceptions.rb +8 -0
  60. data/lib/chef/formatters/doc.rb +15 -0
  61. data/lib/chef/formatters/error_inspectors/api_error_formatting.rb +2 -1
  62. data/lib/chef/http.rb +18 -8
  63. data/lib/chef/http/authenticator.rb +4 -0
  64. data/lib/chef/http/cookie_manager.rb +3 -0
  65. data/lib/chef/http/decompressor.rb +4 -0
  66. data/lib/chef/http/json_input.rb +4 -0
  67. data/lib/chef/http/json_output.rb +4 -0
  68. data/lib/chef/http/validate_content_length.rb +94 -0
  69. data/lib/chef/knife.rb +0 -1
  70. data/lib/chef/knife/configure.rb +6 -6
  71. data/lib/chef/knife/cookbook_create.rb +2 -2
  72. data/lib/chef/knife/core/subcommand_loader.rb +49 -3
  73. data/lib/chef/knife/ssh.rb +34 -4
  74. data/lib/chef/mixin/path_sanity.rb +1 -0
  75. data/lib/chef/monologger.rb +1 -2
  76. data/lib/chef/node.rb +7 -0
  77. data/lib/chef/policy_builder.rb +49 -0
  78. data/lib/chef/policy_builder/expand_node_object.rb +230 -0
  79. data/lib/chef/policy_builder/policyfile.rb +338 -0
  80. data/lib/chef/provider/file.rb +15 -5
  81. data/lib/chef/provider/group.rb +6 -2
  82. data/lib/chef/provider/group/windows.rb +12 -2
  83. data/lib/chef/provider/http_request.rb +3 -2
  84. data/lib/chef/provider/package.rb +1 -0
  85. data/lib/chef/provider/package/aix.rb +1 -1
  86. data/lib/chef/provider/service/debian.rb +7 -2
  87. data/lib/chef/resource/file.rb +8 -1
  88. data/lib/chef/resource/package.rb +9 -0
  89. data/lib/chef/resource/service.rb +0 -1
  90. data/lib/chef/rest.rb +2 -0
  91. data/lib/chef/run_context.rb +1 -1
  92. data/lib/chef/util/file_edit.rb +1 -1
  93. data/lib/chef/util/windows/net_group.rb +7 -6
  94. data/lib/chef/version.rb +1 -1
  95. data/lib/chef/win32/version.rb +31 -18
  96. data/spec/data/cookbooks/preseed/templates/default/preseed-template-variables.seed +1 -0
  97. data/spec/functional/resource/file_spec.rb +0 -1
  98. data/spec/functional/resource/group_spec.rb +96 -16
  99. data/spec/functional/resource/package_spec.rb +17 -0
  100. data/spec/functional/resource/user_spec.rb +2 -2
  101. data/spec/functional/win32/versions_spec.rb +39 -0
  102. data/spec/integration/client/client_spec.rb +27 -28
  103. data/spec/spec_helper.rb +2 -0
  104. data/spec/support/platform_helpers.rb +7 -1
  105. data/spec/support/shared/functional/file_resource.rb +83 -43
  106. data/spec/unit/application_spec.rb +7 -5
  107. data/spec/unit/client_spec.rb +10 -3
  108. data/spec/unit/config_spec.rb +0 -30
  109. data/spec/unit/cookbook_spec.rb +1 -0
  110. data/spec/unit/data_bag_item_spec.rb +8 -0
  111. data/spec/unit/data_bag_spec.rb +6 -0
  112. data/spec/unit/http_spec.rb +48 -0
  113. data/spec/unit/knife/core/subcommand_loader_spec.rb +77 -1
  114. data/spec/unit/knife/ssh_spec.rb +107 -0
  115. data/spec/unit/mixin/path_sanity_spec.rb +6 -0
  116. data/spec/unit/mixin/securable_spec.rb +77 -3
  117. data/spec/unit/monologger_spec.rb +45 -0
  118. data/spec/unit/node_spec.rb +16 -0
  119. data/spec/unit/policy_builder/expand_node_object_spec.rb +320 -0
  120. data/spec/unit/policy_builder/policyfile_spec.rb +399 -0
  121. data/spec/unit/policy_builder_spec.rb +26 -0
  122. data/spec/unit/provider/deploy_spec.rb +3 -0
  123. data/spec/unit/provider/group/windows_spec.rb +1 -0
  124. data/spec/unit/provider/http_request_spec.rb +23 -1
  125. data/spec/unit/provider/service/debian_service_spec.rb +50 -19
  126. data/spec/unit/recipe_spec.rb +4 -0
  127. data/spec/unit/resource/package_spec.rb +5 -0
  128. data/spec/unit/rest_spec.rb +375 -278
  129. data/spec/unit/run_context_spec.rb +4 -0
  130. metadata +96 -59
  131. checksums.yaml +0 -7
@@ -33,16 +33,38 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
33
33
  .sp
34
34
  The \fBknife show\fP subcommand is used to view the details of one (or more) objects on the server. This subcommand works similar to \fBknife cookbook show\fP, \fBknife data bag show\fP, \fBknife environment show\fP, \fBknife node show\fP, and \fBknife role show\fP, but with a single verb (and a single action).
35
35
  .sp
36
- \fBCommon Options\fP
36
+ \fBSyntax\fP
37
+ .sp
38
+ This argument has the following syntax:
39
+ .sp
40
+ .nf
41
+ .ft C
42
+ $ knife show [PATTERN...] (options)
43
+ .ft P
44
+ .fi
45
+ .sp
46
+ \fBOptions\fP
37
47
  .sp
38
- The following options can be run with all Knife sub\-commands and plug\-ins:
48
+ This subcommand has the following options:
39
49
  .INDENT 0.0
40
50
  .TP
41
- .B \fB\-c CONFIG\fP, \fB\-\-config CONFIG\fP
51
+ .B \fB\-a ATTR\fP, \fB\-\-attribute ATTR\fP
52
+ The attribute (or attributes) to show.
53
+ .TP
54
+ .B \fB\-c CONFIG_FILE\fP, \fB\-\-config CONFIG_FILE\fP
42
55
  The configuration file to use.
43
56
  .TP
44
- .B \fB\-\-color\fP
45
- Indicates that colored output will be used.
57
+ .B \fB\-\-chef\-repo\-path PATH\fP
58
+ The path to the chef\-repo. This setting will override the default path to the chef\-repo. Default: same as specified by \fBchef_repo_path\fP in config.rb.
59
+ .TP
60
+ .B \fB\-\-chef\-zero\-port PORT\fP
61
+ The port on which chef\-zero will listen.
62
+ .TP
63
+ .B \fB\-\-[no\-]color\fP
64
+ Indicates whether colored output will be used.
65
+ .TP
66
+ .B \fB\-\-concurrency\fP
67
+ The number of allowed concurrent connections. Default: \fB10\fP.
46
68
  .TP
47
69
  .B \fB\-d\fP, \fB\-\-disable\-editing\fP
48
70
  Indicates that $EDITOR will not be opened; data will be accepted as\-is.
@@ -56,9 +78,6 @@ The $EDITOR that is used for all interactive commands.
56
78
  .B \fB\-E ENVIRONMENT\fP, \fB\-\-environment ENVIRONMENT\fP
57
79
  The name of the environment. When this option is added to a command, the command will run only against the named environment.
58
80
  .TP
59
- .B \fB\-f FILE_NAME\fP, \fB\-\-file FILE_NAME\fP
60
- Indicates that the private key will be saved to a specified file name.
61
- .TP
62
81
  .B \fB\-F FORMAT\fP, \fB\-\-format FORMAT\fP
63
82
  The output format: \fBsummary\fP (default), \fBtext\fP, \fBjson\fP, \fByaml\fP, and \fBpp\fP.
64
83
  .TP
@@ -68,15 +87,15 @@ Shows help for the command.
68
87
  .B \fB\-k KEY\fP, \fB\-\-key KEY\fP
69
88
  The private key that Knife will use to sign requests made by the API client to the server.
70
89
  .TP
71
- .B \fB\-\-no\-color\fP
72
- Indicates that color will not be used in the output.
73
- .TP
74
- .B \fB\-p PASSWORD\fP, \fB\-\-password PASSWORD\fP
75
- The user password.
90
+ .B \fB\-\-local\fP
91
+ Indicates that instead of remote files, local files will be shown.
76
92
  .TP
77
93
  .B \fB\-\-print\-after\fP
78
94
  Indicates that data will be shown after a destructive operation.
79
95
  .TP
96
+ .B \fB\-\-repo\-mode MODE\fP
97
+ The layout of the local chef\-repo. Possible values: \fBstatic\fP, \fBeverything\fP, or \fBhosted_everything\fP. Use \fBstatic\fP for just roles, environments, cookbooks, and data bags. By default, \fBeverything\fP and \fBhosted_everything\fP are dynamically selected depending on the server type. Default: \fBeverything\fP / \fBhosted_everything\fP.
98
+ .TP
80
99
  .B \fB\-s URL\fP, \fB\-\-server\-url URL\fP
81
100
  The URL for the server.
82
101
  .TP
@@ -91,22 +110,11 @@ Set for more verbose outputs. Use \fB\-VV\fP for maximum verbosity.
91
110
  .TP
92
111
  .B \fB\-y\fP, \fB\-\-yes\fP
93
112
  Indicates that the response to all confirmation prompts will be "Yes" (and that Knife will not ask for confirmation).
113
+ .TP
114
+ .B \fB\-z\fP, \fB\-\-local\-mode\fP
115
+ 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.
94
116
  .UNINDENT
95
117
  .sp
96
- \fBSyntax\fP
97
- .sp
98
- This argument has the following syntax:
99
- .sp
100
- .nf
101
- .ft C
102
- $ knife show [PATTERN...] (options)
103
- .ft P
104
- .fi
105
- .sp
106
- \fBOptions\fP
107
- .sp
108
- This command does not have any specific options.
109
- .sp
110
118
  \fBExamples\fP
111
119
  .sp
112
120
  To show all cookbooks in the \fBcookbooks/\fP directory:
@@ -133,6 +141,6 @@ $ knife show roles/ environments/
133
141
  .ft P
134
142
  .fi
135
143
  .SH AUTHOR
136
- Opscode
144
+ Chef
137
145
  .\" Generated by docutils manpage writer.
138
146
  .
@@ -33,66 +33,6 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
33
33
  .sp
34
34
  The \fBknife ssh\fP subcommand is used to invoke SSH commands (in parallel) on a subset of nodes within an organization, based on the results of a search query.
35
35
  .sp
36
- \fBCommon Options\fP
37
- .sp
38
- The following options can be run with all Knife sub\-commands and plug\-ins:
39
- .INDENT 0.0
40
- .TP
41
- .B \fB\-c CONFIG\fP, \fB\-\-config CONFIG\fP
42
- The configuration file to use.
43
- .TP
44
- .B \fB\-\-color\fP
45
- Indicates that colored output will be used.
46
- .TP
47
- .B \fB\-d\fP, \fB\-\-disable\-editing\fP
48
- Indicates that $EDITOR will not be opened; data will be accepted as\-is.
49
- .TP
50
- .B \fB\-\-defaults\fP
51
- Indicates that Knife will use the default value, instead of asking a user to provide one.
52
- .TP
53
- .B \fB\-e EDITOR\fP, \fB\-\-editor EDITOR\fP
54
- The $EDITOR that is used for all interactive commands.
55
- .TP
56
- .B \fB\-E ENVIRONMENT\fP, \fB\-\-environment ENVIRONMENT\fP
57
- The name of the environment. When this option is added to a command, the command will run only against the named environment.
58
- .TP
59
- .B \fB\-f FILE_NAME\fP, \fB\-\-file FILE_NAME\fP
60
- Indicates that the private key will be saved to a specified file name.
61
- .TP
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.
64
- .TP
65
- .B \fB\-h\fP, \fB\-\-help\fP
66
- Shows help for the command.
67
- .TP
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.
70
- .TP
71
- .B \fB\-\-no\-color\fP
72
- Indicates that color will not be used in the output.
73
- .TP
74
- .B \fB\-p PASSWORD\fP, \fB\-\-password PASSWORD\fP
75
- The user password.
76
- .TP
77
- .B \fB\-\-print\-after\fP
78
- Indicates that data will be shown after a destructive operation.
79
- .TP
80
- .B \fB\-s URL\fP, \fB\-\-server\-url URL\fP
81
- The URL for the server.
82
- .TP
83
- .B \fB\-u USER\fP, \fB\-\-user USER\fP
84
- 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.
85
- .TP
86
- .B \fB\-v\fP, \fB\-\-version\fP
87
- The version of the chef\-client.
88
- .TP
89
- .B \fB\-V\fP, \fB\-\-verbose\fP
90
- Set for more verbose outputs. Use \fB\-VV\fP for maximum verbosity.
91
- .TP
92
- .B \fB\-y\fP, \fB\-\-yes\fP
93
- Indicates that the response to all confirmation prompts will be "Yes" (and that Knife will not ask for confirmation).
94
- .UNINDENT
95
- .sp
96
36
  \fBSyntax\fP
97
37
  .sp
98
38
  This argument has the following syntax:
@@ -111,15 +51,48 @@ This subcommand has the following options:
111
51
  .B \fB\-a SSH_ATTR\fP, \fB\-\-attribute SSH_ATTR\fP
112
52
  The attribute that is used when opening the SSH connection. The default attribute is the FQDN of the host. Other possible values include a public IP address, a private IP address, or a hostname.
113
53
  .TP
54
+ .B \fB\-A\fP, \fB\-\-forward\-agent\fP
55
+ Indicates that SSH agent forwarding is enabled.
56
+ .TP
57
+ .B \fB\-c CONFIG_FILE\fP, \fB\-\-config CONFIG_FILE\fP
58
+ The configuration file to use.
59
+ .TP
114
60
  .B \fB\-C NUM\fP, \fB\-\-concurrency NUM\fP
115
61
  The number of allowed concurrent connections.
116
62
  .TP
63
+ .B \fB\-\-chef\-zero\-port PORT\fP
64
+ The port on which chef\-zero will listen.
65
+ .TP
66
+ .B \fB\-\-[no\-]color\fP
67
+ Indicates whether colored output will be used.
68
+ .TP
69
+ .B \fB\-d\fP, \fB\-\-disable\-editing\fP
70
+ Indicates that $EDITOR will not be opened; data will be accepted as\-is.
71
+ .TP
72
+ .B \fB\-\-defaults\fP
73
+ Indicates that Knife will use the default value, instead of asking a user to provide one.
74
+ .TP
75
+ .B \fB\-e EDITOR\fP, \fB\-\-editor EDITOR\fP
76
+ The $EDITOR that is used for all interactive commands.
77
+ .TP
78
+ .B \fB\-E ENVIRONMENT\fP, \fB\-\-environment ENVIRONMENT\fP
79
+ The name of the environment. When this option is added to a command, the command will run only against the named environment.
80
+ .TP
81
+ .B \fB\-F FORMAT\fP, \fB\-\-format FORMAT\fP
82
+ The output format: \fBsummary\fP (default), \fBtext\fP, \fBjson\fP, \fByaml\fP, and \fBpp\fP.
83
+ .TP
117
84
  .B \fB\-G GATEWAY\fP, \fB\-\-ssh\-gateway GATEWAY\fP
118
85
  The SSH tunnel or gateway that is used to run a bootstrap action on a machine that is not accessible from the workstation.
119
86
  .TP
87
+ .B \fB\-h\fP, \fB\-\-help\fP
88
+ Shows help for the command.
89
+ .TP
120
90
  .B \fB\-i IDENTITY_FILE\fP, \fB\-\-identity\-file IDENTIFY_FILE\fP
121
91
  The SSH identity file used for authentication. Key\-based authentication is recommended.
122
92
  .TP
93
+ .B \fB\-k KEY\fP, \fB\-\-key KEY\fP
94
+ The private key that Knife will use to sign requests made by the API client to the server.
95
+ .TP
123
96
  .B \fB\-m\fP, \fB\-\-manual\-list\fP
124
97
  Indicates that a search query is a space\-separated list of servers. If there is more than one item in the list, put quotes around the entire list. For example: \fB\-\-manual\-list "server01 server 02 server 03"\fP
125
98
  .TP
@@ -135,14 +108,35 @@ The SSH port.
135
108
  .B \fB\-P PASSWORD\fP, \fB\-\-ssh\-password PASSWORD\fP
136
109
  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.
137
110
  .TP
111
+ .B \fB\-\-print\-after\fP
112
+ Indicates that data will be shown after a destructive operation.
113
+ .TP
114
+ .B \fB\-s URL\fP, \fB\-\-server\-url URL\fP
115
+ The URL for the server.
116
+ .TP
138
117
  .B \fBSEARCH_QUERY\fP
139
118
  The search query used to return a list of servers to be accessed using SSH and the specified \fBSSH_COMMAND\fP. This option uses the same syntax as the search sub\-command.
140
119
  .TP
141
120
  .B \fBSSH_COMMAND\fP
142
121
  The command that will be run against the results of a search query.
143
122
  .TP
123
+ .B \fB\-u USER\fP, \fB\-\-user USER\fP
124
+ 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.
125
+ .TP
126
+ .B \fB\-v\fP, \fB\-\-version\fP
127
+ The version of the chef\-client.
128
+ .TP
129
+ .B \fB\-V\fP, \fB\-\-verbose\fP
130
+ Set for more verbose outputs. Use \fB\-VV\fP for maximum verbosity.
131
+ .TP
144
132
  .B \fB\-x USER_NAME\fP, \fB\-\-ssh\-user USER_NAME\fP
145
133
  The SSH user name.
134
+ .TP
135
+ .B \fB\-y\fP, \fB\-\-yes\fP
136
+ Indicates that the response to all confirmation prompts will be "Yes" (and that Knife will not ask for confirmation).
137
+ .TP
138
+ .B \fB\-z\fP, \fB\-\-local\-mode\fP
139
+ 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.
146
140
  .UNINDENT
147
141
  .sp
148
142
  \fBExamples\fP
@@ -249,6 +243,6 @@ ERROR: LoadError: cannot load such file \-\- appscript
249
243
  .ft P
250
244
  .fi
251
245
  .SH AUTHOR
252
- Opscode
246
+ Chef
253
247
  .\" Generated by docutils manpage writer.
254
248
  .
@@ -33,16 +33,29 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
33
33
  .sp
34
34
  The \fBknife status\fP subcommand is used to display a brief summary of the nodes on a server, including the time of the most recent successful chef\-client run.
35
35
  .sp
36
- \fBCommon Options\fP
36
+ \fBSyntax\fP
37
+ .sp
38
+ This argument has the following syntax:
39
+ .sp
40
+ .nf
41
+ .ft C
42
+ $ knife status (options)
43
+ .ft P
44
+ .fi
45
+ .sp
46
+ \fBOptions\fP
37
47
  .sp
38
- The following options can be run with all Knife sub\-commands and plug\-ins:
48
+ This subcommand has the following options:
39
49
  .INDENT 0.0
40
50
  .TP
41
- .B \fB\-c CONFIG\fP, \fB\-\-config CONFIG\fP
51
+ .B \fB\-c CONFIG_FILE\fP, \fB\-\-config CONFIG_FILE\fP
42
52
  The configuration file to use.
43
53
  .TP
44
- .B \fB\-\-color\fP
45
- Indicates that colored output will be used.
54
+ .B \fB\-\-chef\-zero\-port PORT\fP
55
+ The port on which chef\-zero will listen.
56
+ .TP
57
+ .B \fB\-\-[no\-]color\fP
58
+ Indicates whether colored output will be used.
46
59
  .TP
47
60
  .B \fB\-d\fP, \fB\-\-disable\-editing\fP
48
61
  Indicates that $EDITOR will not be opened; data will be accepted as\-is.
@@ -56,28 +69,31 @@ The $EDITOR that is used for all interactive commands.
56
69
  .B \fB\-E ENVIRONMENT\fP, \fB\-\-environment ENVIRONMENT\fP
57
70
  The name of the environment. When this option is added to a command, the command will run only against the named environment.
58
71
  .TP
59
- .B \fB\-f FILE_NAME\fP, \fB\-\-file FILE_NAME\fP
60
- Indicates that the private key will be saved to a specified file name.
61
- .TP
62
72
  .B \fB\-F FORMAT\fP, \fB\-\-format FORMAT\fP
63
73
  The output format: \fBsummary\fP (default), \fBtext\fP, \fBjson\fP, \fByaml\fP, and \fBpp\fP.
64
74
  .TP
65
75
  .B \fB\-h\fP, \fB\-\-help\fP
66
76
  Shows help for the command.
67
77
  .TP
78
+ .B \fB\-H\fP, \fB\-\-hide\-healthy\fP
79
+ Indicates that nodes on which a chef\-client run has occurred within the previous hour will be hidden.
80
+ .TP
68
81
  .B \fB\-k KEY\fP, \fB\-\-key KEY\fP
69
82
  The private key that Knife will use to sign requests made by the API client to the server.
70
83
  .TP
71
- .B \fB\-\-no\-color\fP
72
- Indicates that color will not be used in the output.
73
- .TP
74
- .B \fB\-p PASSWORD\fP, \fB\-\-password PASSWORD\fP
75
- The user password.
76
- .TP
77
84
  .B \fB\-\-print\-after\fP
78
85
  Indicates that data will be shown after a destructive operation.
79
86
  .TP
80
- .B \fB\-s URL\fP, \fB\-\-server\-url URL\fP
87
+ .B \fBSEARCH_QUERY\fP
88
+ The search query used to identify a a list of items on a server. This option uses the same syntax as the \fBsearch\fP sub\-command.
89
+ .TP
90
+ .B \fB\-r RUN_LIST\fP, \fB\-\-run\-list RUN_LIST\fP
91
+ A comma\-separated list of roles and/or recipes to be applied.
92
+ .TP
93
+ .B \fB\-s\fP, \fB\-\-sort\-reverse\fP
94
+ Indicates that the list will be sorted by last run time, descending.
95
+ .TP
96
+ .B \fB\-\-server\-url URL\fP
81
97
  The URL for the server.
82
98
  .TP
83
99
  .B \fB\-u USER\fP, \fB\-\-user USER\fP
@@ -91,34 +107,9 @@ Set for more verbose outputs. Use \fB\-VV\fP for maximum verbosity.
91
107
  .TP
92
108
  .B \fB\-y\fP, \fB\-\-yes\fP
93
109
  Indicates that the response to all confirmation prompts will be "Yes" (and that Knife will not ask for confirmation).
94
- .UNINDENT
95
- .sp
96
- \fBSyntax\fP
97
- .sp
98
- This argument has the following syntax:
99
- .sp
100
- .nf
101
- .ft C
102
- $ knife status (options)
103
- .ft P
104
- .fi
105
- .sp
106
- \fBOptions\fP
107
- .sp
108
- This subcommand has the following options:
109
- .INDENT 0.0
110
110
  .TP
111
- .B \fBQUERY\fP
112
- The search query used to identify a a list of items on a server. This option uses the same syntax as the \fBsearch\fP sub\-command.
113
- .TP
114
- .B \fB\-H\fP, \fB\-\-hide\-healthy\fP
115
- Indicates that nodes on which a chef\-client run has occurred within the previous hour will be hidden.
116
- .TP
117
- .B \fB\-r RUN_LIST\fP, \fB\-\-run\-list RUN_LIST\fP
118
- A comma\-separated list of roles and/or recipes to be applied.
119
- .TP
120
- .B \fB\-s\fP, \fB\-\-sort\-reverse\fP
121
- Indicates that the list will be sorted by last run time, descending.
111
+ .B \fB\-z\fP, \fB\-\-local\-mode\fP
112
+ 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.
122
113
  .UNINDENT
123
114
  .sp
124
115
  \fBExamples\fP
@@ -202,6 +193,6 @@ to return something like:
202
193
  .ft P
203
194
  .fi
204
195
  .SH AUTHOR
205
- Opscode
196
+ Chef
206
197
  .\" Generated by docutils manpage writer.
207
198
  .
@@ -44,14 +44,14 @@ $ knife tag [ARGUMENT]
44
44
  .fi
45
45
  .SH COMMON OPTIONS
46
46
  .sp
47
- The following options can be run with all Knife sub\-commands and plug\-ins:
47
+ The following options may be used with any of the arguments available to the \fBknife tag\fP subcommand:
48
48
  .INDENT 0.0
49
49
  .TP
50
- .B \fB\-c CONFIG\fP, \fB\-\-config CONFIG\fP
51
- The configuration file to use.
50
+ .B \fB\-\-chef\-zero\-port PORT\fP
51
+ The port on which chef\-zero will listen.
52
52
  .TP
53
- .B \fB\-\-color\fP
54
- Indicates that colored output will be used.
53
+ .B \fB\-c CONFIG_FILE\fP, \fB\-\-config CONFIG_FILE\fP
54
+ The configuration file to use.
55
55
  .TP
56
56
  .B \fB\-d\fP, \fB\-\-disable\-editing\fP
57
57
  Indicates that $EDITOR will not be opened; data will be accepted as\-is.
@@ -65,9 +65,6 @@ The $EDITOR that is used for all interactive commands.
65
65
  .B \fB\-E ENVIRONMENT\fP, \fB\-\-environment ENVIRONMENT\fP
66
66
  The name of the environment. When this option is added to a command, the command will run only against the named environment.
67
67
  .TP
68
- .B \fB\-f FILE_NAME\fP, \fB\-\-file FILE_NAME\fP
69
- Indicates that the private key will be saved to a specified file name.
70
- .TP
71
68
  .B \fB\-F FORMAT\fP, \fB\-\-format FORMAT\fP
72
69
  The output format: \fBsummary\fP (default), \fBtext\fP, \fBjson\fP, \fByaml\fP, and \fBpp\fP.
73
70
  .TP
@@ -77,11 +74,8 @@ Shows help for the command.
77
74
  .B \fB\-k KEY\fP, \fB\-\-key KEY\fP
78
75
  The private key that Knife will use to sign requests made by the API client to the server.
79
76
  .TP
80
- .B \fB\-\-no\-color\fP
81
- Indicates that color will not be used in the output.
82
- .TP
83
- .B \fB\-p PASSWORD\fP, \fB\-\-password PASSWORD\fP
84
- The user password.
77
+ .B \fB\-\-[no\-]color\fP
78
+ Indicates whether colored output will be used.
85
79
  .TP
86
80
  .B \fB\-\-print\-after\fP
87
81
  Indicates that data will be shown after a destructive operation.
@@ -92,14 +86,17 @@ The URL for the server.
92
86
  .B \fB\-u USER\fP, \fB\-\-user USER\fP
93
87
  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.
94
88
  .TP
95
- .B \fB\-v\fP, \fB\-\-version\fP
96
- The version of the chef\-client.
97
- .TP
98
89
  .B \fB\-V\fP, \fB\-\-verbose\fP
99
90
  Set for more verbose outputs. Use \fB\-VV\fP for maximum verbosity.
100
91
  .TP
92
+ .B \fB\-v\fP, \fB\-\-version\fP
93
+ The version of the chef\-client.
94
+ .TP
101
95
  .B \fB\-y\fP, \fB\-\-yes\fP
102
96
  Indicates that the response to all confirmation prompts will be "Yes" (and that Knife will not ask for confirmation).
97
+ .TP
98
+ .B \fB\-z\fP, \fB\-\-local\-mode\fP
99
+ 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.
103
100
  .UNINDENT
104
101
  .SH CREATE
105
102
  .sp
@@ -175,6 +172,6 @@ $ knife tag list [NODE_NAME...]
175
172
  .sp
176
173
  This command does not have any specific options.
177
174
  .SH AUTHOR
178
- Opscode
175
+ Chef
179
176
  .\" Generated by docutils manpage writer.
180
177
  .