Hmm, I don't replicate the problem in 2.1.21:
[r...@becker tmp]# cat cf.foo
control:
actionsequence = ( directories )
voip_user = ( "foo" )
voip_group = ( "bar" )
directories:
any::
/tmp/foobarbaz
mode=0755
owner=${voip_user}
owner=${voip_group}
[r...@becker tmp]# CFINPUTS=/tmp /var/cfengine/bin/cfagent -f cf.foo -vqI
...
...
*********************************************************************
Main Tree Sched: directories pass 1 @ Tue Apr 13 10:07:44 2010
*********************************************************************
MakePath(/tmp/foobarbaz)
cfengine:becker: Unknown user bar
cfengine:becker: touching /tmp/foobarbaz
cfengine:becker: Owner of /tmp/foobarbaz was 0, setting to -1
So it looks like it's dereferencing the variable properly...
Paul Krizak 7171 Southwest Pkwy MS B200.3A
Senior Systems Engineer Austin, TX 78735
Advanced Micro Devices Desk: (512) 602-8775
Linux/Unix Systems Engineering Cell: (512) 791-0686
Global IT Infrastructure Fax: (512) 602-0468
On 04/13/10 09:46, [email protected] wrote:
> Forum: Cfengine Help
> Subject: Re: Cfengine Help: Re: Cfengine Help: Re: Cfengine Help: Possible
> bug in cfengine 2
> Author: kevinmusker
> Link to topic: https://cfengine.com/forum/read.php?3,16865,16885#msg-16885
>
> You don't actually have to define the variable, you just need to reference it
> somewhere. This is the snippet that triggered the bug in our systems.
>
>
> directories:
> freebsd.ROLE_VoIPConfigServer::
> ${apache_logs}
> mode=0775
> owner=${voip_user}
> group=${voip_group} # This is where cfagent hangs
>
>
> _______________________________________________
> Help-cfengine mailing list
> [email protected]
> https://cfengine.org/mailman/listinfo/help-cfengine
>
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine