diff options
Diffstat (limited to 'distro/common/html/knife_node.html')
-rw-r--r-- | distro/common/html/knife_node.html | 263 |
1 files changed, 29 insertions, 234 deletions
diff --git a/distro/common/html/knife_node.html b/distro/common/html/knife_node.html index 68432cb509..9e90175075 100644 --- a/distro/common/html/knife_node.html +++ b/distro/common/html/knife_node.html @@ -1,5 +1,4 @@ - <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> @@ -8,9 +7,9 @@ <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> - <title>knife node — Knife Man Pages</title> + <title>knife node — chef-client Man Pages</title> - <link rel="stylesheet" href="_static/chef.css" type="text/css" /> + <link rel="stylesheet" href="_static/guide.css" type="text/css" /> <link rel="stylesheet" href="_static/pygments.css" type="text/css" /> <script type="text/javascript"> @@ -26,110 +25,20 @@ <script type="text/javascript" src="_static/underscore.js"></script> <script type="text/javascript" src="_static/doctools.js"></script> <link rel="shortcut icon" href="_static/chef.ico"/> - <link rel="top" title="Knife Man Pages" href="index.html" /> + + </head> <body> <div style="background-color: #212c35; text-align: left; padding: 0px 0px 0px 0px"> <a href="http://docs.opscode.com/"><img src="_static/chef_html_logo.png" border="0" alt="Chef"/></a> </div> - <div class="related"> - <h3>Navigation</h3> - <ul> - <li><a href="http://docs.opscode.com/chef/knife.html" target="_products">Knife</a>•</li> - <li><a href="http://docs.opscode.com/chef/resources.html" target="_products">Resources</a>•</li> - <li><a href="http://docs.opscode.com/chef/dsl_recipe.html" target="_products">Recipe DSL</a>•</li> - <li><a href="http://docs.opscode.com/chef/lwrps_custom.html" target="_products">LWRPs</a>•</li> - <li><a href="http://docs.opscode.com/search.html">Search the Docs</a>•</li> - <li><a href="http://docs.opscode.com/">Home</a> »</li> - - </ul> - </div> - - <div class="sphinxsidebar"> - <div class="sphinxsidebarwrapper"> - <p class="logo"><a href="knife.html"> - <img class="logo" src="_static/chef_logo.png" alt="Logo"/> - </a></p> - <h3><a href="knife.html">Table Of Contents</a></h3> - <ul> -<li><a class="reference internal" href="#">knife node</a><ul> -<li><a class="reference internal" href="#bulk-delete">bulk delete</a><ul> -<li><a class="reference internal" href="#syntax">Syntax</a></li> -<li><a class="reference internal" href="#options">Options</a></li> -<li><a class="reference internal" href="#examples">Examples</a></li> -</ul> -</li> -<li><a class="reference internal" href="#create">create</a><ul> -<li><a class="reference internal" href="#id1">Syntax</a></li> -<li><a class="reference internal" href="#id2">Options</a></li> -<li><a class="reference internal" href="#id3">Examples</a></li> -</ul> -</li> -<li><a class="reference internal" href="#delete">delete</a><ul> -<li><a class="reference internal" href="#id4">Syntax</a></li> -<li><a class="reference internal" href="#id5">Options</a></li> -<li><a class="reference internal" href="#id6">Examples</a></li> -</ul> -</li> -<li><a class="reference internal" href="#edit">edit</a><ul> -<li><a class="reference internal" href="#id7">Syntax</a></li> -<li><a class="reference internal" href="#id8">Options</a></li> -<li><a class="reference internal" href="#id9">Examples</a></li> -</ul> -</li> -<li><a class="reference internal" href="#from-file">from file</a><ul> -<li><a class="reference internal" href="#id10">Syntax</a></li> -<li><a class="reference internal" href="#id11">Options</a><ul> -<li><a class="reference internal" href="#knife-rb-settings">knife.rb Settings</a></li> -</ul> -</li> -<li><a class="reference internal" href="#id12">Examples</a></li> -</ul> -</li> -<li><a class="reference internal" href="#list">list</a><ul> -<li><a class="reference internal" href="#id13">Syntax</a></li> -<li><a class="reference internal" href="#id14">Options</a><ul> -<li><a class="reference internal" href="#id15">knife.rb Settings</a></li> -</ul> -</li> -<li><a class="reference internal" href="#id16">Examples</a></li> -</ul> -</li> -<li><a class="reference internal" href="#run-list-add">run_list add</a><ul> -<li><a class="reference internal" href="#id17">Syntax</a></li> -<li><a class="reference internal" href="#id18">Options</a><ul> -<li><a class="reference internal" href="#id19">knife.rb Settings</a></li> -</ul> -</li> -<li><a class="reference internal" href="#id20">Examples</a></li> -</ul> -</li> -<li><a class="reference internal" href="#run-list-remove">run_list remove</a><ul> -<li><a class="reference internal" href="#id21">Syntax</a></li> -<li><a class="reference internal" href="#id22">Options</a><ul> -<li><a class="reference internal" href="#id23">knife.rb Settings</a></li> -</ul> -</li> -<li><a class="reference internal" href="#id24">Examples</a></li> -</ul> -</li> -<li><a class="reference internal" href="#show">show</a><ul> -<li><a class="reference internal" href="#id25">Syntax</a></li> -<li><a class="reference internal" href="#id26">Options</a></li> -<li><a class="reference internal" href="#id27">Examples</a></li> -</ul> -</li> -</ul> -</li> -</ul> - </div> - </div> + <div class="document"> <div class="documentwrapper"> - <div class="bodywrapper"> + <div class="body"> <div class="section" id="knife-node"> @@ -299,18 +208,6 @@ <div class="section" id="id11"> <h3>Options<a class="headerlink" href="#id11" title="Permalink to this headline">¶</a></h3> <p>This command does not have any specific options.</p> -<div class="section" id="knife-rb-settings"> -<h4>knife.rb Settings<a class="headerlink" href="#knife-rb-settings" title="Permalink to this headline">¶</a></h4> -<div class="admonition note"> -<p class="first admonition-title">Note</p> -<p class="last">See <tt class="xref doc docutils literal"><span class="pre">knife.rb</span></tt> for more information about how to add optional settings to the knife.rb file.</p> -</div> -<p>The following <tt class="docutils literal"><span class="pre">knife</span> <span class="pre">node</span> <span class="pre">from</span> <span class="pre">file</span></tt> settings can be added to the knife.rb file:</p> -<dl class="docutils"> -<dt><tt class="docutils literal"><span class="pre">knife[:print_after]</span></tt></dt> -<dd>Use to add the <tt class="docutils literal"><span class="pre">--print-after</span></tt> option.</dd> -</dl> -</div> </div> <div class="section" id="id12"> <h3>Examples<a class="headerlink" href="#id12" title="Permalink to this headline">¶</a></h3> @@ -339,21 +236,9 @@ <dt><tt class="docutils literal"><span class="pre">-w</span></tt>, <tt class="docutils literal"><span class="pre">--with-uri</span></tt></dt> <dd>Indicates that the corresponding URIs will be shown.</dd> </dl> -<div class="section" id="id15"> -<h4>knife.rb Settings<a class="headerlink" href="#id15" title="Permalink to this headline">¶</a></h4> -<div class="admonition note"> -<p class="first admonition-title">Note</p> -<p class="last">See <tt class="xref doc docutils literal"><span class="pre">knife.rb</span></tt> for more information about how to add optional settings to the knife.rb file.</p> -</div> -<p>The following <tt class="docutils literal"><span class="pre">knife</span> <span class="pre">node</span> <span class="pre">list</span></tt> settings can be added to the knife.rb file:</p> -<dl class="docutils"> -<dt><tt class="docutils literal"><span class="pre">knife[:environment]</span></tt></dt> -<dd>Use to add the <tt class="docutils literal"><span class="pre">--environment</span></tt> option.</dd> -</dl> -</div> </div> -<div class="section" id="id16"> -<h3>Examples<a class="headerlink" href="#id16" title="Permalink to this headline">¶</a></h3> +<div class="section" id="id15"> +<h3>Examples<a class="headerlink" href="#id15" title="Permalink to this headline">¶</a></h3> <p>The following examples show how to use this Knife subcommand:</p> <p><strong>View a list of nodes</strong></p> <p>To verify the list of nodes that are registered with the server, enter:</p> @@ -383,37 +268,23 @@ rs-123456 <div class="highlight-ruby"><div class="highlight"><pre><span class="s1">'recipe[COOKBOOK::RECIPE_NAME],COOKBOOK::RECIPE_NAME,role[ROLE_NAME]'</span> </pre></div> </div> -<div class="section" id="id17"> -<h3>Syntax<a class="headerlink" href="#id17" title="Permalink to this headline">¶</a></h3> +<div class="section" id="id16"> +<h3>Syntax<a class="headerlink" href="#id16" title="Permalink to this headline">¶</a></h3> <p>This argument has the following syntax:</p> <div class="highlight-bash"><div class="highlight"><pre><span class="nv">$ </span>knife node run_list add NODE_NAME RUN_LIST_ITEM <span class="o">(</span>options<span class="o">)</span> </pre></div> </div> </div> -<div class="section" id="id18"> -<h3>Options<a class="headerlink" href="#id18" title="Permalink to this headline">¶</a></h3> +<div class="section" id="id17"> +<h3>Options<a class="headerlink" href="#id17" title="Permalink to this headline">¶</a></h3> <p>This argument has the following options:</p> <dl class="docutils"> <dt><tt class="docutils literal"><span class="pre">-a</span> <span class="pre">ITEM</span></tt>, <tt class="docutils literal"><span class="pre">--after</span> <span class="pre">ITEM</span></tt></dt> <dd>Use this to add the run list item after the specified run list item.</dd> </dl> -<div class="section" id="id19"> -<h4>knife.rb Settings<a class="headerlink" href="#id19" title="Permalink to this headline">¶</a></h4> -<div class="admonition note"> -<p class="first admonition-title">Note</p> -<p class="last">See <tt class="xref doc docutils literal"><span class="pre">knife.rb</span></tt> for more information about how to add optional settings to the knife.rb file.</p> -</div> -<p>The following <tt class="docutils literal"><span class="pre">knife</span> <span class="pre">node</span> <span class="pre">run</span> <span class="pre">list</span> <span class="pre">add</span></tt> settings can be added to the knife.rb file:</p> -<dl class="docutils"> -<dt><tt class="docutils literal"><span class="pre">knife[:after]</span></tt></dt> -<dd>Use to add the <tt class="docutils literal"><span class="pre">--after</span></tt> option.</dd> -<dt><tt class="docutils literal"><span class="pre">knife[:run_list]</span></tt></dt> -<dd>Use for the run-list that is passed as part of a the command itself.</dd> -</dl> </div> -</div> -<div class="section" id="id20"> -<h3>Examples<a class="headerlink" href="#id20" title="Permalink to this headline">¶</a></h3> +<div class="section" id="id18"> +<h3>Examples<a class="headerlink" href="#id18" title="Permalink to this headline">¶</a></h3> <p>The following examples show how to use this Knife subcommand:</p> <p><strong>Add a role</strong></p> <p>To add a role to a run list, enter:</p> @@ -445,31 +316,19 @@ rs-123456 <div class="section" id="run-list-remove"> <h2>run_list remove<a class="headerlink" href="#run-list-remove" title="Permalink to this headline">¶</a></h2> <p>The <tt class="docutils literal"><span class="pre">run_list</span> <span class="pre">remove</span></tt> argument is used to remove run list items (roles or recipes) from a node. A recipe must be in one of the following formats: fully qualified, cookbook, or default. Both roles and recipes must be in quotes, for example: <tt class="docutils literal"><span class="pre">'role[ROLE_NAME]'</span></tt> or <tt class="docutils literal"><span class="pre">'recipe[COOKBOOK::RECIPE_NAME]'</span></tt>. Use a comma to separate roles and recipes when removing more than one, like this: <tt class="docutils literal"><span class="pre">'recipe[COOKBOOK::RECIPE_NAME],COOKBOOK::RECIPE_NAME,role[ROLE_NAME]'</span></tt>.</p> -<div class="section" id="id21"> -<h3>Syntax<a class="headerlink" href="#id21" title="Permalink to this headline">¶</a></h3> +<div class="section" id="id19"> +<h3>Syntax<a class="headerlink" href="#id19" title="Permalink to this headline">¶</a></h3> <p>This argument has the following syntax:</p> <div class="highlight-bash"><div class="highlight"><pre><span class="nv">$ </span>knife node run_list remove NODE_NAME RUN_LIST_ITEM </pre></div> </div> </div> -<div class="section" id="id22"> -<h3>Options<a class="headerlink" href="#id22" title="Permalink to this headline">¶</a></h3> +<div class="section" id="id20"> +<h3>Options<a class="headerlink" href="#id20" title="Permalink to this headline">¶</a></h3> <p>This command does not have any specific options.</p> -<div class="section" id="id23"> -<h4>knife.rb Settings<a class="headerlink" href="#id23" title="Permalink to this headline">¶</a></h4> -<div class="admonition note"> -<p class="first admonition-title">Note</p> -<p class="last">See <tt class="xref doc docutils literal"><span class="pre">knife.rb</span></tt> for more information about how to add optional settings to the knife.rb file.</p> -</div> -<p>The following <tt class="docutils literal"><span class="pre">knife</span> <span class="pre">node</span> <span class="pre">run</span> <span class="pre">list</span> <span class="pre">remove</span></tt> settings can be added to the knife.rb file:</p> -<dl class="docutils"> -<dt><tt class="docutils literal"><span class="pre">knife[:run_list]</span></tt></dt> -<dd>Use for the run-list that is passed as part of a the command itself.</dd> -</dl> -</div> </div> -<div class="section" id="id24"> -<h3>Examples<a class="headerlink" href="#id24" title="Permalink to this headline">¶</a></h3> +<div class="section" id="id21"> +<h3>Examples<a class="headerlink" href="#id21" title="Permalink to this headline">¶</a></h3> <p>The following examples show how to use this Knife subcommand:</p> <p><strong>Remove a role</strong></p> <p>To remove a role from a run list, enter:</p> @@ -486,15 +345,15 @@ rs-123456 <div class="section" id="show"> <h2>show<a class="headerlink" href="#show" title="Permalink to this headline">¶</a></h2> <p>The <tt class="docutils literal"><span class="pre">show</span></tt> argument is used to display information about a node.</p> -<div class="section" id="id25"> -<h3>Syntax<a class="headerlink" href="#id25" title="Permalink to this headline">¶</a></h3> +<div class="section" id="id22"> +<h3>Syntax<a class="headerlink" href="#id22" title="Permalink to this headline">¶</a></h3> <p>This argument has the following syntax:</p> <div class="highlight-bash"><div class="highlight"><pre><span class="nv">$ </span>knife node show NODE_NAME <span class="o">(</span>options<span class="o">)</span> </pre></div> </div> </div> -<div class="section" id="id26"> -<h3>Options<a class="headerlink" href="#id26" title="Permalink to this headline">¶</a></h3> +<div class="section" id="id23"> +<h3>Options<a class="headerlink" href="#id23" title="Permalink to this headline">¶</a></h3> <p>This argument has the following options:</p> <dl class="docutils"> <dt><tt class="docutils literal"><span class="pre">-a</span> <span class="pre">ATTR</span></tt>, <tt class="docutils literal"><span class="pre">--attribute</span> <span class="pre">ATTR</span></tt></dt> @@ -507,8 +366,8 @@ rs-123456 <dd>Indicates that only the run-list will be shown.</dd> </dl> </div> -<div class="section" id="id27"> -<h3>Examples<a class="headerlink" href="#id27" title="Permalink to this headline">¶</a></h3> +<div class="section" id="id24"> +<h3>Examples<a class="headerlink" href="#id24" title="Permalink to this headline">¶</a></h3> <p>The following examples show how to use this Knife subcommand:</p> <p><strong>Show all data about nodes</strong></p> <p>To view all data for a node named “build”, enter:</p> @@ -577,78 +436,14 @@ Platform: </div> - </div> - </div> - <div class="clearer"></div> - </div> - <div class="related"> - <h3>Navigation</h3> - <ul> - <li><a href="http://docs.opscode.com/chef/knife.html" target="_products">Knife</a>•</li> - <li><a href="http://docs.opscode.com/chef/resources.html" target="_products">Resources</a>•</li> - <li><a href="http://docs.opscode.com/chef/dsl_recipe.html" target="_products">Recipe DSL</a>•</li> - <li><a href="http://docs.opscode.com/chef/lwrps_custom.html" target="_products">LWRPs</a>•</li> - <li><a href="http://docs.opscode.com/search.html">Search the Docs</a>•</li> - <li><a href="http://docs.opscode.com/">Home</a> »</li> - - </ul> - </div> - - <div class="footer"> - Documentation for current man pages for Knife. - - Send feedback to <a href="mailto:docs@getchef.com">docs@getchef.com</a>. - This work is licensed under a Creative Commons Attribution 3.0 Unported License. + </div> + + <div class="clearer"></div> </div> -<!-- Start of Async Google Analytics Code --> -<script type="text/javascript"> -var _gaq = _gaq || []; -var pluginUrl = (('https:' == document.location.protocol) ? 'https://ssl.' : 'http://www.') + 'google-analytics.com/plugins/ga/inpage_linkid.js'; -_gaq.push(['_setAccount', 'UA-6369228-7']); -_gaq.push(['_setDomainName', '.opscode.com']); -_gaq.push(['_setAllowHash', false]); -_gaq.push(['_setAllowLinker', true]); -_gaq.push(['_addIgnoredRef','opscode.com']); -_gaq.push(['_trackPageview']); - -(function() { - var ga = document.createElement('script'); ga.type = 'text/javascript'; - ga.async = true; - ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; - var s = document.getElementsByTagName('script')[0]; - s.parentNode.insertBefore(ga, s); })(); -</script> -<!-- End of Async Google Analytics Code --> - - -<!-- Start of Contact Analytics Code --> -<script type="text/javascript"> -(function() { - var didInit = false; - function initMunchkin() { - if(didInit === false) { - didInit = true; - Munchkin.init('255-VFB-268'); - } - } - var s = document.createElement('script'); - s.type = 'text/javascript'; - s.async = true; - s.src = document.location.protocol + '//munchkin.marketo.net/munchkin.js'; - s.onreadystatechange = function() { - if (this.readyState == 'complete' || this.readyState == 'loaded') { - initMunchkin(); - } - }; - s.onload = initMunchkin; - document.getElementsByTagName('head')[0].appendChild(s); -})(); -</script> -<!-- End of Contact Analytics Code --> </body> |