chef 13.11.3 → 13.12.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +4 -3
- data/README.md +35 -40
- data/Rakefile +18 -22
- data/chef-universal-mingw32.gemspec +1 -1
- data/chef.gemspec +3 -3
- data/lib/chef/client.rb +1 -1
- data/lib/chef/mixin/params_validate.rb +3 -1
- data/lib/chef/provider/script.rb +2 -2
- data/lib/chef/version.rb +1 -1
- data/spec/functional/http/simple_spec.rb +12 -6
- data/spec/functional/resource/remote_file_spec.rb +19 -15
- data/spec/support/platform_helpers.rb +2 -1
- data/tasks/announce.rb +1 -1
- data/tasks/dependencies.rb +5 -39
- data/tasks/maintainers.rb +10 -10
- data/tasks/rspec.rb +2 -2
- data/tasks/templates/prerelease.md.erb +11 -2
- data/tasks/templates/release.md.erb +9 -1
- metadata +6 -248
- data/CONTRIBUTING.md +0 -151
- data/VERSION +0 -1
- data/acceptance/.gitignore +0 -3
- data/acceptance/.shared/kitchen_acceptance/.kitchen.digitalocean.yml +0 -33
- data/acceptance/.shared/kitchen_acceptance/.kitchen.ec2.yml +0 -283
- data/acceptance/.shared/kitchen_acceptance/.kitchen.vagrant.yml +0 -59
- data/acceptance/.shared/kitchen_acceptance/libraries/kitchen.rb +0 -68
- data/acceptance/.shared/kitchen_acceptance/metadata.rb +0 -1
- data/acceptance/Gemfile +0 -19
- data/acceptance/Gemfile.lock +0 -266
- data/acceptance/README.md +0 -137
- data/acceptance/basics/.acceptance/acceptance-cookbook/.gitignore +0 -2
- data/acceptance/basics/.acceptance/acceptance-cookbook/metadata.rb +0 -3
- data/acceptance/basics/.acceptance/acceptance-cookbook/recipes/destroy.rb +0 -1
- data/acceptance/basics/.acceptance/acceptance-cookbook/recipes/provision.rb +0 -1
- data/acceptance/basics/.acceptance/acceptance-cookbook/recipes/verify.rb +0 -1
- data/acceptance/basics/.kitchen.yml +0 -4
- data/acceptance/basics/test/integration/chef-current-install/serverspec/chef_client_spec.rb +0 -19
- data/acceptance/basics/test/integration/chef-current-install/serverspec/spec_helper.rb +0 -6
- data/acceptance/basics/test/integration/helpers/serverspec/Gemfile +0 -8
- data/acceptance/data-collector/.acceptance/acceptance-cookbook/.gitignore +0 -2
- data/acceptance/data-collector/.acceptance/acceptance-cookbook/metadata.rb +0 -3
- data/acceptance/data-collector/.acceptance/acceptance-cookbook/recipes/destroy.rb +0 -2
- data/acceptance/data-collector/.acceptance/acceptance-cookbook/recipes/provision.rb +0 -2
- data/acceptance/data-collector/.acceptance/acceptance-cookbook/recipes/verify.rb +0 -2
- data/acceptance/data-collector/.acceptance/data-collector-test/.gitignore +0 -16
- data/acceptance/data-collector/.acceptance/data-collector-test/Berksfile +0 -3
- data/acceptance/data-collector/.acceptance/data-collector-test/files/default/api.rb +0 -101
- data/acceptance/data-collector/.acceptance/data-collector-test/files/default/apigemfile +0 -3
- data/acceptance/data-collector/.acceptance/data-collector-test/files/default/client-rb-both-mode.rb +0 -4
- data/acceptance/data-collector/.acceptance/data-collector-test/files/default/client-rb-client-mode.rb +0 -4
- data/acceptance/data-collector/.acceptance/data-collector-test/files/default/client-rb-no-endpoint.rb +0 -2
- data/acceptance/data-collector/.acceptance/data-collector-test/files/default/client-rb-solo-mode.rb +0 -4
- data/acceptance/data-collector/.acceptance/data-collector-test/files/default/config.ru +0 -2
- data/acceptance/data-collector/.acceptance/data-collector-test/metadata.rb +0 -7
- data/acceptance/data-collector/.acceptance/data-collector-test/recipes/default.rb +0 -44
- data/acceptance/data-collector/.kitchen.yml +0 -9
- data/acceptance/data-collector/Berksfile +0 -3
- data/acceptance/data-collector/test/integration/default/serverspec/default_spec.rb +0 -208
- data/acceptance/data-collector/test/integration/helpers/serverspec/Gemfile +0 -8
- data/acceptance/omnitruck/.acceptance/acceptance-cookbook/.gitignore +0 -2
- data/acceptance/omnitruck/.acceptance/acceptance-cookbook/metadata.rb +0 -1
- data/acceptance/omnitruck/.acceptance/acceptance-cookbook/recipes/destroy.rb +0 -1
- data/acceptance/omnitruck/.acceptance/acceptance-cookbook/recipes/provision.rb +0 -1
- data/acceptance/omnitruck/.acceptance/acceptance-cookbook/recipes/verify.rb +0 -61
- data/acceptance/top-cookbooks/.acceptance/acceptance-cookbook/.gitignore +0 -2
- data/acceptance/top-cookbooks/.acceptance/acceptance-cookbook/libraries/cookbook_kitchen.rb +0 -43
- data/acceptance/top-cookbooks/.acceptance/acceptance-cookbook/libraries/top_cookbooks.rb +0 -41
- data/acceptance/top-cookbooks/.acceptance/acceptance-cookbook/metadata.rb +0 -3
- data/acceptance/top-cookbooks/.acceptance/acceptance-cookbook/recipes/destroy.rb +0 -1
- data/acceptance/top-cookbooks/.acceptance/acceptance-cookbook/recipes/provision.rb +0 -1
- data/acceptance/top-cookbooks/.acceptance/acceptance-cookbook/recipes/verify.rb +0 -1
- data/acceptance/top-cookbooks/.gitignore +0 -1
- data/acceptance/top-cookbooks/.kitchen.chocolatey.yml +0 -6
- data/acceptance/top-cookbooks/.kitchen.iis.yml +0 -4
- data/acceptance/top-cookbooks/.kitchen.learn-the-basics-rhel.yml +0 -7
- data/acceptance/top-cookbooks/.kitchen.learn-the-basics-ubuntu.yml +0 -7
- data/acceptance/top-cookbooks/.kitchen.learn-the-basics-windows.yml +0 -7
- data/acceptance/top-cookbooks/.kitchen.powershell.yml +0 -4
- data/acceptance/top-cookbooks/.kitchen.sql_server.yml +0 -5
- data/acceptance/top-cookbooks/.kitchen.winbox.yml +0 -8
- data/acceptance/top-cookbooks/.kitchen.windows.yml +0 -38
- data/acceptance/trivial/.acceptance/acceptance-cookbook/.gitignore +0 -2
- data/acceptance/trivial/.acceptance/acceptance-cookbook/metadata.rb +0 -2
- data/acceptance/trivial/.acceptance/acceptance-cookbook/recipes/destroy.rb +0 -1
- data/acceptance/trivial/.acceptance/acceptance-cookbook/recipes/provision.rb +0 -1
- data/acceptance/trivial/.acceptance/acceptance-cookbook/recipes/verify.rb +0 -1
- data/acceptance/trivial/.kitchen.yml +0 -7
- data/acceptance/trivial/test/integration/chef-current-install/inspec/chef_client_spec.rb +0 -5
- data/acceptance/windows-service/.acceptance/acceptance-cookbook/.gitignore +0 -2
- data/acceptance/windows-service/.acceptance/acceptance-cookbook/metadata.rb +0 -2
- data/acceptance/windows-service/.acceptance/acceptance-cookbook/recipes/destroy.rb +0 -1
- data/acceptance/windows-service/.acceptance/acceptance-cookbook/recipes/provision.rb +0 -1
- data/acceptance/windows-service/.acceptance/acceptance-cookbook/recipes/verify.rb +0 -1
- data/acceptance/windows-service/.kitchen.yml +0 -7
- data/acceptance/windows-service/test/integration/chef-windows-service/inspec/chef_windows_service_spec.rb +0 -58
- data/distro/common/html/_sources/ctl_chef_client.txt +0 -36
- data/distro/common/html/_sources/ctl_chef_server.txt +0 -341
- data/distro/common/html/_sources/ctl_chef_shell.txt +0 -15
- data/distro/common/html/_sources/ctl_chef_solo.txt +0 -25
- data/distro/common/html/_sources/index.txt +0 -135
- data/distro/common/html/_sources/knife.txt +0 -74
- data/distro/common/html/_sources/knife_bootstrap.txt +0 -56
- data/distro/common/html/_sources/knife_client.txt +0 -151
- data/distro/common/html/_sources/knife_common_options.txt +0 -6
- data/distro/common/html/_sources/knife_configure.txt +0 -29
- data/distro/common/html/_sources/knife_cookbook.txt +0 -236
- data/distro/common/html/_sources/knife_cookbook_site.txt +0 -157
- data/distro/common/html/_sources/knife_data_bag.txt +0 -160
- data/distro/common/html/_sources/knife_delete.txt +0 -26
- data/distro/common/html/_sources/knife_deps.txt +0 -61
- data/distro/common/html/_sources/knife_diff.txt +0 -34
- data/distro/common/html/_sources/knife_download.txt +0 -44
- data/distro/common/html/_sources/knife_edit.txt +0 -26
- data/distro/common/html/_sources/knife_environment.txt +0 -158
- data/distro/common/html/_sources/knife_exec.txt +0 -47
- data/distro/common/html/_sources/knife_index_rebuild.txt +0 -21
- data/distro/common/html/_sources/knife_list.txt +0 -33
- data/distro/common/html/_sources/knife_node.txt +0 -250
- data/distro/common/html/_sources/knife_raw.txt +0 -35
- data/distro/common/html/_sources/knife_recipe_list.txt +0 -23
- data/distro/common/html/_sources/knife_role.txt +0 -157
- data/distro/common/html/_sources/knife_search.txt +0 -53
- data/distro/common/html/_sources/knife_serve.txt +0 -19
- data/distro/common/html/_sources/knife_show.txt +0 -27
- data/distro/common/html/_sources/knife_ssh.txt +0 -43
- data/distro/common/html/_sources/knife_ssl_check.txt +0 -41
- data/distro/common/html/_sources/knife_ssl_fetch.txt +0 -41
- data/distro/common/html/_sources/knife_status.txt +0 -37
- data/distro/common/html/_sources/knife_tag.txt +0 -69
- data/distro/common/html/_sources/knife_upload.txt +0 -49
- data/distro/common/html/_sources/knife_user.txt +0 -127
- data/distro/common/html/_sources/knife_using.txt +0 -43
- data/distro/common/html/_sources/knife_xargs.txt +0 -30
- data/distro/common/html/_static/ajax-loader.gif +0 -0
- data/distro/common/html/_static/basic.css +0 -537
- data/distro/common/html/_static/chef.ico +0 -0
- data/distro/common/html/_static/chef_html_logo.png +0 -0
- data/distro/common/html/_static/comment-bright.png +0 -0
- data/distro/common/html/_static/comment-close.png +0 -0
- data/distro/common/html/_static/comment.png +0 -0
- data/distro/common/html/_static/contents.png +0 -0
- data/distro/common/html/_static/doctools.js +0 -238
- data/distro/common/html/_static/down-pressed.png +0 -0
- data/distro/common/html/_static/down.png +0 -0
- data/distro/common/html/_static/file.png +0 -0
- data/distro/common/html/_static/guide.css +0 -505
- data/distro/common/html/_static/jquery.js +0 -2
- data/distro/common/html/_static/minus.png +0 -0
- data/distro/common/html/_static/navigation.png +0 -0
- data/distro/common/html/_static/plus.png +0 -0
- data/distro/common/html/_static/pygments.css +0 -62
- data/distro/common/html/_static/searchtools.js +0 -622
- data/distro/common/html/_static/underscore.js +0 -31
- data/distro/common/html/_static/up-pressed.png +0 -0
- data/distro/common/html/_static/up.png +0 -0
- data/distro/common/html/_static/websupport.js +0 -808
- data/distro/common/html/ctl_chef_client.html +0 -270
- data/distro/common/html/ctl_chef_server.html +0 -728
- data/distro/common/html/ctl_chef_shell.html +0 -163
- data/distro/common/html/ctl_chef_solo.html +0 -194
- data/distro/common/html/index.html +0 -202
- data/distro/common/html/knife.html +0 -170
- data/distro/common/html/knife_bootstrap.html +0 -285
- data/distro/common/html/knife_client.html +0 -285
- data/distro/common/html/knife_common_options.html +0 -96
- data/distro/common/html/knife_configure.html +0 -105
- data/distro/common/html/knife_cookbook.html +0 -487
- data/distro/common/html/knife_cookbook_site.html +0 -375
- data/distro/common/html/knife_data_bag.html +0 -374
- data/distro/common/html/knife_delete.html +0 -93
- data/distro/common/html/knife_deps.html +0 -143
- data/distro/common/html/knife_diff.html +0 -123
- data/distro/common/html/knife_download.html +0 -145
- data/distro/common/html/knife_edit.html +0 -89
- data/distro/common/html/knife_environment.html +0 -322
- data/distro/common/html/knife_exec.html +0 -220
- data/distro/common/html/knife_index_rebuild.html +0 -83
- data/distro/common/html/knife_list.html +0 -114
- data/distro/common/html/knife_node.html +0 -458
- data/distro/common/html/knife_raw.html +0 -110
- data/distro/common/html/knife_recipe_list.html +0 -91
- data/distro/common/html/knife_role.html +0 -295
- data/distro/common/html/knife_search.html +0 -203
- data/distro/common/html/knife_serve.html +0 -79
- data/distro/common/html/knife_show.html +0 -104
- data/distro/common/html/knife_ssh.html +0 -177
- data/distro/common/html/knife_ssl_check.html +0 -151
- data/distro/common/html/knife_ssl_fetch.html +0 -151
- data/distro/common/html/knife_status.html +0 -144
- data/distro/common/html/knife_tag.html +0 -138
- data/distro/common/html/knife_upload.html +0 -153
- data/distro/common/html/knife_user.html +0 -242
- data/distro/common/html/knife_using.html +0 -210
- data/distro/common/html/knife_xargs.html +0 -122
- data/distro/common/html/objects.inv +0 -0
- data/distro/common/html/search.html +0 -82
- data/distro/common/html/searchindex.js +0 -1
- data/distro/common/man/man1/README.md +0 -58
- data/distro/common/man/man1/chef-shell.1 +0 -194
- data/distro/common/man/man1/knife-bootstrap.1 +0 -215
- data/distro/common/man/man1/knife-client.1 +0 -443
- data/distro/common/man/man1/knife-configure.1 +0 -161
- data/distro/common/man/man1/knife-cookbook-site.1 +0 -552
- data/distro/common/man/man1/knife-cookbook.1 +0 -770
- data/distro/common/man/man1/knife-data-bag.1 +0 -617
- data/distro/common/man/man1/knife-delete.1 +0 -127
- data/distro/common/man/man1/knife-deps.1 +0 -246
- data/distro/common/man/man1/knife-diff.1 +0 -226
- data/distro/common/man/man1/knife-download.1 +0 -258
- data/distro/common/man/man1/knife-edit.1 +0 -121
- data/distro/common/man/man1/knife-environment.1 +0 -496
- data/distro/common/man/man1/knife-exec.1 +0 -362
- data/distro/common/man/man1/knife-index-rebuild.1 +0 -63
- data/distro/common/man/man1/knife-list.1 +0 -174
- data/distro/common/man/man1/knife-node.1 +0 -716
- data/distro/common/man/man1/knife-raw.1 +0 -172
- data/distro/common/man/man1/knife-recipe-list.1 +0 -85
- data/distro/common/man/man1/knife-role.1 +0 -426
- data/distro/common/man/man1/knife-search.1 +0 -359
- data/distro/common/man/man1/knife-serve.1 +0 -109
- data/distro/common/man/man1/knife-show.1 +0 -160
- data/distro/common/man/man1/knife-ssh.1 +0 -284
- data/distro/common/man/man1/knife-ssl-check.1 +0 -207
- data/distro/common/man/man1/knife-ssl-fetch.1 +0 -207
- data/distro/common/man/man1/knife-status.1 +0 -234
- data/distro/common/man/man1/knife-tag.1 +0 -189
- data/distro/common/man/man1/knife-upload.1 +0 -280
- data/distro/common/man/man1/knife-user.1 +0 -356
- data/distro/common/man/man1/knife-xargs.1 +0 -189
- data/distro/common/man/man1/knife.1 +0 -332
- data/distro/common/man/man8/chef-apply.8 +0 -86
- data/distro/common/man/man8/chef-client.8 +0 -398
- data/distro/common/man/man8/chef-solo.8 +0 -260
- data/distro/common/markdown/README +0 -3
- data/distro/common/markdown/man1/chef-shell.mkd +0 -195
- data/distro/common/markdown/man1/knife-bootstrap.mkd +0 -141
- data/distro/common/markdown/man1/knife-client.mkd +0 -103
- data/distro/common/markdown/man1/knife-configure.mkd +0 -71
- data/distro/common/markdown/man1/knife-cookbook-site.mkd +0 -123
- data/distro/common/markdown/man1/knife-cookbook.mkd +0 -263
- data/distro/common/markdown/man1/knife-data-bag.mkd +0 -121
- data/distro/common/markdown/man1/knife-environment.mkd +0 -151
- data/distro/common/markdown/man1/knife-exec.mkd +0 -42
- data/distro/common/markdown/man1/knife-index.mkd +0 -30
- data/distro/common/markdown/man1/knife-node.mkd +0 -130
- data/distro/common/markdown/man1/knife-role.mkd +0 -85
- data/distro/common/markdown/man1/knife-search.mkd +0 -180
- data/distro/common/markdown/man1/knife-ssh.mkd +0 -69
- data/distro/common/markdown/man1/knife-status.mkd +0 -36
- data/distro/common/markdown/man1/knife-tag.mkd +0 -39
- data/distro/common/markdown/man1/knife.mkd +0 -213
- data/distro/common/markdown/man8/chef-client.mkd +0 -75
- data/distro/common/markdown/man8/chef-expander.mkd +0 -81
- data/distro/common/markdown/man8/chef-expanderctl.mkd +0 -57
- data/distro/common/markdown/man8/chef-server-webui.mkd +0 -121
- data/distro/common/markdown/man8/chef-server.mkd +0 -120
- data/distro/common/markdown/man8/chef-solo.mkd +0 -107
- data/distro/common/markdown/man8/chef-solr.mkd +0 -89
- data/distro/powershell/chef/chef.psm1 +0 -459
- data/tasks/cbgb.rb +0 -84
@@ -1,93 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
-
|
4
|
-
|
5
|
-
<html xmlns="http://www.w3.org/1999/xhtml">
|
6
|
-
<head>
|
7
|
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
8
|
-
|
9
|
-
<title>knife delete — chef-client Man Pages</title>
|
10
|
-
|
11
|
-
<link rel="stylesheet" href="_static/guide.css" type="text/css" />
|
12
|
-
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
|
13
|
-
|
14
|
-
<script type="text/javascript">
|
15
|
-
var DOCUMENTATION_OPTIONS = {
|
16
|
-
URL_ROOT: './',
|
17
|
-
VERSION: '',
|
18
|
-
COLLAPSE_INDEX: false,
|
19
|
-
FILE_SUFFIX: '.html',
|
20
|
-
HAS_SOURCE: true
|
21
|
-
};
|
22
|
-
</script>
|
23
|
-
<script type="text/javascript" src="_static/jquery.js"></script>
|
24
|
-
<script type="text/javascript" src="_static/underscore.js"></script>
|
25
|
-
<script type="text/javascript" src="_static/doctools.js"></script>
|
26
|
-
|
27
|
-
|
28
|
-
</head>
|
29
|
-
<body>
|
30
|
-
<div style="background-color: #212c35; text-align: left; padding: 0px 0px 0px 0px">
|
31
|
-
<a href="http://docs.getchef.com/"><img src="_static/chef_html_logo.png" border="0" alt="Chef"/></a>
|
32
|
-
</div>
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
<div class="document">
|
38
|
-
<div class="documentwrapper">
|
39
|
-
|
40
|
-
<div class="body">
|
41
|
-
|
42
|
-
<div class="section" id="knife-delete">
|
43
|
-
<h1>knife delete<a class="headerlink" href="#knife-delete" title="Permalink to this headline">¶</a></h1>
|
44
|
-
<p>The <strong>knife delete</strong> subcommand is used to delete an object from a Chef server. This subcommand works similar to <tt class="docutils literal"><span class="pre">knife</span> <span class="pre">cookbook</span> <span class="pre">delete</span></tt>, <tt class="docutils literal"><span class="pre">knife</span> <span class="pre">data</span> <span class="pre">bag</span> <span class="pre">delete</span></tt>, <tt class="docutils literal"><span class="pre">knife</span> <span class="pre">environment</span> <span class="pre">delete</span></tt>, <tt class="docutils literal"><span class="pre">knife</span> <span class="pre">node</span> <span class="pre">delete</span></tt>, and <tt class="docutils literal"><span class="pre">knife</span> <span class="pre">role</span> <span class="pre">delete</span></tt>, but with a single verb (and a single action).</p>
|
45
|
-
<div class="section" id="syntax">
|
46
|
-
<h2>Syntax<a class="headerlink" href="#syntax" title="Permalink to this headline">¶</a></h2>
|
47
|
-
<p>This subcommand has the following syntax:</p>
|
48
|
-
<div class="highlight-bash"><div class="highlight"><pre><span class="nv">$ </span>knife delete <span class="o">[</span>PATTERN...<span class="o">]</span> <span class="o">(</span>options<span class="o">)</span>
|
49
|
-
</pre></div>
|
50
|
-
</div>
|
51
|
-
</div>
|
52
|
-
<div class="section" id="options">
|
53
|
-
<h2>Options<a class="headerlink" href="#options" title="Permalink to this headline">¶</a></h2>
|
54
|
-
<div class="admonition note">
|
55
|
-
<p class="first admonition-title">Note</p>
|
56
|
-
<p class="last">Review the list of <a class="reference internal" href="knife_common_options.html"><em>common options</em></a> available to this (and all) knife subcommands and plugins.</p>
|
57
|
-
</div>
|
58
|
-
<p>This subcommand has the following options:</p>
|
59
|
-
<dl class="docutils">
|
60
|
-
<dt><tt class="docutils literal"><span class="pre">--both</span></tt></dt>
|
61
|
-
<dd>Use to delete both local and remote copies of an object. Default: <tt class="docutils literal"><span class="pre">false</span></tt>.</dd>
|
62
|
-
<dt><tt class="docutils literal"><span class="pre">--chef-repo-path</span> <span class="pre">PATH</span></tt></dt>
|
63
|
-
<dd>The path to the chef-repo. This setting will override the default path to the chef-repo. Default: same value as specified by <tt class="docutils literal"><span class="pre">chef_repo_path</span></tt> in client.rb.</dd>
|
64
|
-
<dt><tt class="docutils literal"><span class="pre">--concurrency</span></tt></dt>
|
65
|
-
<dd>The number of allowed concurrent connections. Default: <tt class="docutils literal"><span class="pre">10</span></tt>.</dd>
|
66
|
-
<dt><tt class="docutils literal"><span class="pre">--local</span></tt></dt>
|
67
|
-
<dd>Use to delete only the local copy of an object. (A remote copy will not be deleted.) Default: <tt class="docutils literal"><span class="pre">false</span></tt>.</dd>
|
68
|
-
<dt><tt class="docutils literal"><span class="pre">-r</span></tt>, <tt class="docutils literal"><span class="pre">--[no-]recurse</span></tt></dt>
|
69
|
-
<dd>Use <tt class="docutils literal"><span class="pre">--recurse</span></tt> to delete directories recursively. Default: <tt class="docutils literal"><span class="pre">--no-recurse</span></tt>.</dd>
|
70
|
-
<dt><tt class="docutils literal"><span class="pre">--repo-mode</span> <span class="pre">MODE</span></tt></dt>
|
71
|
-
<dd>The layout of the local chef-repo. Possible values: <tt class="docutils literal"><span class="pre">static</span></tt>, <tt class="docutils literal"><span class="pre">everything</span></tt>, or <tt class="docutils literal"><span class="pre">hosted_everything</span></tt>. Use <tt class="docutils literal"><span class="pre">static</span></tt> for just roles, environments, cookbooks, and data bags. By default, <tt class="docutils literal"><span class="pre">everything</span></tt> and <tt class="docutils literal"><span class="pre">hosted_everything</span></tt> are dynamically selected depending on the server type. Default: <tt class="docutils literal"><span class="pre">everything</span></tt> / <tt class="docutils literal"><span class="pre">hosted_everything</span></tt>.</dd>
|
72
|
-
</dl>
|
73
|
-
</div>
|
74
|
-
<div class="section" id="examples">
|
75
|
-
<h2>Examples<a class="headerlink" href="#examples" title="Permalink to this headline">¶</a></h2>
|
76
|
-
<p>None.</p>
|
77
|
-
</div>
|
78
|
-
</div>
|
79
|
-
|
80
|
-
|
81
|
-
</div>
|
82
|
-
|
83
|
-
</div>
|
84
|
-
|
85
|
-
|
86
|
-
<div class="clearer"></div>
|
87
|
-
</div>
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
</body>
|
93
|
-
</html>
|
@@ -1,143 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
-
|
4
|
-
|
5
|
-
<html xmlns="http://www.w3.org/1999/xhtml">
|
6
|
-
<head>
|
7
|
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
8
|
-
|
9
|
-
<title>knife deps — chef-client Man Pages</title>
|
10
|
-
|
11
|
-
<link rel="stylesheet" href="_static/guide.css" type="text/css" />
|
12
|
-
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
|
13
|
-
|
14
|
-
<script type="text/javascript">
|
15
|
-
var DOCUMENTATION_OPTIONS = {
|
16
|
-
URL_ROOT: './',
|
17
|
-
VERSION: '',
|
18
|
-
COLLAPSE_INDEX: false,
|
19
|
-
FILE_SUFFIX: '.html',
|
20
|
-
HAS_SOURCE: true
|
21
|
-
};
|
22
|
-
</script>
|
23
|
-
<script type="text/javascript" src="_static/jquery.js"></script>
|
24
|
-
<script type="text/javascript" src="_static/underscore.js"></script>
|
25
|
-
<script type="text/javascript" src="_static/doctools.js"></script>
|
26
|
-
|
27
|
-
|
28
|
-
</head>
|
29
|
-
<body>
|
30
|
-
<div style="background-color: #212c35; text-align: left; padding: 0px 0px 0px 0px">
|
31
|
-
<a href="http://docs.getchef.com/"><img src="_static/chef_html_logo.png" border="0" alt="Chef"/></a>
|
32
|
-
</div>
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
<div class="document">
|
38
|
-
<div class="documentwrapper">
|
39
|
-
|
40
|
-
<div class="body">
|
41
|
-
|
42
|
-
<div class="section" id="knife-deps">
|
43
|
-
<h1>knife deps<a class="headerlink" href="#knife-deps" title="Permalink to this headline">¶</a></h1>
|
44
|
-
<p>The <strong>knife deps</strong> subcommand is used to identify dependencies for a node, role, or cookbook.</p>
|
45
|
-
<div class="section" id="syntax">
|
46
|
-
<h2>Syntax<a class="headerlink" href="#syntax" title="Permalink to this headline">¶</a></h2>
|
47
|
-
<p>This subcommand has the following syntax:</p>
|
48
|
-
<div class="highlight-bash"><div class="highlight"><pre><span class="nv">$ </span>knife deps <span class="o">(</span>options<span class="o">)</span>
|
49
|
-
</pre></div>
|
50
|
-
</div>
|
51
|
-
</div>
|
52
|
-
<div class="section" id="options">
|
53
|
-
<h2>Options<a class="headerlink" href="#options" title="Permalink to this headline">¶</a></h2>
|
54
|
-
<div class="admonition note">
|
55
|
-
<p class="first admonition-title">Note</p>
|
56
|
-
<p class="last">Review the list of <a class="reference internal" href="knife_common_options.html"><em>common options</em></a> available to this (and all) knife subcommands and plugins.</p>
|
57
|
-
</div>
|
58
|
-
<p>This subcommand has the following options:</p>
|
59
|
-
<dl class="docutils">
|
60
|
-
<dt><tt class="docutils literal"><span class="pre">--chef-repo-path</span> <span class="pre">PATH</span></tt></dt>
|
61
|
-
<dd>The path to the chef-repo. This setting will override the default path to the chef-repo. Default: same value as specified by <tt class="docutils literal"><span class="pre">chef_repo_path</span></tt> in client.rb.</dd>
|
62
|
-
<dt><tt class="docutils literal"><span class="pre">--concurrency</span></tt></dt>
|
63
|
-
<dd>The number of allowed concurrent connections. Default: <tt class="docutils literal"><span class="pre">10</span></tt>.</dd>
|
64
|
-
<dt><tt class="docutils literal"><span class="pre">--[no-]recurse</span></tt></dt>
|
65
|
-
<dd>Use <tt class="docutils literal"><span class="pre">--recurse</span></tt> to list dependencies recursively. This option can only be used when <tt class="docutils literal"><span class="pre">--tree</span></tt> is set to <tt class="docutils literal"><span class="pre">true</span></tt>. Default: <tt class="docutils literal"><span class="pre">--no-recurse</span></tt>.</dd>
|
66
|
-
<dt><tt class="docutils literal"><span class="pre">--remote</span></tt></dt>
|
67
|
-
<dd>Use to determine dependencies from objects located on the Chef server instead of in the local chef-repo. Default: <tt class="docutils literal"><span class="pre">false</span></tt>.</dd>
|
68
|
-
<dt><tt class="docutils literal"><span class="pre">--repo-mode</span> <span class="pre">MODE</span></tt></dt>
|
69
|
-
<dd>The layout of the local chef-repo. Possible values: <tt class="docutils literal"><span class="pre">static</span></tt>, <tt class="docutils literal"><span class="pre">everything</span></tt>, or <tt class="docutils literal"><span class="pre">hosted_everything</span></tt>. Use <tt class="docutils literal"><span class="pre">static</span></tt> for just roles, environments, cookbooks, and data bags. By default, <tt class="docutils literal"><span class="pre">everything</span></tt> and <tt class="docutils literal"><span class="pre">hosted_everything</span></tt> are dynamically selected depending on the server type. Default: <tt class="docutils literal"><span class="pre">everything</span></tt> / <tt class="docutils literal"><span class="pre">hosted_everything</span></tt>.</dd>
|
70
|
-
<dt><tt class="docutils literal"><span class="pre">--tree</span></tt></dt>
|
71
|
-
<dd>Use to show dependencies in a visual tree structure (including duplicates, if they exist). Default: <tt class="docutils literal"><span class="pre">false</span></tt>.</dd>
|
72
|
-
</dl>
|
73
|
-
</div>
|
74
|
-
<div class="section" id="examples">
|
75
|
-
<h2>Examples<a class="headerlink" href="#examples" title="Permalink to this headline">¶</a></h2>
|
76
|
-
<p>The following examples show how to use this knife subcommand:</p>
|
77
|
-
<p><strong>Find dependencies for a node</strong></p>
|
78
|
-
<div class="highlight-bash"><div class="highlight"><pre><span class="nv">$ </span>knife deps nodes/node_name.json
|
79
|
-
</pre></div>
|
80
|
-
</div>
|
81
|
-
<p><strong>Find dependencies for a role</strong></p>
|
82
|
-
<div class="highlight-bash"><div class="highlight"><pre><span class="nv">$ </span>knife deps roles/role_name.json
|
83
|
-
</pre></div>
|
84
|
-
</div>
|
85
|
-
<p><strong>Find dependencies for a cookbook</strong></p>
|
86
|
-
<div class="highlight-bash"><div class="highlight"><pre><span class="nv">$ </span>knife deps cookbooks/cookbook_name.json
|
87
|
-
</pre></div>
|
88
|
-
</div>
|
89
|
-
<p><strong>Find dependencies for an environment</strong></p>
|
90
|
-
<div class="highlight-bash"><div class="highlight"><pre><span class="nv">$ </span>knife deps environments/environment_name.json
|
91
|
-
</pre></div>
|
92
|
-
</div>
|
93
|
-
<p><strong>Find dependencies for a combination of nodes, roles, and so on</strong></p>
|
94
|
-
<p>To find the dependencies for a combination of nodes, cookbooks, roles, and/or environments:</p>
|
95
|
-
<div class="highlight-bash"><div class="highlight"><pre><span class="nv">$ </span>knife deps cookbooks/git.json cookbooks/github.json roles/base.json environments/desert.json nodes/mynode.json
|
96
|
-
</pre></div>
|
97
|
-
</div>
|
98
|
-
<p><strong>Use a wildcard</strong></p>
|
99
|
-
<p>A wildcard can be used to return all of the child nodes. For example, all of the environments:</p>
|
100
|
-
<div class="highlight-bash"><div class="highlight"><pre><span class="nv">$ </span>knife deps environments/*.json
|
101
|
-
</pre></div>
|
102
|
-
</div>
|
103
|
-
<p><strong>Return as tree</strong></p>
|
104
|
-
<p>Use the <tt class="docutils literal"><span class="pre">--tree</span></tt> option to view the results with structure:</p>
|
105
|
-
<div class="highlight-bash"><div class="highlight"><pre><span class="nv">$ </span>knife deps roles/webserver.json
|
106
|
-
</pre></div>
|
107
|
-
</div>
|
108
|
-
<p>to return something like:</p>
|
109
|
-
<div class="highlight-bash"><div class="highlight"><pre>roles/webserver.json
|
110
|
-
roles/base.json
|
111
|
-
cookbooks/github
|
112
|
-
cookbooks/git
|
113
|
-
cookbooks/users
|
114
|
-
cookbooks/apache2
|
115
|
-
</pre></div>
|
116
|
-
</div>
|
117
|
-
<p><strong>Pass knife deps output to knife upload</strong></p>
|
118
|
-
<p>The output of <strong>knife deps</strong> can be passed to <strong>knife upload</strong>:</p>
|
119
|
-
<div class="highlight-bash"><div class="highlight"><pre><span class="nv">$ </span>knife upload <span class="sb">`</span>knife deps nodes/*.json
|
120
|
-
</pre></div>
|
121
|
-
</div>
|
122
|
-
<p><strong>Pass knife deps output to knife xargs</strong></p>
|
123
|
-
<p>The output of <strong>knife deps</strong> can be passed to <strong>knife xargs</strong>:</p>
|
124
|
-
<div class="highlight-bash"><div class="highlight"><pre><span class="nv">$ </span>knife deps nodes/*.json | xargs knife upload
|
125
|
-
</pre></div>
|
126
|
-
</div>
|
127
|
-
</div>
|
128
|
-
</div>
|
129
|
-
|
130
|
-
|
131
|
-
</div>
|
132
|
-
|
133
|
-
</div>
|
134
|
-
|
135
|
-
|
136
|
-
<div class="clearer"></div>
|
137
|
-
</div>
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
</body>
|
143
|
-
</html>
|
@@ -1,123 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
-
|
4
|
-
|
5
|
-
<html xmlns="http://www.w3.org/1999/xhtml">
|
6
|
-
<head>
|
7
|
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
8
|
-
|
9
|
-
<title>knife diff — chef-client Man Pages</title>
|
10
|
-
|
11
|
-
<link rel="stylesheet" href="_static/guide.css" type="text/css" />
|
12
|
-
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
|
13
|
-
|
14
|
-
<script type="text/javascript">
|
15
|
-
var DOCUMENTATION_OPTIONS = {
|
16
|
-
URL_ROOT: './',
|
17
|
-
VERSION: '',
|
18
|
-
COLLAPSE_INDEX: false,
|
19
|
-
FILE_SUFFIX: '.html',
|
20
|
-
HAS_SOURCE: true
|
21
|
-
};
|
22
|
-
</script>
|
23
|
-
<script type="text/javascript" src="_static/jquery.js"></script>
|
24
|
-
<script type="text/javascript" src="_static/underscore.js"></script>
|
25
|
-
<script type="text/javascript" src="_static/doctools.js"></script>
|
26
|
-
|
27
|
-
|
28
|
-
</head>
|
29
|
-
<body>
|
30
|
-
<div style="background-color: #212c35; text-align: left; padding: 0px 0px 0px 0px">
|
31
|
-
<a href="http://docs.getchef.com/"><img src="_static/chef_html_logo.png" border="0" alt="Chef"/></a>
|
32
|
-
</div>
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
<div class="document">
|
38
|
-
<div class="documentwrapper">
|
39
|
-
|
40
|
-
<div class="body">
|
41
|
-
|
42
|
-
<div class="section" id="knife-diff">
|
43
|
-
<h1>knife diff<a class="headerlink" href="#knife-diff" title="Permalink to this headline">¶</a></h1>
|
44
|
-
<p>The <strong>knife diff</strong> subcommand is used to compare the differences between files and directories on the Chef server and in the chef-repo. For example, to compare files on the Chef server prior to an uploading or downloading files using the <tt class="docutils literal"><span class="pre">knife</span> <span class="pre">download</span></tt> and <tt class="docutils literal"><span class="pre">knife</span> <span class="pre">upload</span></tt> subcommands, or to ensure that certain files in multiple production environments are the same. This subcommand is similar to the <tt class="docutils literal"><span class="pre">git</span> <span class="pre">diff</span></tt> command that can be used to diff what is in the chef-repo with what is synced to a git repository.</p>
|
45
|
-
<div class="section" id="syntax">
|
46
|
-
<h2>Syntax<a class="headerlink" href="#syntax" title="Permalink to this headline">¶</a></h2>
|
47
|
-
<p>This subcommand has the following syntax:</p>
|
48
|
-
<div class="highlight-bash"><div class="highlight"><pre><span class="nv">$ </span>knife diff <span class="o">[</span>PATTERN...<span class="o">]</span> <span class="o">(</span>options<span class="o">)</span>
|
49
|
-
</pre></div>
|
50
|
-
</div>
|
51
|
-
</div>
|
52
|
-
<div class="section" id="options">
|
53
|
-
<h2>Options<a class="headerlink" href="#options" title="Permalink to this headline">¶</a></h2>
|
54
|
-
<div class="admonition note">
|
55
|
-
<p class="first admonition-title">Note</p>
|
56
|
-
<p class="last">Review the list of <a class="reference internal" href="knife_common_options.html"><em>common options</em></a> available to this (and all) knife subcommands and plugins.</p>
|
57
|
-
</div>
|
58
|
-
<p>This subcommand has the following options:</p>
|
59
|
-
<dl class="docutils">
|
60
|
-
<dt><tt class="docutils literal"><span class="pre">--chef-repo-path</span> <span class="pre">PATH</span></tt></dt>
|
61
|
-
<dd>The path to the chef-repo. This setting will override the default path to the chef-repo. Default: same value as specified by <tt class="docutils literal"><span class="pre">chef_repo_path</span></tt> in client.rb.</dd>
|
62
|
-
<dt><tt class="docutils literal"><span class="pre">--cookbook-version</span> <span class="pre">VERSION</span></tt></dt>
|
63
|
-
<dd>The version of a cookbook to download.</dd>
|
64
|
-
<dt><tt class="docutils literal"><span class="pre">--concurrency</span></tt></dt>
|
65
|
-
<dd>The number of allowed concurrent connections. Default: <tt class="docutils literal"><span class="pre">10</span></tt>.</dd>
|
66
|
-
<dt><tt class="docutils literal"><span class="pre">--diff-filter=[(A|D|M|T)...[*]]</span></tt></dt>
|
67
|
-
<dd>Use to select only files that have been added (<tt class="docutils literal"><span class="pre">A</span></tt>), deleted (<tt class="docutils literal"><span class="pre">D</span></tt>), modified (<tt class="docutils literal"><span class="pre">M</span></tt>), and/or have had their type changed (<tt class="docutils literal"><span class="pre">T</span></tt>). Any combination of filter characters may be used, including no filter characters. Use <tt class="docutils literal"><span class="pre">*</span></tt> to select all paths if a file matches other criteria in the comparison. Default value: <tt class="docutils literal"><span class="pre">nil</span></tt>.</dd>
|
68
|
-
<dt><tt class="docutils literal"><span class="pre">--name-only</span></tt></dt>
|
69
|
-
<dd>Use to show only the names of modified files.</dd>
|
70
|
-
<dt><tt class="docutils literal"><span class="pre">--name-status</span></tt></dt>
|
71
|
-
<dd>Use to show only the names of files with a status of <tt class="docutils literal"><span class="pre">Added</span></tt>, <tt class="docutils literal"><span class="pre">Deleted</span></tt>, <tt class="docutils literal"><span class="pre">Modified</span></tt>, or <tt class="docutils literal"><span class="pre">Type</span> <span class="pre">Changed</span></tt>.</dd>
|
72
|
-
<dt><tt class="docutils literal"><span class="pre">--no-recurse</span></tt></dt>
|
73
|
-
<dd>Use <tt class="docutils literal"><span class="pre">--no-recurse</span></tt> to disable listing a directory recursively. Default: <tt class="docutils literal"><span class="pre">--recurse</span></tt>.</dd>
|
74
|
-
<dt><tt class="docutils literal"><span class="pre">--repo-mode</span> <span class="pre">MODE</span></tt></dt>
|
75
|
-
<dd>The layout of the local chef-repo. Possible values: <tt class="docutils literal"><span class="pre">static</span></tt>, <tt class="docutils literal"><span class="pre">everything</span></tt>, or <tt class="docutils literal"><span class="pre">hosted_everything</span></tt>. Use <tt class="docutils literal"><span class="pre">static</span></tt> for just roles, environments, cookbooks, and data bags. By default, <tt class="docutils literal"><span class="pre">everything</span></tt> and <tt class="docutils literal"><span class="pre">hosted_everything</span></tt> are dynamically selected depending on the server type. Default: <tt class="docutils literal"><span class="pre">everything</span></tt> / <tt class="docutils literal"><span class="pre">hosted_everything</span></tt>.</dd>
|
76
|
-
</dl>
|
77
|
-
</div>
|
78
|
-
<div class="section" id="examples">
|
79
|
-
<h2>Examples<a class="headerlink" href="#examples" title="Permalink to this headline">¶</a></h2>
|
80
|
-
<p>The following examples show how to use this knife subcommand:</p>
|
81
|
-
<p><strong>Compare files that contain JSON data</strong></p>
|
82
|
-
<p>To compare the <tt class="docutils literal"><span class="pre">base.json</span></tt> role to a <tt class="docutils literal"><span class="pre">webserver.json</span></tt> role, enter:</p>
|
83
|
-
<div class="highlight-bash"><div class="highlight"><pre><span class="nv">$ </span>knife diff roles/base.json roles/webserver.json
|
84
|
-
</pre></div>
|
85
|
-
</div>
|
86
|
-
<p><strong>Compare the chef-repo and the server</strong></p>
|
87
|
-
<p>To compare the differences between the local chef-repo and the files that are on the Chef server, enter:</p>
|
88
|
-
<div class="highlight-bash"><div class="highlight"><pre><span class="nv">$ </span>knife diff
|
89
|
-
</pre></div>
|
90
|
-
</div>
|
91
|
-
<p><strong>Compare, then return results</strong></p>
|
92
|
-
<p>To diff a node named <tt class="docutils literal"><span class="pre">node-lb</span></tt> and then only return files that have been added, deleted, modified, or changed, enter:</p>
|
93
|
-
<div class="highlight-bash"><div class="highlight"><pre><span class="nv">$ </span>knife diff --name-status node-lb
|
94
|
-
</pre></div>
|
95
|
-
</div>
|
96
|
-
<p>to return something like:</p>
|
97
|
-
<div class="highlight-bash"><div class="highlight"><pre>node-lb/recipes/eip.rb
|
98
|
-
node-lb/recipes/heartbeat-int.rb
|
99
|
-
node-lb/templates/default/corpsite.conf.erb
|
100
|
-
node-lb/files/default/wildcard.node.com.crt
|
101
|
-
node-lb/files/default/wildcard.node.com.crt-2009
|
102
|
-
node-lb/files/default/wildcard.node.com.key
|
103
|
-
node-lb/.gitignore
|
104
|
-
node-lb/Rakefile
|
105
|
-
</pre></div>
|
106
|
-
</div>
|
107
|
-
</div>
|
108
|
-
</div>
|
109
|
-
|
110
|
-
|
111
|
-
</div>
|
112
|
-
|
113
|
-
</div>
|
114
|
-
|
115
|
-
|
116
|
-
<div class="clearer"></div>
|
117
|
-
</div>
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
</body>
|
123
|
-
</html>
|
@@ -1,145 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
-
|
4
|
-
|
5
|
-
<html xmlns="http://www.w3.org/1999/xhtml">
|
6
|
-
<head>
|
7
|
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
8
|
-
|
9
|
-
<title>knife download — chef-client Man Pages</title>
|
10
|
-
|
11
|
-
<link rel="stylesheet" href="_static/guide.css" type="text/css" />
|
12
|
-
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
|
13
|
-
|
14
|
-
<script type="text/javascript">
|
15
|
-
var DOCUMENTATION_OPTIONS = {
|
16
|
-
URL_ROOT: './',
|
17
|
-
VERSION: '',
|
18
|
-
COLLAPSE_INDEX: false,
|
19
|
-
FILE_SUFFIX: '.html',
|
20
|
-
HAS_SOURCE: true
|
21
|
-
};
|
22
|
-
</script>
|
23
|
-
<script type="text/javascript" src="_static/jquery.js"></script>
|
24
|
-
<script type="text/javascript" src="_static/underscore.js"></script>
|
25
|
-
<script type="text/javascript" src="_static/doctools.js"></script>
|
26
|
-
|
27
|
-
|
28
|
-
</head>
|
29
|
-
<body>
|
30
|
-
<div style="background-color: #212c35; text-align: left; padding: 0px 0px 0px 0px">
|
31
|
-
<a href="http://docs.getchef.com/"><img src="_static/chef_html_logo.png" border="0" alt="Chef"/></a>
|
32
|
-
</div>
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
<div class="document">
|
38
|
-
<div class="documentwrapper">
|
39
|
-
|
40
|
-
<div class="body">
|
41
|
-
|
42
|
-
<div class="section" id="knife-download">
|
43
|
-
<h1>knife download<a class="headerlink" href="#knife-download" title="Permalink to this headline">¶</a></h1>
|
44
|
-
<p>The <strong>knife download</strong> subcommand is used to download roles, cookbooks, environments, nodes, and data bags from the Chef server to the current working directory. It can be used to back up data on the Chef server, inspect the state of one or more files, or to extract out-of-process changes users may have made to files on the Chef server, such as if a user made a change that bypassed version source control. This subcommand is often used in conjunction with <tt class="docutils literal"><span class="pre">knife</span> <span class="pre">diff</span></tt>, which can be used to see exactly what changes will be downloaded, and then <tt class="docutils literal"><span class="pre">knife</span> <span class="pre">upload</span></tt>, which does the opposite of <tt class="docutils literal"><span class="pre">knife</span> <span class="pre">download</span></tt>.</p>
|
45
|
-
<div class="section" id="syntax">
|
46
|
-
<h2>Syntax<a class="headerlink" href="#syntax" title="Permalink to this headline">¶</a></h2>
|
47
|
-
<p>This subcommand has the following syntax:</p>
|
48
|
-
<div class="highlight-bash"><div class="highlight"><pre><span class="nv">$ </span>knife download <span class="o">[</span>PATTERN...<span class="o">]</span> <span class="o">(</span>options<span class="o">)</span>
|
49
|
-
</pre></div>
|
50
|
-
</div>
|
51
|
-
</div>
|
52
|
-
<div class="section" id="options">
|
53
|
-
<h2>Options<a class="headerlink" href="#options" title="Permalink to this headline">¶</a></h2>
|
54
|
-
<div class="admonition note">
|
55
|
-
<p class="first admonition-title">Note</p>
|
56
|
-
<p class="last">Review the list of <a class="reference internal" href="knife_common_options.html"><em>common options</em></a> available to this (and all) knife subcommands and plugins.</p>
|
57
|
-
</div>
|
58
|
-
<p>This subcommand has the following options:</p>
|
59
|
-
<dl class="docutils">
|
60
|
-
<dt><tt class="docutils literal"><span class="pre">--chef-repo-path</span> <span class="pre">PATH</span></tt></dt>
|
61
|
-
<dd>The path to the chef-repo. This setting will override the default path to the chef-repo. Default: same value as specified by <tt class="docutils literal"><span class="pre">chef_repo_path</span></tt> in client.rb.</dd>
|
62
|
-
<dt><tt class="docutils literal"><span class="pre">--concurrency</span></tt></dt>
|
63
|
-
<dd>The number of allowed concurrent connections. Default: <tt class="docutils literal"><span class="pre">10</span></tt>.</dd>
|
64
|
-
<dt><tt class="docutils literal"><span class="pre">--cookbook-version</span> <span class="pre">VERSION</span></tt></dt>
|
65
|
-
<dd>The version of a cookbook to download.</dd>
|
66
|
-
<dt><tt class="docutils literal"><span class="pre">-n</span></tt>, <tt class="docutils literal"><span class="pre">--dry-run</span></tt></dt>
|
67
|
-
<dd>Use to take no action and only print out results. Default: <tt class="docutils literal"><span class="pre">false</span></tt>.</dd>
|
68
|
-
<dt><tt class="docutils literal"><span class="pre">--[no-]diff</span></tt></dt>
|
69
|
-
<dd>Use to download only new and modified files. Set to <tt class="docutils literal"><span class="pre">false</span></tt> to download all files. Default: <tt class="docutils literal"><span class="pre">--diff</span></tt>.</dd>
|
70
|
-
<dt><tt class="docutils literal"><span class="pre">--[no-]force</span></tt></dt>
|
71
|
-
<dd>Use <tt class="docutils literal"><span class="pre">--force</span></tt> 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: <tt class="docutils literal"><span class="pre">--no-force</span></tt>.</dd>
|
72
|
-
<dt><tt class="docutils literal"><span class="pre">--[no-]purge</span></tt></dt>
|
73
|
-
<dd>Use <tt class="docutils literal"><span class="pre">--purge</span></tt> to delete local files and directories that do not exist on the Chef server. By default, if a role, cookbook, etc. does not exist on the Chef server, the local file for said role will be left alone and NOT deleted. Default: <tt class="docutils literal"><span class="pre">--no-purge</span></tt>.</dd>
|
74
|
-
<dt><tt class="docutils literal"><span class="pre">--[no-]recurse</span></tt></dt>
|
75
|
-
<dd>Use <tt class="docutils literal"><span class="pre">--no-recurse</span></tt> to disable downloading a directory recursively. Default: <tt class="docutils literal"><span class="pre">--recurse</span></tt>.</dd>
|
76
|
-
<dt><tt class="docutils literal"><span class="pre">--repo-mode</span> <span class="pre">MODE</span></tt></dt>
|
77
|
-
<dd>The layout of the local chef-repo. Possible values: <tt class="docutils literal"><span class="pre">static</span></tt>, <tt class="docutils literal"><span class="pre">everything</span></tt>, or <tt class="docutils literal"><span class="pre">hosted_everything</span></tt>. Use <tt class="docutils literal"><span class="pre">static</span></tt> for just roles, environments, cookbooks, and data bags. By default, <tt class="docutils literal"><span class="pre">everything</span></tt> and <tt class="docutils literal"><span class="pre">hosted_everything</span></tt> are dynamically selected depending on the server type. Default: <tt class="docutils literal"><span class="pre">everything</span></tt> / <tt class="docutils literal"><span class="pre">hosted_everything</span></tt>.</dd>
|
78
|
-
</dl>
|
79
|
-
</div>
|
80
|
-
<div class="section" id="examples">
|
81
|
-
<h2>Examples<a class="headerlink" href="#examples" title="Permalink to this headline">¶</a></h2>
|
82
|
-
<p>The following examples show how to use this knife subcommand:</p>
|
83
|
-
<p><strong>Download the entire chef-repo</strong></p>
|
84
|
-
<p>To download the entire chef-repo from the Chef server, browse to the top level of the chef-repo and enter:</p>
|
85
|
-
<div class="highlight-bash"><div class="highlight"><pre><span class="nv">$ </span>knife download /
|
86
|
-
</pre></div>
|
87
|
-
</div>
|
88
|
-
<p><strong>Download the /cookbooks directory</strong></p>
|
89
|
-
<p>To download the <tt class="docutils literal"><span class="pre">cookbooks/</span></tt> directory from the Chef server, browse to the top level of the chef-repo and enter:</p>
|
90
|
-
<div class="highlight-bash"><div class="highlight"><pre><span class="nv">$ </span>knife download cookbooks
|
91
|
-
</pre></div>
|
92
|
-
</div>
|
93
|
-
<p>or from anywhere in the chef-repo, enter:</p>
|
94
|
-
<div class="highlight-bash"><div class="highlight"><pre><span class="nv">$ </span>knife download /cookbooks
|
95
|
-
</pre></div>
|
96
|
-
</div>
|
97
|
-
<p><strong>Download the /environments directory</strong></p>
|
98
|
-
<p>To download the <tt class="docutils literal"><span class="pre">environments/</span></tt> directory from the Chef server, browse to the top level of the chef-repo and enter:</p>
|
99
|
-
<div class="highlight-bash"><div class="highlight"><pre><span class="nv">$ </span>knife download environments
|
100
|
-
</pre></div>
|
101
|
-
</div>
|
102
|
-
<p>or from anywhere in the chef-repo, enter:</p>
|
103
|
-
<div class="highlight-bash"><div class="highlight"><pre><span class="nv">$ </span>knife download /environments
|
104
|
-
</pre></div>
|
105
|
-
</div>
|
106
|
-
<p><strong>Download an environment</strong></p>
|
107
|
-
<p>To download an environment named “production” from the Chef server, browse to the top level of the chef-repo and enter:</p>
|
108
|
-
<div class="highlight-bash"><div class="highlight"><pre><span class="nv">$ </span>knife download environments/production.json
|
109
|
-
</pre></div>
|
110
|
-
</div>
|
111
|
-
<p>or from the <tt class="docutils literal"><span class="pre">environments/</span></tt> directory, enter:</p>
|
112
|
-
<div class="highlight-bash"><div class="highlight"><pre><span class="nv">$ </span>knife download production.json
|
113
|
-
</pre></div>
|
114
|
-
</div>
|
115
|
-
<p><strong>Download the /roles directory</strong></p>
|
116
|
-
<p>To download the <tt class="docutils literal"><span class="pre">roles/</span></tt> directory from the Chef server, browse to the top level of the chef-repo and enter:</p>
|
117
|
-
<div class="highlight-bash"><div class="highlight"><pre><span class="nv">$ </span>knife download roles
|
118
|
-
</pre></div>
|
119
|
-
</div>
|
120
|
-
<p>or from anywhere in the chef-repo, enter:</p>
|
121
|
-
<div class="highlight-bash"><div class="highlight"><pre><span class="nv">$ </span>knife download /roles
|
122
|
-
</pre></div>
|
123
|
-
</div>
|
124
|
-
<p><strong>Download cookbooks and roles</strong></p>
|
125
|
-
<p>To download all cookbooks that start with “apache” and belong to the “webserver” role, browse to the top level of the chef-repo and enter:</p>
|
126
|
-
<div class="highlight-bash"><div class="highlight"><pre><span class="nv">$ </span> knife download cookbooks/apache<span class="se">\*</span> roles/webserver.json
|
127
|
-
</pre></div>
|
128
|
-
</div>
|
129
|
-
</div>
|
130
|
-
</div>
|
131
|
-
|
132
|
-
|
133
|
-
</div>
|
134
|
-
|
135
|
-
</div>
|
136
|
-
|
137
|
-
|
138
|
-
<div class="clearer"></div>
|
139
|
-
</div>
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
</body>
|
145
|
-
</html>
|