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.
- data/README.md +57 -36
- data/distro/common/html/chef-client.8.html +4 -4
- data/distro/common/html/chef-expander.8.html +4 -4
- data/distro/common/html/chef-expanderctl.8.html +4 -4
- data/distro/common/html/chef-server-webui.8.html +4 -4
- data/distro/common/html/chef-server.8.html +4 -4
- data/distro/common/html/chef-shell.1.html +4 -4
- data/distro/common/html/chef-solo.8.html +4 -4
- data/distro/common/html/chef-solr.8.html +5 -5
- data/distro/common/html/knife-bootstrap.1.html +4 -4
- data/distro/common/html/knife-client.1.html +4 -4
- data/distro/common/html/knife-configure.1.html +4 -4
- data/distro/common/html/knife-cookbook-site.1.html +4 -4
- data/distro/common/html/knife-cookbook.1.html +4 -4
- data/distro/common/html/knife-data-bag.1.html +4 -4
- data/distro/common/html/knife-environment.1.html +4 -4
- data/distro/common/html/knife-exec.1.html +4 -4
- data/distro/common/html/knife-index.1.html +4 -4
- data/distro/common/html/knife-node.1.html +4 -4
- data/distro/common/html/knife-role.1.html +4 -4
- data/distro/common/html/knife-search.1.html +4 -4
- data/distro/common/html/knife-ssh.1.html +4 -4
- data/distro/common/html/knife-status.1.html +4 -4
- data/distro/common/html/knife-tag.1.html +4 -4
- data/distro/common/html/knife.1.html +4 -4
- data/distro/common/man/man1/knife-bootstrap.1 +58 -64
- data/distro/common/man/man1/knife-client.1 +19 -22
- data/distro/common/man/man1/knife-configure.1 +37 -46
- data/distro/common/man/man1/knife-cookbook-site.1 +14 -17
- data/distro/common/man/man1/knife-cookbook.1 +15 -18
- data/distro/common/man/man1/knife-data-bag.1 +14 -17
- data/distro/common/man/man1/knife-delete.1 +38 -47
- data/distro/common/man/man1/knife-deps.1 +39 -48
- data/distro/common/man/man1/knife-diff.1 +43 -52
- data/distro/common/man/man1/knife-download.1 +47 -53
- data/distro/common/man/man1/knife-edit.1 +32 -41
- data/distro/common/man/man1/knife-environment.1 +14 -17
- data/distro/common/man/man1/knife-exec.1 +52 -61
- data/distro/common/man/man1/knife-index-rebuild.1 +1 -61
- data/distro/common/man/man1/knife-list.1 +47 -59
- data/distro/common/man/man1/knife-node.1 +15 -18
- data/distro/common/man/man1/knife-raw.1 +28 -46
- data/distro/common/man/man1/knife-recipe-list.1 +1 -61
- data/distro/common/man/man1/knife-role.1 +19 -25
- data/distro/common/man/man1/knife-search.1 +53 -62
- data/distro/common/man/man1/knife-show.1 +36 -28
- data/distro/common/man/man1/knife-ssh.1 +55 -61
- data/distro/common/man/man1/knife-status.1 +34 -43
- data/distro/common/man/man1/knife-tag.1 +14 -17
- data/distro/common/man/man1/knife-upload.1 +47 -56
- data/distro/common/man/man1/knife-user.1 +17 -20
- data/distro/common/man/man1/knife-xargs.1 +60 -69
- data/lib/chef/application.rb +3 -1
- data/lib/chef/application/windows_service.rb +0 -1
- data/lib/chef/client.rb +41 -152
- data/lib/chef/config.rb +19 -23
- data/lib/chef/data_bag.rb +1 -1
- data/lib/chef/data_bag_item.rb +1 -1
- data/lib/chef/exceptions.rb +8 -0
- data/lib/chef/formatters/doc.rb +15 -0
- data/lib/chef/formatters/error_inspectors/api_error_formatting.rb +2 -1
- data/lib/chef/http.rb +18 -8
- data/lib/chef/http/authenticator.rb +4 -0
- data/lib/chef/http/cookie_manager.rb +3 -0
- data/lib/chef/http/decompressor.rb +4 -0
- data/lib/chef/http/json_input.rb +4 -0
- data/lib/chef/http/json_output.rb +4 -0
- data/lib/chef/http/validate_content_length.rb +94 -0
- data/lib/chef/knife.rb +0 -1
- data/lib/chef/knife/configure.rb +6 -6
- data/lib/chef/knife/cookbook_create.rb +2 -2
- data/lib/chef/knife/core/subcommand_loader.rb +49 -3
- data/lib/chef/knife/ssh.rb +34 -4
- data/lib/chef/mixin/path_sanity.rb +1 -0
- data/lib/chef/monologger.rb +1 -2
- data/lib/chef/node.rb +7 -0
- data/lib/chef/policy_builder.rb +49 -0
- data/lib/chef/policy_builder/expand_node_object.rb +230 -0
- data/lib/chef/policy_builder/policyfile.rb +338 -0
- data/lib/chef/provider/file.rb +15 -5
- data/lib/chef/provider/group.rb +6 -2
- data/lib/chef/provider/group/windows.rb +12 -2
- data/lib/chef/provider/http_request.rb +3 -2
- data/lib/chef/provider/package.rb +1 -0
- data/lib/chef/provider/package/aix.rb +1 -1
- data/lib/chef/provider/service/debian.rb +7 -2
- data/lib/chef/resource/file.rb +8 -1
- data/lib/chef/resource/package.rb +9 -0
- data/lib/chef/resource/service.rb +0 -1
- data/lib/chef/rest.rb +2 -0
- data/lib/chef/run_context.rb +1 -1
- data/lib/chef/util/file_edit.rb +1 -1
- data/lib/chef/util/windows/net_group.rb +7 -6
- data/lib/chef/version.rb +1 -1
- data/lib/chef/win32/version.rb +31 -18
- data/spec/data/cookbooks/preseed/templates/default/preseed-template-variables.seed +1 -0
- data/spec/functional/resource/file_spec.rb +0 -1
- data/spec/functional/resource/group_spec.rb +96 -16
- data/spec/functional/resource/package_spec.rb +17 -0
- data/spec/functional/resource/user_spec.rb +2 -2
- data/spec/functional/win32/versions_spec.rb +39 -0
- data/spec/integration/client/client_spec.rb +27 -28
- data/spec/spec_helper.rb +2 -0
- data/spec/support/platform_helpers.rb +7 -1
- data/spec/support/shared/functional/file_resource.rb +83 -43
- data/spec/unit/application_spec.rb +7 -5
- data/spec/unit/client_spec.rb +10 -3
- data/spec/unit/config_spec.rb +0 -30
- data/spec/unit/cookbook_spec.rb +1 -0
- data/spec/unit/data_bag_item_spec.rb +8 -0
- data/spec/unit/data_bag_spec.rb +6 -0
- data/spec/unit/http_spec.rb +48 -0
- data/spec/unit/knife/core/subcommand_loader_spec.rb +77 -1
- data/spec/unit/knife/ssh_spec.rb +107 -0
- data/spec/unit/mixin/path_sanity_spec.rb +6 -0
- data/spec/unit/mixin/securable_spec.rb +77 -3
- data/spec/unit/monologger_spec.rb +45 -0
- data/spec/unit/node_spec.rb +16 -0
- data/spec/unit/policy_builder/expand_node_object_spec.rb +320 -0
- data/spec/unit/policy_builder/policyfile_spec.rb +399 -0
- data/spec/unit/policy_builder_spec.rb +26 -0
- data/spec/unit/provider/deploy_spec.rb +3 -0
- data/spec/unit/provider/group/windows_spec.rb +1 -0
- data/spec/unit/provider/http_request_spec.rb +23 -1
- data/spec/unit/provider/service/debian_service_spec.rb +50 -19
- data/spec/unit/recipe_spec.rb +4 -0
- data/spec/unit/resource/package_spec.rb +5 -0
- data/spec/unit/rest_spec.rb +375 -278
- data/spec/unit/run_context_spec.rb +4 -0
- metadata +96 -59
- checksums.yaml +0 -7
@@ -33,16 +33,38 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
|
|
33
33
|
.sp
|
34
34
|
The \fBknife delete\fP subcommand is used to delete an object from a server. This subcommand works similar to \fBknife cookbook delete\fP, \fBknife data bag delete\fP, \fBknife environment delete\fP, \fBknife node delete\fP, and \fBknife role delete\fP, but with a single verb (and a single action).
|
35
35
|
.sp
|
36
|
-
\
|
36
|
+
\fBSyntax\fP
|
37
|
+
.sp
|
38
|
+
This argument has the following syntax:
|
39
|
+
.sp
|
40
|
+
.nf
|
41
|
+
.ft C
|
42
|
+
$ knife delete [PATTERN...] (options)
|
43
|
+
.ft P
|
44
|
+
.fi
|
37
45
|
.sp
|
38
|
-
|
46
|
+
\fBOptions\fP
|
47
|
+
.sp
|
48
|
+
This subcommand has the following options:
|
39
49
|
.INDENT 0.0
|
40
50
|
.TP
|
41
|
-
.B \fB
|
51
|
+
.B \fB\-\-both\fP
|
52
|
+
Indicates that both local and remote copies of an object should be deleted. Default: \fBfalse\fP.
|
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\-\-
|
45
|
-
|
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,18 @@ 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\-\-
|
72
|
-
Indicates that
|
73
|
-
.TP
|
74
|
-
.B \fB\-p PASSWORD\fP, \fB\-\-password PASSWORD\fP
|
75
|
-
The user password.
|
90
|
+
.B \fB\-\-local\fP
|
91
|
+
Indicates that only the local copy of an object should be deleted. (The remote copy will not be deleted.) Default: \fBfalse\fP.
|
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\-r\fP, \fB\-\-[no\-]recurse\fP
|
97
|
+
Use \fB\-\-recurse\fP to delete directories recursively. Default: \fB\-\-no\-recurse\fP.
|
98
|
+
.TP
|
99
|
+
.B \fB\-\-repo\-mode MODE\fP
|
100
|
+
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.
|
101
|
+
.TP
|
80
102
|
.B \fB\-s URL\fP, \fB\-\-server\-url URL\fP
|
81
103
|
The URL for the server.
|
82
104
|
.TP
|
@@ -91,42 +113,11 @@ Set for more verbose outputs. Use \fB\-VV\fP for maximum verbosity.
|
|
91
113
|
.TP
|
92
114
|
.B \fB\-y\fP, \fB\-\-yes\fP
|
93
115
|
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 delete [PATTERN...] (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
|
-
.TP
|
111
|
-
.B \fB\-\-both\fP
|
112
|
-
Indicates that both local and remote copies of an object should be deleted. Default: \fBfalse\fP.
|
113
|
-
.TP
|
114
|
-
.B \fB\-\-chef\-repo\-path PATH\fP
|
115
|
-
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.
|
116
|
-
.TP
|
117
|
-
.B \fB\-\-concurrency\fP
|
118
|
-
The number of allowed concurrent connections. Default: \fB10\fP.
|
119
116
|
.TP
|
120
|
-
.B \fB\-\-local\fP
|
121
|
-
Indicates that
|
122
|
-
.TP
|
123
|
-
.B \fB\-r\fP, \fB\-\-[no\-]recurse\fP
|
124
|
-
Use \fB\-\-recurse\fP to delete directories recursively. Default: \fB\-\-no\-recurse\fP.
|
125
|
-
.TP
|
126
|
-
.B \fB\-\-repo\-mode MODE\fP
|
127
|
-
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.
|
117
|
+
.B \fB\-z\fP, \fB\-\-local\-mode\fP
|
118
|
+
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.
|
128
119
|
.UNINDENT
|
129
120
|
.SH AUTHOR
|
130
|
-
|
121
|
+
Chef
|
131
122
|
.\" Generated by docutils manpage writer.
|
132
123
|
.
|
@@ -33,16 +33,35 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
|
|
33
33
|
.sp
|
34
34
|
The \fBknife deps\fP subcommand is used to identify dependencies for a node, role, or cookbook.
|
35
35
|
.sp
|
36
|
-
\
|
36
|
+
\fBSyntax\fP
|
37
|
+
.sp
|
38
|
+
This argument has the following syntax:
|
39
|
+
.sp
|
40
|
+
.nf
|
41
|
+
.ft C
|
42
|
+
$ knife deps (options)
|
43
|
+
.ft P
|
44
|
+
.fi
|
37
45
|
.sp
|
38
|
-
|
46
|
+
\fBOptions\fP
|
47
|
+
.sp
|
48
|
+
This subcommand has the following options:
|
39
49
|
.INDENT 0.0
|
40
50
|
.TP
|
41
|
-
.B \fB\-c
|
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\-\-
|
45
|
-
|
54
|
+
.B \fB\-\-chef\-repo\-path PATH\fP
|
55
|
+
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.
|
56
|
+
.TP
|
57
|
+
.B \fB\-\-chef\-zero\-port PORT\fP
|
58
|
+
The port on which chef\-zero will listen.
|
59
|
+
.TP
|
60
|
+
.B \fB\-\-[no\-]color\fP
|
61
|
+
Indicates whether colored output will be used.
|
62
|
+
.TP
|
63
|
+
.B \fB\-\-concurrency\fP
|
64
|
+
The number of allowed concurrent connections. Default: \fB10\fP.
|
46
65
|
.TP
|
47
66
|
.B \fB\-d\fP, \fB\-\-disable\-editing\fP
|
48
67
|
Indicates that $EDITOR will not be opened; data will be accepted as\-is.
|
@@ -56,9 +75,6 @@ The $EDITOR that is used for all interactive commands.
|
|
56
75
|
.B \fB\-E ENVIRONMENT\fP, \fB\-\-environment ENVIRONMENT\fP
|
57
76
|
The name of the environment. When this option is added to a command, the command will run only against the named environment.
|
58
77
|
.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
78
|
.B \fB\-F FORMAT\fP, \fB\-\-format FORMAT\fP
|
63
79
|
The output format: \fBsummary\fP (default), \fBtext\fP, \fBjson\fP, \fByaml\fP, and \fBpp\fP.
|
64
80
|
.TP
|
@@ -68,18 +84,24 @@ Shows help for the command.
|
|
68
84
|
.B \fB\-k KEY\fP, \fB\-\-key KEY\fP
|
69
85
|
The private key that Knife will use to sign requests made by the API client to the server.
|
70
86
|
.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
87
|
.B \fB\-\-print\-after\fP
|
78
88
|
Indicates that data will be shown after a destructive operation.
|
79
89
|
.TP
|
90
|
+
.B \fB\-\-[no\-]recurse\fP
|
91
|
+
Use \fB\-\-recurse\fP to list dependencies recursively. This option can only be used when \fB\-\-tree\fP is set to \fBtrue\fP. Default: \fB\-\-no\-recurse\fP.
|
92
|
+
.TP
|
93
|
+
.B \fB\-\-remote\fP
|
94
|
+
Indicates that dependencies will be determined from objects located on the server instead of the local chef\-repo. Default: \fBfalse\fP.
|
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
|
102
|
+
.B \fB\-\-tree\fP
|
103
|
+
Indicates that dependencies are shown in a visual tree structure (including duplicates, if they exist). Default: \fBfalse\fP.
|
104
|
+
.TP
|
83
105
|
.B \fB\-u USER\fP, \fB\-\-user USER\fP
|
84
106
|
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
107
|
.TP
|
@@ -91,40 +113,9 @@ Set for more verbose outputs. Use \fB\-VV\fP for maximum verbosity.
|
|
91
113
|
.TP
|
92
114
|
.B \fB\-y\fP, \fB\-\-yes\fP
|
93
115
|
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 deps (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
116
|
.TP
|
111
|
-
.B \fB
|
112
|
-
|
113
|
-
.TP
|
114
|
-
.B \fB\-\-concurrency\fP
|
115
|
-
The number of allowed concurrent connections. Default: \fB10\fP.
|
116
|
-
.TP
|
117
|
-
.B \fB\-\-[no\-]recurse\fP
|
118
|
-
Use \fB\-\-recurse\fP to list dependencies recursively. This option can only be used when \fB\-\-tree\fP is set to \fBtrue\fP. Default: \fB\-\-no\-recurse\fP.
|
119
|
-
.TP
|
120
|
-
.B \fB\-\-remote\fP
|
121
|
-
Indicates that dependencies will be determined from objects located on the server instead of the local chef\-repo. Default: \fBfalse\fP.
|
122
|
-
.TP
|
123
|
-
.B \fB\-\-repo\-mode MODE\fP
|
124
|
-
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
|
-
.TP
|
126
|
-
.B \fB\-\-tree\fP
|
127
|
-
Indicates that dependencies are shown in a visual tree structure (including duplicates, if they exist). Default: \fBfalse\fP.
|
117
|
+
.B \fB\-z\fP, \fB\-\-local\-mode\fP
|
118
|
+
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.
|
128
119
|
.UNINDENT
|
129
120
|
.sp
|
130
121
|
\fBExamples\fP
|
@@ -214,6 +205,6 @@ $ knife deps nodes/*.json | xargs knife upload
|
|
214
205
|
.ft P
|
215
206
|
.fi
|
216
207
|
.SH AUTHOR
|
217
|
-
|
208
|
+
Chef
|
218
209
|
.\" Generated by docutils manpage writer.
|
219
210
|
.
|
@@ -33,16 +33,38 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
|
|
33
33
|
.sp
|
34
34
|
The \fBknife diff\fP subcommand is used to compare the differences between files and directories on the server and in the chef\-repo. For example, to compare files on the server prior to an uploading or downloading files using the \fBknife download\fP and \fBknife upload\fP subcommands, or to ensure that certain files in multiple production environments are the same. This subcommand is similar to the \fBgit diff\fP command that can be used to diff what is in the chef\-repo with what is synced to a git repository.
|
35
35
|
.sp
|
36
|
-
\
|
36
|
+
\fBSyntax\fP
|
37
|
+
.sp
|
38
|
+
This argument has the following syntax:
|
39
|
+
.sp
|
40
|
+
.nf
|
41
|
+
.ft C
|
42
|
+
$ knife diff [PATTERN...] (options)
|
43
|
+
.ft P
|
44
|
+
.fi
|
37
45
|
.sp
|
38
|
-
|
46
|
+
\fBOptions\fP
|
47
|
+
.sp
|
48
|
+
This subcommand has the following options:
|
39
49
|
.INDENT 0.0
|
40
50
|
.TP
|
41
|
-
.B \fB\-c
|
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\-\-
|
45
|
-
|
54
|
+
.B \fB\-\-chef\-repo\-path PATH\fP
|
55
|
+
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.
|
56
|
+
.TP
|
57
|
+
.B \fB\-\-chef\-zero\-port PORT\fP
|
58
|
+
The port on which chef\-zero will listen.
|
59
|
+
.TP
|
60
|
+
.B \fB\-\-[no\-]color\fP
|
61
|
+
Indicates whether colored output will be used.
|
62
|
+
.TP
|
63
|
+
.B \fB\-\-cookbook\-version VERSION\fP
|
64
|
+
The version of a cookbook to be downloaded.
|
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.
|
@@ -50,15 +72,15 @@ Indicates that $EDITOR will not be opened; data will be accepted as\-is.
|
|
50
72
|
.B \fB\-\-defaults\fP
|
51
73
|
Indicates that Knife will use the default value, instead of asking a user to provide one.
|
52
74
|
.TP
|
75
|
+
.B \fB\-\-diff\-filter=[(A|D|M|T)...[*]]\fP
|
76
|
+
Indicates that files will be selected that have been added (\fBA\fP), deleted (\fBD\fP), modified (\fBM\fP), and/or have had their type changed (\fBT\fP). Any combination of filter characters may be used, including no filter characters. Use \fB*\fP to select all paths if a file matches other criteria in the comparison. Default value: \fBnil\fP.
|
77
|
+
.TP
|
53
78
|
.B \fB\-e EDITOR\fP, \fB\-\-editor EDITOR\fP
|
54
79
|
The $EDITOR that is used for all interactive commands.
|
55
80
|
.TP
|
56
81
|
.B \fB\-E ENVIRONMENT\fP, \fB\-\-environment ENVIRONMENT\fP
|
57
82
|
The name of the environment. When this option is added to a command, the command will run only against the named environment.
|
58
83
|
.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
84
|
.B \fB\-F FORMAT\fP, \fB\-\-format FORMAT\fP
|
63
85
|
The output format: \fBsummary\fP (default), \fBtext\fP, \fBjson\fP, \fByaml\fP, and \fBpp\fP.
|
64
86
|
.TP
|
@@ -68,15 +90,21 @@ Shows help for the command.
|
|
68
90
|
.B \fB\-k KEY\fP, \fB\-\-key KEY\fP
|
69
91
|
The private key that Knife will use to sign requests made by the API client to the server.
|
70
92
|
.TP
|
71
|
-
.B \fB\-\-
|
72
|
-
Indicates that
|
93
|
+
.B \fB\-\-name\-only\fP
|
94
|
+
Indicates that only the names of modified files will be shown.
|
73
95
|
.TP
|
74
|
-
.B \fB\-
|
75
|
-
|
96
|
+
.B \fB\-\-name\-status\fP
|
97
|
+
Indicates that only the names of files with a status of \fBAdded\fP, \fBDeleted\fP, \fBModified\fP, or \fBType Changed\fP will be shown.
|
98
|
+
.TP
|
99
|
+
.B \fB\-\-no\-recurse\fP
|
100
|
+
Use \fB\-\-no\-recurse\fP to disable listing a directory recursively. Default: \fB\-\-recurse\fP.
|
76
101
|
.TP
|
77
102
|
.B \fB\-\-print\-after\fP
|
78
103
|
Indicates that data will be shown after a destructive operation.
|
79
104
|
.TP
|
105
|
+
.B \fB\-\-repo\-mode MODE\fP
|
106
|
+
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.
|
107
|
+
.TP
|
80
108
|
.B \fB\-s URL\fP, \fB\-\-server\-url URL\fP
|
81
109
|
The URL for the server.
|
82
110
|
.TP
|
@@ -91,46 +119,9 @@ Set for more verbose outputs. Use \fB\-VV\fP for maximum verbosity.
|
|
91
119
|
.TP
|
92
120
|
.B \fB\-y\fP, \fB\-\-yes\fP
|
93
121
|
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 diff [PATTERN...] (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
122
|
.TP
|
111
|
-
.B \fB
|
112
|
-
|
113
|
-
.TP
|
114
|
-
.B \fB\-\-cookbook\-version VERSION\fP
|
115
|
-
The version of a cookbook to be downloaded.
|
116
|
-
.TP
|
117
|
-
.B \fB\-\-concurrency\fP
|
118
|
-
The number of allowed concurrent connections. Default: \fB10\fP.
|
119
|
-
.TP
|
120
|
-
.B \fB\-\-diff\-filter=[(A|D|M|T)...[*]]\fP
|
121
|
-
Indicates that files will be selected that have been added (\fBA\fP), deleted (\fBD\fP), modified (\fBM\fP), and/or have had their type changed (\fBT\fP). Any combination of filter characters may be used, including no filter characters. Use \fB*\fP to select all paths if a file matches other criteria in the comparison. Default value: \fBnil\fP.
|
122
|
-
.TP
|
123
|
-
.B \fB\-\-name\-only\fP
|
124
|
-
Indicates that only the names of modified files will be shown.
|
125
|
-
.TP
|
126
|
-
.B \fB\-\-name\-status\fP
|
127
|
-
Indicates that only the names of files with a status of \fBAdded\fP, \fBDeleted\fP, \fBModified\fP, or \fBType Changed\fP will be shown.
|
128
|
-
.TP
|
129
|
-
.B \fB\-\-no\-recurse\fP
|
130
|
-
Use \fB\-\-no\-recurse\fP to disable listing a directory recursively. Default: \fB\-\-recurse\fP.
|
131
|
-
.TP
|
132
|
-
.B \fB\-\-repo\-mode MODE\fP
|
133
|
-
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.
|
123
|
+
.B \fB\-z\fP, \fB\-\-local\-mode\fP
|
124
|
+
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.
|
134
125
|
.UNINDENT
|
135
126
|
.sp
|
136
127
|
\fBknife.rb File Settings\fP
|
@@ -210,6 +201,6 @@ node\-lb/Rakefile
|
|
210
201
|
.ft P
|
211
202
|
.fi
|
212
203
|
.SH AUTHOR
|
213
|
-
|
204
|
+
Chef
|
214
205
|
.\" Generated by docutils manpage writer.
|
215
206
|
.
|
@@ -33,16 +33,38 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
|
|
33
33
|
.sp
|
34
34
|
The \fBknife download\fP subcommand is used to download roles, cookbooks, environments, nodes, and data bags from the server to the current working directory.. It can be used to back up data on the server, inspect the state of one or more files, or to extract out\-of\-process changes users may have made to files on the server, such as if a user made a change that bypassed version source control. This subcommand is often used in conjunction with \fBknife diff\fP, which can be used to see exactly what changes will be downloaded, and then \fBknife upload\fP, which does the opposite of \fBknife download\fP.
|
35
35
|
.sp
|
36
|
-
\
|
36
|
+
\fBSyntax\fP
|
37
|
+
.sp
|
38
|
+
This argument has the following syntax:
|
39
|
+
.sp
|
40
|
+
.nf
|
41
|
+
.ft C
|
42
|
+
$ knife download [PATTERN...] (options)
|
43
|
+
.ft P
|
44
|
+
.fi
|
37
45
|
.sp
|
38
|
-
|
46
|
+
\fBOptions\fP
|
47
|
+
.sp
|
48
|
+
This subcommand has the following options:
|
39
49
|
.INDENT 0.0
|
40
50
|
.TP
|
41
|
-
.B \fB\-c
|
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\-\-
|
45
|
-
|
54
|
+
.B \fB\-\-chef\-repo\-path PATH\fP
|
55
|
+
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.
|
56
|
+
.TP
|
57
|
+
.B \fB\-\-chef\-zero\-port PORT\fP
|
58
|
+
The port on which chef\-zero will listen.
|
59
|
+
.TP
|
60
|
+
.B \fB\-\-[no\-]color\fP
|
61
|
+
Indicates whether colored output will be used.
|
62
|
+
.TP
|
63
|
+
.B \fB\-\-concurrency\fP
|
64
|
+
The number of allowed concurrent connections. Default: \fB10\fP.
|
65
|
+
.TP
|
66
|
+
.B \fB\-\-cookbook\-version VERSION\fP
|
67
|
+
The version of a cookbook to be downloaded.
|
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.
|
@@ -50,33 +72,42 @@ Indicates that $EDITOR will not be opened; data will be accepted as\-is.
|
|
50
72
|
.B \fB\-\-defaults\fP
|
51
73
|
Indicates that Knife will use the default value, instead of asking a user to provide one.
|
52
74
|
.TP
|
75
|
+
.B \fB\-\-[no\-]diff\fP
|
76
|
+
Indicates that only new and modified files will be downloaded. Set to \fBfalse\fP to download all files. Default: \fB\-\-diff\fP.
|
77
|
+
.TP
|
53
78
|
.B \fB\-e EDITOR\fP, \fB\-\-editor EDITOR\fP
|
54
79
|
The $EDITOR that is used for all interactive commands.
|
55
80
|
.TP
|
56
81
|
.B \fB\-E ENVIRONMENT\fP, \fB\-\-environment ENVIRONMENT\fP
|
57
82
|
The name of the environment. When this option is added to a command, the command will run only against the named environment.
|
58
83
|
.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
84
|
.B \fB\-F FORMAT\fP, \fB\-\-format FORMAT\fP
|
63
85
|
The output format: \fBsummary\fP (default), \fBtext\fP, \fBjson\fP, \fByaml\fP, and \fBpp\fP.
|
64
86
|
.TP
|
87
|
+
.B \fB\-\-[no\-]force\fP
|
88
|
+
Use \fB\-\-force\fP to download files even when the file on the hard drive is identical to the object on the server (role, cookbook, etc.). By default, files are compared to see if they have equivalent content, and local files are only overwritten if they are different. Default: \fB\-\-no\-force\fP.
|
89
|
+
.TP
|
65
90
|
.B \fB\-h\fP, \fB\-\-help\fP
|
66
91
|
Shows help for the command.
|
67
92
|
.TP
|
68
93
|
.B \fB\-k KEY\fP, \fB\-\-key KEY\fP
|
69
94
|
The private key that Knife will use to sign requests made by the API client to the server.
|
70
95
|
.TP
|
71
|
-
.B \fB\-\-
|
72
|
-
Indicates that
|
73
|
-
.TP
|
74
|
-
.B \fB\-p PASSWORD\fP, \fB\-\-password PASSWORD\fP
|
75
|
-
The user password.
|
96
|
+
.B \fB\-n\fP, \fB\-\-dry\-run\fP
|
97
|
+
Indicates that no action is taken and that results are only printed out. Default: \fBfalse\fP.
|
76
98
|
.TP
|
77
99
|
.B \fB\-\-print\-after\fP
|
78
100
|
Indicates that data will be shown after a destructive operation.
|
79
101
|
.TP
|
102
|
+
.B \fB\-\-[no\-]purge\fP
|
103
|
+
Use \fB\-\-purge\fP to delete local files and directories that do not exist on the server. By default, if a role, cookbook, etc. does not exist on the server, the local file for said role will be left alone and NOT deleted. Default: \fB\-\-no\-purge\fP.
|
104
|
+
.TP
|
105
|
+
.B \fB\-\-[no\-]recurse\fP
|
106
|
+
Use \fB\-\-no\-recurse\fP to disable downloading a directory recursively. Default: \fB\-\-recurse\fP.
|
107
|
+
.TP
|
108
|
+
.B \fB\-\-repo\-mode MODE\fP
|
109
|
+
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.
|
110
|
+
.TP
|
80
111
|
.B \fB\-s URL\fP, \fB\-\-server\-url URL\fP
|
81
112
|
The URL for the server.
|
82
113
|
.TP
|
@@ -91,46 +122,9 @@ Set for more verbose outputs. Use \fB\-VV\fP for maximum verbosity.
|
|
91
122
|
.TP
|
92
123
|
.B \fB\-y\fP, \fB\-\-yes\fP
|
93
124
|
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 download [PATTERN...] (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
|
-
.TP
|
111
|
-
.B \fB\-\-chef\-repo\-path PATH\fP
|
112
|
-
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.
|
113
125
|
.TP
|
114
|
-
.B \fB\-\-
|
115
|
-
|
116
|
-
.TP
|
117
|
-
.B \fB\-\-force\fP
|
118
|
-
Use \fB\-\-force\fP to download files even when the file on the hard drive is identical to the object on the server (role, cookbook, etc.). By default, files are compared to see if they have equivalent content, and local files are only overwritten if they are different. Default: \fB\-\-no\-force\fP.
|
119
|
-
.TP
|
120
|
-
.B \fB\-n\fP, \fB\-\-dry\-run\fP
|
121
|
-
Indicates that no action is taken and that results are only printed out. Default: \fBfalse\fP.
|
122
|
-
.TP
|
123
|
-
.B \fB\-\-[no\-]diff\fP
|
124
|
-
Indicates that only new and modified files will be downloaded. Set to \fBfalse\fP to download all files. Default: \fB\-\-diff\fP.
|
125
|
-
.TP
|
126
|
-
.B \fB\-\-[no\-]recurse\fP
|
127
|
-
Use \fB\-\-no\-recurse\fP to disable downloading a directory recursively. Default: \fB\-\-recurse\fP.
|
128
|
-
.TP
|
129
|
-
.B \fB\-\-purge\fP
|
130
|
-
Use \fB\-\-purge\fP to delete local files and directories that do not exist on the server. By default, if a role, cookbook, etc. does not exist on the server, the local file for said role will be left alone and NOT deleted. Default: \fB\-\-no\-purge\fP.
|
131
|
-
.TP
|
132
|
-
.B \fB\-\-repo\-mode MODE\fP
|
133
|
-
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.
|
126
|
+
.B \fB\-z\fP, \fB\-\-local\-mode\fP
|
127
|
+
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.
|
134
128
|
.UNINDENT
|
135
129
|
.sp
|
136
130
|
\fBExamples\fP
|
@@ -215,6 +209,6 @@ $ knife download cookbooks/apache\e* roles/webserver.json
|
|
215
209
|
.ft P
|
216
210
|
.fi
|
217
211
|
.SH AUTHOR
|
218
|
-
|
212
|
+
Chef
|
219
213
|
.\" Generated by docutils manpage writer.
|
220
214
|
.
|