From ef761b73df0cbafd6fdc039b427aae9815181283 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Wed, 9 Mar 2011 09:34:53 +0100 Subject: [PATCH] finish first version of cdist-reference Signed-off-by: Nico Schottelius --- Makefile | 1 + doc/man/cdist-reference.text | 131 ++++++++++++ .../to_check/cdist-environment-variables.text | 191 ------------------ 3 files changed, 132 insertions(+), 191 deletions(-) create mode 100644 doc/man/cdist-reference.text delete mode 100644 doc/man/to_check/cdist-environment-variables.text diff --git a/Makefile b/Makefile index 6a880c48..689b4a5a 100644 --- a/Makefile +++ b/Makefile @@ -22,6 +22,7 @@ MANSRC=$(MANDIR)/cdist.text \ $(MANDIR)/cdist-bin-transfer.text \ $(MANDIR)/cdist-deploy-to.text \ $(MANDIR)/cdist-manifest.text \ + $(MANDIR)/cdist-reference.text \ $(MANDIR)/cdist-stages.text \ $(MANDIR)/cdist-type.text \ $(MANDIR)/cdist-type-template.text \ diff --git a/doc/man/cdist-reference.text b/doc/man/cdist-reference.text new file mode 100644 index 00000000..72ee4f48 --- /dev/null +++ b/doc/man/cdist-reference.text @@ -0,0 +1,131 @@ +cdist-reference(7) +================== +Nico Schottelius + +NAME +---- +cdist-reference - Variable, path and type reference + + +DESCRIPTION +----------- +Various scripts which are not in the core need information on how +to find information. This manpage summarises the available environment +variables and paths and clearifies with part may access with variables. + + +PATHS +----- +If not specified otherwise, all paths are relative to the checkout directory. + +conf/:: + Contains the (static) configuration like manifests, types and explorers. + +conf/manifest/init:: + This is the central entry point used by cdist-manifest-init(1). + 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. + + It should be primary used to define mapping from configurations to hosts. + +conf/manifest/*:: + All other files in this directory are not directly used by Cdist, but you + can seperate configuration mappings, if you have a lot of code in the + manifest/init file. This may also be very helpful to have different admins + maintain different groups of hosts. + +conf/explorer/: + Contains explorers to be run on the target hosts, see cdist-explorer(7). + +conf/type/: + Contains all available types, which are used to provide + some kind of functionality. See cdist-type(7). + +conf/type//:: + Home of the type . + + This directory is referenced by the variable __type (see below). + +conf/type//manifest:: + Used to generate additional objects from a type. + +conf/type//gencode:: + Used to generate code to be executed on the client. + +conf/type//parameters/required:: + Parameters required by type, \n seperated list. + +conf/type//parameters/optional:: + Parameters optionally accepted by type, \n seperated list. + +conf/type//explorer:: + Location of the type specific explorers. + + This directory is referenced by the variable __type_explorer (see below). + + See cdist-explorer(7). + +out/: + 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). + +out/explorer:: + Output of general explorers. + +out/object:: + Objects created for the host. + +out/object/:: + Contains all object specific information. + + This directory is referenced by the variable __object (see below). + +out/object//explorers:: + Output of type specific explorers, per object. + +tmp_dir: Temporary storage: + A tempdir and a tempfile is used by cdist internally, + which will be removed when the scripts end automatically. + See cdist-config(1). + + +VARIABLES +--------- +__explorer:: + Directory that contains all explorers + Available for: explorer +__manifest:: + Directory that contains the initial manifest + Available for: initial manifest +__global:: + Directory that contains generic output like explorer + Available for: initial manifest, type manifest, type explorer, type codegen +__object:: + Directory that contains the current object + Available for: type manifest, type explorer, type codegen +__object_id:: + The type unique object id + Available for: type manifest, type explorer, type codegen +__target_host:: + The host we are deploying to. + Available for: initial manifest, type manifest, type codegen +__type:: + Path to the current type + Available for: type manifest +__type_explorers:: + Directory that contains the type explorers + Available for: type explorer + + +SEE ALSO +-------- +- cdist(7) + + +COPYING +------- +Copyright \(C) 2011 Nico Schottelius. Free use of this software is +granted under the terms of the GNU General Public License version 3 (GPLv3). diff --git a/doc/man/to_check/cdist-environment-variables.text b/doc/man/to_check/cdist-environment-variables.text deleted file mode 100644 index f39366f0..00000000 --- a/doc/man/to_check/cdist-environment-variables.text +++ /dev/null @@ -1,191 +0,0 @@ -cdist-reference(7) -================== -Nico Schottelius - -NAME ----- -cdist-reference - Variables, paths and types offered by cdist - - -DESCRIPTION ------------ -Various scripts which are not in the core need information on how -to find information. This manpage summarises the available environment -variables and clearifies with part may access with variables. - -PATHS ------ - - --------------------------------------------------------------------------------- -cdist-config-layout(7) -====================== -Nico Schottelius - - -NAME ----- -cdist-config-layout - Usage of paths in cdist - - -DESCRIPTION ------------ -If not specified otherwise, all paths are relative to the configuration -directory, which is normally /etc/cdist (but can be changed using environment -variables, see cdist-environment(7)). - -- conf_dir/: - Contains the (static) configuration like manifests, types and - explorers. - -- conf_dir/manifest/init: - This is the central entry point used by cdist-manifest-init(1). - 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. - - It should be primary used to define mapping from configurations to hosts. - -- conf_dir/manifest/*: - All other files in this directory are not directly used by Cdist, but you - can seperate configuration mappings, if you have a lot of code in the - manifest/init file. This may also be very helpful to have different admins - maintain different groups of hosts. - -- conf_dir/explorer/ - Contains explorers to be run on the target hosts, see cdist-explorers(7). - -- conf_dir/type/ - Contains all available types, which are used to provide - some kind of functionality. See cdist-stages(7). - -- conf_dir/type//manifest: - Used to generate additional objects from a type. - See cdist-stages(7), cdist-types(7). - -- conf_dir/type//gencode: - Used to generate code to be executed on the client. - See cdist-types(7). - -- conf_dir/type//parameters/required: - Parameters required by type, \n seperated list. - See cdist-types(7). - -- conf_dir/type//parameters/optional: - Parameters optionally accepted by type, \n seperated list. - See cdist-types(7). - -- conf_dir/type//explorer: - Location of the type specific explorers. - See cdist-explorers(7). - -- out_dir/ - This directory contains output of cdist and is mirrored into the - cache after a successful run. This directory may be placed below - the tmpdir or at any other location and is also available on the - target. - -- out_dir/explorer: - Output of general explorers. - -- out_dir/object: - Objects created for the host. - -- out_dir/object//explorers: - Output of type specific explorers, per object. - -- tmp_dir: Temporary storage - A tempdir and a tempfile is provided by cdist-config(1), which - will be removed when the scripts ends automatically. - - -FUTURE ------- -The following functionality may be implemented in one of the next releases: - -- cache_dir/ - The cache contains the out_dir from previous runs, which - may also be used in types to gather information about other hosts - (like ssh-keys). - -- cache_dir/host/: - Contains the last out_dir of the specific host. - - -AUTHOR ------- -Nico Schottelius - - -RESOURCES ---------- -Main web site: http://www.nico.schottelius.org/cdist/[] - - -COPYING -------- -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). --------------------------------------------------------------------------------- - - - -VARIABLES ---------- -__explorer:: - Directory that contains all explorers -__manifest:: - Directory that contains the initial manifest -__global:: - Directory that contains generic output like explorer -__object:: - Directory that contains the current object -__object_id:: - The type unique object id -__type_explorers:: - Directory that contains the type explorers - - -EXPLORER --------- -- __explorer - - -INITIAL MANIFEST ----------------- -- __manifest -- __global - - -TYPE MANIFEST -------------- -- __object -- __object_id -- __global - - -TYPE EXPLORER -------------- -- __object -- __object_id -- __type_explorers -- __global - - -TYPE CODEGEN ------------- -- __object -- __object_id -- __global - - - -SEE ALSO --------- -- cdist(7) - - -COPYING -------- -Copyright \(C) 2011 Nico Schottelius. Free use of this software is -granted under the terms of the GNU General Public License version 3 (GPLv3).