From f461a5073cd60168a0ea2688ca6df5dd0b5fb0fb Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Fri, 14 Feb 2014 20:44:51 +0100 Subject: [PATCH 1/2] pass owner/group/mode to __directory as well Signed-off-by: Nico Schottelius --- cdist/conf/type/__git/manifest | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cdist/conf/type/__git/manifest b/cdist/conf/type/__git/manifest index 7f6fee84..b2b0feb0 100644 --- a/cdist/conf/type/__git/manifest +++ b/cdist/conf/type/__git/manifest @@ -24,6 +24,9 @@ __package git --state present state_should="$(cat "$__object/parameter/state")" +owner="$(cat "$__object/parameter/owner")" +group="$(cat "$__object/parameter/group")" +mode="$(cat "$__object/parameter/mode")" # Let __directory handle removal of git repos @@ -33,7 +36,10 @@ case "$state_should" in ;; absent) - __directory "$__object_id" --state absent + __directory "$__object_id" --state absent \ + --owner "$owner" \ + --group "$group" \ + --mode "$mode" ;; *) From 1cdcb12ebd535175639f71705b4b2704cf879069 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Fri, 14 Feb 2014 20:51:20 +0100 Subject: [PATCH 2/2] ++changes Signed-off-by: Nico Schottelius --- docs/changelog | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/changelog b/docs/changelog index e8f98c01..49a0a3c3 100644 --- a/docs/changelog +++ b/docs/changelog @@ -5,6 +5,9 @@ Changelog * Exception: No braces means author == Nico Schottelius +3.0.10: + * Type __git: Pass onwer/group/mode values to __directory + 3.0.9: 2014-02-14 * Core: Ignore order dependencies if override is set (Daniel Heule) * Core: Improve Mac OS X support for unit tests (Steven Armstrong)