Could you please teach Cfengine that RHEL 5 systems use YUM as the package manager?

2010-10-19 Thread Aleksey Tsalolikhin
Problem: cfengine does not know that modern red hat systems use YUM package manager: bundle agent packages { packages: "httpd" package_policy => "delete"; } Results in error "!! You must supply a method for determining the version of existing packages" Could you please teach cfengine

Re: Is it possible to turn off informational reporting associated with commands type promises?

2010-10-19 Thread Frans Lawaetz
I think you probably want the "contain" option to that command.     restartssh::     "/sbin/service sshd restart",     contain => "silent"; http://www.cfengine.org/manuals/cf3-reference.html#contain-in-commands "This is equivalent to piping standard

Is it possible to turn off informational reporting associated with commands type promises?

2010-10-19 Thread Aleksey Tsalolikhin
Hi. Is there any way to turn off information reporting associated with commands promises? (3.1.0b2) bundle agent hello { commands: "/bin/echo Hello world!"; } Q: ".../bin/echo Hello": Hello world! I: Last 1 QUOTed lines were generated by promiser "/bin/echo Hello world!" I only want to s

Re: Cfengine Help: Re: feedback on 3.1.0b2: bootstrap into root crontab fails on CentOS: "File /var/spool/cron/crontabs/root was marked for editing but could not be opened"

2010-10-19 Thread Aleksey Tsalolikhin
The latest cfengine 3.1.0b2 in SVN knows where redhat systems keep the root crontab, thanks! The advice to take it a task at a time is a good one, thank you. library.cf is no longer part of the distribution, but site.cf still is: # ls -1 /usr/local/share/doc/cfengine/inputs/*cf /usr/local/share

Cfengine Help: Re: Strange behaviour with insert_lines

2010-10-19 Thread no-reply
Forum: Cfengine Help Subject: Re: Strange behaviour with insert_lines Author: zzamboni Link to topic: https://cfengine.com/forum/read.php?3,18780,18795#msg-18795 I have written an edit_line body called replace_or_add, which I think could be useful for what you want to achieve. It takes a regular

Cfengine Help: Re: Cfengine Help: Re: Strange behaviour with insert_lines

2010-10-19 Thread no-reply
Forum: Cfengine Help Subject: Re: Cfengine Help: Re: Strange behaviour with insert_lines Author: babudro Link to topic: https://cfengine.com/forum/read.php?3,18791,18794#msg-18794 Daniel V. Klein Wrote: --- > Look at "empty_file_before_editing".

Cfengine Help: Re: Forum search seems to be broken

2010-10-19 Thread no-reply
Forum: Cfengine Help Subject: Re: Forum search seems to be broken Author: isaac Link to topic: https://cfengine.com/forum/read.php?3,18784,18793#msg-18793 The short answer is that it relates to a 4 char minimum full text search in a mySQL database. Try again it should be working. ___

Cfengine Help: Re: Strange behaviour with insert_lines

2010-10-19 Thread no-reply
Forum: Cfengine Help Subject: Re: Strange behaviour with insert_lines Author: babudro Link to topic: https://cfengine.com/forum/read.php?3,18780,18792#msg-18792 Yes, agreed, I understand that, and this is what I thought I was doing, but as I wrote above when I empty the file first I thought it wo

Cfengine Help: Re: feedback on 3.1.0b2: bootstrap into root crontab fails on CentOS: "File /var/spool/cron/crontabs/root was marked for editing but could not be opened"

2010-10-19 Thread no-reply
Forum: Cfengine Help Subject: Re: feedback on 3.1.0b2: bootstrap into root crontab fails on CentOS: "File /var/spool/cron/crontabs/root was marked for editing but could not be opened" Author: babudro Link to topic: https://cfengine.com/forum/read.php?3,18770,18790#msg-18790 Hello Aleksey. I bel

Re: Cfengine Help: Re: Strange behaviour with insert_lines

2010-10-19 Thread Daniel V. Klein
Look at "empty_file_before_editing". You need to know that cfengine doesn't actually empty the file that you are promising - it makes a copy, does the edits on the copy, and overwrites the existing file if it needs to. So when you say "empty_file_before_editing", it starts the edits on a clean

Cfengine Help: Re: Strange behaviour with insert_lines

2010-10-19 Thread no-reply
Forum: Cfengine Help Subject: Re: Strange behaviour with insert_lines Author: mark Link to topic: https://cfengine.com/forum/read.php?3,18780,18789#msg-18789 Don't make it harder than it needs to be. Unless you need to preserve something that is already there, just use a complete template for th

Cfengine Help: Re: Strange behaviour with insert_lines

2010-10-19 Thread no-reply
Forum: Cfengine Help Subject: Re: Strange behaviour with insert_lines Author: babudro Link to topic: https://cfengine.com/forum/read.php?3,18780,18788#msg-18788 Hmmm, I'm not seeing the "light" yet. What then would be the recommended method of re-writing an entire file (such as ntp.conf) so that

Cfengine Help: Re: insert_type

2010-10-19 Thread no-reply
Forum: Cfengine Help Subject: Re: insert_type Author: mark Link to topic: https://cfengine.com/forum/read.php?3,18780,18786#msg-18786 This is expected. An atom is an atom. If you change an atom, it is a different element, not an act of alchemy ;-) Cfengine has no way of knowing that your new atom

Cfengine Help: insert_type

2010-10-19 Thread no-reply
Forum: Cfengine Help Subject: insert_type Author: babudro Link to topic: https://cfengine.com/forum/read.php?3,18780,18785#msg-18785 mark Wrote: --- > Try putting everything in one > set of quotes > and using > > insert_type => "preserve_block";

Re: Cfengine Help: Re: feedback on 3.1.0b2: bootstrap into root crontab fails on CentOS: "File /var/spool/cron/crontabs/root was marked for editing but could not be opened" - needs to be /var/spool/cr

2010-10-19 Thread Aleksey Tsalolikhin
Hi. Didn't hear back from anybody at Cfengine... ACK, please? Cheers, Aleksey ___ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine

Cfengine Help: Forum search seems to be broken

2010-10-19 Thread no-reply
Forum: Cfengine Help Subject: Forum search seems to be broken Author: technoronin Link to topic: https://cfengine.com/forum/read.php?3,18784,18784#msg-18784 I have tried searching for "AIX" in the forums and the search tool reports nothing found even though there is a post from last week about it

Re: Cfengine Help: Strange behaviour with insert_lines

2010-10-19 Thread Daniel V. Klein
babudro- It _is_ confusing, but the explanation is simple: In one edit cycle, Cfengine considers the insertion of each line, one at a time. If it sees a line already present that it is supposed to insert, it does not insert it twice. So each of your blank comment lines are the same - and onl

Cfengine Help: Re: Strange behaviour with insert_lines

2010-10-19 Thread no-reply
Forum: Cfengine Help Subject: Re: Strange behaviour with insert_lines Author: babudro Link to topic: https://cfengine.com/forum/read.php?3,18780,18782#msg-18782 Okay, that was the enlightenment I needed. Thanks, Mark! ___ Help-cfengine mailing list Hel

Cfengine Help: Re: Strange behaviour with insert_lines

2010-10-19 Thread no-reply
Forum: Cfengine Help Subject: Re: Strange behaviour with insert_lines Author: mark Link to topic: https://cfengine.com/forum/read.php?3,18780,18781#msg-18781 I think you are stumbling over convergent behaviour, and forgetting that each promise is an independent entity. Try putting everything in o

Cfengine Help: Strange behaviour with insert_lines

2010-10-19 Thread no-reply
Forum: Cfengine Help Subject: Strange behaviour with insert_lines Author: babudro Link to topic: https://cfengine.com/forum/read.php?3,18780,18780#msg-18780 I'm baffled by a behaviour of insert_lines that I just came across. Has anyone else run into this or can someone explain the rationale? If