Hi guys,
Trying to implement templated keepalived configuration, I've found
that it is impossible to iterate over a list in an array element. The
following example
vars:
"ip[R1]" ilist => { "1", "2", "3" };
"ip[R2]" ilist => { "4", "5", "6" };
"r_id"string => "R1";
reports:
Hi,
As far as I know, Cfengine does not treat bracket-named expressions as
anything else than any other scalar/list.
I.e. writing
"ip[R1]" ilist => { "1", "2", "3" };
has no different meaning than
"abc" ilist => { "1", "2", "3" };
--
Regards,
Eystein
On Wed, Apr 7, 2010 at 10:31 AM, Сева
Forum: Cfengine Help
Subject: Re: is it possible to combine arrays and lists?
Author: Seva Gluschenko
Link to topic: https://cfengine.com/forum/read.php?3,16807,16809#msg-16809
For unknown reason my reply by e-mail didn't appear here, so I copy it.
Apologies for occasional duplicates if any.
The
Forum: Cfengine Help
Subject: Re: --no-lock for cf-runagent?
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,16804,16810#msg-16810
I think you mean to pass -K to cf-agent. The runagent allows this through the
-o option. cf-runagent -o -K
___
Forum: Cfengine Help
Subject: Re: Setting a variable conditionally, depending on a class?
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,16796,16811#msg-16811
Alas these examples are so contrived, to me, that I have difficulty following
them. I would be remiss if I did
Forum: Cfengine Help
Subject: Re: is it possible to combine arrays and lists?
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,16807,16812#msg-16812
Just a warning that I don't think that Cfengine's basic arrays and list
iteration were ever meant to offer complex looping s
On Wed, Apr 07, 2010 at 08:07:51AM -0400, fo...@cfengine.com wrote:
>Forum: Cfengine Help
>Subject: Re: Setting a variable conditionally, depending on a class?
>Author: neilhwatson
>Link to topic: https://cfengine.com/forum/read.php?3,16796,16811#msg-16811
>
>Alas these examples are so contrived, t
Forum: Cfengine Help
Subject: Re: How to remove clients from cfengine 3 reports?
Author: sigbjornl
Link to topic: https://cfengine.com/forum/read.php?3,16582,16814#msg-16814
Hi,
I am seing the same issue with CFengine 2.2.10. Is this a common issue in
version 2 as well?
Regards,
Sigbjorn
Forum: Cfengine Help
Subject: Re: is it possible to combine arrays and lists?
Author: Seva Gluschenko
Link to topic: https://cfengine.com/forum/read.php?3,16807,16815#msg-16815
Neil, here is the almost real keepalived.conf (just IPs, names, and passwords
were changed):
! Configuration File for
On Tue, Apr 06, 2010 at 09:18:03AM -0400, fo...@cfengine.com wrote:
>Forum: Cfengine Help
>Subject: The question about automake
>Author: neilhwatson
>Link to topic: https://cfengine.com/forum/read.php?3,16783,16783#msg-16783
>
>Greetings,
>
>Why is it that sometimes the source code will demand auto
Forum: Cfengine Help
Subject: Re: Cfengine Help: Remote file comparison (md5)
Author: pieterb
Link to topic: https://cfengine.com/forum/read.php?3,16772,16817#msg-16817
Alright, even when using preserve=no, cfengine still seems to be checking the
permissions. How can I turn off this checking alto
Forum: Cfengine Help
Subject: Re: is it possible to combine arrays and lists?
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,16807,16818#msg-16818
I don't have your hours of head banging practice so bear with me if I suggest
anything ignorant.
Have you though about usin
Forum: Cfengine Help
Subject: Re: Cfengine Help: The question about automake
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,16816,16819#msg-16819
For me automake -a -c returns an error:
$ aclocal
$ automake -a -c
src/Makefile.am:8: Libtool library used but `LIBTOOL' is un
fo...@cfengine.com wrote:
> Forum: Cfengine Help
> Subject: Re: Cfengine Help: The question about automake
> Author: neilhwatson
> Link to topic: https://cfengine.com/forum/read.php?3,16816,16819#msg-16819
>
> For me automake -a -c returns an error:
> $ aclocal
> $ automake -a -c
> src/Makefile.am:
Forum: Cfengine Help
Subject: Re: Cfengine Help: The question about automake
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,16816,16821#msg-16821
automake returns an error for me.
$ automake --add-missing
src/Makefile.am:8: Libtool library used but `LIBTOOL' is undefined
Forum: Cfengine Help
Subject: Re: is it possible to combine arrays and lists?
Author: Seva Gluschenko
Link to topic: https://cfengine.com/forum/read.php?3,16807,16822#msg-16822
Neil,
Just to let you know: here is the cut-off from the template approach result:
virtual_ipaddress {
172.
Forum: Cfengine Help
Subject: Re: is it possible to combine arrays and lists?
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,16807,16823#msg-16823
Seva Gluschenko Wrote:
> As you can see, string lists and arrays aren't
> expanded at all. I thought professionals don't
> gi
Forum: Cfengine Help
Subject: Re: is it possible to combine arrays and lists?
Author: Seva Gluschenko
Link to topic: https://cfengine.com/forum/read.php?3,16807,16824#msg-16824
Neil,
Examples are always good until they have to deal with the real world scenario.
As soon as one ends up with a lot
On Wed, Apr 07, 2010 at 10:19:51AM -0400, Becker, Jesse (NIH/NHGRI) [C] wrote:
>I'm also on a Centos5 system, with the same problem. It ships with
>automake 1.9.6, and autoconf 2.59.
>
>This incantation works well for me (so far), and implies that there is
>*NOT* a requirement for automake 1.10.:
Forum: Cfengine Help
Subject: Re: is it possible to combine arrays and lists?
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,16807,16825#msg-16825
I was offering an alternative. I never claimed what I offered was better; just
different. You asked for advice on a templa
Forum: Cfengine Help
Subject: Re: The question about automake
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,16783,16827#msg-16827
Eystein,
The make dist work around does work meaning I only have to install an extra
autoconf and automake on one host. Thanks.
Forum: Cfengine Help
Subject: Re: is it possible to combine arrays and lists?
Author: Seva Gluschenko
Link to topic: https://cfengine.com/forum/read.php?3,16807,16828#msg-16828
Well, thank you for a different view. It may really help somebody with his
exercices. The key point that I'm trying to h
Forum: Cfengine Help
Subject: restarting multiple processes
Author: kolakkar
Link to topic: https://cfengine.com/forum/read.php?3,16829,16829#msg-16829
Hey guys,
I am trying to figure out if I can start a process and its dependencies while
restarting a process using cfengine. I am unable to figu
23 matches
Mail list logo