add example for singleton

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-03-09 22:21:39 +01:00
parent 70485e3516
commit a67073a45b
3 changed files with 5 additions and 1 deletions

View file

@ -12,6 +12,7 @@ __file /etc/cdist-configured --type file
case "$__target_host" in
# Everybody has this
localhost)
# Usual example
__file test --type file --destination /tmp/cdist-testfile
;;
@ -26,6 +27,9 @@ case "$__target_host" in
# The __package type autoselect the right type based on the os
__package vim --state installed
# If the type is a singleton, it does not take an object id
__issue
;;
# This is how it would look like on gentoo
cdist-gentoo)

View file

@ -20,7 +20,7 @@
#
destination=/etc/issue
os="$(cat "out/explorer/os")"
Zs="$(cat "out/explorer/os")"
case "$os" in
archlinux)