2011-02-14 10:16:50 +00:00
|
|
|
cat << eof
|
|
|
|
|
2010-12-01 19:06:07 +00:00
|
|
|
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
|
|
|
|
|
|
|
|
|
2011-02-03 12:24:56 +00:00
|
|
|
What you can do so far: (executed from top level directory)
|
2010-12-01 19:06:07 +00:00
|
|
|
|
2011-02-14 10:16:50 +00:00
|
|
|
The following code will get executed if you run this README:
|
|
|
|
|
|
|
|
eof
|
|
|
|
|
2011-02-16 18:45:33 +00:00
|
|
|
# Tell the user what we do, so this script makes sense during execution
|
|
|
|
set -x
|
|
|
|
|
2011-02-17 08:16:44 +00:00
|
|
|
# prepare use (only from top level directory)
|
2010-12-01 19:06:07 +00:00
|
|
|
export PATH="$PATH:$(pwd -P)/bin"
|
2011-02-17 08:16:44 +00:00
|
|
|
export __cdist_config="$(pwd -P)/conf"
|
|
|
|
|
2011-02-07 23:08:05 +00:00
|
|
|
object_tmp=/tmp/localhost/objects
|
|
|
|
explorer_tmp=/tmp/localhost/explorers
|
2011-02-16 19:24:58 +00:00
|
|
|
exec_tmp=/tmp/localhost/exec
|
2010-12-01 19:06:07 +00:00
|
|
|
|
2011-02-17 08:16:44 +00:00
|
|
|
|
2011-02-02 20:49:01 +00:00
|
|
|
# Test first level manifest execution
|
2011-02-17 08:16:44 +00:00
|
|
|
cdist-manifest-init localhost "$object_tmp"
|
2011-02-02 20:49:01 +00:00
|
|
|
|
|
|
|
# See what it generated
|
2011-02-16 19:24:58 +00:00
|
|
|
find "$object_tmp"
|
2011-02-04 21:51:16 +00:00
|
|
|
|
2011-02-16 22:08:33 +00:00
|
|
|
# Generate all objects, including from types that generate objects as well
|
2011-02-17 08:16:44 +00:00
|
|
|
cdist-manifest-recursive-all localhost "$object_tmp"
|
2011-02-16 22:08:33 +00:00
|
|
|
|
|
|
|
# See what it generated
|
|
|
|
find "$object_tmp"
|
|
|
|
|
2011-02-04 21:51:16 +00:00
|
|
|
# Run explorer on a "remote" host
|
2011-02-17 08:16:44 +00:00
|
|
|
cdist-explorer-run localhost "$explorer_tmp"
|
2011-02-04 21:51:16 +00:00
|
|
|
|
|
|
|
# Display result
|
2011-02-16 19:24:58 +00:00
|
|
|
find "$explorer_tmp"
|
|
|
|
|
|
|
|
# Generate code for all objects in object dir
|
2011-02-17 08:16:44 +00:00
|
|
|
cdist-object-codegen-all localhost "$object_tmp" "$exec_tmp"
|
2011-02-16 19:24:58 +00:00
|
|
|
|
|
|
|
# Display result
|
|
|
|
find "$exec_tmp"
|