Re: appending a slist

2009-12-02 Thread Nicolas Charles
Is there a way to define an empty list ? I tried with the following code, and "ltwo" isn't expanded body common control { bundlesequence => { "test" }; } bundle common g { classes: "all" expression => "any"; } bundle agent test { vars: sunos_5_10:: "lone" slist =>

Re: appending a slist

2009-12-02 Thread Mark Burgess
Oh, I see. You are thinking too procedurally. Your statement is not convergent, so it is rejected by cfengine. There is no convergent solution for "x" in your statement. nwat...@symcor.com wrote: > Mark Burgess wrote on 2009-12-02 00:21:41: > >> Exactly as you did. It works for me. > > What I

Re: appending a slist

2009-12-02 Thread NWatson
Mark Burgess wrote on 2009-12-02 00:21:41: > > Exactly as you did. It works for me. What I did I would consider concatenating lists. I was hoping to append as in: vars: any:: "x" slist => { "one", "two", "three" }; redhat:: "x" slist => { "@{x}",

Re: appending a slist

2009-12-01 Thread Mark Burgess
Exactly as you did. It works for me. nwat...@symcor.com wrote: > Mark Burgess wrote on 2009-12-01 15:46:59: > >> If the symbol is not defined, it cannot be expanded > > Is there a way to append an existing list? > > Sincerely, > -- > Neil Watson > 416-673-3465 > > > > -

Re: appending a slist

2009-12-01 Thread NWatson
Mark Burgess wrote on 2009-12-01 15:46:59: > > If the symbol is not defined, it cannot be expanded Is there a way to append an existing list? Sincerely, -- Neil Watson 416-673-3465 CONFIDENTIALITY WARNING This communication, including any attachments, is for the exclusive use of addressee

Re: appending a slist

2009-12-01 Thread Mark Burgess
If the symbol is not defined, it cannot be expanded nwat...@symcor.com wrote: > Consider this example. > > body common control { > bundlesequence => { "test" }; > } > > bundle common g { > classes: > > "all" expression => "any"; > } > > bundle agent test { > > vars: > >

Re: appending a slist

2009-12-01 Thread NWatson
Consider this example. body common control { bundlesequence => { "test" }; } bundle common g { classes: "all" expression => "any"; } bundle agent test { vars: sunos_5_10:: "ltwo" slist => { "three", "four", "five" }; redhat:: "lone"

appending a slist

2009-12-01 Thread NWatson
In trying to make my policy more modular and easier to make changes I've developed what you see below (might be helpful to others). This nice thing about this is that adding or changing files can all be done in vars without having to touch the actual promise.The one problem is handling the