forked from ungleich-public/cdist
some new ideas/comments
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
1e59e13519
commit
91f0f41845
2 changed files with 10 additions and 1 deletions
|
|
@ -20,6 +20,9 @@
|
|||
#
|
||||
# Wrapper script that generates cconfig from arguments
|
||||
#
|
||||
# This script will be called everytime the manifest decides to create
|
||||
# a new type
|
||||
#
|
||||
|
||||
|
||||
. cdist-config
|
||||
|
|
@ -40,6 +43,7 @@ ddir="${cdist_confdir}/${tid}"
|
|||
|
||||
if [ -e "${ddir}" ]; then
|
||||
# FIXME: add source! $cdist_config_base/source
|
||||
# FIXME: force $source information to be present from outside!
|
||||
__cdist_usage "${tid} already exists"
|
||||
fi
|
||||
|
||||
|
|
@ -52,6 +56,9 @@ while [ $# -gt 0 ]; do
|
|||
|
||||
opt_file="$(echo $opt | sed 's/^--//')"
|
||||
|
||||
# FIXME: check for options supported by type - or leave it to the type?
|
||||
# I guess do it here, so we also check whether
|
||||
|
||||
[ $# -ge 1 ] || __cdist_usage "Missing value for $opt"
|
||||
|
||||
value="$1"; shift
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue