allowallconnects and trustkeysfrom regex syntax?

2011-02-23 Thread Jonathan CLARKE
Hi all, In the reference manual, it is clearly stated that allowconnects and trustkeysfrom, like allowallconnects takes regexps ("See also the warning about regular expressions in allowallconnects."). > http://www.cfengine.org/manuals/cf3-reference.html#allowconnects-in-server So, I've configure

Newbie questions and issues.

2011-02-23 Thread Mukarram Syed
Hi I am new to CFEngine and playing with cfengine2 (unfortunately, but will moving to 3), however I have a couple of questions on the issues I am facing. I'd appreciate some help on this. The 2 questions are inter-related. Question1: I have configured cfengine2 however, when I run cfrun -v it gi

Cfengine Help: Turning on multiple classes on a file copy?

2011-02-23 Thread no-reply
Forum: Cfengine Help Subject: Turning on multiple classes on a file copy? Author: jgreer Link to topic: https://cfengine.com/forum/read.php?3,20803,20803#msg-20803 I need to turn on two classes when a Cfengine-managed file is repaired. I would like to specify them without needing first to declar

Cfengine Help: Re: Random and incorrect denial of client based on IP address

2011-02-23 Thread no-reply
Forum: Cfengine Help Subject: Re: Random and incorrect denial of client based on IP address Author: Seva Gluschenko Link to topic: https://cfengine.com/forum/read.php?3,20798,20802#msg-20802 I didn't find it in the bug tracker, so file it on your own. Perhaps, I'd discussed it with Mark personall

Re: Cfengine Help: Re: Random and incorrect denial of client based on IP address

2011-02-23 Thread Frans Lawaetz
> that looks pretty similar to the static buffer overlap problem which I'd > discovered in the cf-serverd as of 3.0.4p2. Mark corrected the mutex lock > since then, so the problem ceased to exist in 3.0.5, but I won't be surprised > much if it was reintroduced in later versions. > Interesting,

Cfengine Help: Re: Random and incorrect denial of client based on IP address

2011-02-23 Thread no-reply
Forum: Cfengine Help Subject: Re: Random and incorrect denial of client based on IP address Author: Seva Gluschenko Link to topic: https://cfengine.com/forum/read.php?3,20798,20800#msg-20800 Frans, that looks pretty similar to the static buffer overlap problem which I'd discovered in the cf-serv

Cfengine Help: Re: classes scope with methods

2011-02-23 Thread no-reply
Forum: Cfengine Help Subject: Re: classes scope with methods Author: Seva Gluschenko Link to topic: https://cfengine.com/forum/read.php?3,20797,20799#msg-20799 Yann, In short: no, it doesn't. The only method to define global classes in bundles is to use the "classes" body. _

Random and incorrect denial of client based on IP address

2011-02-23 Thread Frans Lawaetz
Has anyone else experienced sporadic, random, ongoing authentication failures related to cf-serverd seemingly misidentifying a client as not belonging to an authorized network? The frequency of these failures, based on estimated successful execution, is extremely low. ~.01% or so. The client

Cfengine Help: classes scope with methods

2011-02-23 Thread no-reply
Forum: Cfengine Help Subject: classes scope with methods Author: yrouxel Link to topic: https://cfengine.com/forum/read.php?3,20797,20797#msg-20797 Hello, I posted a topic 5 weeks ago (cf ), concerning classes scope when methods are used. May it was too long a post which could explain why it di

Cfengine Help: Re: Edit region of file - remove existing content

2011-02-23 Thread no-reply
Forum: Cfengine Help Subject: Re: Edit region of file - remove existing content Author: kholloway Link to topic: https://cfengine.com/forum/read.php?3,18633,20796#msg-20796 We implemented the same rule sets in both tools and then tested for expected outcome. Additionally we looked at how long it

Re: module context for variables

2011-02-23 Thread Ted Zlatanov
(oh, top-quoting...) I did; the examples work when the module has no "." in the name. IOW this: "$(g.myroot)/pup" args => "--cfmodule -db server_machines.txt", module => "true", contain => in_dir($(g.myroot)); works: I can reference $(pup.dns_domain) But this: "$(g.myroot)/pup.pl" args =

Re: Problems with edit_line and edit_defaults=>empty

2011-02-23 Thread Adalbert Michelic
* On Wed, 23 Feb 2011 at 8:33 -0500, Daniel V. Klein wrote: > The promises look good, and AFAICT you should always get 2 lines, but I'd > suggest the following change for you: > > vars: > any:: > "dns" string => "192.168.1.20"; > machineX:: > "search" string => "domain2";

Re: Cfengine Help: Re: Problems with edit line and edit defaults=>empty

2011-02-23 Thread Adalbert Michelic
* On Wed, 23 Feb 2011 at 15:28 +0100, no-re...@cfengine.com wrote: > Which version are you running? Once the file is convergent, cfengine > shouldn't empty the file and reinsert lines ever again. (unless someone > change a bit in the file) Currently it's 3.1.4 (mostly on Ubuntu 8.04, packages fr

Cfengine Help: Re: Problems with edit line and edit defaults=>empty

2011-02-23 Thread no-reply
Forum: Cfengine Help Subject: Re: Problems with edit_line and edit_defaults=>empty Author: phnakarin Link to topic: https://cfengine.com/forum/read.php?3,20790,20792#msg-20792 Which version are you running? Once the file is convergent, cfengine shouldn't empty the file and reinsert lines ever aga

Re: Problems with edit_line and edit_defaults=>empty

2011-02-23 Thread Daniel V. Klein
The promises look good, and AFAICT you should always get 2 lines, but I'd suggest the following change for you: vars: any:: "dns" string => "192.168.1.20"; machineX:: "search" string => "domain2"; !machineX:: "search" string => "domain1"; This makes it clearer

Problems with edit_line and edit_defaults=>empty

2011-02-23 Thread Adalbert Michelic
I have a problem with some constellations of edit_line bundles together with edit_defaults=>empty. I have included the simpler bundle of the two creating problems below -- my expectation would be to get an /etc/resolv.conf with two lines -- all machines expect machineX should have domain1 as search

Re: Cfengine Help: Re: cf-execd and daemon mode problems

2011-02-23 Thread Bas van der Vlies
Filled in a bug report: * https://cfengine.com/bugtracker/view.php?id=495 * Bas van der Vliese-mail: b...@sara.nl * * SARA - Academic Computing Services Amsterdam, The Netherlands *