forked from ungleich-public/cdist
module loader implemented
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
4fe315b1e4
commit
e054d0c22c
3 changed files with 35 additions and 2 deletions
|
|
@ -25,6 +25,7 @@
|
|||
: ${CDIST_COREDIR:=$CDIST_CONFIG/core}
|
||||
: ${CDIST_LIBDIR:=$CDIST_CONFIG/lib}
|
||||
: ${CDIST_HOSTS:=$CDIST_CONFIG/hosts}
|
||||
: ${CDIST_MODULES:=$CDIST_CONFIG/modules}
|
||||
|
||||
set -e
|
||||
|
||||
|
|
@ -34,6 +35,14 @@ cd "${CDIST_LIBDIR}"
|
|||
for __cdist_lib in *; do
|
||||
. "./${__cdist_lib}"
|
||||
done
|
||||
|
||||
# load modules
|
||||
cd "${CDIST_MODULES}"
|
||||
for __cdist_mod in *; do
|
||||
. "./${__cdist_mod}/manifest"
|
||||
done
|
||||
|
||||
|
||||
set +e
|
||||
|
||||
#echo $CDIST_CONFIG
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue