begin to create cdist-quickstart
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
31eb98f3cf
commit
998be2025b
2 changed files with 30 additions and 6 deletions
|
@ -24,17 +24,42 @@
|
||||||
. cdist-config
|
. cdist-config
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
|
banner="cdist-quickstart>"
|
||||||
|
continue="Press enter to continue or ctrl-c to abort."
|
||||||
|
|
||||||
__prompt()
|
__prompt()
|
||||||
{
|
{
|
||||||
echo "Press enter to continue or ctrl-c to abort"
|
echo -n "$banner" "$@"
|
||||||
echo "[Enter]"
|
|
||||||
read answer
|
read answer
|
||||||
}
|
}
|
||||||
|
|
||||||
cat << eof
|
cat << eof
|
||||||
|
$banner cdist version $__cdist_version
|
||||||
|
|
||||||
Welcome to cdist-quickstart, the interactive guide to cdist!
|
Welcome to the interactive guide to cdist!
|
||||||
|
This is the interactive tutorial and beginners help for cdist.
|
||||||
|
|
||||||
After you press enter, I'll create the basic directories for you.
|
|
||||||
|
|
||||||
eof
|
eof
|
||||||
|
__prompt "$continue"
|
||||||
|
|
||||||
|
cat << eof
|
||||||
|
|
||||||
|
To make any use of cdist, we need to create the configuration base, which
|
||||||
|
can normally be found below ${__cdist_conf_dir}:
|
||||||
|
|
||||||
|
${__cdist_explorer_dir}: Contains explorer, which explore the target
|
||||||
|
${__cdist_manifest_dir}: Contains manifests which define types being used
|
||||||
|
${__cdist_manifest_init}: The first manifest executed (i.e. cdist entry point)
|
||||||
|
${__cdist_type_dir}: Contains types
|
||||||
|
|
||||||
|
eof
|
||||||
|
__prompt "$continue"
|
||||||
|
|
||||||
|
set -x
|
||||||
|
mkdir ${__cdist_conf_dir}
|
||||||
|
mkdir ${__cdist_explorer_dir}
|
||||||
|
mkdir ${__cdist_manifest_dir}
|
||||||
|
touch ${__cdist_manifest_init}
|
||||||
|
mkdir ${__cdist_type_dir}
|
||||||
|
set +x
|
||||||
|
|
|
@ -36,7 +36,6 @@ esac
|
||||||
|
|
||||||
The manifest of the type "nologin" may look like this:
|
The manifest of the type "nologin" may look like this:
|
||||||
|
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
__file /etc/nologin --type file --source "$__type/files/default.nologin"
|
__file /etc/nologin --type file --source "$__type/files/default.nologin"
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
@ -46,7 +45,7 @@ SEE ALSO
|
||||||
--------
|
--------
|
||||||
cdist-manifest-run(1),
|
cdist-manifest-run(1),
|
||||||
cdist-manifest-run-all(1),
|
cdist-manifest-run-all(1),
|
||||||
cdist-manifest-run-init(1)
|
cdist-manifest-run-init(1),
|
||||||
cdist-type(7)
|
cdist-type(7)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue