Re: Cfengine Help: Does anyone know how to make cfengine report from only one network interface?

2010-12-07 Thread Mike Svoboda
Check out "bindtointerface" in the reference guide. 5.2.8 bindtointerface Type: string Allowed input range: .* Synopsis: Use this interface for outgoing connections Example: bindtointerface => "192.168.1.1"; Notes: On multi-homed hosts, the server and client can bind to a specific interface for se

Cfengine Help: Does anyone know how to make cfengine report from only one network interface?

2010-12-07 Thread no-reply
Forum: Cfengine Help Subject: Does anyone know how to make cfengine report from only one network interface? Author: Sal Link to topic: https://cfengine.com/forum/read.php?3,19676,19676#msg-19676 We have several servers with multiple NIC's configured live. Cfengine will send out email from all NI

Cfengine Help: Re: Finding "segfault at" error messages in syslog

2010-12-07 Thread no-reply
Forum: Cfengine Help Subject: Re: Finding "segfault at" error messages in syslog Author: Sal Link to topic: https://cfengine.com/forum/read.php?3,19645,19675#msg-19675 I have on more than one occasion had to rely on the failsafe to fix broken configs. Some of our new tasks are tested live, so to

Re: edit_lines convergence

2010-12-07 Thread Michael Potter
I believe the problem is this expression: "^(smtp_host)\s+.*$" replace_with => value("$(match.1) $(smtp)"), Because you use a .* after the whitespace, the regex will continue to match after any replacement occurs. Try using a negative lookahead assertion: "^(smtp_host)\s+(?!$(smtp))$" This wil

edit_lines convergence

2010-12-07 Thread Daniel Dehennin
Hello, I have some troubles with edit_lines convergence: #v+ body common control { bundlesequence => { "filetest" }; version => "0.0.3"; } bundle agent filetest { vars: "smtp" string => "smtp.example.net"; files: "/tmp/main.cf" create => "true",

Cfengine Help: Re: Finding "segfault at" error messages in syslog

2010-12-07 Thread no-reply
Forum: Cfengine Help Subject: Re: Finding "segfault at" error messages in syslog Author: bglomm Link to topic: https://cfengine.com/forum/read.php?3,19645,19672#msg-19672 Are you sure you have configured your failsafe/update promises all correct? Have you tried them? As long as I don't brake my up

Cfengine Help: Re: templating and need for action

2010-12-07 Thread no-reply
Forum: Cfengine Help Subject: Re: templating and need for action Author: bglomm Link to topic: https://cfengine.com/forum/read.php?3,19663,19671#msg-19671 if_repaired etc. all comes from cfengine_stdlib.cf it was the methods/"set class" thing ... ___ H

Cfengine Help: Re: templating and need for action

2010-12-07 Thread no-reply
Forum: Cfengine Help Subject: Re: templating and need for action Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,19663,19670#msg-19670 "Because a method is just an encapsulation, there is a subtlety about how to interpret a successful method invocation. Before version 3.1

Cfengine Help: Re: templating and need for action

2010-12-07 Thread no-reply
Forum: Cfengine Help Subject: Re: templating and need for action Author: bglomm Link to topic: https://cfengine.com/forum/read.php?3,19663,19669#msg-19669 And thnx again Neil. Brilliant that's it. Works perfect and as generic as before... Now I just set a generic class with the expansion promise

Cfengine Help: Re: templating and need for action

2010-12-07 Thread no-reply
Forum: Cfengine Help Subject: Re: templating and need for action Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,19663,19668#msg-19668 Also, check your if_repaired body an ensure that it is doing what you think it should. ___ H

Cfengine Help: Re: templating and need for action

2010-12-07 Thread no-reply
Forum: Cfengine Help Subject: Re: templating and need for action Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,19663,19667#msg-19667 I'm not certain about the classes call via methods. I do not know that does what we think it does. I would set the classes at the expan

Cfengine Help: Re: Finding "segfault at" error messages in syslog

2010-12-07 Thread no-reply
Forum: Cfengine Help Subject: Re: Finding "segfault at" error messages in syslog Author: Sal Link to topic: https://cfengine.com/forum/read.php?3,19645,19666#msg-19666 I found the problem. It seems that the task file was edited in masterfiles on the policy server while the updates were happening

Cfengine Help: Re: templating and need for action

2010-12-07 Thread no-reply
Forum: Cfengine Help Subject: Re: templating and need for action Author: bglomm Link to topic: https://cfengine.com/forum/read.php?3,19663,19665#msg-19665 thnx Neil, here the three files I'm working with... all works fine except that on each run the snmpd.conf gets repaired... even if is not nec

Cfengine Help: Re: templating and need for action

2010-12-07 Thread no-reply
Forum: Cfengine Help Subject: Re: templating and need for action Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,19663,19664#msg-19664 Please show us a file download and edit promise that exhibits this behavior. I don't have any template promises at the moment but it see

Cfengine Help: templating and need for action

2010-12-07 Thread no-reply
Forum: Cfengine Help Subject: templating and need for action Author: bglomm Link to topic: https://cfengine.com/forum/read.php?3,19663,19663#msg-19663 Hi all, I finally understood the benefits of templating/variable expanding only to face a new question. I followed closely http://www.cfengine.or

Cfengine Help: Re: Binaries for 3.1.1?

2010-12-07 Thread no-reply
Forum: Cfengine Help Subject: Re: Binaries for 3.1.1? Author: matter Link to topic: https://cfengine.com/forum/read.php?3,19642,19662#msg-19662 How about that, right in front of me. If it was a snake, it would have bitten me. % head -7 ChangeLog 3.1.1 Memory leaks in server tracked do

Cfengine Help: Re: simple edit_line

2010-12-07 Thread no-reply
Forum: Cfengine Help Subject: Re: simple edit_line Author: Seva Gluschenko Link to topic: https://cfengine.com/forum/read.php?3,19617,19661#msg-19661 Yep, the one level down is required. Look for body replace_with With(x) in cfengine_stdlib.cf ___ Help

Cfengine Help: Re: simple edit_line

2010-12-07 Thread no-reply
Forum: Cfengine Help Subject: Re: simple edit_line Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,19617,19660#msg-19660 Replace_with should point to a body part not the string. http://www.cfengine.org/manuals/cf3-reference.html#replace_005fpatterns-in-edit_005fline-promis

Cfengine Help: Re: simple edit_line

2010-12-07 Thread no-reply
Forum: Cfengine Help Subject: Re: simple edit_line Author: bidwell Link to topic: https://cfengine.com/forum/read.php?3,19617,19659#msg-19659 OK here is a simple promise that is wrong somewhere. bundle agent editmyfiles { files: any:: "/tmp/test" edit_line => myreplace("line1","l

Cfengine Help: Re: Binaries for 3.1.1?

2010-12-07 Thread no-reply
Forum: Cfengine Help Subject: Re: Binaries for 3.1.1? Author: mark Link to topic: https://cfengine.com/forum/read.php?3,19642,19658#msg-19658 I think we always paste the change log into the release when we do it. Of course, no one is obliged to read it ;-) ___

Cfengine Help: Re: Binaries for 3.1.1?

2010-12-07 Thread no-reply
Forum: Cfengine Help Subject: Re: Binaries for 3.1.1? Author: matter Link to topic: https://cfengine.com/forum/read.php?3,19642,19657#msg-19657 I think a little blurb about that is new when the release is announced might be nice. ___ Help-cfengine mail

Cfengine Help: Re: Set class on file changes

2010-12-07 Thread no-reply
Forum: Cfengine Help Subject: Re: Set class on file changes Author: Seva Gluschenko Link to topic: https://cfengine.com/forum/read.php?3,19601,19656#msg-19656 sometimes reading the reference manual is useful ;> Your code must be rewritten like this: bundle agent ntp { files: Hr05.Min40_45::

Cfengine Help: Re: Set class on file changes

2010-12-07 Thread no-reply
Forum: Cfengine Help Subject: Re: Set class on file changes Author: Ferjama Link to topic: https://cfengine.com/forum/read.php?3,19601,19655#msg-19655 Hi, I’ve god a similar problem and tried the mentioned solution with "action" but it didn't helped. I want to restart a daemon if the configurati

Cfengine Help: Re: Unable to delete a directory

2010-12-07 Thread no-reply
Forum: Cfengine Help Subject: Re: Unable to delete a directory Author: berntjernberg Link to topic: https://cfengine.com/forum/read.php?3,18863,19654#msg-19654 Hi, I got it working in 3.05p1 with: bundle agent cleanup(dir) { files: # Delete all files. "$(dir)" delete

Cfengine2 files owner property

2010-12-07 Thread Will Nowak
Hi There, I'm trying to use a cfengine2 files stanza to copy some authorized_keys files out to machines for a set of users. # id 323_access uid=40056(323_access) gid=100(users) groups=100(users) office_desktops:: $(masterfiles)/ssh_keys/323_access dest=/home/323_access/.ssh/authori