| Subject: | variables in repository= statement |
|---|---|
| From: | "Martin, Jason H" |
| Date: | Wed, 7 Sep 2005 09:31:15 -0700 |
| Newsgroups: | gnu.cfengine.help |
|
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
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: another mysterious segfault, Mark Burgess |
|---|---|
| Next by Date: | Re: Possible bug: parsing/scheduling of editfiles sections in multiple cfengine scripts, Ed Brown |
| Previous by Thread: | Problems with .local in Mac OS X computer names, Ski Kacoroski |
| Next by Thread: | Confusing iterator behavior in copy: section, Chip Seraphine |
| Indexes: | [Date] [Thread] [Top] [All Lists] |