add example for singleton

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
remotes/origin/1.0
Nico Schottelius 14 years ago
parent 70485e3516
commit a67073a45b
  1. 4
      conf/manifest/init
  2. 2
      conf/type/__issue/manifest
  3. 0
      conf/type/__issue/singleton

@ -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)

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

Loading…
Cancel
Save