Browse Source

add --shell to __cdist

Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2.3
Nico Schottelius 9 years ago
parent
commit
6af7eadc89
  1. 10
      cdist/conf/type/__cdist/manifest
  2. 1
      cdist/conf/type/__cdist/parameter/optional

10
cdist/conf/type/__cdist/manifest vendored

@ -21,6 +21,12 @@
directory="$__object_id"
if [ -f "$__object/parameter/shell" ]; then
shell="--shell $(cat "$__object/parameter/shell")"
else
shell=""
fi
if [ -f "$__object/parameter/username" ]; then
username="$(cat "$__object/parameter/username")"
else
@ -43,9 +49,9 @@ fi
# out of it
home=/home/$username
__user "$username" --home "$home"
__user "$username" --home "$home" $shell
require="__username/$user" __directory "$home"
require="__user/$username" __directory "$home" \
--owner "$username"
require="__user/$username __directory/$home" __git "$directory" \

1
cdist/conf/type/__cdist/parameter/optional vendored

@ -1,3 +1,4 @@
branch
source
username
shell

Loading…
Cancel
Save