CFEngine Help: Re: can't find the defined variable

2012-02-28 Thread no-reply
Forum: CFEngine Help Subject: Re: can't find the defined variable Author: roadtest Link to topic: https://cfengine.com/forum/read.php?3,25022,25061#msg-25061 Thanks Neil, it is the variable scope problem. I tried to define the u_policyhost in common bundle with the same error. Then I move the va

CFEngine Help: Re: can't find the defined variable

2012-02-28 Thread no-reply
Forum: CFEngine Help Subject: Re: can't find the defined variable Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,25022,25062#msg-25062 There is a paragraph or two in the reference. Classes can also be scoped local or global.

CFEngine Help: Re: Expansion overflow constructing string. Increase CF_EXPANDSIZE macro.

2012-02-28 Thread no-reply
Forum: CFEngine Help Subject: Re: Expansion overflow constructing string. Increase CF_EXPANDSIZE macro. Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,25040,25063#msg-25063 Anyone? ___ Help-cfengine mailing list Help-cfengine@

CFEngine Help: Re: Expansion overflow constructing string. Increase CF_EXPANDSIZE macro.

2012-02-28 Thread no-reply
Forum: CFEngine Help Subject: Re: Expansion overflow constructing string. Increase CF_EXPANDSIZE macro. Author: zzamboni Link to topic: https://cfengine.com/forum/read.php?3,25040,25064#msg-25064 It means you have a string that, upon variable expansion, came out to more than 8064 characters long

CFEngine Help: Re: Expansion overflow constructing string. Increase CF_EXPANDSIZE macro.

2012-02-28 Thread no-reply
Forum: CFEngine Help Subject: Re: Expansion overflow constructing string. Increase CF_EXPANDSIZE macro. Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,25040,25065#msg-25065 Perhaps but, that means that the manual is incorrect: "arg2 : Maximum number of bytes to read, in

Re: dynamic bundlesequence - Neil's example breaks if the soft class is defined within the promise file

2012-02-28 Thread Ted Zlatanov
On Fri, 24 Feb 2012 07:35:34 -0800 Aleksey Tsalolikhin wrote: AT> This site has been using CFEngine 2 for 5 years and they have a very AT> large policy set. We're talking thousands or more of little inputs files. AT> They do EVERYTHING in CFEngine. Their system architect teaches all AT> their

CFEngine Help: Re: Odd behaviour of splitstring

2012-02-28 Thread no-reply
Forum: CFEngine Help Subject: Re: Odd behaviour of splitstring Author: zzamboni Link to topic: https://cfengine.com/forum/read.php?3,25023,25067#msg-25067 Neil, Duplicate list elements are not being skipped. Already-repaired promises are being skipped. Once CFEngine has "repaired" (by printing t

vars values depending on classes

2012-02-28 Thread Denis Zinevich
Hello, I'm trying to get template file with different values for different envs. So I'm using expand_template and trying to get different values like in Neil's example (http://watson-wilson.ca/2011/05/template-files-using-cfengine.html) Piece of my conf: bundle agent jboss_install { classes:

CFEngine Help: Re: Odd behaviour of splitstring

2012-02-28 Thread no-reply
Forum: CFEngine Help Subject: Re: Odd behaviour of splitstring Author: zzamboni Link to topic: https://cfengine.com/forum/read.php?3,25023,25069#msg-25069 To verify this, you can see that the following does print all the lines, since in this case each reports: promiser is different due to the lin

CFEngine Help: Re: Odd behaviour of splitstring

2012-02-28 Thread no-reply
Forum: CFEngine Help Subject: Re: Odd behaviour of splitstring Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,25023,25070#msg-25070 The example was run with -K. Should not even the kept reports be run again? The original intent was to read line in and then using them in

CFEngine Help: Re: vars values depending on classes

2012-02-28 Thread no-reply
Forum: CFEngine Help Subject: Re: vars values depending on classes Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,25068,25071#msg-25071 http://cfengine.com/manuals/cf3-reference#policy-in-vars ___ Help-cfengine mailing list Hel

CFEngine Help: Re: vars values depending on classes

2012-02-28 Thread no-reply
Forum: CFEngine Help Subject: Re: vars values depending on classes Author: zzamboni Link to topic: https://cfengine.com/forum/read.php?3,25068,25072#msg-25072 The problem is that the "xmx" variable is being reassigned (arguably running on a machine in which both "servergroup" is defined and "defa

CFEngine Help: Re: Odd behaviour of splitstring

2012-02-28 Thread no-reply
Forum: CFEngine Help Subject: Re: Odd behaviour of splitstring Author: zzamboni Link to topic: https://cfengine.com/forum/read.php?3,25023,25073#msg-25073 I believe -K only skips the initial check (so that you can run cf-agent multiple times in quick sequence on the same policy), but does not avo

Re: dynamic bundlesequence - Neil's example breaks if the soft class is defined within the promise file

2012-02-28 Thread Brian Bennett
It's my installation. The promises are only a few MB, but our file repo is a few GB. -- Brian On Feb 28, 2012, at 6:41 AM, Ted Zlatanov wrote: > On Fri, 24 Feb 2012 07:35:34 -0800 Aleksey Tsalolikhin > wrote: > > AT> This site has been using CFEngine 2 for 5 years and they have a very > AT

Re: CFEngine Help: Re: vars values depending on classes

2012-02-28 Thread Denis Zinevich
Thanks guys, that helped. But is it normal approach ? I mean if i want to have default xmx value for all servers that i didn't mention explicitly ? 28.02.2012, 17:05, "no-re...@cfengine.com" : > Forum: CFEngine Help > Subject: Re: vars values depending on classes > Author: zzamboni > Link to top

CFEngine Help: Re: Odd behaviour of splitstring

2012-02-28 Thread no-reply
Forum: CFEngine Help Subject: Re: Odd behaviour of splitstring Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,25023,25074#msg-25074 Agreed. Still wishing for the data dumper. Makes this type of thing less confusing. ___ Help

CFEngine Help: Re: vars values depending on classes

2012-02-28 Thread no-reply
Forum: CFEngine Help Subject: Re: vars values depending on classes Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,25068,25077#msg-25077 Not unusual. Typically I list the default value first and then the override exceptions follow. any:: "x" int => "1" policy => "free;

CFEngine Help: Re: CFEngine Help: multihomed cf-serverd and ipv6

2012-02-28 Thread no-reply
Forum: CFEngine Help Subject: Re: CFEngine Help: multihomed cf-serverd and ipv6 Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,25049,25080#msg-25080 I think that the problem is here. For some reason the server does not know what user the remote agent is running as. cf3

CFEngine Help: issue with the cfengine website

2012-02-28 Thread no-reply
Forum: CFEngine Help Subject: issue with the cfengine website Author: jonesy1234 Link to topic: https://cfengine.com/forum/read.php?3,25081,25081#msg-25081 All, I'm having major issue with the website over the last few days since the new layout of documentation went in. Trying to access the refe