package_list_update_ifelapsed

2010-06-07 Thread Vasiliy G Tolstov
What format has package_list_update_ifelapsed? Does it need commas ("") ? body package_method generic { package_list_update_ifelapsed => 240; ... ... } Produce following error: CheckParseInt(package_list_update_ifelapsed => 240/) SplitString([],,=44) Check ListLen Fatal cfengine

Re: package_list_update_ifelapsed

2010-06-07 Thread Seva Gluschenko
Vasily, in general, every parameter except nested calls (functions, compound bodies, or edit_line bundles) must be enquoted (""). body package_method generic { package_list_update_ifelapsed => "240"; ... } 2010/6/7 Vasiliy G Tolstov : > What format has package_list_update_ifelapsed? Does

Re: package_list_update_ifelapsed

2010-06-07 Thread Vasiliy G Tolstov
В Пнд, 07/06/2010 в 13:57 +0400, Seva Gluschenko пишет: > Vasily, > > in general, every parameter except nested calls (functions, compound > bodies, or edit_line bundles) must be enquoted (""). > > body package_method generic { >package_list_update_ifelapsed => "240"; > >... > } I'm as

Re: package_list_update_ifelapsed

2010-06-07 Thread Seva Gluschenko
Well, it might mean that package_list_update_command haven't been defined, or this parameter is restricted to certain package managers list, or you've faced a bug. Cfengine developers must know better ) 2010/6/7 Vasiliy G Tolstov : > В Пнд, 07/06/2010 в 13:57 +0400, Seva Gluschenko пишет: >> Vasil

Re: package_list_update_ifelapsed

2010-06-07 Thread Vasiliy G Tolstov
В Пнд, 07/06/2010 в 14:19 +0400, Seva Gluschenko пишет: > Well, it might mean that package_list_update_command haven't been > defined, or this parameter is restricted to certain package managers > list, or you've faced a bug. Cfengine developers must know better ) Hm... Can anyone from developers

Re: package_list_update_ifelapsed

2010-06-07 Thread Mark Burgess
I don't get any errors if I write: package_list_update_ifelapsed => "240";# 4 hours Check that there is no binary weirdness in your input file? Also check that you have PCRE and it is built with bison/flex. I have seen odd things happen with legacy tools. On 06/07/2010 01:44

Re: package_list_update_ifelapsed

2010-06-07 Thread Nakarin Phooripoom
I got an error on 3.0.4p2, but it seemed fine when I upgraded to 3.0.5a2. Cheers, --Nakarin On Jun 7, 2010, at 2:23 PM, Mark Burgess wrote: > > I don't get any errors if I write: > > package_list_update_ifelapsed => "240"; # 4 hours > > Check that there is no binary weirdness in

Re: package_list_update_ifelapsed

2010-06-07 Thread Vasiliy G Tolstov
В Пнд, 07/06/2010 в 14:23 +0200, Mark Burgess пишет: > I don't get any errors if I write: > > package_list_update_ifelapsed => "240"; # 4 hours > > Check that there is no binary weirdness in your input file? Also check that > you have PCRE > and it is built cf3 > Parsing file /v

Re: package_list_update_ifelapsed

2010-06-07 Thread Vasiliy G Tolstov
В Пнд, 07/06/2010 в 14:33 +0200, Nakarin Phooripoom пишет: > I got an error on 3.0.4p2, but it seemed fine when I upgraded to 3.0.5a2. > > Cheers, > --Nakarin I'm use 3.0.4... When 3.0.5 get officially available on the myspace cfengine.org site? -- Vasiliy G Tolstov Selfip.Ru __

Re: package_list_update_ifelapsed

2010-06-07 Thread Eystein Måløy Stenberg
Hi, Remember to check if this has already been fixed in the bug tracker, as it has in your case. See https://cfengine.com/bugtracker/view.php?id=122 Going to bug.cfengine.com, clicking "View Issues" and searching for e.g. "Fatal cfengine error: INTERN" would have shown you this. Fix will be include

Re: package_list_update_ifelapsed

2010-06-07 Thread Mark Burgess
Right noW! :) On 06/07/2010 02:35 PM, Vasiliy G Tolstov wrote: > В Пнд, 07/06/2010 в 14:33 +0200, Nakarin Phooripoom пишет: >> I got an error on 3.0.4p2, but it seemed fine when I upgraded to 3.0.5a2. >> >> Cheers, >> --Nakarin > > I'm use 3.0.4... When 3.0.5 get officially available on the mysp

3.0.5 source code released

2010-06-07 Thread Mark Burgess
Version 3.0.5 of the Cfengine 3 community edition source code is released -- To download, please go to: http://www.cfengine.org/pages/source_code cfengine-3.0.5.tar.gz MD5 41a76533251709c6a261430c1e1b5762 SHA1 3d014c410ad

Re: 3.0.5 source code released

2010-06-07 Thread Vasiliy G Tolstov
В Пнд, 07/06/2010 в 14:49 +0200, Mark Burgess пишет: > Version 3.0.5 of the Cfengine 3 community edition source code is released > -- > > To download, please go to: > > http://www.cfengine.org/pages/source_code > cfengine-3

Re: package_list_update_ifelapsed

2010-06-07 Thread Vasiliy G Tolstov
В Пнд, 07/06/2010 в 14:44 +0200, Mark Burgess пишет: > Right noW! :) > > On 06/07/2010 02:35 PM, Vasiliy G Tolstov wrote: > > В Пнд, 07/06/2010 в 14:33 +0200, Nakarin Phooripoom пишет: > >> I got an error on 3.0.4p2, but it seemed fine when I upgraded to 3.0.5a2. > >> > >> Cheers, > >> --Nakarin >

Re: 3.0.5 source code released

2010-06-07 Thread Vasiliy G Tolstov
В Пнд, 07/06/2010 в 14:49 +0200, Mark Burgess пишет: > Version 3.0.5 of the Cfengine 3 community edition source code is released > -- > After upgrade server to 3.0.5 , my client servers can't connect with it: client: f3 Lo

Re: 3.0.5 source code released

2010-06-07 Thread Seva Gluschenko
Seems like your client changed its IP address after cf-key run. Mark, it seems like IP assertion check must be moved back beyond skipverify check, otherwise troubles may happen for multihomed hosts and/or when a host changes its IP (i.e. it would need key regeneration). 2010/6/7 Vasiliy G Tolstov

Re: 3.0.5 source code released

2010-06-07 Thread Vasiliy G Tolstov
В Пнд, 07/06/2010 в 17:52 +0400, Seva Gluschenko пишет: > Seems like your client changed its IP address after cf-key run. > Not thinking. Because i'm delete all keys and re-create it. > Mark, it seems like IP assertion check must be moved back beyond > skipverify check, otherwise troubles may ha

Re: cfengine3 questions and suggestion

2010-06-07 Thread Bas van der Vlies
On 07-06-10 16:57, Bas van der Vlies wrote: >>> I am using cfengine community edition 3.0.4 and i get this error/warning. >>> But the class can not be true, because the environent variable is set. >>> {{{ >>> !! Redefinition of a constant variable "CLUSTER" >>> Promise (version 1.0.1) belongs t

Re: 3.0.5 source code released

2010-06-07 Thread Mark Burgess
Pity you didn't suggest this an hour earlier. But ok. Seva Gluschenko wrote: > Seems like your client changed its IP address after cf-key run. > > Mark, it seems like IP assertion check must be moved back beyond > skipverify check, otherwise troubles may happen for multihomed hosts > and/or when

Array of slist

2010-06-07 Thread Daniel Dehennin
Hello, In the reference manual I found that array can be of type scalar or list, but I did not manage to use list iteration: --8<---cut here---start->8--- body common control { bundlesequence => { "test" }; version => "0.0.2"; } bundle agent test { va

Centralized report of repairs

2010-06-07 Thread Justin Lloyd
Hi all, I'd like to generate a report of all* changes Cfengine makes on systems for auditing and awareness purposes. If, for example, the same change is being made a lot on a system (e.g. fixing /etc/passwd permissions), then we would know something is wrong and could investigate it more deeply.

Re: Centralized report of repairs

2010-06-07 Thread Nicolas Charles
Hi Justin, I considered also this approach, but instead I've set up a webdav server on a policy_server, and each client sending the reports on this webdav entry point. Hence the client can send it when he knows it is suitable, and the promises are much more easy to write Nicolas Justin Lloyd

Re: Centralized report of repairs

2010-06-07 Thread Mark Burgess
Careful, such a `push' approach is unlikely to scale to more than a couple of hundred machines. FYI, Nova 1.2 (scheduled for October) will take a delta approach to report collection and generation that will scale much better under pull for the full spectrum of reports. M Nicolas Charles wrot

Re: Array of slist

2010-06-07 Thread Seva Gluschenko
It is known that the iteration depth of variables is limited in Cfengine. As of 3.0.4p2 the following test.cf body common control { bundlesequence => { "outer", "inner" }; } bundle agent outer { vars: "arr[idx1]" string => "this is an array element"; "arr[idx2]" slist => { "This", "