Title: Message
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
_______________________________________________
Help-cfengine mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-cfengine

Reply via email to