437 lines
24 KiB
HTML
437 lines
24 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-reference(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-reference(7)" lang="en"><div class="titlepage"><div><div><h2 class="title"><a id="idp64681040"></a>cdist-reference(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="#_explorers">2. EXPLORERS</a></span></dt><dt><span class="section"><a href="#_paths">3. PATHS</a></span></dt><dt><span class="section"><a href="#_types">4. TYPES</a></span></dt><dt><span class="section"><a href="#_objects">5. OBJECTS</a></span></dt><dt><span class="section"><a href="#_environment_variables_for_reading">6. ENVIRONMENT VARIABLES (FOR READING)</a></span></dt><dt><span class="section"><a href="#_environment_variables_for_writing">7. ENVIRONMENT VARIABLES (FOR WRITING)</a></span></dt><dt><span class="section"><a href="#_see_also">8. SEE ALSO</a></span></dt><dt><span class="section"><a href="#_copying">9. 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-reference - Variable, path and type reference for cdist</p></div><div class="section" title="2. EXPLORERS"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="_explorers"></a>2. EXPLORERS</h2></div></div></div><p>The following global explorers are available:</p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem">
|
|||
|
cpu_cores
|
|||
|
</li><li class="listitem">
|
|||
|
cpu_sockets
|
|||
|
</li><li class="listitem">
|
|||
|
hostname
|
|||
|
</li><li class="listitem">
|
|||
|
init
|
|||
|
</li><li class="listitem">
|
|||
|
interfaces
|
|||
|
</li><li class="listitem">
|
|||
|
lsb_codename
|
|||
|
</li><li class="listitem">
|
|||
|
lsb_description
|
|||
|
</li><li class="listitem">
|
|||
|
lsb_id
|
|||
|
</li><li class="listitem">
|
|||
|
lsb_release
|
|||
|
</li><li class="listitem">
|
|||
|
machine
|
|||
|
</li><li class="listitem">
|
|||
|
machine_type
|
|||
|
</li><li class="listitem">
|
|||
|
memory
|
|||
|
</li><li class="listitem">
|
|||
|
os
|
|||
|
</li><li class="listitem">
|
|||
|
os_version
|
|||
|
</li><li class="listitem">
|
|||
|
runlevel
|
|||
|
</li></ul></div></div><div class="section" title="3. PATHS"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="_paths"></a>3. PATHS</h2></div></div></div><div class="variablelist"><dl><dt><span class="term">
|
|||
|
$HOME/.cdist
|
|||
|
</span></dt><dd>
|
|||
|
The standard cdist configuration directory relative to your home directory
|
|||
|
This is usually the place you want to store your site specific configuration
|
|||
|
</dd><dt><span class="term">
|
|||
|
cdist/conf/
|
|||
|
</span></dt><dd>
|
|||
|
The distribution configuration directory
|
|||
|
This contains types and explorers to be used
|
|||
|
</dd><dt><span class="term">
|
|||
|
confdir
|
|||
|
</span></dt><dd>
|
|||
|
Cdist will use all available configuration directories and create
|
|||
|
a temporary confdir containing links to the real configuration directories.
|
|||
|
This way it is possible to merge configuration directories.
|
|||
|
By default it consists of everything in $HOME/.cdist and cdist/conf/.
|
|||
|
For more details see <a href="../man1/cdist.html">cdist(1)</a>
|
|||
|
</dd><dt><span class="term">
|
|||
|
confdir/manifest/init
|
|||
|
</span></dt><dd>
|
|||
|
This is the central entry point.
|
|||
|
It is an executable (+x bit set) shell script that can use
|
|||
|
values from the explorers to decide which configuration to create
|
|||
|
for the specified target host.
|
|||
|
Its intent is to used to define mapping from configurations to hosts.
|
|||
|
</dd><dt><span class="term">
|
|||
|
confdir/manifest/*
|
|||
|
</span></dt><dd>
|
|||
|
All other files in this directory are not directly used by cdist, but you
|
|||
|
can separate configuration mappings, if you have a lot of code in the
|
|||
|
conf/manifest/init file. This may also be helpful to have different admins
|
|||
|
maintain different groups of hosts.
|
|||
|
</dd><dt><span class="term">
|
|||
|
confdir/explorer/<name>
|
|||
|
</span></dt><dd>
|
|||
|
Contains explorers to be run on the target hosts, see <a href="../man7/cdist-explorer.html">cdist-explorer(7)</a>.
|
|||
|
</dd><dt><span class="term">
|
|||
|
confdir/type/
|
|||
|
</span></dt><dd>
|
|||
|
Contains all available types, which are used to provide
|
|||
|
some kind of functionality. See <a href="../man7/cdist-type.html">cdist-type(7)</a>.
|
|||
|
</dd><dt><span class="term">
|
|||
|
confdir/type/<name>/
|
|||
|
</span></dt><dd>
|
|||
|
Home of the type <name>.
|
|||
|
This directory is referenced by the variable __type (see below).
|
|||
|
</dd><dt><span class="term">
|
|||
|
confdir/type/<name>/man.text
|
|||
|
</span></dt><dd>
|
|||
|
Manpage in Asciidoc format (required for inclusion into upstream)
|
|||
|
</dd><dt><span class="term">
|
|||
|
confdir/type/<name>/manifest
|
|||
|
</span></dt><dd>
|
|||
|
Used to generate additional objects from a type.
|
|||
|
</dd><dt><span class="term">
|
|||
|
confdir/type/<name>/gencode-local
|
|||
|
</span></dt><dd>
|
|||
|
Used to generate code to be executed on the source host
|
|||
|
</dd><dt><span class="term">
|
|||
|
confdir/type/<name>/gencode-remote
|
|||
|
</span></dt><dd>
|
|||
|
Used to generate code to be executed on the target host
|
|||
|
</dd><dt><span class="term">
|
|||
|
confdir/type/<name>/parameter/required
|
|||
|
</span></dt><dd>
|
|||
|
Parameters required by type, \n separated list.
|
|||
|
</dd><dt><span class="term">
|
|||
|
confdir/type/<name>/parameter/optional
|
|||
|
</span></dt><dd>
|
|||
|
Parameters optionally accepted by type, \n separated list.
|
|||
|
</dd><dt><span class="term">
|
|||
|
confdir/type/<name>/parameter/default/*
|
|||
|
</span></dt><dd>
|
|||
|
Default values for optional parameters.
|
|||
|
Assuming an optional parameter name of <span class="emphasis"><em>foo</em></span>, it’s default value would
|
|||
|
be read from the file confdir/type/<name>/parameter/default/foo.
|
|||
|
</dd><dt><span class="term">
|
|||
|
confdir/type/<name>/parameter/boolean
|
|||
|
</span></dt><dd>
|
|||
|
Boolean parameters accepted by type, \n separated list.
|
|||
|
</dd><dt><span class="term">
|
|||
|
confdir/type/<name>/explorer
|
|||
|
</span></dt><dd>
|
|||
|
Location of the type specific explorers.
|
|||
|
This directory is referenced by the variable __type_explorer (see below).
|
|||
|
See <a href="../man7/cdist-explorer.html">cdist-explorer(7)</a>.
|
|||
|
</dd><dt><span class="term">
|
|||
|
confdir/type/<name>/files
|
|||
|
</span></dt><dd>
|
|||
|
This directory is reserved for user data and will not be used
|
|||
|
by cdist at any time. It can be used for storing supplementary
|
|||
|
files (like scripts to act as a template or configuration files).
|
|||
|
</dd><dt><span class="term">
|
|||
|
out/
|
|||
|
</span></dt><dd>
|
|||
|
This directory contains output of cdist and is usually located
|
|||
|
in a temporary directory and thus will be removed after the run.
|
|||
|
This directory is referenced by the variable __global (see below).
|
|||
|
</dd><dt><span class="term">
|
|||
|
out/explorer
|
|||
|
</span></dt><dd>
|
|||
|
Output of general explorers.
|
|||
|
</dd><dt><span class="term">
|
|||
|
out/object
|
|||
|
</span></dt><dd>
|
|||
|
Objects created for the host.
|
|||
|
</dd><dt><span class="term">
|
|||
|
out/object/<object>
|
|||
|
</span></dt><dd>
|
|||
|
Contains all object specific information.
|
|||
|
This directory is referenced by the variable __object (see below).
|
|||
|
</dd><dt><span class="term">
|
|||
|
out/object/<object>/explorers
|
|||
|
</span></dt><dd>
|
|||
|
Output of type specific explorers, per object.
|
|||
|
</dd></dl></div></div><div class="section" title="4. TYPES"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="_types"></a>4. TYPES</h2></div></div></div><p>The following types are available:</p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem">
|
|||
|
__apt_norecommends (<a href="../man7/cdist-type__apt_norecommends.html">cdist-type__apt_norecommends(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__apt_ppa (<a href="../man7/cdist-type__apt_ppa.html">cdist-type__apt_ppa(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__apt_source (<a href="../man7/cdist-type__apt_source.html">cdist-type__apt_source(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__apt_update_index (<a href="../man7/cdist-type__apt_update_index.html">cdist-type__apt_update_index(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__block (<a href="../man7/cdist-type__block.html">cdist-type__block(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__ccollect_source (<a href="../man7/cdist-type__ccollect_source.html">cdist-type__ccollect_source(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__cdist (<a href="../man7/cdist-type__cdist.html">cdist-type__cdist(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__cdistmarker (<a href="../man7/cdist-type__cdistmarker.html">cdist-type__cdistmarker(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__config_file (<a href="../man7/cdist-type__config_file.html">cdist-type__config_file(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__consul (<a href="../man7/cdist-type__consul.html">cdist-type__consul(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__consul_agent (<a href="../man7/cdist-type__consul_agent.html">cdist-type__consul_agent(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__consul_check (<a href="../man7/cdist-type__consul_check.html">cdist-type__consul_check(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__consul_reload (<a href="../man7/cdist-type__consul_reload.html">cdist-type__consul_reload(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__consul_service (<a href="../man7/cdist-type__consul_service.html">cdist-type__consul_service(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__consul_template (<a href="../man7/cdist-type__consul_template.html">cdist-type__consul_template(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__consul_template_template (<a href="../man7/cdist-type__consul_template_template.html">cdist-type__consul_template_template(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__consul_watch_checks (<a href="../man7/cdist-type__consul_watch_checks.html">cdist-type__consul_watch_checks(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__consul_watch_event (<a href="../man7/cdist-type__consul_watch_event.html">cdist-type__consul_watch_event(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__consul_watch_key (<a href="../man7/cdist-type__consul_watch_key.html">cdist-type__consul_watch_key(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__consul_watch_keyprefix (<a href="../man7/cdist-type__consul_watch_keyprefix.html">cdist-type__consul_watch_keyprefix(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__consul_watch_nodes (<a href="../man7/cdist-type__consul_watch_nodes.html">cdist-type__consul_watch_nodes(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__consul_watch_service (<a href="../man7/cdist-type__consul_watch_service.html">cdist-type__consul_watch_service(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__consul_watch_services (<a href="../man7/cdist-type__consul_watch_services.html">cdist-type__consul_watch_services(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__cron (<a href="../man7/cdist-type__cron.html">cdist-type__cron(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__debconf_set_selections (<a href="../man7/cdist-type__debconf_set_selections.html">cdist-type__debconf_set_selections(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__directory (<a href="../man7/cdist-type__directory.html">cdist-type__directory(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__dog_vdi (<a href="../man7/cdist-type__dog_vdi.html">cdist-type__dog_vdi(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__file (<a href="../man7/cdist-type__file.html">cdist-type__file(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__firewalld_rule (<a href="../man7/cdist-type__firewalld_rule.html">cdist-type__firewalld_rule(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__git (<a href="../man7/cdist-type__git.html">cdist-type__git(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__group (<a href="../man7/cdist-type__group.html">cdist-type__group(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__hostname (<a href="../man7/cdist-type__hostname.html">cdist-type__hostname(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__iptables_apply (<a href="../man7/cdist-type__iptables_apply.html">cdist-type__iptables_apply(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__iptables_rule (<a href="../man7/cdist-type__iptables_rule.html">cdist-type__iptables_rule(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__issue (<a href="../man7/cdist-type__issue.html">cdist-type__issue(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__jail (<a href="../man7/cdist-type__jail.html">cdist-type__jail(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__key_value (<a href="../man7/cdist-type__key_value.html">cdist-type__key_value(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__line (<a href="../man7/cdist-type__line.html">cdist-type__line(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__link (<a href="../man7/cdist-type__link.html">cdist-type__link(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__locale (<a href="../man7/cdist-type__locale.html">cdist-type__locale(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__motd (<a href="../man7/cdist-type__motd.html">cdist-type__motd(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__mount (<a href="../man7/cdist-type__mount.html">cdist-type__mount(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__mysql_database (<a href="../man7/cdist-type__mysql_database.html">cdist-type__mysql_database(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__package (<a href="../man7/cdist-type__package.html">cdist-type__package(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__package_apt (<a href="../man7/cdist-type__package_apt.html">cdist-type__package_apt(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__package_emerge (<a href="../man7/cdist-type__package_emerge.html">cdist-type__package_emerge(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__package_emerge_dependencies (<a href="../man7/cdist-type__package_emerge_dependencies.html">cdist-type__package_emerge_dependencies(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__package_luarocks (<a href="../man7/cdist-type__package_luarocks.html">cdist-type__package_luarocks(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__package_opkg (<a href="../man7/cdist-type__package_opkg.html">cdist-type__package_opkg(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__package_pacman (<a href="../man7/cdist-type__package_pacman.html">cdist-type__package_pacman(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__package_pip (<a href="../man7/cdist-type__package_pip.html">cdist-type__package_pip(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__package_pkg_freebsd (<a href="../man7/cdist-type__package_pkg_freebsd.html">cdist-type__package_pkg_freebsd(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__package_pkg_openbsd (<a href="../man7/cdist-type__package_pkg_openbsd.html">cdist-type__package_pkg_openbsd(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__package_pkgng_freebsd (<a href="../man7/cdist-type__package_pkgng_freebsd.html">cdist-type__package_pkgng_freebsd(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__package_rubygem (<a href="../man7/cdist-type__package_rubygem.html">cdist-type__package_rubygem(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__package_update_index (<a href="../man7/cdist-type__package_update_index.html">cdist-type__package_update_index(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__package_upgrade_all (<a href="../man7/cdist-type__package_upgrade_all.html">cdist-type__package_upgrade_all(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__package_yum (<a href="../man7/cdist-type__package_yum.html">cdist-type__package_yum(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__package_zypper (<a href="../man7/cdist-type__package_zypper.html">cdist-type__package_zypper(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__pacman_conf (<a href="../man7/cdist-type__pacman_conf.html">cdist-type__pacman_conf(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__pacman_conf_integrate (<a href="../man7/cdist-type__pacman_conf_integrate.html">cdist-type__pacman_conf_integrate(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__pf_apply (<a href="../man7/cdist-type__pf_apply.html">cdist-type__pf_apply(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__pf_ruleset (<a href="../man7/cdist-type__pf_ruleset.html">cdist-type__pf_ruleset(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__postfix (<a href="../man7/cdist-type__postfix.html">cdist-type__postfix(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__postfix_master (<a href="../man7/cdist-type__postfix_master.html">cdist-type__postfix_master(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__postfix_postconf (<a href="../man7/cdist-type__postfix_postconf.html">cdist-type__postfix_postconf(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__postfix_postmap (<a href="../man7/cdist-type__postfix_postmap.html">cdist-type__postfix_postmap(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__postfix_reload (<a href="../man7/cdist-type__postfix_reload.html">cdist-type__postfix_reload(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__postgres_database (<a href="../man7/cdist-type__postgres_database.html">cdist-type__postgres_database(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__postgres_role (<a href="../man7/cdist-type__postgres_role.html">cdist-type__postgres_role(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__process (<a href="../man7/cdist-type__process.html">cdist-type__process(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__pyvenv (<a href="../man7/cdist-type__pyvenv.html">cdist-type__pyvenv(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__qemu_img (<a href="../man7/cdist-type__qemu_img.html">cdist-type__qemu_img(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__rbenv (<a href="../man7/cdist-type__rbenv.html">cdist-type__rbenv(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__rsync (<a href="../man7/cdist-type__rsync.html">cdist-type__rsync(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__rvm (<a href="../man7/cdist-type__rvm.html">cdist-type__rvm(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__rvm_gem (<a href="../man7/cdist-type__rvm_gem.html">cdist-type__rvm_gem(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__rvm_gemset (<a href="../man7/cdist-type__rvm_gemset.html">cdist-type__rvm_gemset(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__rvm_ruby (<a href="../man7/cdist-type__rvm_ruby.html">cdist-type__rvm_ruby(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__ssh_authorized_key (<a href="../man7/cdist-type__ssh_authorized_key.html">cdist-type__ssh_authorized_key(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__ssh_authorized_keys (<a href="../man7/cdist-type__ssh_authorized_keys.html">cdist-type__ssh_authorized_keys(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__ssh_dot_ssh (<a href="../man7/cdist-type__ssh_dot_ssh.html">cdist-type__ssh_dot_ssh(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__staged_file (<a href="../man7/cdist-type__staged_file.html">cdist-type__staged_file(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__start_on_boot (<a href="../man7/cdist-type__start_on_boot.html">cdist-type__start_on_boot(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__timezone (<a href="../man7/cdist-type__timezone.html">cdist-type__timezone(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__update_alternatives (<a href="../man7/cdist-type__update_alternatives.html">cdist-type__update_alternatives(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__user (<a href="../man7/cdist-type__user.html">cdist-type__user(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__user_groups (<a href="../man7/cdist-type__user_groups.html">cdist-type__user_groups(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__yum_repo (<a href="../man7/cdist-type__yum_repo.html">cdist-type__yum_repo(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__zypper_repo (<a href="../man7/cdist-type__zypper_repo.html">cdist-type__zypper_repo(7)</a>)
|
|||
|
</li><li class="listitem">
|
|||
|
__zypper_service (<a href="../man7/cdist-type__zypper_service.html">cdist-type__zypper_service(7)</a>)
|
|||
|
</li></ul></div></div><div class="section" title="5. OBJECTS"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="_objects"></a>5. OBJECTS</h2></div></div></div><p>For object to object communication and tests, the following paths are
|
|||
|
usable within a object directory:</p><div class="variablelist"><dl><dt><span class="term">
|
|||
|
files
|
|||
|
</span></dt><dd>
|
|||
|
This directory is reserved for user data and will not be used
|
|||
|
by cdist at any time. It can be used freely by the type
|
|||
|
(for instance to store template results).
|
|||
|
</dd><dt><span class="term">
|
|||
|
changed
|
|||
|
</span></dt><dd>
|
|||
|
This empty file exists in an object directory, if the object has
|
|||
|
code to be excuted (either remote or local)
|
|||
|
</dd><dt><span class="term">
|
|||
|
stdin
|
|||
|
</span></dt><dd>
|
|||
|
This file exists and contains data, if data was provided on stdin
|
|||
|
when the type was called.
|
|||
|
</dd></dl></div></div><div class="section" title="6. ENVIRONMENT VARIABLES (FOR READING)"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="_environment_variables_for_reading"></a>6. ENVIRONMENT VARIABLES (FOR READING)</h2></div></div></div><p>The following environment variables are exported by cdist:</p><div class="variablelist"><dl><dt><span class="term">
|
|||
|
__explorer
|
|||
|
</span></dt><dd>
|
|||
|
Directory that contains all global explorers.
|
|||
|
Available for: initial manifest, explorer, type explorer, shell
|
|||
|
</dd><dt><span class="term">
|
|||
|
__manifest
|
|||
|
</span></dt><dd>
|
|||
|
Directory that contains the initial manifest.
|
|||
|
Available for: initial manifest, type manifest, shell
|
|||
|
</dd><dt><span class="term">
|
|||
|
__global
|
|||
|
</span></dt><dd>
|
|||
|
Directory that contains generic output like explorer.
|
|||
|
Available for: initial manifest, type manifest, type gencode, shell
|
|||
|
</dd><dt><span class="term">
|
|||
|
__messages_in
|
|||
|
</span></dt><dd>
|
|||
|
File to read messages from.
|
|||
|
Available for: initial manifest, type manifest, type gencode
|
|||
|
</dd><dt><span class="term">
|
|||
|
__messages_out
|
|||
|
</span></dt><dd>
|
|||
|
File to write messages.
|
|||
|
Available for: initial manifest, type manifest, type gencode
|
|||
|
</dd><dt><span class="term">
|
|||
|
__object
|
|||
|
</span></dt><dd>
|
|||
|
Directory that contains the current object.
|
|||
|
Available for: type manifest, type explorer, type gencode and code scripts
|
|||
|
</dd><dt><span class="term">
|
|||
|
__object_id
|
|||
|
</span></dt><dd>
|
|||
|
The type unique object id.
|
|||
|
Available for: type manifest, type explorer, type gencode and code scripts
|
|||
|
Note: The leading and the trailing "/" will always be stripped (caused by
|
|||
|
the filesystem database and ensured by the core).
|
|||
|
Note: Double slashes ("//") will not be fixed and result in an error.
|
|||
|
</dd><dt><span class="term">
|
|||
|
__object_name
|
|||
|
</span></dt><dd>
|
|||
|
The full qualified name of the current object.
|
|||
|
Available for: type manifest, type explorer, type gencode
|
|||
|
</dd><dt><span class="term">
|
|||
|
__target_host
|
|||
|
</span></dt><dd>
|
|||
|
The host we are deploying to.
|
|||
|
Available for: explorer, initial manifest, type explorer, type manifest, type gencode, shell
|
|||
|
</dd><dt><span class="term">
|
|||
|
__type
|
|||
|
</span></dt><dd>
|
|||
|
Path to the current type.
|
|||
|
Available for: type manifest, type gencode
|
|||
|
</dd><dt><span class="term">
|
|||
|
__type_explorer
|
|||
|
</span></dt><dd>
|
|||
|
Directory that contains the type explorers.
|
|||
|
Available for: type explorer
|
|||
|
</dd></dl></div></div><div class="section" title="7. ENVIRONMENT VARIABLES (FOR WRITING)"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="_environment_variables_for_writing"></a>7. ENVIRONMENT VARIABLES (FOR WRITING)</h2></div></div></div><p>The following environment variables influence the behaviour of cdist:</p><div class="variablelist"><dl><dt><span class="term">
|
|||
|
require
|
|||
|
</span></dt><dd>
|
|||
|
Setup dependencies between objects (see <a href="../man7/cdist-manifest.html">cdist-manifest(7)</a>)
|
|||
|
</dd><dt><span class="term">
|
|||
|
CDIST_LOCAL_SHELL
|
|||
|
</span></dt><dd>
|
|||
|
Use this shell locally instead of /bin/sh to execute scripts
|
|||
|
</dd><dt><span class="term">
|
|||
|
CDIST_REMOTE_SHELL
|
|||
|
</span></dt><dd>
|
|||
|
Use this shell remotely instead of /bin/sh to execute scripts
|
|||
|
</dd><dt><span class="term">
|
|||
|
CDIST_OVERRIDE
|
|||
|
</span></dt><dd>
|
|||
|
Allow overwriting type parameters (see <a href="../man7/cdist-manifest.html">cdist-manifest(7)</a>)
|
|||
|
</dd><dt><span class="term">
|
|||
|
CDIST_ORDER_DEPENDENCY
|
|||
|
</span></dt><dd>
|
|||
|
Create dependencies based on the execution order (see <a href="../man7/cdist-manifest.html">cdist-manifest(7)</a>)
|
|||
|
</dd><dt><span class="term">
|
|||
|
CDIST_REMOTE_EXEC
|
|||
|
</span></dt><dd>
|
|||
|
Use this command for remote execution (should behave like ssh)
|
|||
|
</dd><dt><span class="term">
|
|||
|
CDIST_REMOTE_COPY
|
|||
|
</span></dt><dd>
|
|||
|
Use this command for remote copy (should behave like scp)
|
|||
|
</dd></dl></div></div><div class="section" title="8. SEE ALSO"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="_see_also"></a>8. SEE ALSO</h2></div></div></div><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem">
|
|||
|
<a href="../man1/cdist.html">cdist(1)</a>
|
|||
|
</li></ul></div></div><div class="section" title="9. COPYING"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="_copying"></a>9. COPYING</h2></div></div></div><p>Copyright (C) 2011-2014 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>
|