Re: unexpected error with ago function

2010-02-05 Thread Nicolas Charles
Works fine on cfengine 3.0.3 svn755 Regards, Nicolas nwat...@symcor.com wrote: > [r...@unxxhd01 inputs]# cf-promises -f ./promises.cf > Validation: Int item on rhs of lval 'built-in FnCall ago-arg' given as {60 > => 60} is out of bounds (should be in [0,31]) > > Relavent parts: > files: > >

unexpected error with ago function

2010-02-05 Thread NWatson
[r...@unxxhd01 inputs]# cf-promises -f ./promises.cf Validation: Int item on rhs of lval 'built-in FnCall ago-arg' given as {60 => 60} is out of bounds (should be in [0,31]) Relavent parts: files: "${g.workdir}/outputs" delete => tidy, file_select => days_old("60"),

RE: Email notification of repairs

2010-02-05 Thread Justin Lloyd
(Resending to the entire list) I'm suggesting an email is only sent when Cfengine attempts to repair a promise, not evaluate every single one. And filtering would certainly be used, no matter what, I'm sure. :) As for the nodename example, it depends on how you write the promise. If you do bundle

Re: Email notification of repairs

2010-02-05 Thread NWatson
I don't see how this could scale. Even a small policy can have dozens of promises. A email for each one would just flood my mailbox. > For example, if I have a promise to ensure that a Solaris system?s > hostname is in /etc/nodename, I should write the promise so that it > doesn?t do anything

Email notification of repairs

2010-02-05 Thread Justin Lloyd
Hi all, I've opened a ticket on this but I wanted to share my thoughts with the community to see if anyone has had the same thought and perhaps has already implemented something to this effect. I'd like for Cfengine on each host to be able to send an email every time it tries to repair a pr

Setting maximum number of fields for edit_field?

2010-02-05 Thread Diego Zamboni
Hi, I'm wondering if there's a way to set the maximum number of fields that edit_field will use. For example, I've written the following bundle for setting values in a configuration file of the form "var value" (e.g. sshd config file). It is based on set_variable_values from stdlib, using a differ

Re: default argument in body?

2010-02-05 Thread Diego Zamboni
++ for this idea. It would be very nice, and reduce duplication of bundles in which the only difference is one parameter (for example, I'm thinking of bundles for managing configuration files, some of which use "var=value", others "var value" or "var:value", etc.) --Diego On Thu, Feb 4, 2010 at 2

RE: Cfengine on Facebook

2010-02-05 Thread Zamboni, Diego
Right - I have seen those, I was referring to Mark's personal blog, which I find interesting but I couldn't find an RSS feed in it. --Diego -Original Message- From: Brendan Strejcek [mailto:strej...@gmail.com] Sent: Thursday, February 04, 2010 9:54 AM To: Zamboni, Diego Cc: help-cfengi

Re: assistance installing cfengine / berkeley on Linux

2010-02-05 Thread NWatson
The host is missing Bison or Yacc. Either is required to build CF but not run. Flex is also required to build but not run. BTW, the latest version is 3.0.3 not 3.0.2. Sincerely, -- Neil Watson 416-673-3465 CONFIDENTIALITY WARNING This communication, including any attachments, is for the ex

Re: cf3 Server refusal due to denied access to requested object

2010-02-05 Thread NWatson
By far one of the dodgiest tasks in Cfengine is authentication of this nature. Since the errors says 'denied access' then the trouble likely lies in the access_rules server bundle. Do you have any such rules? Example: bundle server access_rules { vars: unxxhd01:: "ad

Re: assistance installing cfengine / berkeley on Linux

2010-02-05 Thread Jim Gosney
Neil, Mark, and Nakarin, I was mistakenly under the impression that 3.x was commercial and 2.x was opensource and we wanted to evaluate before purchasing. I went back and looked again and realized that 3.x is "community" -- not commercial. I've downloaded 3.0.2 and it accepted our Berkeley i

cf3 Server refusal due to denied access to requested object

2010-02-05 Thread Lisa Sittler
I am trying to run cf-agent on host 10.27.41.150 by running cf-runagent on 10.27.41.199. Both hosts are running cf-serverd. It looks like the key exchange is OK but then I get a "Server refusal due to denied access to requested object." Not sure how to fix this. I tried messing with the cfrun

Re: assistance installing cfengine / berkeley on Linux

2010-02-05 Thread NWatson
Is there a reason you are evalutation the depreciated Cfengine 2.2.x? I would recommend that you evaluate version 3 instead. Sincerely, -- Neil Watson 416-673-3465 CONFIDENTIALITY WARNING This communication, including any attachments, is for the exclusive use of addressee and may contain pro

Re: assistance installing cfengine / berkeley on Linux

2010-02-05 Thread Nakarin Phooripoom
You might need to add /usr/local/BerkeleyDB.3.3/lib to /etc/ld.so.conf and run ldconfig once. Why don't you consider to use cfengine3 instead? Dunno what you think, but for me, cfengine 2 is the past, 3 is the future. :-) Cheers, --Nakarin On Feb 5, 2010, at 5:05 PM, Jim Gosney wrote: > We ar

Re: assistance installing cfengine / berkeley on Linux

2010-02-05 Thread Jim Gosney
Neil, Here is the exact command and reply that we are using: pos089998-1:/jim/cfengine-2.2.10 # ./configure --with-berkeleydb=/usr/local/BerkeleyDB.3.3 ... checking for BerkeleyDB location in /usr/local/BerkeleyDB.3.3... /usr/local/BerkeleyDB.3.3 checking Berkeley DB Version... configure: error:

Re: assistance installing cfengine / berkeley on Linux

2010-02-05 Thread NWatson
Perhaps you could give us a more details. Using --with-berkeleydb= as a configure switch allows you to point to any Berkeley DB you like. Sincerely, -- Neil Watson 416-673-3465 CONFIDENTIALITY WARNING This communication, including any attachments, is for the exclusive use of addressee and m

assistance installing cfengine / berkeley on Linux

2010-02-05 Thread Jim Gosney
We are trying to install CFEngine to evaluate it for possible use in our environment but are running into issues with it seeing berkeley db. We are trying ton install CFEngine 2.2.10. The berkely db is 3.3.11 (we started out trying 4.8.26 but had the same problem. thought maybe an older pre-o