forked from ungleich-public/cdist
begin to write real world manifest
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
85154b87a4
commit
24d28b4a06
2 changed files with 8 additions and 15 deletions
|
@ -46,18 +46,6 @@ __cdist_abs_mydir="$(cd "$__cdist_mydir" && pwd -P)"
|
||||||
__cdist_myname=${0##*/};
|
__cdist_myname=${0##*/};
|
||||||
__cdist_abs_myname="$__cdist_abs_mydir/$__cdist_myname"
|
__cdist_abs_myname="$__cdist_abs_mydir/$__cdist_myname"
|
||||||
|
|
||||||
|
|
||||||
################################################################################
|
|
||||||
# Generate list of types
|
|
||||||
#
|
|
||||||
|
|
||||||
# FIXME: ignore error?
|
|
||||||
cd "$__cdist_type_dir"
|
|
||||||
for __cdist_type in ${__cdist_type_dir}/*; do
|
|
||||||
__cdist_types="$__cdist_types $__cdist_type"
|
|
||||||
done
|
|
||||||
cd "$__cdist_abs_mydir"
|
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# Function list
|
# Function list
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,5 +1,10 @@
|
||||||
case "$__target_hostname" in
|
#
|
||||||
thilo)
|
# This is a sample manifest, but used in real world
|
||||||
echo "postgresql"
|
#
|
||||||
|
|
||||||
|
# All ikqs get a sample file
|
||||||
|
case "$__core_hostname" in
|
||||||
|
ikq*)
|
||||||
|
__file cdist-config --source /home/users/nico/p/cdist/bin/cdist-config --destination /usr/bin/cdist-config
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Reference in a new issue