cdist configuration management Latest manual: https://www.cdi.st/manual/latest/ Home page: https://www.cdi.st
Find a file
Nico Schottelius bd026bad18 define variables to be exported to types
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-17 16:42:59 +01:00
bin define variables to be exported to types 2011-02-17 16:42:59 +01:00
conf define variables to be exported to types 2011-02-17 16:42:59 +01:00
doc document new parames style 2011-02-16 23:04:16 +01:00
.gitignore add gitignore 2011-01-15 14:39:17 +01:00
HACKERS_README define variables to be exported to types 2011-02-17 16:42:59 +01:00
Makefile more hints 2011-02-04 23:33:12 +01:00
README Describe latest features 2011-02-02 21:49:01 +01:00
REAL_README cleanup 2011-02-04 23:22:01 +01:00
TODO-1.0 define variables to be exported to types 2011-02-17 16:42:59 +01:00

cat << eof

Hey hackers,

cdist has not been published, you're accessing a early in developent
code.

Do not believe anything written in cdist, besides what's written in this file
(everything else may be future stuff for the initial release).

   -- Nico, 20101201


What you can do so far: (executed from top level directory)

The following code will get executed if you run this README,
I usually do it like this:

   % rm -rf /tmp/localhost && ./HACKERS_README

eof

# Tell the user what we do, so this script makes sense during execution
set -x

# Abort on any error
set -e

# prepare use (only from top level directory)
export PATH="$PATH:$(pwd -P)/bin"
export __cdist_config="$(pwd -P)/conf"

__cdist_out_objects=/tmp/localhost/objects
__cdist_out_explorers=/tmp/localhost/explorers
__cdist_out_execs=/tmp/localhost/exec


# Run explorer on a "remote" host
cdist-explorer-run localhost "$__cdist_out_explorers"

# Display result
find "$__cdist_out_explorers"

# Test first level manifest execution
cdist-manifest-init localhost "$__cdist_out_objects"

# See what it generated
find "$__cdist_out_objects"

# Generate all objects, including from types that generate objects as well
cdist-manifest-run-all localhost "$__cdist_out_objects"

# See what it generated
find "$__cdist_out_objects"

# Generate code for all objects in object dir
cdist-object-codegen-all localhost "$__cdist_out_objects" "$__cdist_out_execs"

# Display result, including permissions
ls -lR "$__cdist_out_execs"

# Transfer generated code
cdist-exec-transfer localhost "$__cdist_out_execs"

# Execute generated code
cdist-exec-run localhost