Cfengine Help: AppendIfNoLineMatching and Cfengine 3

2010-12-31 Thread no-reply
Forum: Cfengine Help Subject: AppendIfNoLineMatching and Cfengine 3 Author: robsee Link to topic: https://cfengine.com/forum/read.php?3,19997,19997#msg-19997 Hi, Does anyone know of a recipe to replicate the function of AppendIfNoLineMatching on v 3 ? If not, does anyone have a reasonable recip

Cfengine Help: Re: AppendIfNoLineMatching and Cfengine 3

2010-12-31 Thread no-reply
Forum: Cfengine Help Subject: Re: AppendIfNoLineMatching and Cfengine 3 Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,19997,19998#msg-19998 http://www.cfengine.org/manuals/cf3-solutions.html#Distribute-root-passwords http://www.cfengine.org/manuals/CfengineStdLibrary.htm

Re: generating a list of all your current servers using Cfengine

2010-12-31 Thread Erlend Leganger
On 30 December 2010 23:41, Nick Anderson wrote: > On Thu, Dec 30, 2010 at 10:42:59PM +0100, Erlend Leganger wrote: >> I have a simple setup where all servers (<30) are on the same LAN. The >> policies include heartbeat promise which always evaluates to true, this >> promise runs a heartbeat script

Re: generating a list of all your current servers using Cfengine

2010-12-31 Thread Nick Anderson
On Fri, Dec 31, 2010 at 05:01:14PM +0100, Erlend Leganger wrote: > Heh, you learn something new every day... I configured my Apache > server and made a PUT handler as described in [1], then I can use curl > on the client to upload files: > curl --request PUT --upload-file heartbeat.txt > -Hheartbea

Cfengine Help: Re: AppendIfNoLineMatching and Cfengine 3

2010-12-31 Thread no-reply
Forum: Cfengine Help Subject: Re: AppendIfNoLineMatching and Cfengine 3 Author: robsee Link to topic: https://cfengine.com/forum/read.php?3,19997,2#msg-2 Thanks for those references, but they don't help AppendIfNoLineMatching I believe used to take a regexp to determine if there was a ma

Cfengine Help: Re: AppendIfNoLineMatching and Cfengine 3

2010-12-31 Thread no-reply
Forum: Cfengine Help Subject: Re: AppendIfNoLineMatching and Cfengine 3 Author: zzamboni Link to topic: https://cfengine.com/forum/read.php?3,19997,20002#msg-20002 Rob, I wrote some time ago an edit_line bundle called replace_or_add, which takes a regex and a line. If the regex matches any line,

Cfengine Help: Re: AppendIfNoLineMatching and Cfengine 3

2010-12-31 Thread no-reply
Forum: Cfengine Help Subject: Re: AppendIfNoLineMatching and Cfengine 3 Author: robsee Link to topic: https://cfengine.com/forum/read.php?3,19997,20003#msg-20003 Diego, I'll look into whether this can do what I want. I have a question about the implementation. Why do you define the class whethe