diff options
Diffstat (limited to 'distro/common/html/knife_deps.html')
-rw-r--r-- | distro/common/html/knife_deps.html | 143 |
1 files changed, 0 insertions, 143 deletions
diff --git a/distro/common/html/knife_deps.html b/distro/common/html/knife_deps.html deleted file mode 100644 index 29bc2d6583..0000000000 --- a/distro/common/html/knife_deps.html +++ /dev/null @@ -1,143 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - - -<html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> - - <title>knife deps — chef-client Man Pages</title> - - <link rel="stylesheet" href="_static/guide.css" type="text/css" /> - <link rel="stylesheet" href="_static/pygments.css" type="text/css" /> - - <script type="text/javascript"> - var DOCUMENTATION_OPTIONS = { - URL_ROOT: './', - VERSION: '', - COLLAPSE_INDEX: false, - FILE_SUFFIX: '.html', - HAS_SOURCE: true - }; - </script> - <script type="text/javascript" src="_static/jquery.js"></script> - <script type="text/javascript" src="_static/underscore.js"></script> - <script type="text/javascript" src="_static/doctools.js"></script> - - - </head> - <body> -<div style="background-color: #212c35; text-align: left; padding: 0px 0px 0px 0px"> -<a href="http://docs.getchef.com/"><img src="_static/chef_html_logo.png" border="0" alt="Chef"/></a> -</div> - - - - - <div class="document"> - <div class="documentwrapper"> - - <div class="body"> - - <div class="section" id="knife-deps"> -<h1>knife deps<a class="headerlink" href="#knife-deps" title="Permalink to this headline">¶</a></h1> -<p>The <strong>knife deps</strong> subcommand is used to identify dependencies for a node, role, or cookbook.</p> -<div class="section" id="syntax"> -<h2>Syntax<a class="headerlink" href="#syntax" title="Permalink to this headline">¶</a></h2> -<p>This subcommand has the following syntax:</p> -<div class="highlight-bash"><div class="highlight"><pre><span class="nv">$ </span>knife deps <span class="o">(</span>options<span class="o">)</span> -</pre></div> -</div> -</div> -<div class="section" id="options"> -<h2>Options<a class="headerlink" href="#options" title="Permalink to this headline">¶</a></h2> -<div class="admonition note"> -<p class="first admonition-title">Note</p> -<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> -</div> -<p>This subcommand has the following options:</p> -<dl class="docutils"> -<dt><tt class="docutils literal"><span class="pre">--chef-repo-path</span> <span class="pre">PATH</span></tt></dt> -<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> -<dt><tt class="docutils literal"><span class="pre">--concurrency</span></tt></dt> -<dd>The number of allowed concurrent connections. Default: <tt class="docutils literal"><span class="pre">10</span></tt>.</dd> -<dt><tt class="docutils literal"><span class="pre">--[no-]recurse</span></tt></dt> -<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> -<dt><tt class="docutils literal"><span class="pre">--remote</span></tt></dt> -<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> -<dt><tt class="docutils literal"><span class="pre">--repo-mode</span> <span class="pre">MODE</span></tt></dt> -<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> -<dt><tt class="docutils literal"><span class="pre">--tree</span></tt></dt> -<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> -</dl> -</div> -<div class="section" id="examples"> -<h2>Examples<a class="headerlink" href="#examples" title="Permalink to this headline">¶</a></h2> -<p>The following examples show how to use this knife subcommand:</p> -<p><strong>Find dependencies for a node</strong></p> -<div class="highlight-bash"><div class="highlight"><pre><span class="nv">$ </span>knife deps nodes/node_name.json -</pre></div> -</div> -<p><strong>Find dependencies for a role</strong></p> -<div class="highlight-bash"><div class="highlight"><pre><span class="nv">$ </span>knife deps roles/role_name.json -</pre></div> -</div> -<p><strong>Find dependencies for a cookbook</strong></p> -<div class="highlight-bash"><div class="highlight"><pre><span class="nv">$ </span>knife deps cookbooks/cookbook_name.json -</pre></div> -</div> -<p><strong>Find dependencies for an environment</strong></p> -<div class="highlight-bash"><div class="highlight"><pre><span class="nv">$ </span>knife deps environments/environment_name.json -</pre></div> -</div> -<p><strong>Find dependencies for a combination of nodes, roles, and so on</strong></p> -<p>To find the dependencies for a combination of nodes, cookbooks, roles, and/or environments:</p> -<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 -</pre></div> -</div> -<p><strong>Use a wildcard</strong></p> -<p>A wildcard can be used to return all of the child nodes. For example, all of the environments:</p> -<div class="highlight-bash"><div class="highlight"><pre><span class="nv">$ </span>knife deps environments/*.json -</pre></div> -</div> -<p><strong>Return as tree</strong></p> -<p>Use the <tt class="docutils literal"><span class="pre">--tree</span></tt> option to view the results with structure:</p> -<div class="highlight-bash"><div class="highlight"><pre><span class="nv">$ </span>knife deps roles/webserver.json -</pre></div> -</div> -<p>to return something like:</p> -<div class="highlight-bash"><div class="highlight"><pre>roles/webserver.json - roles/base.json - cookbooks/github - cookbooks/git - cookbooks/users - cookbooks/apache2 -</pre></div> -</div> -<p><strong>Pass knife deps output to knife upload</strong></p> -<p>The output of <strong>knife deps</strong> can be passed to <strong>knife upload</strong>:</p> -<div class="highlight-bash"><div class="highlight"><pre><span class="nv">$ </span>knife upload <span class="sb">`</span>knife deps nodes/*.json -</pre></div> -</div> -<p><strong>Pass knife deps output to knife xargs</strong></p> -<p>The output of <strong>knife deps</strong> can be passed to <strong>knife xargs</strong>:</p> -<div class="highlight-bash"><div class="highlight"><pre><span class="nv">$ </span>knife deps nodes/*.json | xargs knife upload -</pre></div> -</div> -</div> -</div> - - - </div> - - </div> - - - <div class="clearer"></div> - </div> - - - - - </body> -</html>
\ No newline at end of file |