[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Assoc array's, do the really work?
From: |
Andreas Hallmann |
Subject: |
Assoc array's, do the really work? |
Date: |
Wed, 15 Feb 2006 15:35:05 +0100 |
User-agent: |
Pan/0.14.2 (This is not a psychotic episode. It's a cleansing moment of clarity.) |
Hi all,
accessing assoc array's eats the next to chars on my system.
Am I doing something wrong or is this a bug?
using cfengine 2.1.10 and 2.1.16 Those %% in the following config file
where eaten:
-------------------------snip---------------------------
#
# NetBSD update conf
#
# main distribution is guided by files/assoc/nu/*
control:
# netbsd::
nu_fileversion = ( "# $(host) netbsd_update.conf (v6)" )
nu_arch_release = ( A(issan1,"v7/3.0") A(moshus,"v8/3.0") )
nu_kernels= ( A(issan1,netbsd-AHASS1.gz)
A(moshus,netbsd-GENERIC.gz) )
nu_sets = ( A(issan1,base.tgz comp.tgz games.tgz man.tgz
misc.tgz text.tgz xbase.tgz) A(moshus,"base.tgz comp.tgz games.tgz man.tgz
misc.tgz text.tgz xbase.tgz xcomp.tgz xetc.tgz xfont.tgz xserver.tgz") )
# anu_arch_release = $(nu_arch_release[$(host)])
# anu_kernels = $(nu_kernels[$(host)])
# anu_sets = $(nu_sets[$(host)])
# nu_sets = (
ReadArray(/var/cfengine/inputs/files/assoc/nu/nu_sets,textkey,",","#",100) )
# nu_kernels = (
ReadArray(/var/cfengine/inputs/files/assoc/nu/nu_kernels,textkey,",","#",100) )
# nu_arch_release = (
ReadArray(/var/cfengine/inputs/files/assoc/nu/nu_arch_release,textkey,",","#",100)
)
editfiles:
netbsd::
{ /etc/netbsd_update.conf
AutoCreate
BeginGroupIfNoMatch "$(nu_fileversion)"
EmptyEntireFilePlease
Append "$(nu_fileversion)"
Append "# This file is sourced by sh"
Append ""
Append "# set NU_NOUNT to to the nfs mount point on the
release server"
Append "NU_MOUNT=kukalda.ahatec.de:/export/pub"
Append ""
Append "# set NU_PATH to the path to the binary
subdirectory of the release wanted"
Append
"NU_PATH=builds/$(nu_arch_release[$(host)])%%/release/sparc/binary"
Append ""
Append "# name the kernel you want for this system in
NU_KERNEL"
Append "# Feel free to put your own creations under
$NU_MOUNT/$NU_PATH/kernel"
Append "NU_KERNEL=$(nu_kernels[$(host)])%%"
Append ""
Append ""
Append "# Release sets to be installed from
$NU_MOUNT/$NU_PATH/sets"
Append "# Have a look at /etc/mtree to see which sets are
already installed on your system."
Append 'NU_SETS="$(nu_sets[$(host)])%%"'
Append "# WARNING: specifying etc.tgz will destruct your
configuration in /etc"
EndGroup
}
copy:
netbsd::
$(files)/etc/rc.d/kernel_update dest=/etc/rc.d/kernel_update
backup=false owner=root group=wheel mode=555
$(files)/etc/rc.d/netbsd_update dest=/etc/rc.d/netbsd_update
backup=false owner=root group=wheel mode=555
--
NetBSD: If you happen to have any problem with your uptime.