Re: Dynamic build of variable names

2010-12-03 Thread Daniel Dehennin
Daniel Dehennin writes: > Hello, Hello, First huge thanks to Michael Potter who helped me open my eyes on this issue. > = promises.cf > body common control > { > bundlesequence => { "test" }; > version => "0.0.1"; > } > > bundle common hati > { > vars: > hati:: >

Re: Cfengine Help: Re: Dynamic build of variable names

2010-12-02 Thread Daniel Dehennin
no-re...@cfengine.com writes: > I've managed Bind with CF2 before. It was easiest to maintain normal > Bind files and have CF copy them out to the DNS hosts. > http://watson-wilson.ca/blog/cfcookbook.html#SECTION00013 I'm doing the same with my CF2 setup and found that duplicatin

Cfengine Help: Re: Dynamic build of variable names

2010-12-02 Thread no-reply
Forum: Cfengine Help Subject: Re: Dynamic build of variable names Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,19565,19584#msg-19584 I've managed Bind with CF2 before. It was easiest to maintain normal Bind files and have CF copy them out to the DNS hosts.

Re: Dynamic build of variable names

2010-12-02 Thread Daniel Dehennin
Michael Potter writes: > I would suggest you approach the problem this way: > > bundle common hostinfo { > > vars: > >hati:: >"ip" string => "192.168.1.2"; > >srv1:: >"ip" string => "192.168.1.3"; > } > > bundle agent test > { >classes: >"ok" e

Re: Dynamic build of variable names

2010-12-01 Thread Michael Potter
I would suggest you approach the problem this way: bundle common hostinfo { vars: hati:: "ip" string => "192.168.1.2"; srv1:: "ip" string => "192.168.1.3"; } bundle agent test { classes: "ok" expression => "any"; reports: ok::

Dynamic build of variable names

2010-12-01 Thread Daniel Dehennin
Hello, I have a common bundle per host to store per host variables like ip addresses. I would like to use $(sys.host) to reference the scope of a variable, the following does not work: = promises.cf body common control { bundlesequence => { "test" }; version => "0.0.1"; } bundle com