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: Standard library on cfengine.com

2010-02-18 Thread Mark Burgess
Ah yes, this is a new feature that will be in 3.0.3. I see that we will need to archive off versions that work with releases going back in time. Thanks for pointing this out. M Jesse Becker wrote: > Actually, I get syntax errors as well using 3.0.3 and whatever version > of stdlib is posted ri

Re: Standard library on cfengine.com

2010-02-18 Thread Jesse Becker
Actually, I get syntax errors as well using 3.0.3 and whatever version of stdlib is posted right now: cf3:/var/cfengine/inputs/cfengine_stdlib.cf:1075,28: Constraint lvalue track_growing_file is not allowed in 'match_value' constraint body, near token 'true"' This corresponds to the body: #

Re: Good organizational practices

2010-02-18 Thread Paul Krizak
Our filesystem layout (albeit on cf2, so no "bundles" or anything...) ./cf.strategies - pseudo-random class definitions ./cf.classes - global classes ./cf.control - global macros and settings .//cf.siteclasses - site-specific classes .//cf.sitecontrol - site-specific macros and settings ./cfagent.

Re: Good organizational practices

2010-02-18 Thread NWatson
globals.cf promises.cf (contains agent configs) classes.cf (setting global classes). cf-serverd.cf (also contains runagent) cf-execd.cf update.cf failsafe.cf library.cf (custom resusable bundles and bodies) Then I break things down based on what the policy does for example. hardening.cf for misc h

Re: referencing a slist within a slist array?

2010-02-18 Thread Mark Burgess
This bug was located (after a rather long and subtle detection process(!)) and is fixed in svn 815, I hope! M Lebel, Marco wrote: > Hello all, > > > > I have the following : > > > > bundle agent master > > { > >vars: > >"info_provider[gatherer1]" slist => { "provider1", "pr

Re: Standard library on cfengine.com

2010-02-18 Thread Mark Burgess
We created it for use with 3.0.3, but you can try deleting stuff that gives you errors until it compiles. Mark Nelson wrote: > Hello > > Do you have a version available for 3.0.2 as I am not in the positiobn to > upgrade at this point in time. > > Mark. > >> You'll need to say what the syntax

Re: Standard library on cfengine.com

2010-02-18 Thread Mark Nelson
Hello Do you have a version available for 3.0.2 as I am not in the positiobn to upgrade at this point in time. Mark. > > You'll need to say what the syntax errors were. More likely it is your > version of cfengine > that is old, if we have added things that are in 3.0.3 > > Mark Nelson wrote: >>

Re: Standard library on cfengine.com

2010-02-18 Thread Mark Burgess
You'll need to say what the syntax errors were. More likely it is your version of cfengine that is old, if we have added things that are in 3.0.3 Mark Nelson wrote: > Hello > > I've downloaded the standard library on cfengine.com, however the appears > to be several syntax errors in it when ran

Standard library on cfengine.com

2010-02-18 Thread Mark Nelson
Hello I've downloaded the standard library on cfengine.com, however the appears to be several syntax errors in it when ran against cfengine 3.0.2. Is there an updated version of the library available? Thanks Mark. ___ Help-cfengine mailing list Help