forked from ungleich-public/cdist
dynamic load new explorers
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
25806d425e
commit
f65c78deb6
5 changed files with 39 additions and 7 deletions
|
|
@ -26,5 +26,6 @@
|
|||
: ${CDIST_LIBDIR:=$CDIST_CONFIG/lib}
|
||||
|
||||
|
||||
|
||||
#echo $CDIST_CONFIG
|
||||
#echo $CDIST_LIBDIR
|
||||
|
|
|
|||
|
|
@ -19,13 +19,16 @@
|
|||
#
|
||||
#
|
||||
|
||||
reports="hostname os"
|
||||
#reports="hostname os"
|
||||
|
||||
. cdist-config
|
||||
|
||||
for report in $reports; do
|
||||
func="cdist_explore_$report"
|
||||
var="__cdist_$report"
|
||||
cd ${CDIST_LIBDIR}
|
||||
|
||||
for func in cdist_explore_*; do
|
||||
#func="cdist_explore_$report"
|
||||
var="__$func"
|
||||
|
||||
. "${CDIST_LIBDIR}/${func}"
|
||||
eval $var=\"\$\($func\)\"
|
||||
eval echo $var=\\\"\$$var\\\"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue