From a67073a45bac6de17e36765815b2adb26ab60989 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Wed, 9 Mar 2011 22:21:39 +0100 Subject: [PATCH] add example for singleton Signed-off-by: Nico Schottelius --- conf/manifest/init | 4 ++++ conf/type/__issue/manifest | 2 +- conf/type/__issue/{only_once => singleton} | 0 3 files changed, 5 insertions(+), 1 deletion(-) rename conf/type/__issue/{only_once => singleton} (100%) diff --git a/conf/manifest/init b/conf/manifest/init index ab366540..8a2428ce 100755 --- a/conf/manifest/init +++ b/conf/manifest/init @@ -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) diff --git a/conf/type/__issue/manifest b/conf/type/__issue/manifest index a79544ee..3f741e89 100755 --- a/conf/type/__issue/manifest +++ b/conf/type/__issue/manifest @@ -20,7 +20,7 @@ # destination=/etc/issue -os="$(cat "out/explorer/os")" +Zs="$(cat "out/explorer/os")" case "$os" in archlinux) diff --git a/conf/type/__issue/only_once b/conf/type/__issue/singleton similarity index 100% rename from conf/type/__issue/only_once rename to conf/type/__issue/singleton