chef 11.14.0.alpha.4 → 11.14.0.rc.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CONTRIBUTING.md +0 -4
- data/README.md +1 -1
- data/distro/common/man/man1/chef-shell.1 +4 -4
- data/distro/common/man/man1/knife-bootstrap.1 +14 -11
- data/distro/common/man/man1/knife-client.1 +14 -11
- data/distro/common/man/man1/knife-configure.1 +7 -7
- data/distro/common/man/man1/knife-cookbook-site.1 +23 -23
- data/distro/common/man/man1/knife-cookbook.1 +23 -23
- data/distro/common/man/man1/knife-data-bag.1 +13 -13
- data/distro/common/man/man1/knife-delete.1 +9 -9
- data/distro/common/man/man1/knife-deps.1 +9 -9
- data/distro/common/man/man1/knife-diff.1 +10 -10
- data/distro/common/man/man1/knife-download.1 +9 -9
- data/distro/common/man/man1/knife-edit.1 +7 -7
- data/distro/common/man/man1/knife-environment.1 +10 -10
- data/distro/common/man/man1/knife-exec.1 +7 -7
- data/distro/common/man/man1/knife-index-rebuild.1 +1 -1
- data/distro/common/man/man1/knife-list.1 +12 -12
- data/distro/common/man/man1/knife-node.1 +12 -9
- data/distro/common/man/man1/knife-raw.1 +7 -7
- data/distro/common/man/man1/knife-recipe-list.1 +1 -1
- data/distro/common/man/man1/knife-role.1 +8 -8
- data/distro/common/man/man1/knife-search.1 +9 -9
- data/distro/common/man/man1/knife-serve.1 +109 -0
- data/distro/common/man/man1/knife-show.1 +8 -8
- data/distro/common/man/man1/knife-ssh.1 +9 -9
- data/distro/common/man/man1/knife-ssl-check.1 +9 -9
- data/distro/common/man/man1/knife-ssl-fetch.1 +10 -10
- data/distro/common/man/man1/knife-status.1 +9 -9
- data/distro/common/man/man1/knife-tag.1 +7 -7
- data/distro/common/man/man1/knife-upload.1 +10 -10
- data/distro/common/man/man1/knife-user.1 +9 -9
- data/distro/common/man/man1/knife-xargs.1 +7 -7
- data/distro/common/man/man1/knife.1 +118 -14
- data/distro/common/man/man8/chef-client.8 +13 -10
- data/distro/common/man/man8/chef-solo.8 +13 -14
- data/distro/common/markdown/man1/knife.mkd +1 -1
- data/lib/chef/application/knife.rb +1 -1
- data/lib/chef/application/windows_service.rb +0 -1
- data/lib/chef/chef_fs/file_system.rb +6 -2
- data/lib/chef/config.rb +3 -2
- data/lib/chef/config_fetcher.rb +1 -1
- data/lib/chef/cookbook/metadata.rb +20 -14
- data/lib/chef/cookbook/synchronizer.rb +24 -13
- data/lib/chef/encrypted_data_bag_item/decryptor.rb +3 -3
- data/lib/chef/encrypted_data_bag_item/encryptor.rb +2 -2
- data/lib/chef/exceptions.rb +1 -0
- data/lib/chef/file_content_management/deploy/mv_windows.rb +1 -1
- data/lib/chef/formatters/error_inspectors/resource_failure_inspector.rb +1 -1
- data/lib/chef/http.rb +6 -1
- data/lib/chef/http/http_request.rb +9 -1
- data/lib/chef/http/simple.rb +2 -1
- data/lib/chef/json_compat.rb +5 -16
- data/lib/chef/knife/bootstrap.rb +2 -0
- data/lib/chef/knife/bootstrap/archlinux-gems.erb +2 -2
- data/lib/chef/knife/core/object_loader.rb +3 -1
- data/lib/chef/knife/ssh.rb +14 -7
- data/lib/chef/mixin/convert_to_class_name.rb +1 -0
- data/lib/chef/mixin/windows_architecture_helper.rb +24 -4
- data/lib/chef/platform/provider_mapping.rb +13 -0
- data/lib/chef/provider/env/windows.rb +3 -6
- data/lib/chef/provider/git.rb +1 -2
- data/lib/chef/provider/log.rb +15 -1
- data/lib/chef/provider/package/apt.rb +3 -3
- data/lib/chef/provider/package/dpkg.rb +35 -16
- data/lib/chef/provider/package/paludis.rb +91 -0
- data/lib/chef/provider/package/rpm.rb +3 -2
- data/lib/chef/provider/package/yum-dump.py +6 -6
- data/lib/chef/provider/package/yum.rb +2 -0
- data/lib/chef/provider/registry_key.rb +4 -5
- data/lib/chef/provider/remote_file/cache_control_data.rb +1 -1
- data/lib/chef/provider/service/solaris.rb +1 -1
- data/lib/chef/provider/service/upstart.rb +2 -1
- data/lib/chef/provider/service/windows.rb +37 -9
- data/lib/chef/provider/user/pw.rb +1 -1
- data/lib/chef/provider/user/useradd.rb +1 -1
- data/lib/chef/provider/windows_script.rb +2 -1
- data/lib/chef/providers.rb +1 -0
- data/lib/chef/resource.rb +10 -0
- data/lib/chef/resource/file.rb +0 -9
- data/lib/chef/resource/package.rb +14 -4
- data/lib/chef/resource/paludis_package.rb +33 -0
- data/lib/chef/resource/registry_key.rb +62 -3
- data/lib/chef/resource/service.rb +21 -4
- data/lib/chef/resource_reporter.rb +10 -0
- data/lib/chef/resources.rb +1 -0
- data/lib/chef/role.rb +14 -10
- data/lib/chef/shell.rb +8 -0
- data/lib/chef/shell/shell_session.rb +3 -3
- data/lib/chef/user.rb +12 -11
- data/lib/chef/util/selinux.rb +1 -1
- data/lib/chef/version.rb +1 -1
- data/lib/chef/version_constraint.rb +6 -5
- data/lib/chef/win32/api/process.rb +1 -0
- data/lib/chef/win32/api/system.rb +14 -0
- data/lib/chef/win32/error.rb +1 -1
- data/lib/chef/win32/security.rb +5 -5
- data/lib/chef/win32/version.rb +6 -2
- data/spec/data/trusted_certs/opscode.pem +57 -35
- data/spec/functional/application_spec.rb +2 -2
- data/spec/functional/resource/mount_spec.rb +3 -1
- data/spec/functional/shell_spec.rb +10 -0
- data/spec/functional/tiny_server_spec.rb +2 -2
- data/spec/support/chef_helpers.rb +1 -1
- data/spec/support/shared/functional/securable_resource.rb +11 -2
- data/spec/support/shared/functional/securable_resource_with_reporting.rb +13 -2
- data/spec/tiny_server.rb +1 -1
- data/spec/unit/config_spec.rb +5 -0
- data/spec/unit/cookbook/metadata_spec.rb +24 -0
- data/spec/unit/environment_spec.rb +6 -0
- data/spec/unit/http/http_request_spec.rb +91 -0
- data/spec/unit/http_spec.rb +23 -0
- data/spec/unit/knife/bootstrap_spec.rb +2 -2
- data/spec/unit/knife/ssh_spec.rb +7 -13
- data/spec/unit/knife_spec.rb +1 -1
- data/spec/unit/mixin/convert_to_class_name_spec.rb +4 -0
- data/spec/unit/provider/git_spec.rb +2 -2
- data/spec/unit/provider/log_spec.rb +18 -0
- data/spec/unit/provider/mount/solaris_spec.rb +3 -1
- data/spec/unit/provider/package/apt_spec.rb +85 -40
- data/spec/unit/provider/package/dpkg_spec.rb +24 -48
- data/spec/unit/provider/package/paludis_spec.rb +135 -0
- data/spec/unit/provider/package/rpm_spec.rb +40 -32
- data/spec/unit/provider/package/yum_spec.rb +11 -4
- data/spec/unit/provider/registry_key_spec.rb +67 -53
- data/spec/unit/provider/remote_file/cache_control_data_spec.rb +10 -1
- data/spec/unit/provider/service/solaris_smf_service_spec.rb +23 -2
- data/spec/unit/provider/service/upstart_service_spec.rb +7 -0
- data/spec/unit/provider/service/windows_spec.rb +72 -0
- data/spec/unit/provider/user/pw_spec.rb +21 -4
- data/spec/unit/provider/user/useradd_spec.rb +10 -0
- data/spec/unit/resource/package_spec.rb +26 -18
- data/spec/unit/resource/registry_key_spec.rb +28 -0
- data/spec/unit/resource/service_spec.rb +14 -0
- data/spec/unit/resource_reporter_spec.rb +37 -12
- data/spec/unit/resource_spec.rb +41 -6
- data/spec/unit/rest_spec.rb +2 -2
- data/spec/unit/role_spec.rb +46 -28
- data/spec/unit/shell/shell_session_spec.rb +42 -2
- data/spec/unit/shell_spec.rb +1 -1
- data/spec/unit/user_spec.rb +12 -0
- data/spec/unit/util/selinux_spec.rb +4 -4
- data/spec/unit/version_constraint_spec.rb +14 -2
- metadata +195 -161
- checksums.yaml +0 -7
@@ -1,6 +1,6 @@
|
|
1
1
|
.\" Man page generated from reStructuredText.
|
2
2
|
.
|
3
|
-
.TH "KNIFE-EXEC" "1" "Chef 11.
|
3
|
+
.TH "KNIFE-EXEC" "1" "Chef 11.14" "" "knife exec"
|
4
4
|
.SH NAME
|
5
5
|
knife-exec \- The man page for the knife exec subcommand.
|
6
6
|
.
|
@@ -162,13 +162,13 @@ The configuration file to use.
|
|
162
162
|
The port on which chef\-zero will listen.
|
163
163
|
.TP
|
164
164
|
.B \fB\-\-[no\-]color\fP
|
165
|
-
|
165
|
+
Use to view colored output.
|
166
166
|
.TP
|
167
167
|
.B \fB\-d\fP, \fB\-\-disable\-editing\fP
|
168
|
-
|
168
|
+
Use to prevent the $EDITOR from being opened and to accept data as\-is.
|
169
169
|
.TP
|
170
170
|
.B \fB\-\-defaults\fP
|
171
|
-
|
171
|
+
Use to have Knife use the default value instead of asking a user to provide one.
|
172
172
|
.TP
|
173
173
|
.B \fB\-E CODE\fP, \fB\-\-exec CODE\fP
|
174
174
|
A string of code that will be executed.
|
@@ -192,7 +192,7 @@ The private key that Knife will use to sign requests made by the API client to t
|
|
192
192
|
A colon\-separated path at which Ruby scripts are located.
|
193
193
|
.TP
|
194
194
|
.B \fB\-\-print\-after\fP
|
195
|
-
|
195
|
+
Use to show data after a destructive operation.
|
196
196
|
.TP
|
197
197
|
.B \fB\-s URL\fP, \fB\-\-server\-url URL\fP
|
198
198
|
The URL for the Chef server\&.
|
@@ -207,10 +207,10 @@ The version of the chef\-client\&.
|
|
207
207
|
Set for more verbose outputs. Use \fB\-VV\fP for maximum verbosity.
|
208
208
|
.TP
|
209
209
|
.B \fB\-y\fP, \fB\-\-yes\fP
|
210
|
-
|
210
|
+
Use to respond to all confirmation prompts with "Yes". Knife will not ask for confirmation.
|
211
211
|
.TP
|
212
212
|
.B \fB\-z\fP, \fB\-\-local\-mode\fP
|
213
|
-
|
213
|
+
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\&.
|
214
214
|
.UNINDENT
|
215
215
|
.sp
|
216
216
|
\fBExamples\fP
|
@@ -1,6 +1,6 @@
|
|
1
1
|
.\" Man page generated from reStructuredText.
|
2
2
|
.
|
3
|
-
.TH "KNIFE-INDEX-REBUILD" "1" "Chef 11.
|
3
|
+
.TH "KNIFE-INDEX-REBUILD" "1" "Chef 11.14" "" "knife index rebuild"
|
4
4
|
.SH NAME
|
5
5
|
knife-index-rebuild \- The man page for the knife index rebuild subcommand.
|
6
6
|
.
|
@@ -1,6 +1,6 @@
|
|
1
1
|
.\" Man page generated from reStructuredText.
|
2
2
|
.
|
3
|
-
.TH "KNIFE-LIST" "1" "Chef 11.
|
3
|
+
.TH "KNIFE-LIST" "1" "Chef 11.14" "" "knife list"
|
4
4
|
.SH NAME
|
5
5
|
knife-list \- The man page for the knife list subcommand.
|
6
6
|
.
|
@@ -53,7 +53,7 @@ This subcommand has the following options:
|
|
53
53
|
.INDENT 0.0
|
54
54
|
.TP
|
55
55
|
.B \fB\-1\fP
|
56
|
-
|
56
|
+
Use to show only one column of results. Default: \fBfalse\fP\&.
|
57
57
|
.TP
|
58
58
|
.B \fB\-c CONFIG_FILE\fP, \fB\-\-config CONFIG_FILE\fP
|
59
59
|
The configuration file to use.
|
@@ -65,19 +65,19 @@ The path to the chef\-repo\&. This setting will override the default path to the
|
|
65
65
|
The port on which chef\-zero will listen.
|
66
66
|
.TP
|
67
67
|
.B \fB\-\-[no\-]color\fP
|
68
|
-
|
68
|
+
Use to view colored output.
|
69
69
|
.TP
|
70
70
|
.B \fB\-\-concurrency\fP
|
71
71
|
The number of allowed concurrent connections. Default: \fB10\fP\&.
|
72
72
|
.TP
|
73
73
|
.B \fB\-d\fP
|
74
|
-
|
74
|
+
Use to prevent a directory\(aqs children from showing when a directory matches a pattern. Default value: \fBfalse\fP\&.
|
75
75
|
.TP
|
76
76
|
.B \fB\-\-defaults\fP
|
77
|
-
|
77
|
+
Use to have Knife use the default value instead of asking a user to provide one.
|
78
78
|
.TP
|
79
79
|
.B \fB\-\-disable\-editing\fP
|
80
|
-
|
80
|
+
Use to prevent the $EDITOR from being opened and to accept data as\-is.
|
81
81
|
.TP
|
82
82
|
.B \fB\-e EDITOR\fP, \fB\-\-editor EDITOR\fP
|
83
83
|
The $EDITOR that is used for all interactive commands.
|
@@ -98,16 +98,16 @@ Shows help for the command.
|
|
98
98
|
The private key that Knife will use to sign requests made by the API client to the Chef server\&.
|
99
99
|
.TP
|
100
100
|
.B \fB\-\-local\fP
|
101
|
-
|
101
|
+
Use to return only the contents of the local directory. Default: \fBfalse\fP\&.
|
102
102
|
.TP
|
103
103
|
.B \fB\-p\fP
|
104
|
-
|
104
|
+
Use to show directories with trailing slashes (/). Default: \fBfalse\fP\&.
|
105
105
|
.TP
|
106
106
|
.B \fB\-\-print\-after\fP
|
107
|
-
|
107
|
+
Use to show data after a destructive operation.
|
108
108
|
.TP
|
109
109
|
.B \fB\-R\fP
|
110
|
-
|
110
|
+
Use to list directories recursively. Default: \fBfalse\fP\&.
|
111
111
|
.TP
|
112
112
|
.B \fB\-\-repo\-mode MODE\fP
|
113
113
|
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\&.
|
@@ -125,10 +125,10 @@ The version of the chef\-client\&.
|
|
125
125
|
Set for more verbose outputs. Use \fB\-VV\fP for maximum verbosity.
|
126
126
|
.TP
|
127
127
|
.B \fB\-y\fP, \fB\-\-yes\fP
|
128
|
-
|
128
|
+
Use to respond to all confirmation prompts with "Yes". Knife will not ask for confirmation.
|
129
129
|
.TP
|
130
130
|
.B \fB\-z\fP, \fB\-\-local\-mode\fP
|
131
|
-
|
131
|
+
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\&.
|
132
132
|
.UNINDENT
|
133
133
|
.sp
|
134
134
|
\fBExamples\fP
|
@@ -1,6 +1,6 @@
|
|
1
1
|
.\" Man page generated from reStructuredText.
|
2
2
|
.
|
3
|
-
.TH "KNIFE-NODE" "1" "Chef 11.
|
3
|
+
.TH "KNIFE-NODE" "1" "Chef 11.14" "" "knife node"
|
4
4
|
.SH NAME
|
5
5
|
knife-node \- The man page for the knife node subcommand.
|
6
6
|
.
|
@@ -46,10 +46,10 @@ The port on which chef\-zero will listen.
|
|
46
46
|
The configuration file to use.
|
47
47
|
.TP
|
48
48
|
.B \fB\-d\fP, \fB\-\-disable\-editing\fP
|
49
|
-
|
49
|
+
Use to prevent the $EDITOR from being opened and to accept data as\-is.
|
50
50
|
.TP
|
51
51
|
.B \fB\-\-defaults\fP
|
52
|
-
|
52
|
+
Use to have Knife use the default value instead of asking a user to provide one.
|
53
53
|
.TP
|
54
54
|
.B \fB\-e EDITOR\fP, \fB\-\-editor EDITOR\fP
|
55
55
|
The $EDITOR that is used for all interactive commands.
|
@@ -67,10 +67,10 @@ Shows help for the command.
|
|
67
67
|
The private key that Knife will use to sign requests made by the API client to the Chef server\&.
|
68
68
|
.TP
|
69
69
|
.B \fB\-\-[no\-]color\fP
|
70
|
-
|
70
|
+
Use to view colored output.
|
71
71
|
.TP
|
72
72
|
.B \fB\-\-print\-after\fP
|
73
|
-
|
73
|
+
Use to show data after a destructive operation.
|
74
74
|
.TP
|
75
75
|
.B \fB\-s URL\fP, \fB\-\-server\-url URL\fP
|
76
76
|
The URL for the Chef server\&.
|
@@ -85,10 +85,10 @@ Set for more verbose outputs. Use \fB\-VV\fP for maximum verbosity.
|
|
85
85
|
The version of the chef\-client\&.
|
86
86
|
.TP
|
87
87
|
.B \fB\-y\fP, \fB\-\-yes\fP
|
88
|
-
|
88
|
+
Use to respond to all confirmation prompts with "Yes". Knife will not ask for confirmation.
|
89
89
|
.TP
|
90
90
|
.B \fB\-z\fP, \fB\-\-local\-mode\fP
|
91
|
-
|
91
|
+
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\&.
|
92
92
|
.UNINDENT
|
93
93
|
.SH BULK DELETE
|
94
94
|
.sp
|
@@ -363,7 +363,7 @@ This argument has the following options:
|
|
363
363
|
.INDENT 0.0
|
364
364
|
.TP
|
365
365
|
.B \fB\-w\fP, \fB\-\-with\-uri\fP
|
366
|
-
|
366
|
+
Use to show the corresponding URIs.
|
367
367
|
.UNINDENT
|
368
368
|
.sp
|
369
369
|
\fBExamples\fP
|
@@ -417,6 +417,9 @@ This argument has the following options:
|
|
417
417
|
.TP
|
418
418
|
.B \fB\-a ITEM\fP, \fB\-\-after ITEM\fP
|
419
419
|
Use this to add the run list item after the specified run list item.
|
420
|
+
.TP
|
421
|
+
.B \fB\-b ITEM\fP, \fB\-\-before ITEM\fP
|
422
|
+
Use this to add the run list item before the specified run list item.
|
420
423
|
.UNINDENT
|
421
424
|
.sp
|
422
425
|
\fBExamples\fP
|
@@ -560,7 +563,7 @@ Display long output when searching nodes while using the default summary format.
|
|
560
563
|
Display more, but not all, of a node\(aqs data when searching using the default summary format.
|
561
564
|
.TP
|
562
565
|
.B \fB\-r\fP, \fB\-\-run\-list\fP
|
563
|
-
|
566
|
+
Use to show only the run\-list.
|
564
567
|
.UNINDENT
|
565
568
|
.sp
|
566
569
|
\fBExamples\fP
|
@@ -1,6 +1,6 @@
|
|
1
1
|
.\" Man page generated from reStructuredText.
|
2
2
|
.
|
3
|
-
.TH "KNIFE-RAW" "1" "Chef 11.
|
3
|
+
.TH "KNIFE-RAW" "1" "Chef 11.14" "" "knife raw"
|
4
4
|
.SH NAME
|
5
5
|
knife-raw \- The man page for the knife raw subcommand.
|
6
6
|
.
|
@@ -59,13 +59,13 @@ The configuration file to use.
|
|
59
59
|
The port on which chef\-zero will listen.
|
60
60
|
.TP
|
61
61
|
.B \fB\-\-[no\-]color\fP
|
62
|
-
|
62
|
+
Use to view colored output.
|
63
63
|
.TP
|
64
64
|
.B \fB\-d\fP, \fB\-\-disable\-editing\fP
|
65
|
-
|
65
|
+
Use to prevent the $EDITOR from being opened and to accept data as\-is.
|
66
66
|
.TP
|
67
67
|
.B \fB\-\-defaults\fP
|
68
|
-
|
68
|
+
Use to have Knife use the default value instead of asking a user to provide one.
|
69
69
|
.TP
|
70
70
|
.B \fB\-e EDITOR\fP, \fB\-\-editor EDITOR\fP
|
71
71
|
The $EDITOR that is used for all interactive commands.
|
@@ -92,7 +92,7 @@ The request method: \fBDELETE\fP, \fBGET\fP, \fBPOST\fP, or \fBPUT\fP\&. Default
|
|
92
92
|
Use \fB\-\-no\-pretty\fP to disable pretty\-print output for JSON\&. Default: \fB\-\-pretty\fP\&.
|
93
93
|
.TP
|
94
94
|
.B \fB\-\-print\-after\fP
|
95
|
-
|
95
|
+
Use to show data after a destructive operation.
|
96
96
|
.TP
|
97
97
|
.B \fB\-s URL\fP, \fB\-\-server\-url URL\fP
|
98
98
|
The URL for the Chef server\&.
|
@@ -107,10 +107,10 @@ The version of the chef\-client\&.
|
|
107
107
|
Set for more verbose outputs. Use \fB\-VV\fP for maximum verbosity.
|
108
108
|
.TP
|
109
109
|
.B \fB\-y\fP, \fB\-\-yes\fP
|
110
|
-
|
110
|
+
Use to respond to all confirmation prompts with "Yes". Knife will not ask for confirmation.
|
111
111
|
.TP
|
112
112
|
.B \fB\-z\fP, \fB\-\-local\-mode\fP
|
113
|
-
|
113
|
+
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\&.
|
114
114
|
.UNINDENT
|
115
115
|
.sp
|
116
116
|
\fBExamples\fP
|
@@ -1,6 +1,6 @@
|
|
1
1
|
.\" Man page generated from reStructuredText.
|
2
2
|
.
|
3
|
-
.TH "KNIFE-RECIPE-LIST" "1" "Chef 11.
|
3
|
+
.TH "KNIFE-RECIPE-LIST" "1" "Chef 11.14" "" "knife recipe list"
|
4
4
|
.SH NAME
|
5
5
|
knife-recipe-list \- The man page for the knife recipe list subcommand.
|
6
6
|
.
|
@@ -1,6 +1,6 @@
|
|
1
1
|
.\" Man page generated from reStructuredText.
|
2
2
|
.
|
3
|
-
.TH "KNIFE-ROLE" "1" "Chef 11.
|
3
|
+
.TH "KNIFE-ROLE" "1" "Chef 11.14" "" "knife role"
|
4
4
|
.SH NAME
|
5
5
|
knife-role \- The man page for the knife role subcommand.
|
6
6
|
.
|
@@ -46,10 +46,10 @@ The port on which chef\-zero will listen.
|
|
46
46
|
The configuration file to use.
|
47
47
|
.TP
|
48
48
|
.B \fB\-d\fP, \fB\-\-disable\-editing\fP
|
49
|
-
|
49
|
+
Use to prevent the $EDITOR from being opened and to accept data as\-is.
|
50
50
|
.TP
|
51
51
|
.B \fB\-\-defaults\fP
|
52
|
-
|
52
|
+
Use to have Knife use the default value instead of asking a user to provide one.
|
53
53
|
.TP
|
54
54
|
.B \fB\-e EDITOR\fP, \fB\-\-editor EDITOR\fP
|
55
55
|
The $EDITOR that is used for all interactive commands.
|
@@ -67,10 +67,10 @@ Shows help for the command.
|
|
67
67
|
The private key that Knife will use to sign requests made by the API client to the Chef server\&.
|
68
68
|
.TP
|
69
69
|
.B \fB\-\-[no\-]color\fP
|
70
|
-
|
70
|
+
Use to view colored output.
|
71
71
|
.TP
|
72
72
|
.B \fB\-\-print\-after\fP
|
73
|
-
|
73
|
+
Use to show data after a destructive operation.
|
74
74
|
.TP
|
75
75
|
.B \fB\-s URL\fP, \fB\-\-server\-url URL\fP
|
76
76
|
The URL for the Chef server\&.
|
@@ -85,10 +85,10 @@ Set for more verbose outputs. Use \fB\-VV\fP for maximum verbosity.
|
|
85
85
|
The version of the chef\-client\&.
|
86
86
|
.TP
|
87
87
|
.B \fB\-y\fP, \fB\-\-yes\fP
|
88
|
-
|
88
|
+
Use to respond to all confirmation prompts with "Yes". Knife will not ask for confirmation.
|
89
89
|
.TP
|
90
90
|
.B \fB\-z\fP, \fB\-\-local\-mode\fP
|
91
|
-
|
91
|
+
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\&.
|
92
92
|
.UNINDENT
|
93
93
|
.SH BULK DELETE
|
94
94
|
.sp
|
@@ -348,7 +348,7 @@ This argument has the following options:
|
|
348
348
|
.INDENT 0.0
|
349
349
|
.TP
|
350
350
|
.B \fB\-w\fP, \fB\-\-with\-uri\fP
|
351
|
-
|
351
|
+
Use to show the corresponding URIs.
|
352
352
|
.UNINDENT
|
353
353
|
.sp
|
354
354
|
\fBExamples\fP
|
@@ -1,6 +1,6 @@
|
|
1
1
|
.\" Man page generated from reStructuredText.
|
2
2
|
.
|
3
|
-
.TH "KNIFE-SEARCH" "1" "Chef 11.
|
3
|
+
.TH "KNIFE-SEARCH" "1" "Chef 11.14" "" "knife search"
|
4
4
|
.SH NAME
|
5
5
|
knife-search \- The man page for the knife search subcommand.
|
6
6
|
.
|
@@ -138,13 +138,13 @@ The configuration file to use.
|
|
138
138
|
The port on which chef\-zero will listen.
|
139
139
|
.TP
|
140
140
|
.B \fB\-\-[no\-]color\fP
|
141
|
-
|
141
|
+
Use to view colored output.
|
142
142
|
.TP
|
143
143
|
.B \fB\-d\fP, \fB\-\-disable\-editing\fP
|
144
|
-
|
144
|
+
Use to prevent the $EDITOR from being opened and to accept data as\-is.
|
145
145
|
.TP
|
146
146
|
.B \fB\-\-defaults\fP
|
147
|
-
|
147
|
+
Use to have Knife use the default value instead of asking a user to provide one.
|
148
148
|
.TP
|
149
149
|
.B \fB\-e EDITOR\fP, \fB\-\-editor EDITOR\fP
|
150
150
|
The $EDITOR that is used for all interactive commands.
|
@@ -159,7 +159,7 @@ The output format: \fBsummary\fP (default), \fBtext\fP, \fBjson\fP, \fByaml\fP,
|
|
159
159
|
Shows help for the command.
|
160
160
|
.TP
|
161
161
|
.B \fB\-i\fP, \fB\-\-id\-only\fP
|
162
|
-
|
162
|
+
Use to show only matching object IDs.
|
163
163
|
.TP
|
164
164
|
.B \fBINDEX\fP
|
165
165
|
The name of the index to be queried: \fBclient\fP, \fBenvironment\fP, \fBnode\fP, \fBrole\fP, or \fBDATA_BAG_NAME\fP\&. Default index: \fBnode\fP\&.
|
@@ -177,13 +177,13 @@ Display more, but not all, of a node\(aqs data when searching using the default
|
|
177
177
|
The order in which search results will be sorted.
|
178
178
|
.TP
|
179
179
|
.B \fB\-\-print\-after\fP
|
180
|
-
|
180
|
+
Use to show data after a destructive operation.
|
181
181
|
.TP
|
182
182
|
.B \fB\-q SEARCH_QUERY\fP, \fB\-\-query SEARCH_QUERY\fP
|
183
183
|
Use to protect search queries that start with a hyphen (\-). A \fB\-q\fP query may be specified as an argument or an option, but not both.
|
184
184
|
.TP
|
185
185
|
.B \fB\-r\fP, \fB\-\-run\-list\fP
|
186
|
-
|
186
|
+
Use to show only the run\-list.
|
187
187
|
.TP
|
188
188
|
.B \fB\-R INT\fP, \fB\-\-rows INT\fP
|
189
189
|
The number of rows to be returned.
|
@@ -204,10 +204,10 @@ The version of the chef\-client\&.
|
|
204
204
|
Set for more verbose outputs. Use \fB\-VV\fP for maximum verbosity.
|
205
205
|
.TP
|
206
206
|
.B \fB\-y\fP, \fB\-\-yes\fP
|
207
|
-
|
207
|
+
Use to respond to all confirmation prompts with "Yes". Knife will not ask for confirmation.
|
208
208
|
.TP
|
209
209
|
.B \fB\-z\fP, \fB\-\-local\-mode\fP
|
210
|
-
|
210
|
+
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\&.
|
211
211
|
.UNINDENT
|
212
212
|
.sp
|
213
213
|
\fBExamples\fP
|
@@ -0,0 +1,109 @@
|
|
1
|
+
.\" Man page generated from reStructuredText.
|
2
|
+
.
|
3
|
+
.TH "KNIFE-SERVE" "1" "Chef 11.14.0" "" "knife serve"
|
4
|
+
.SH NAME
|
5
|
+
knife-serve \- The man page for the knife serve 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
|
+
The \fBknife serve\fP subcommand is used to run a persistent chef\-zero against the local chef\-repo\&. (chef\-zero is a lightweight Chef server that runs in\-memory on the local machine.) This is the same as running the chef\-client executable with the \fB\-\-local\-mode\fP option. The \fBchef_repo_path\fP is located automatically and the Chef server will bind to port \fB8900\fP by default. \fBknife serve\fP will print the URL for the local Chef server, so that it may be added to the knife.rb file.
|
35
|
+
.sp
|
36
|
+
\fBSyntax\fP
|
37
|
+
.sp
|
38
|
+
This subcommand has the following syntax:
|
39
|
+
.INDENT 0.0
|
40
|
+
.INDENT 3.5
|
41
|
+
.sp
|
42
|
+
.nf
|
43
|
+
.ft C
|
44
|
+
$ knife serve (options)
|
45
|
+
.ft P
|
46
|
+
.fi
|
47
|
+
.UNINDENT
|
48
|
+
.UNINDENT
|
49
|
+
.sp
|
50
|
+
\fBOptions\fP
|
51
|
+
.sp
|
52
|
+
This subcommand has the following options:
|
53
|
+
.INDENT 0.0
|
54
|
+
.TP
|
55
|
+
.B \fB\-c CONFIG_FILE\fP, \fB\-\-config CONFIG_FILE\fP
|
56
|
+
The configuration file to use.
|
57
|
+
.TP
|
58
|
+
.B \fB\-\-chef\-zero\-port PORT\fP
|
59
|
+
The port on which chef\-zero will listen.
|
60
|
+
.TP
|
61
|
+
.B \fB\-d\fP, \fB\-\-disable\-editing\fP
|
62
|
+
Use to prevent the $EDITOR from being opened and to accept data as\-is.
|
63
|
+
.TP
|
64
|
+
.B \fB\-\-defaults\fP
|
65
|
+
Use to have Knife use the default value instead of asking a user to provide one.
|
66
|
+
.TP
|
67
|
+
.B \fB\-e EDITOR\fP, \fB\-\-editor EDITOR\fP
|
68
|
+
The $EDITOR that is used for all interactive commands.
|
69
|
+
.TP
|
70
|
+
.B \fB\-E ENVIRONMENT\fP, \fB\-\-environment ENVIRONMENT\fP
|
71
|
+
The name of the environment. When this option is added to a command, the command will run only against the named environment.
|
72
|
+
.TP
|
73
|
+
.B \fB\-F FORMAT\fP, \fB\-\-format FORMAT\fP
|
74
|
+
The output format: \fBsummary\fP (default), \fBtext\fP, \fBjson\fP, \fByaml\fP, and \fBpp\fP\&.
|
75
|
+
.TP
|
76
|
+
.B \fB\-h\fP, \fB\-\-help\fP
|
77
|
+
Shows help for the command.
|
78
|
+
.TP
|
79
|
+
.B \fB\-k KEY\fP, \fB\-\-key KEY\fP
|
80
|
+
The private key that Knife will use to sign requests made by the API client to the Chef server\&.
|
81
|
+
.TP
|
82
|
+
.B \fB\-\-[no\-]color\fP
|
83
|
+
Use to view colored output.
|
84
|
+
.TP
|
85
|
+
.B \fB\-\-print\-after\fP
|
86
|
+
Use to show data after a destructive operation.
|
87
|
+
.TP
|
88
|
+
.B \fB\-s URL\fP, \fB\-\-server\-url URL\fP
|
89
|
+
The URL for the Chef server\&.
|
90
|
+
.TP
|
91
|
+
.B \fB\-u USER\fP, \fB\-\-user USER\fP
|
92
|
+
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.
|
93
|
+
.TP
|
94
|
+
.B \fB\-v\fP, \fB\-\-version\fP
|
95
|
+
The version of the chef\-client\&.
|
96
|
+
.TP
|
97
|
+
.B \fB\-V\fP, \fB\-\-verbose\fP
|
98
|
+
Set for more verbose outputs. Use \fB\-VV\fP for maximum verbosity.
|
99
|
+
.TP
|
100
|
+
.B \fB\-y\fP, \fB\-\-yes\fP
|
101
|
+
Use to respond to all confirmation prompts with "Yes". Knife will not ask for confirmation.
|
102
|
+
.TP
|
103
|
+
.B \fB\-z\fP, \fB\-\-local\-mode\fP
|
104
|
+
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\&.
|
105
|
+
.UNINDENT
|
106
|
+
.SH AUTHOR
|
107
|
+
Chef
|
108
|
+
.\" Generated by docutils manpage writer.
|
109
|
+
.
|