Evaluating a promise occasionally

2010-03-09 Thread Justin Lloyd
I have a promise that defines a class if it succeeds in fetching data from another system and writing that data to a local file: "fetched_asset_data" expression => returnszero( "$(dg.asset_command) -o $(dg.asset_cache_file) data $(sys.uqhost)", "noshell" ); I would like this promise to be eva

little Cfengine survey

2010-03-09 Thread Niek Timmers
Dear *, I am a student of the University of Amsterdam, currently enrolled in the System & Network Engineering Master program. At the moment I am doing a small project concerned Cfengine which involves looking into the usability of this solution. Especially I am interested in what was the reason to

Re: Discovered classes

2010-03-09 Thread Mark Burgess
Good question. Will look at this. The main problem is understanding why linux hangs when detecting the interfaces. It only seems to happen irregularly. Lebel, Marco wrote: > Hello, > > After some investigation the proposed fix did not solve my problem but since > you gave me the file and routi

Re: Release Schedule

2010-03-09 Thread Mark Burgess
Interesting Mark, I'd be interested to see your paper. I hope your experience has been a good one. Are you going to submit it to USENIX LISA? The price of commercial licenses will be handled offline by one of the business folks at Cfengine - I have BCCed them on this message. The road map is

RE: Discovered classes

2010-03-09 Thread Lebel, Marco
Ummm to all it's means hit... sorry -Original Message- From: help-cfengine-boun...@cfengine.org [mailto:help-cfengine-boun...@cfengine.org] On Behalf Of Lebel, Marco Sent: Tuesday, March 09, 2010 3:19 PM To: Mark Burgess; Jesse Becker Cc: help-cfengine@cfengine.org Subject: RE: Discovered

RE: Discovered classes

2010-03-09 Thread Lebel, Marco
Hello, After some investigation the proposed fix did not solve my problem but since you gave me the file and routine to look at I found the following further down in the code: if (strcmp(inet_ntoa(sin->sin_addr),"0.0.0.0") == 0) <--- probably the value that we get if no address are attached t

Release Schedule

2010-03-09 Thread Mark Nelson
Hello I am in the process of writing a paper about the adoption of Cfengine within the company I work for. I am interested in the road map for Cfengine for the next 18 months. I am also interested in the cost of comercial licences for Cfengine. Thanks in advance Mark.

Re: cf-execd & cf-monitord - Memory leaks?

2010-03-09 Thread Mark Burgess
Yes, try upgrading Lebel, Marco wrote: > Hello all, > > > > Is there a known bug with the community version 3.0.2 for a memory leak > of any sorts? > > > > I do not have all of the details but when I start cf-execd (daemon mode) > it uses close to 3M of memory on my servers and after some

RE: soft class not visible across bundles

2010-03-09 Thread Justin Lloyd
Ok, that would explain it. I'd forgotten that little, yet hugely important, detail. :) Back to the drawing board. Thanks, Dan! Justin -Original Message- From: Daniel V Klein [mailto:d...@lonewolf.com] Sent: Tuesday, March 09, 2010 12:40 PM To: Justin Lloyd Cc: help-cfengine@cfengine.org

Re: soft class not visible across bundles

2010-03-09 Thread Daniel V Klein
Classes defined in common bodies are global, classes defined in agent- or other-bundles are local to that bundle. -Dan > Ok, so it also doesn't appear to work if I move the > curl_command_exists:: check to right before the usebundle > _verify_asset_command call, with basically the same verbose ou

RE: soft class not visible across bundles

2010-03-09 Thread Justin Lloyd
Ok, so it also doesn't appear to work if I move the curl_command_exists:: check to right before the usebundle _verify_asset_command call, with basically the same verbose output. I would say it's either a bug or, more likely, a misunderstanding on my part about how usebundle methods work. If no one

soft class not visible across bundles

2010-03-09 Thread Justin Lloyd
I should be able to define a class in one bundle and use it in another. However, in the following example, the "curl_command_exists" class I define in the _verify_curl_command bundle doesn't appear to be available to the _verify_asset_command bundle. [r...@gdcscf3lgmt01 masterfiles.devel]# cf-agen

cf-execd & cf-monitord - Memory leaks?

2010-03-09 Thread Lebel, Marco
Hello all, Is there a known bug with the community version 3.0.2 for a memory leak of any sorts? I do not have all of the details but when I start cf-execd (daemon mode) it uses close to 3M of memory on my servers and after some two weeks it shots up to 322M To me it looks like a memory l

Re: this.promiser with copy_from

2010-03-09 Thread daniel . klein
Yep, you're definitely going to see the bug, then. The report was against 3.0.3, and I *think* it is fixed in 3.0.4 -Dan > Ok, great :-) I'm running 3.0.3patch1. > > > Best regards, > Emil Assarsson emil.assars...@sonyericsson.com > Phone: +46 (0)10 8017422 > > > > > -Original Message-

Re: Discovered classes

2010-03-09 Thread Mark Burgess
It might be worth trying this interface instead of the usual ioctl(). In the mean time, you can comment out the check in sysinfo.c if (strstr(ifp->ifr_name,":")) { if (VSYSTEMHARDCLASS == linuxx) { CfOut(cf_verbose,"","Skipping apparent virtual interface %d: %s\

Re: Discovered classes

2010-03-09 Thread Jesse Becker
On Tue, Mar 09, 2010 at 11:04:46AM -0500, Mark Burgess wrote: > >We are looking for a solution to this issue. Basically, Linux can hang on >virtual >interfaces and this has caused other people problems. I am open to suggestions >for a >solution, but it is not an easy matter. For linux, pull the

Re: Discovered classes

2010-03-09 Thread Mark Burgess
We are looking for a solution to this issue. Basically, Linux can hang on virtual interfaces and this has caused other people problems. I am open to suggestions for a solution, but it is not an easy matter. Lebel, Marco wrote: > Hello all, > > > > Assuming the following (edited) output from

Re: this.promiser with copy_from

2010-03-09 Thread daniel . klein
Which version of Cfengine? This was a recently reported bug, but I don't know if it is in the patchset yet... -Dan > --_002_2BF070A7A2375D46BA1B6087F8D5DCB678AFEF7C48seldmbx01corp_ > Content-Type: text/plain; charset="us-ascii" > Content-Transfer-Encoding: quoted-printable > > Hi, > > Is there

RE: this.promiser with copy_from

2010-03-09 Thread Assarsson, Emil
Ok, great :-) I'm running 3.0.3patch1. Best regards, Emil Assarsson emil.assars...@sonyericsson.com Phone: +46 (0)10 8017422 -Original Message- From: d...@lonewolf.com [mailto:d...@lonewolf.com] On Behalf Of daniel.kl...@cfengine.com Sent: tisdag den 9 mars 2010 15:13 To: Assarsson,

this.promiser with copy_from

2010-03-09 Thread Assarsson, Emil
Hi, Is there a reason why $(this.promiser) doesn't get expanded with copy_from? I have tried to use it as an argument to a body copy_from or inside the body... neither works. Bug or feature? Best regards Operational Services LUX Application Platforms within BI Enterprise Services Emil Assars

Cfengine Help (Mailing list): Re: Generating Host Profiles Using CFengine3

2010-03-09 Thread forum
Forum: Cfengine Help (Mailing list) Subject: Re: Generating Host Profiles Using CFengine3 Author: eystein Link to topic: https://cfengine.com/forum/read.php?3,7837,7840#msg-7840 Hi again, I see what you are looking for, but I think you might underestimate the complexity of doing this, at least g

Discovered classes

2010-03-09 Thread Lebel, Marco
Hello all, Assuming the following (edited) output from a netstat -i Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll lan2:41500 xxx.xxx.xxx.xxx name1.domain 1916681074 0 22 0 0 lan2 1500 xxx.xxx.xxx.xxx name2.domain 1462215563 0 9

Re: Generating Host Profiles Using CFengine3

2010-03-09 Thread Traiano Welcome
Hi Eystein Thanks for the feedback. I agree that effort is better spent developing the cfengine promises first, then using that to do the deployment (it would seem to fit with a key underlying philosophy of cfengine!). However, we have the following scenario: A "master copy" installed server c

Re: Generating Host Profiles Using CFengine3

2010-03-09 Thread Eystein Måløy Stenberg
Hi Traiano, The points you state are all standard operations easily achieved with Cfengine. But I suspect that creating the promises manually would be much more efficient than trying to create scripts that in turn create Cfengine policies. It also allows for much greater flexibility in case you do

Generating Host Profiles Using CFengine3

2010-03-09 Thread Traiano Welcome
Hi List (Newbie Alert!) I've got a test installation of cfengine3 running on a few freebsd servers: What I'd like to do is use cfengine to automate the creation of a Server Template for package installation and configuration. So, for example, I have a server which is an ideal installation templ