help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

variables in repository= statement


From: Martin, Jason H
Subject: variables in repository= statement
Date: Wed, 7 Sep 2005 09:31:15 -0700

Is it intentional that variables in the 'repository' portion of a copy clause are evaulated at parse time? I've got a module that defines variables $(some_dir) and ($name). I'm noticing that this only works if I use PrepModule to run the the module at parse time, otherwise I get errors in the following form:
 
cfengine:XXXXX:/tmp/thescript.sh: userb: mkdir: Permission denied
cfengine:XXXXX:/tmp/thescript.sh: userb: Copy localhost:/$(some_dir)/.cfagent/saved_files/__tmp_dirs_userb_.cfagent_modules_module:check_cfagent_hung.cfsaved.cfnew security - failed attempt to exploit a race? (Not copied)
 
Note that the variable is spelled out verbatim, indicating that it is not defined.
 
My copy statement is:
 
   $(master_cfmodules)                dest=/$(some_dir)/.cfagent/modules
                                        r=inf
                                        mode=755
                                        owner=$(name)
                                        group=$(name)
                                        type=checksum
                                        server=$(policyhost)
                                        encrypt=true
                                        trustkey=true
                                        repository=/$(some_dir)/.cfagent/saved_files
This is on:
GNU cfengine 2.1.14
SunOS xxxx 5.9 Generic_112233-05 sun4u sparc SUNW,Sun-Blade-100
Thanks,
-Jason Martin

reply via email to

[Prev in Thread] Current Thread [Next in Thread]