Re: module context for variables

2011-03-09 Thread Ted Zlatanov
On Tue, 08 Mar 2011 16:26:47 +0100 Mikhail Gusarov wrote: MG> On 07.03.2011 18:33, Mikhail Gusarov wrote: >> Ted, >> >> > As a suggestion, could the module execution take a >>> "namespace" string parameter so this is not an issue? And could the >>> module namespace be converted to a legal name

Re: module context for variables

2011-03-08 Thread Mikhail Gusarov
On 07.03.2011 18:33, Mikhail Gusarov wrote: > Ted, > > > As a suggestion, could the module execution take a >> "namespace" string parameter so this is not an issue? And could the >> module namespace be converted to a legal namespace without "." or any >> other illegal characters? > > Filed as bugs

Re: module context for variables

2011-03-07 Thread Mikhail Gusarov
Ted, > As a suggestion, could the module execution take a > "namespace" string parameter so this is not an issue? And could the > module namespace be converted to a legal namespace without "." or any > other illegal characters? Filed as bugs https://cfengine.com/bugtracker/view.php?id=511 and

Re: module context for variables

2011-02-23 Thread Ted Zlatanov
(oh, top-quoting...) I did; the examples work when the module has no "." in the name. IOW this: "$(g.myroot)/pup" args => "--cfmodule -db server_machines.txt", module => "true", contain => in_dir($(g.myroot)); works: I can reference $(pup.dns_domain) But this: "$(g.myroot)/pup.pl" args =

Re: module context for variables

2011-02-22 Thread Mark Burgess
Check out tests/units/unit_module* in the source code. On 02/23/2011 01:53 AM, Ted Zlatanov wrote: > I'm evaluating the community edition: > community> Cfengine - 3.1.4 Copyright (C) Cfengine AS 2008,2010- > > I have a module that defines a variable: > community> Defined variable: dns_domain in

module context for variables

2011-02-22 Thread Ted Zlatanov
I'm evaluating the community edition: community> Cfengine - 3.1.4 Copyright (C) Cfengine AS 2008,2010- I have a module that defines a variable: community> Defined variable: dns_domain in context pup.pl with value: lifelogs.com But I can't access it later. Here's the config file I ran directly w