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::
>
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
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.
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
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::
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