cdist-backup/HACKERS_README
Nico Schottelius cae8f31923 cleanups
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-17 16:13:35 +01:00

64 lines
1.5 KiB
Text
Executable file

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
# And abort on any error
set -ex
# prepare use (only from top level directory)
export PATH="$PATH:$(pwd -P)/bin"
export __cdist_config="$(pwd -P)/conf"
object_tmp=/tmp/localhost/objects
explorer_tmp=/tmp/localhost/explorers
exec_tmp=/tmp/localhost/exec
# Test first level manifest execution
cdist-manifest-init localhost "$object_tmp"
# See what it generated
find "$object_tmp"
# Generate all objects, including from types that generate objects as well
cdist-manifest-run-all localhost "$object_tmp"
# See what it generated
find "$object_tmp"
# Run explorer on a "remote" host
cdist-explorer-run localhost "$explorer_tmp"
# Display result
find "$explorer_tmp"
# Generate code for all objects in object dir
cdist-object-codegen-all localhost "$object_tmp" "$exec_tmp"
# Display result, including permissions
ls -lR "$exec_tmp"
# Transfer generated code
cdist-exec-transfer localhost "$exec_tmp"
# Execute generated code
cdist-exec-run localhost