cdist-web/src/extra/manual/7.0.0/cdist-inventory.html

340 lines
25 KiB
HTML

<!DOCTYPE html>
<html class="writer-html5" lang="en" >
<head>
<meta charset="utf-8" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>20. Inventory &mdash; cdist 7.0.0 documentation</title>
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
<script data-url_root="./" id="documentation_options" src="_static/documentation_options.js"></script>
<script src="_static/doctools.js"></script>
<script src="_static/sphinx_highlight.js"></script>
<script src="_static/js/theme.js"></script>
<link rel="index" title="Index" href="genindex.html" />
<link rel="search" title="Search" href="search.html" />
<link rel="next" title="21. PreOS" href="cdist-preos.html" />
<link rel="prev" title="19. Parallelization" href="cdist-parallelization.html" />
</head>
<body class="wy-body-for-nav">
<div class="wy-grid-for-nav">
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
<div class="wy-side-scroll">
<div class="wy-side-nav-search" >
<a href="index.html" class="icon icon-home">
cdist
<img src="_static/cdist-logo.jpeg" class="logo" alt="Logo"/>
</a>
<div class="version">
7.0.0
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="search.html" method="get">
<input type="text" name="q" placeholder="Search docs" aria-label="Search docs" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
</div>
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
<ul class="current">
<li class="toctree-l1"><a class="reference internal" href="cdist-why.html">1. Why should I use cdist?</a></li>
<li class="toctree-l1"><a class="reference internal" href="cdist-features.html">2. Features</a></li>
<li class="toctree-l1"><a class="reference internal" href="cdist-os.html">3. Supported operating systems</a></li>
<li class="toctree-l1"><a class="reference internal" href="cdist-install.html">4. How to install cdist</a></li>
<li class="toctree-l1"><a class="reference internal" href="cdist-upgrade.html">5. How to upgrade cdist</a></li>
<li class="toctree-l1"><a class="reference internal" href="cdist-support.html">6. Support</a></li>
<li class="toctree-l1"><a class="reference internal" href="cdist-quickstart.html">7. Quickstart</a></li>
<li class="toctree-l1"><a class="reference internal" href="cdist-real-world.html">8. Dive into real world cdist</a></li>
<li class="toctree-l1"><a class="reference internal" href="man1/cdist.html">9. cdist(1)</a></li>
<li class="toctree-l1"><a class="reference internal" href="man1/cdist-dump.html">10. cdist-dump(1)</a></li>
<li class="toctree-l1"><a class="reference internal" href="man1/cdist-new-type.html">11. cdist-new-type(1)</a></li>
<li class="toctree-l1"><a class="reference internal" href="cdist-bootstrap.html">12. Bootstrap</a></li>
<li class="toctree-l1"><a class="reference internal" href="cdist-configuration.html">13. Configuration</a></li>
<li class="toctree-l1"><a class="reference internal" href="cdist-manifest.html">14. Manifest</a></li>
<li class="toctree-l1"><a class="reference internal" href="cdist-type.html">15. cdist type</a></li>
<li class="toctree-l1"><a class="reference internal" href="cdist-types.html">16. cdist types</a></li>
<li class="toctree-l1"><a class="reference internal" href="cdist-explorer.html">17. Explorer</a></li>
<li class="toctree-l1"><a class="reference internal" href="cdist-messaging.html">18. Messaging</a></li>
<li class="toctree-l1"><a class="reference internal" href="cdist-parallelization.html">19. Parallelization</a></li>
<li class="toctree-l1 current"><a class="current reference internal" href="#">20. Inventory</a><ul>
<li class="toctree-l2"><a class="reference internal" href="#introduction">20.1. Introduction</a></li>
<li class="toctree-l2"><a class="reference internal" href="#description">20.2. Description</a></li>
<li class="toctree-l2"><a class="reference internal" href="#cdist-inventory-interface">20.3. cdist inventory interface</a></li>
<li class="toctree-l2"><a class="reference internal" href="#configuring-hosts-using-inventory">20.4. Configuring hosts using inventory</a></li>
<li class="toctree-l2"><a class="reference internal" href="#examples">20.5. Examples</a></li>
<li class="toctree-l2"><a class="reference internal" href="#example-of-manipulating-database">20.6. Example of manipulating database</a></li>
<li class="toctree-l2"><a class="reference internal" href="#using-external-inventory">20.7. Using external inventory</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="cdist-preos.html">21. PreOS</a></li>
<li class="toctree-l1"><a class="reference internal" href="cdist-scan.html">22. Scan</a></li>
<li class="toctree-l1"><a class="reference internal" href="cdist-integration.html">23. cdist integration / using cdist as library</a></li>
<li class="toctree-l1"><a class="reference internal" href="cdist-reference.html">24. Reference</a></li>
<li class="toctree-l1"><a class="reference internal" href="cdist-best-practice.html">25. Best practice</a></li>
<li class="toctree-l1"><a class="reference internal" href="cdist-stages.html">26. Execution stages</a></li>
<li class="toctree-l1"><a class="reference internal" href="cdist-cache.html">27. Local cache overview</a></li>
<li class="toctree-l1"><a class="reference internal" href="cdist-saving-output-streams.html">28. Saving output streams</a></li>
<li class="toctree-l1"><a class="reference internal" href="cdist-remote-exec-copy.html">29. Remote exec and copy commands</a></li>
<li class="toctree-l1"><a class="reference internal" href="cdist-hacker.html">30. Hacking</a></li>
<li class="toctree-l1"><a class="reference internal" href="cdist-troubleshooting.html">31. Troubleshooting</a></li>
</ul>
</div>
</div>
</nav>
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" >
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="index.html">cdist</a>
</nav>
<div class="wy-nav-content">
<div class="rst-content">
<div role="navigation" aria-label="Page navigation">
<ul class="wy-breadcrumbs">
<li><a href="index.html" class="icon icon-home" aria-label="Home"></a></li>
<li class="breadcrumb-item active"><span class="section-number">20. </span>Inventory</li>
<li class="wy-breadcrumbs-aside">
<a href="_sources/cdist-inventory.rst.txt" rel="nofollow"> View page source</a>
</li>
</ul>
<hr/>
</div>
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div itemprop="articleBody">
<section id="inventory">
<h1><span class="section-number">20. </span>Inventory<a class="headerlink" href="#inventory" title="Permalink to this heading"></a></h1>
<section id="introduction">
<h2><span class="section-number">20.1. </span>Introduction<a class="headerlink" href="#introduction" title="Permalink to this heading"></a></h2>
<p>cdist comes with simple built-in tag based inventory. It is a simple inventory
with list of hosts and a host has a list of tags.
Inventory functionality is still in <strong>beta</strong> so it can be used only if beta
command line flag is specified (-b, --beta) or setting CDIST_BETA env var.</p>
</section>
<section id="description">
<h2><span class="section-number">20.2. </span>Description<a class="headerlink" href="#description" title="Permalink to this heading"></a></h2>
<p>The idea is to have simple tagging inventory. There is a list of hosts and for
each host there are tags. Inventory database is a set of files under inventory
database base directory. Filename equals hostname. Each file contains tags for
hostname with each tag on its own line.</p>
<p>Using inventory you can now configure hosts by selecting them by tags.</p>
<p>Tags have no values, as tags are just tags. Tag name-value would in this
context mean that host has two tags and it is selected by specifying that both
tags are present.</p>
<p>This inventory is <strong>KISS</strong> cdist built-in inventory database. You can maintain it
using cdist inventory interface or using standard UNIX tools.</p>
</section>
<section id="cdist-inventory-interface">
<h2><span class="section-number">20.3. </span>cdist inventory interface<a class="headerlink" href="#cdist-inventory-interface" title="Permalink to this heading"></a></h2>
<p>With cdist inventory interface you can list host(s) and tag(s), add host(s),
add tag(s), delete host(s) and delete tag(s).</p>
</section>
<section id="configuring-hosts-using-inventory">
<h2><span class="section-number">20.4. </span>Configuring hosts using inventory<a class="headerlink" href="#configuring-hosts-using-inventory" title="Permalink to this heading"></a></h2>
<p>config command now has new options, <strong>-t</strong>, <strong>-a</strong> and <strong>-A</strong>.</p>
<p><strong>-A</strong> means that all hosts in tag db is selected.</p>
<p><strong>-a</strong> means that selected hosts must contain ALL specified tags.</p>
<p><strong>-t</strong> means that host specifies tag - all hosts that have specified tags are
selected.</p>
</section>
<section id="examples">
<h2><span class="section-number">20.5. </span>Examples<a class="headerlink" href="#examples" title="Permalink to this heading"></a></h2>
<div class="highlight-sh notranslate"><div class="highlight"><pre><span></span><span class="c1"># List inventory content</span>
$<span class="w"> </span>cdist<span class="w"> </span>inventory<span class="w"> </span>list<span class="w"> </span>-b
<span class="c1"># List inventory for specified host localhost</span>
$<span class="w"> </span>cdist<span class="w"> </span>inventory<span class="w"> </span>list<span class="w"> </span>-b<span class="w"> </span>localhost
<span class="c1"># List inventory for specified tag loadbalancer</span>
$<span class="w"> </span>cdist<span class="w"> </span>inventory<span class="w"> </span>list<span class="w"> </span>-b<span class="w"> </span>-t<span class="w"> </span>loadbalancer
<span class="c1"># Add hosts to inventory</span>
$<span class="w"> </span>cdist<span class="w"> </span>inventory<span class="w"> </span>add-host<span class="w"> </span>-b<span class="w"> </span>web1<span class="w"> </span>web2<span class="w"> </span>web3
<span class="c1"># Delete hosts from file old-hosts from inventory</span>
$<span class="w"> </span>cdist<span class="w"> </span>inventory<span class="w"> </span>del-host<span class="w"> </span>-b<span class="w"> </span>-f<span class="w"> </span>old-hosts
<span class="c1"># Add tags to specified hosts</span>
$<span class="w"> </span>cdist<span class="w"> </span>inventory<span class="w"> </span>add-tag<span class="w"> </span>-b<span class="w"> </span>-t<span class="w"> </span>europe,croatia,web,static<span class="w"> </span>web1<span class="w"> </span>web2
<span class="c1"># Add tag to all hosts in inventory</span>
$<span class="w"> </span>cdist<span class="w"> </span>inventory<span class="w"> </span>add-tag<span class="w"> </span>-b<span class="w"> </span>-t<span class="w"> </span>vm
<span class="c1"># Delete all tags from specified host</span>
$<span class="w"> </span>cdist<span class="w"> </span>inventory<span class="w"> </span>del-tag<span class="w"> </span>-b<span class="w"> </span>-a<span class="w"> </span>localhost
<span class="c1"># Delete tags read from stdin from hosts specified by file hosts</span>
$<span class="w"> </span>cdist<span class="w"> </span>inventory<span class="w"> </span>del-tag<span class="w"> </span>-b<span class="w"> </span>-T<span class="w"> </span>-<span class="w"> </span>-f<span class="w"> </span>hosts
<span class="c1"># Configure hosts from inventory with any of specified tags</span>
$<span class="w"> </span>cdist<span class="w"> </span>config<span class="w"> </span>-b<span class="w"> </span>-t<span class="w"> </span>web<span class="w"> </span>dynamic
<span class="c1"># Configure hosts from inventory with all specified tags</span>
$<span class="w"> </span>cdist<span class="w"> </span>config<span class="w"> </span>-b<span class="w"> </span>-t<span class="w"> </span>-a<span class="w"> </span>web<span class="w"> </span>dynamic
<span class="c1"># Configure all hosts from inventory db</span>
$<span class="w"> </span>cdist<span class="w"> </span>config<span class="w"> </span>-b<span class="w"> </span>-A
</pre></div>
</div>
</section>
<section id="example-of-manipulating-database">
<h2><span class="section-number">20.6. </span>Example of manipulating database<a class="headerlink" href="#example-of-manipulating-database" title="Permalink to this heading"></a></h2>
<div class="highlight-sh notranslate"><div class="highlight"><pre><span></span>$<span class="w"> </span>python3<span class="w"> </span>scripts/cdist<span class="w"> </span>inventory<span class="w"> </span>list<span class="w"> </span>-b
$<span class="w"> </span>python3<span class="w"> </span>scripts/cdist<span class="w"> </span>inventory<span class="w"> </span>add-host<span class="w"> </span>-b<span class="w"> </span>localhost
$<span class="w"> </span>python3<span class="w"> </span>scripts/cdist<span class="w"> </span>inventory<span class="w"> </span>add-host<span class="w"> </span>-b<span class="w"> </span>test.mycloud.net
$<span class="w"> </span>python3<span class="w"> </span>scripts/cdist<span class="w"> </span>inventory<span class="w"> </span>list<span class="w"> </span>-b
localhost
test.mycloud.net
$<span class="w"> </span>python3<span class="w"> </span>scripts/cdist<span class="w"> </span>inventory<span class="w"> </span>add-host<span class="w"> </span>-b<span class="w"> </span>web1.mycloud.net<span class="w"> </span>web2.mycloud.net<span class="w"> </span>shell1.mycloud.net<span class="w"> </span>shell2.mycloud.net
$<span class="w"> </span>python3<span class="w"> </span>scripts/cdist<span class="w"> </span>inventory<span class="w"> </span>list<span class="w"> </span>-b
localhost
test.mycloud.net
web1.mycloud.net
web2.mycloud.net
shell1.mycloud.net
shell2.mycloud.net
$<span class="w"> </span>python3<span class="w"> </span>scripts/cdist<span class="w"> </span>inventory<span class="w"> </span>add-tag<span class="w"> </span>-b<span class="w"> </span>-t<span class="w"> </span>web<span class="w"> </span>web1.mycloud.net<span class="w"> </span>web2.mycloud.net
$<span class="w"> </span>python3<span class="w"> </span>scripts/cdist<span class="w"> </span>inventory<span class="w"> </span>add-tag<span class="w"> </span>-b<span class="w"> </span>-t<span class="w"> </span>shell<span class="w"> </span>shell1.mycloud.net<span class="w"> </span>shell2.mycloud.net
$<span class="w"> </span>python3<span class="w"> </span>scripts/cdist<span class="w"> </span>inventory<span class="w"> </span>add-tag<span class="w"> </span>-b<span class="w"> </span>-t<span class="w"> </span>cloud
$<span class="w"> </span>python3<span class="w"> </span>scripts/cdist<span class="w"> </span>inventory<span class="w"> </span>list<span class="w"> </span>-b
localhost<span class="w"> </span>cloud
test.mycloud.net<span class="w"> </span>cloud
web1.mycloud.net<span class="w"> </span>cloud,web
web2.mycloud.net<span class="w"> </span>cloud,web
shell1.mycloud.net<span class="w"> </span>cloud,shell
shell2.mycloud.net<span class="w"> </span>cloud,shell
$<span class="w"> </span>python3<span class="w"> </span>scripts/cdist<span class="w"> </span>inventory<span class="w"> </span>add-tag<span class="w"> </span>-b<span class="w"> </span>-t<span class="w"> </span>test,web,shell<span class="w"> </span>test.mycloud.net
$<span class="w"> </span>python3<span class="w"> </span>scripts/cdist<span class="w"> </span>inventory<span class="w"> </span>list<span class="w"> </span>-b
localhost<span class="w"> </span>cloud
test.mycloud.net<span class="w"> </span>cloud,shell,test,web
web1.mycloud.net<span class="w"> </span>cloud,web
web2.mycloud.net<span class="w"> </span>cloud,web
shell1.mycloud.net<span class="w"> </span>cloud,shell
shell2.mycloud.net<span class="w"> </span>cloud,shell
$<span class="w"> </span>python3<span class="w"> </span>scripts/cdist<span class="w"> </span>inventory<span class="w"> </span>del-tag<span class="w"> </span>-b<span class="w"> </span>-t<span class="w"> </span>shell<span class="w"> </span>test.mycloud.net
$<span class="w"> </span>python3<span class="w"> </span>scripts/cdist<span class="w"> </span>inventory<span class="w"> </span>list<span class="w"> </span>-b
localhost<span class="w"> </span>cloud
test.mycloud.net<span class="w"> </span>cloud,test,web
web1.mycloud.net<span class="w"> </span>cloud,web
web2.mycloud.net<span class="w"> </span>cloud,web
shell1.mycloud.net<span class="w"> </span>cloud,shell
shell2.mycloud.net<span class="w"> </span>cloud,shell
$<span class="w"> </span>python3<span class="w"> </span>scripts/cdist<span class="w"> </span>inventory<span class="w"> </span>add-tag<span class="w"> </span>-b<span class="w"> </span>-t<span class="w"> </span>all
$<span class="w"> </span>python3<span class="w"> </span>scripts/cdist<span class="w"> </span>inventory<span class="w"> </span>add-tag<span class="w"> </span>-b<span class="w"> </span>-t<span class="w"> </span>mistake
$<span class="w"> </span>python3<span class="w"> </span>scripts/cdist<span class="w"> </span>inventory<span class="w"> </span>list<span class="w"> </span>-b
localhost<span class="w"> </span>all,cloud,mistake
test.mycloud.net<span class="w"> </span>all,cloud,mistake,test,web
web1.mycloud.net<span class="w"> </span>all,cloud,mistake,web
web2.mycloud.net<span class="w"> </span>all,cloud,mistake,web
shell1.mycloud.net<span class="w"> </span>all,cloud,mistake,shell
shell2.mycloud.net<span class="w"> </span>all,cloud,mistake,shell
$<span class="w"> </span>python3<span class="w"> </span>scripts/cdist<span class="w"> </span>inventory<span class="w"> </span>del-tag<span class="w"> </span>-b<span class="w"> </span>-t<span class="w"> </span>mistake
$<span class="w"> </span>python3<span class="w"> </span>scripts/cdist<span class="w"> </span>inventory<span class="w"> </span>list<span class="w"> </span>-b
localhost<span class="w"> </span>all,cloud
test.mycloud.net<span class="w"> </span>all,cloud,test,web
web1.mycloud.net<span class="w"> </span>all,cloud,web
web2.mycloud.net<span class="w"> </span>all,cloud,web
shell1.mycloud.net<span class="w"> </span>all,cloud,shell
shell2.mycloud.net<span class="w"> </span>all,cloud,shell
$<span class="w"> </span>python3<span class="w"> </span>scripts/cdist<span class="w"> </span>inventory<span class="w"> </span>del-host<span class="w"> </span>-b<span class="w"> </span>localhost
$<span class="w"> </span>python3<span class="w"> </span>scripts/cdist<span class="w"> </span>inventory<span class="w"> </span>list<span class="w"> </span>-b
test.mycloud.net<span class="w"> </span>all,cloud,test,web
web1.mycloud.net<span class="w"> </span>all,cloud,web
web2.mycloud.net<span class="w"> </span>all,cloud,web
shell1.mycloud.net<span class="w"> </span>all,cloud,shell
shell2.mycloud.net<span class="w"> </span>all,cloud,shell
$<span class="w"> </span>python3<span class="w"> </span>scripts/cdist<span class="w"> </span>inventory<span class="w"> </span>list<span class="w"> </span>-b<span class="w"> </span>-t<span class="w"> </span>web
test.mycloud.net<span class="w"> </span>all,cloud,test,web
web1.mycloud.net<span class="w"> </span>all,cloud,web
web2.mycloud.net<span class="w"> </span>all,cloud,web
$<span class="w"> </span>python3<span class="w"> </span>scripts/cdist<span class="w"> </span>inventory<span class="w"> </span>list<span class="w"> </span>-b<span class="w"> </span>-t<span class="w"> </span>-a<span class="w"> </span>web<span class="w"> </span><span class="nb">test</span>
test.mycloud.net<span class="w"> </span>all,cloud,test,web
$<span class="w"> </span>python3<span class="w"> </span>scripts/cdist<span class="w"> </span>inventory<span class="w"> </span>list<span class="w"> </span>-b<span class="w"> </span>-t<span class="w"> </span>-a<span class="w"> </span>web<span class="w"> </span>all
test.mycloud.net<span class="w"> </span>all,cloud,test,web
web1.mycloud.net<span class="w"> </span>all,cloud,web
web2.mycloud.net<span class="w"> </span>all,cloud,web
$<span class="w"> </span>python3<span class="w"> </span>scripts/cdist<span class="w"> </span>inventory<span class="w"> </span>list<span class="w"> </span>-b<span class="w"> </span>-t<span class="w"> </span>web<span class="w"> </span>all
test.mycloud.net<span class="w"> </span>all,cloud,test,web
web1.mycloud.net<span class="w"> </span>all,cloud,web
web2.mycloud.net<span class="w"> </span>all,cloud,web
shell1.mycloud.net<span class="w"> </span>all,cloud,shell
shell2.mycloud.net<span class="w"> </span>all,cloud,shell
$<span class="w"> </span><span class="nb">cd</span><span class="w"> </span>cdist/inventory
$<span class="w"> </span>ls<span class="w"> </span>-1
shell1.mycloud.net
shell2.mycloud.net
test.mycloud.net
web1.mycloud.net
web2.mycloud.net
$<span class="w"> </span>ls<span class="w"> </span>-l
total<span class="w"> </span><span class="m">20</span>
-rw-r--r--<span class="w"> </span><span class="m">1</span><span class="w"> </span>darko<span class="w"> </span>darko<span class="w"> </span><span class="m">16</span><span class="w"> </span>Jun<span class="w"> </span><span class="m">24</span><span class="w"> </span><span class="m">12</span>:43<span class="w"> </span>shell1.mycloud.net
-rw-r--r--<span class="w"> </span><span class="m">1</span><span class="w"> </span>darko<span class="w"> </span>darko<span class="w"> </span><span class="m">16</span><span class="w"> </span>Jun<span class="w"> </span><span class="m">24</span><span class="w"> </span><span class="m">12</span>:43<span class="w"> </span>shell2.mycloud.net
-rw-r--r--<span class="w"> </span><span class="m">1</span><span class="w"> </span>darko<span class="w"> </span>darko<span class="w"> </span><span class="m">19</span><span class="w"> </span>Jun<span class="w"> </span><span class="m">24</span><span class="w"> </span><span class="m">12</span>:43<span class="w"> </span>test.mycloud.net
-rw-r--r--<span class="w"> </span><span class="m">1</span><span class="w"> </span>darko<span class="w"> </span>darko<span class="w"> </span><span class="m">14</span><span class="w"> </span>Jun<span class="w"> </span><span class="m">24</span><span class="w"> </span><span class="m">12</span>:43<span class="w"> </span>web1.mycloud.net
-rw-r--r--<span class="w"> </span><span class="m">1</span><span class="w"> </span>darko<span class="w"> </span>darko<span class="w"> </span><span class="m">14</span><span class="w"> </span>Jun<span class="w"> </span><span class="m">24</span><span class="w"> </span><span class="m">12</span>:43<span class="w"> </span>web2.mycloud.net
$<span class="w"> </span>cat<span class="w"> </span>test.mycloud.net
<span class="nb">test</span>
all
web
cloud
$<span class="w"> </span>cat<span class="w"> </span>web2.mycloud.net
all
web
cloud
</pre></div>
</div>
<p>For more info about inventory commands and options see <a class="reference external" href="man1/cdist.html">cdist</a>(1).</p>
</section>
<section id="using-external-inventory">
<h2><span class="section-number">20.7. </span>Using external inventory<a class="headerlink" href="#using-external-inventory" title="Permalink to this heading"></a></h2>
<p>cdist can be used with any external inventory where external inventory is
some storage or database from which you can get a list of hosts to configure.
cdist can then be fed with this list of hosts through stdin or file using
<strong>-f</strong> option. For example, if your host list is stored in sqlite3 database
hosts.db and you want to select hosts which purpose is <strong>django</strong> then you
can use it with cdist like:</p>
<div class="highlight-sh notranslate"><div class="highlight"><pre><span></span>$<span class="w"> </span>sqlite3<span class="w"> </span>hosts.db<span class="w"> </span><span class="s2">&quot;select hostname from hosts where purpose = &#39;django&#39;;&quot;</span><span class="w"> </span><span class="p">|</span><span class="w"> </span>cdist<span class="w"> </span>config
</pre></div>
</div>
</section>
</section>
</div>
</div>
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
<a href="cdist-parallelization.html" class="btn btn-neutral float-left" title="19. Parallelization" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
<a href="cdist-preos.html" class="btn btn-neutral float-right" title="21. PreOS" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
</div>
<hr/>
<div role="contentinfo">
<p>&#169; Copyright ungleich GmbH 2021.</p>
</div>
Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a
<a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a>
provided by <a href="https://readthedocs.org">Read the Docs</a>.
</footer>
</div>
</div>
</section>
</div>
<script>
jQuery(function () {
SphinxRtdTheme.Navigation.enable(true);
});
</script>
</body>
</html>