[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ExecResult or Variable Expansion Problem
From: |
Baker, Darryl |
Subject: |
ExecResult or Variable Expansion Problem |
Date: |
Wed, 21 Dec 2005 11:15:26 -0500 |
Gentlefolk,
I have this problem with 2.1.17 (with the unofficial patch) on Solaris
8 & 9. In the example below $(master_binaries) expands to
/var/cfengine/master/SunOS and should (and I believe used to) expand to
/var/cfengine/master/SunOS/5.8/sparc
Excerpt from update.conf:
control:
actionsequence = ( copy.ExpireAfter3 tidy shellcommands )
domain = ( abh.vw.com )
platform = ( ExecResult(/bin/sh -c "/usr/bin/uname -srp | tr ' ' '/'") )
# Master host and directory dir for configuration roll-outs
policyhost = ( sysadm05.abh.vw.com )
master_cfinput = ( /var/cfengine/master/inputs )
master_scripts = ( /var/cfengine/master/scripts )
master_binaries = ( /var/cfengine/master/binaries/$(platform) )
<<SNIP>>
Copy:
<<SNIP>>
$(master_binaries)/cfagent dest=$(workdir)/bin/cfagent
mode=0755
backup=false
type=checksum
server=$(policyhost)
_____________________________________________________________________
Darryl Baker
Senior Unix Specialist
gedas USA, Inc.
Operational Services Business Unit
3800 Hamlin Road
Auburn Hills, MI 48326
US
phone +1-248-754-5341
fax +1-248-754-6399
Darryl.Baker@gedas.com
http://www.gedasusa.com
_____________________________________________________________________
- ExecResult or Variable Expansion Problem,
Baker, Darryl <=