command: if_elapsed?

2010-03-26 Thread Daniel Holth
This command executes every time I run cf-agent, even if I didn't wait 1000 minutes? What am I doing wrong? commands: "backup.sh" contain => in_shell, action => if_elapsed("1000"); ___ Help-cfengine mailing list Help-cfengine@cfen

Re: install rpm from a file in cfengine 3?

2010-03-26 Thread Daniel Holth
I am using the yum package_method from cfengine_stdlib.cf. I wanted to install the rpm that installs the Postgres YUM repository and its key. I wanted to simply use the yum "is this installed" detection to set a class and run a command, but promise_not_kept is not valid in a package: body. I foun

RE: cfrun runs without errors... but doesn't "do" anything

2010-03-26 Thread NWatson
See if this helps. http://watson-wilson.ca/blog/cfcookbook.html#SECTION00018 You might also check that your classes cfe_clients and cfe_servers are actually matching. Sincerely, -- Neil Watson 416-673-3465 CONFIDENTIALITY WARNING This communication, including any attachments, i

RE: cfrun runs without errors... but doesn't "do" anything

2010-03-26 Thread Todd Sayers
Thanks for your insight, Neil. I "think" that the authentication piece is configured properly (clearly, something's amiss). Here are the snippets from cfservd.conf (below). I'm just completely LOST on where to look/Google/etc, next. Thanks again for your help. >From cfservd.: ==

Re: killing runaway procs

2010-03-26 Thread NWatson
A typo was my problem. Sorry for wasting bandwith. Sincerely, -- Neil Watson 416-673-3465 CONFIDENTIALITY WARNING This communication, including any attachments, is for the exclusive use of addressee and may contain proprietary and/or confidential information. If you are not the intended reci

Re: killing runaway procs

2010-03-26 Thread Eystein Måløy Stenberg
Hi, Is there a typo in your process_select body? You seem to take an argument c, but try to expand p.. -- Regards, Eystein 2010/3/26 : > Greetings, > > I'm trying to make a promise that will kill procs that use too much > memory. > > Using version Community 3.0.2.  Upgrading soon but need to wo

Re: Cfengine Help: Re: cfengine edit_line - don't understand, must be something very basic

2010-03-26 Thread milo...@gmail.com
> > What you are doing byusing the getindices() list variable directly as an > arbument to the edit bundle is to iterate over the editing of the file > itself, i.e.  you are saying > > for each index do >   edit file(...index ) >      edit lines > > You should pass the list as @(bundle.list)

killing runaway procs

2010-03-26 Thread NWatson
Greetings, I'm trying to make a promise that will kill procs that use too much memory. Using version Community 3.0.2. Upgrading soon but need to work with this temporarily. My target for this test: [nwat...@unxxhd01 inputs]$ ps -eo rss,args|grep cf-monitord 105152 /var/cfengine/bin/cf-monitor

RE: cfrun runs without errors... but doesn't "do" anything

2010-03-26 Thread NWatson
Client server authentication is probably the hardest task in Cfengine. The first thing to remember about using cfrun is that the authentication is the opposite of what you've done before. Previously you configured CF for the clients to authenticate with a single server. Cfrun talks to servers,

Cfengine Help: Re: local copy with purge (recursive)

2010-03-26 Thread forum
Forum: Cfengine Help Subject: Re: local copy with purge (recursive) Author: mark Link to topic: https://cfengine.com/forum/read.php?3,16686,16687#msg-16687 This looks like an over-zealous addition of a check, being too cautious. The check immediately after this already covered it. I will remove f

Cfengine Help: local copy with purge (recursive)

2010-03-26 Thread forum
Forum: Cfengine Help Subject: local copy with purge (recursive) Author: matter Link to topic: https://cfengine.com/forum/read.php?3,16686,16686#msg-16686 Greetings, I am doing a recursive local copy with the purge option. The destination is not getting purged and I am getting this error: !! Not

Re: svn versus patch level

2010-03-26 Thread Eystein Måløy Stenberg
Hi, Check the svn tags directory, e.g. $ mkdir tmp $ cd tmp $ svn co https://svn.iu.hio.no/projects/cfengine-3 $ cd cfengine-3/tags/3.0.4p1 $ svn info ... Last Changed Rev: 887 Last Changed Date: 2010-03-10 21:37:39 +0100 (Wed, 10 Mar 2010) Gives you the revision and date. --Regards, Eystein O

Cfengine Help: Re: Cfeninge Help (Mailing list): Re: Iterations for convergence : vars do not iterate

2010-03-26 Thread forum
Forum: Cfengine Help Subject: Re: Cfeninge Help (Mailing list): Re: Iterations for convergence : vars do not iterate Author: lefollfr Link to topic: https://cfengine.com/forum/read.php?3,16228,16684#msg-16684 A short extra questions about variables being declared or not : When running in verbose

Cfengine Help: Re: Cfeninge Help (Mailing list): Re: Iterations for convergence : vars do not iterate

2010-03-26 Thread forum
Forum: Cfengine Help Subject: Re: Cfeninge Help (Mailing list): Re: Iterations for convergence : vars do not iterate Author: lefollfr Link to topic: https://cfengine.com/forum/read.php?3,16228,16681#msg-16681 Hello, As suggested, I opened a bug on the bug tracker, it was bug 062. It is now

Re: Cfengine Help: Re: cfengine edit_line - don't understand, must be something very basic

2010-03-26 Thread milo...@gmail.com
On Fri, Mar 26, 2010 at 9:01 AM, milo...@gmail.com wrote: > On Thu, Mar 25, 2010 at 9:54 PM, Todd Sayers wrote: >> I should have clarified that I'm using version_2 (installed via a "Dag >> Wieers" RPM -- cfengine-2.2.3-1.el5.rf ).  I haven't seen "bundles" in >> CFengine v2. >> >> Thanks for your

Re: Cfengine Help: Re: cfengine edit_line - don't understand, must be something very basic

2010-03-26 Thread milo...@gmail.com
On Thu, Mar 25, 2010 at 9:54 PM, Todd Sayers wrote: > I should have clarified that I'm using version_2 (installed via a "Dag > Wieers" RPM -- cfengine-2.2.3-1.el5.rf ).  I haven't seen "bundles" in > CFengine v2. > > Thanks for your answer.  I don't think that it's relevant to v2 (and could > be w

Re: install rpm from a file in cfengine 3?

2010-03-26 Thread milo...@gmail.com
On Thu, Mar 25, 2010 at 9:56 PM, Daniel Holth wrote: > In cfengine3, how do I use the packages: directive to either install an RPM > directly from a file or URL, or define a class if the package isn't > installed for use in commands: ? In the standard library you can find tools to manage packages