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
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
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
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
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
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".
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.
___
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
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
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
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
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
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
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";
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
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
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
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
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
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
20 matches
Mail list logo