Re: expand_scalars and templates

2010-02-18 Thread Jesse Becker
On Thu, Feb 18, 2010 at 11:28:19AM -0500, Mark Burgess wrote: > >The example files are all in the tests/units of the source tarball But the templates (and other example "support" files) that are refered to I don't think are included. For example file ~/cfengine3/trunk/tests/units/unit_template.cf

Re: expand_scalars and templates

2010-02-18 Thread Mark Burgess
The example files are all in the tests/units of the source tarball Mark Jesse Becker wrote: > On Thu, Feb 18, 2010 at 01:14:16AM -0500, Mark Burgess wrote: >> >> Jesse, >> >> you should use the fully qualified name $(tmpl.varA) for the variables >> in the file, as >> they get processed in a diff

Re: expand_scalars and templates

2010-02-18 Thread Jesse Becker
On Thu, Feb 18, 2010 at 01:14:16AM -0500, Mark Burgess wrote: > >Jesse, > >you should use the fully qualified name $(tmpl.varA) for the variables in the >file, as >they get processed in a different bundle and are therefore not "local" This works, thanks: [r...@host tmp]# cat /tmp/template The fi

Re: expand_scalars and templates

2010-02-17 Thread Mark Burgess
Jesse, you should use the fully qualified name $(tmpl.varA) for the variables in the file, as they get processed in a different bundle and are therefore not "local" M Jesse Becker wrote: > I'm trying to get a basic templating system working for several files, > and expand_scalars doesn't seem