36 lines
4.4 KiB
HTML
36 lines
4.4 KiB
HTML
<?xml version="1.0" encoding="UTF-8"?>
|
||
<!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>cdist-manifest(7)</title><link rel="stylesheet" type="text/css" href="docbook-xsl.css" /><meta name="generator" content="DocBook XSL Stylesheets V1.76.1" /></head><body><div xml:lang="en" class="article" title="cdist-manifest(7)" lang="en"><div class="titlepage"><div><div><h2 class="title"><a id="id431638"></a>cdist-manifest(7)</h2></div><div><div class="author"><h3 class="author"><span class="firstname">Nico</span> <span class="surname">Schottelius</span></h3><code class="email"><<a class="email" href="mailto:nico-cdist--@--schottelius.org">nico-cdist--@--schottelius.org</a>></code></div></div></div><hr /></div><div class="toc"><p><strong>Table of Contents</strong></p><dl><dt><span class="section"><a href="#_name">1. NAME</a></span></dt><dt><span class="section"><a href="#_description">2. DESCRIPTION</a></span></dt><dt><span class="section"><a href="#_example">3. EXAMPLE</a></span></dt><dt><span class="section"><a href="#_dependencies">4. DEPENDENCIES</a></span></dt><dt><span class="section"><a href="#_see_also">5. SEE ALSO</a></span></dt><dt><span class="section"><a href="#_copying">6. COPYING</a></span></dt></dl></div><div class="section" title="1. NAME"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="_name"></a>1. NAME</h2></div></div></div><p>cdist-manifest - Define types to be used</p></div><div class="section" title="2. DESCRIPTION"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="_description"></a>2. DESCRIPTION</h2></div></div></div><p>Manifests exist to define which configurations should be applied to a specific
|
||
host as well as to define which configurations should be applied within a
|
||
type. Manifests are executed locally and the resulting objects are stored in
|
||
an internal database.</p><p>The same object can be redefined in multiple different manifests as long as
|
||
the parameters are exactly the same.</p><p>In general, manifests are used to define which types are used depending
|
||
on given conditions.</p></div><div class="section" title="3. EXAMPLE"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="_example"></a>3. EXAMPLE</h2></div></div></div><p>The initial manifest may for instance contain the following code:</p><pre class="screen"># Always create this file, so other sysadmins know cdist is used.
|
||
__file /etc/cdist-configured --type file
|
||
|
||
case "$__target_host" in
|
||
my.server.name)
|
||
__file /root/bin/ --type directory
|
||
__file /etc/issue.net --type file --source "$__manifest/issue.net
|
||
;;
|
||
esac</pre><p>The manifest of the type "nologin" may look like this:</p><pre class="screen">__file /etc/nologin --type file --source "$__type/files/default.nologin"</pre></div><div class="section" title="4. DEPENDENCIES"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="_dependencies"></a>4. DEPENDENCIES</h2></div></div></div><p>If you want to describe that something requires something else, just
|
||
setup the variable "require" to contain the requirements. Multiple
|
||
requirements can be added white space seperated.</p><pre class="screen"># No dependency
|
||
__file /etc/cdist-configured
|
||
|
||
# Require above object
|
||
require="__file/etc/cdist-configured" __link /tmp/cdist-testfile \
|
||
--source /etc/cdist-configured --type symbolic
|
||
|
||
# Require two objects
|
||
require="__file/etc/cdist-configured __link/tmp/cdist-testfile" \
|
||
__file /tmp/cdist-another-testfile</pre></div><div class="section" title="5. SEE ALSO"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="_see_also"></a>5. SEE ALSO</h2></div></div></div><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem">
|
||
cdist-manifest-run(1)
|
||
</li><li class="listitem">
|
||
cdist-manifest-run-all(1)
|
||
</li><li class="listitem">
|
||
cdist-manifest-run-init(1)
|
||
</li><li class="listitem">
|
||
cdist-type(7)
|
||
</li></ul></div></div><div class="section" title="6. COPYING"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="_copying"></a>6. COPYING</h2></div></div></div><p>Copyright (C) 2010-2011 Nico Schottelius. Free use of this software is
|
||
granted under the terms of the GNU General Public License version 3 (GPLv3).</p></div></div></body></html>
|