From ac035ba0fdeeb87fa28ea1f5e1713e9449179543 Mon Sep 17 00:00:00 2001 From: Steven Armstrong Date: Wed, 25 May 2011 20:23:53 +0200 Subject: [PATCH 1/5] add missing dependency Signed-off-by: Steven Armstrong --- conf/type/__package/manifest | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/type/__package/manifest b/conf/type/__package/manifest index 48818dd8..b331d32d 100755 --- a/conf/type/__package/manifest +++ b/conf/type/__package/manifest @@ -49,4 +49,4 @@ for property in $(ls .); do fi done -__package_$type "$@" +require="$__self" __package_$type "$@" From 2ffd5c837be3392d576a635a0abdb56bce7091a6 Mon Sep 17 00:00:00 2001 From: Steven Armstrong Date: Wed, 15 Jun 2011 16:05:13 +0200 Subject: [PATCH 2/5] __key_value: bugfix, explorer has no access to parameters created in manifest Signed-off-by: Steven Armstrong --- conf/type/__key_value/explorer/value | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/conf/type/__key_value/explorer/value b/conf/type/__key_value/explorer/value index b1d7983f..3afc7cc5 100755 --- a/conf/type/__key_value/explorer/value +++ b/conf/type/__key_value/explorer/value @@ -21,7 +21,11 @@ # Get the current value of key or __NOTSET__ if the key doesn't exist. # -key="$(cat "$__object/parameter/key")" +if [ -f "$__object/parameter/key" ]; then + key="$(cat "$__object/parameter/key")" +else + key="$__object_id" +fi file="$(cat "$__object/parameter/file")" delimiter="$(cat "$__object/parameter/delimiter")" From b7921451c2cab9d3adfe0fc72020b3cb76133757 Mon Sep 17 00:00:00 2001 From: Steven Armstrong Date: Thu, 16 Jun 2011 22:52:18 +0200 Subject: [PATCH 3/5] bugfix: properly quote value in awk script Signed-off-by: Steven Armstrong --- conf/type/__key_value/gencode-remote | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/type/__key_value/gencode-remote b/conf/type/__key_value/gencode-remote index e41cd9b5..97da7349 100755 --- a/conf/type/__key_value/gencode-remote +++ b/conf/type/__key_value/gencode-remote @@ -41,7 +41,7 @@ DONE # change value cat << DONE awk -F "$delimiter" ' -/${key}${delimiter}*/{gsub(/$value_is/, $value_should)};{print}' "$file" > "${file}+" \ +/${key}${delimiter}*/{gsub(/$value_is/, "$value_should")};{print}' "$file" > "${file}+" \ && mv "${file}+" "$file" DONE From e76b1bfe4d4c1ad00ca6a5c4a96a7126b674c2cd Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Fri, 17 Jun 2011 00:03:07 +0200 Subject: [PATCH 4/5] ++ changes for 1.7.1 Signed-off-by: Nico Schottelius --- doc/changelog | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/changelog b/doc/changelog index b599a52c..876a4f43 100644 --- a/doc/changelog +++ b/doc/changelog @@ -1,5 +1,7 @@ 1.7.1: - * Add explorers to reference documentation + * Documentation: Add explorers to reference + * Documentation: Typo cleanup (Derek Brost) + * Type __key_value: Bugfix (Steven Armstrong) 1.7.0: 2011-05-10 * Bugfix type __package_yum: Fix redhat support (Ramon Salvadó) From 8e37095bf2bc527705eccb24fafb28b80a9c9cd9 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Fri, 17 Jun 2011 14:14:32 +0200 Subject: [PATCH 5/5] global explorers, clearify wording Signed-off-by: Nico Schottelius --- doc/man/cdist-reference.text.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/man/cdist-reference.text.sh b/doc/man/cdist-reference.text.sh index c69ce977..14d5b55e 100755 --- a/doc/man/cdist-reference.text.sh +++ b/doc/man/cdist-reference.text.sh @@ -153,10 +153,11 @@ done cat << eof + ENVIRONMENT VARIABLES --------------------- __explorer:: - Directory that contains all explorers. + Directory that contains all global explorers. Available for: explorer __manifest:: Directory that contains the initial manifest.