forked from ungleich-public/cdist
more examples, document dependencies
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
756226f153
commit
d4d2f47b60
2 changed files with 30 additions and 2 deletions
|
@ -12,9 +12,15 @@ __file /etc/cdist-configured
|
||||||
case "$__target_host" in
|
case "$__target_host" in
|
||||||
# Everybody has this
|
# Everybody has this
|
||||||
localhost)
|
localhost)
|
||||||
require="__file/etc/cdist-configured" __link /tmp/cdist-testfile --source /etc/cdist-configured --type symbolic
|
require="__file/etc/cdist-configured" __link /tmp/cdist-testfile \
|
||||||
require="__directory/tmp/cdist-test-dir" __file /tmp/cdist-test-dir/test-file --mode 0750 --owner nobody --group root
|
--source /etc/cdist-configured --type symbolic
|
||||||
|
require="__directory/tmp/cdist-test-dir" __file /tmp/cdist-test-dir/test-file \
|
||||||
|
--mode 0750 --owner nobody --group root
|
||||||
__directory /tmp/cdist-test-dir --mode 4777
|
__directory /tmp/cdist-test-dir --mode 4777
|
||||||
|
|
||||||
|
require="__file/etc/cdist-configured __link/tmp/cdist-testfile" \
|
||||||
|
__file /tmp/cdist-another-testfile
|
||||||
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
|
@ -40,6 +40,28 @@ 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"
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
DEPENDENCIES
|
||||||
|
------------
|
||||||
|
If you want to describe that something requires something else, just
|
||||||
|
setup the variable "require" to contain the requirements. Multiple
|
||||||
|
requirements can be added white space seperated.
|
||||||
|
|
||||||
|
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
# No dependency
|
||||||
|
__file /etc/cdist-configured
|
||||||
|
|
||||||
|
# Require above object
|
||||||
|
require="__file/etc/cdist-configured" __link /tmp/cdist-testfile \
|
||||||
|
--source /etc/cdist-configured --type symbolic
|
||||||
|
|
||||||
|
# Require two objects
|
||||||
|
require="__file/etc/cdist-configured __link/tmp/cdist-testfile" \
|
||||||
|
__file /tmp/cdist-another-testfile
|
||||||
|
|
||||||
|
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
SEE ALSO
|
SEE ALSO
|
||||||
--------
|
--------
|
||||||
|
|
Loading…
Reference in a new issue