Re: CFEngine Help: Re: delete_lines and select region

2012-07-24 Thread Diego Zamboni
Right - it seems the delete_lines is deleting on the second pass the lines inserted by the first pass, which is strange. This should not be happening - I'll investigate and try to figure out what's going on. --Diego On Jul 24, 2012, at 1:24 PM, no-re...@cfengine.com wrote: > Forum: CFEngine

CFEngine Help: Re: delete_lines and select region

2012-07-24 Thread no-reply
Forum: CFEngine Help Subject: Re: delete_lines and select region Author: jbdenis Link to topic: https://cfengine.com/forum/read.php?3,26551,26636#msg-26636 Ok. Got it in the train on my way back home. I have to "protect" the delete_lines to append if the insert_lines part has already been run. So

CFEngine Help: Re: delete_lines and select region

2012-07-24 Thread no-reply
Forum: CFEngine Help Subject: Re: delete_lines and select region Author: jbdenis Link to topic: https://cfengine.com/forum/read.php?3,26551,26634#msg-26634 A big thank you to both of you for rephrasing more clearly to me what is already in the documentation. I think I've been misguided by some o

CFEngine Help: Re: delete_lines and select region

2012-07-24 Thread no-reply
Forum: CFEngine Help Subject: Re: delete_lines and select region Author: jbdenis Link to topic: https://cfengine.com/forum/read.php?3,26551,26630#msg-26630 Please ignore the previous post at the moment, I think I'm fooling myself. ___ Help-cfengine mail

CFEngine Help: Re: delete_lines and select region

2012-07-24 Thread no-reply
Forum: CFEngine Help Subject: Re: delete_lines and select region Author: nickanderson Link to topic: https://cfengine.com/forum/read.php?3,26551,26632#msg-26632 I could be wrong on this, but I will take a stab. I think what is meant by "atomic" is that edits are not done on the file in place. T

CFEngine Help: Re: delete_lines and select region

2012-07-24 Thread no-reply
Forum: CFEngine Help Subject: Re: delete_lines and select region Author: zzamboni Link to topic: https://cfengine.com/forum/read.php?3,26551,26631#msg-26631 I was referring to passes within a single cf-agent run. During each run, cf-agent makes three passes over each bundle, evaluating the promis

CFEngine Help: Re: delete_lines and select region

2012-07-24 Thread no-reply
Forum: CFEngine Help Subject: Re: delete_lines and select region Author: jbdenis Link to topic: https://cfengine.com/forum/read.php?3,26551,26627#msg-26627 I don't understand something about edit_file. The reference mentions that " All file edits specified in a single edit_line bundle are handle

CFEngine Help: Re: delete_lines and select region

2012-07-21 Thread no-reply
Forum: CFEngine Help Subject: Re: delete_lines and select region Author: jbdenis Link to topic: https://cfengine.com/forum/read.php?3,26551,26575#msg-26575 Diego, thank you for your very precise answer. It helped me understand a few fundamental aspects. Neil, it my precise case, I want to manage

CFEngine Help: Re: CFEngine Help: Re: delete_lines and select region

2012-07-20 Thread no-reply
Forum: CFEngine Help Subject: Re: CFEngine Help: Re: delete_lines and select region Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,26561,26562#msg-26562 I tend to use copy promises unless I want to alter the contents base on variables. Then I'll use templating

Re: CFEngine Help: Re: delete_lines and select region

2012-07-20 Thread Nick Anderson
On 07/20/2012 12:54 PM, no-re...@cfengine.com wrote: > Forum: CFEngine Help > Subject: Re: delete_lines and select region > Author: neilhwatson > Link to topic: https://cfengine.com/forum/read.php?3,26551,26560#msg-26560 > > You might also consider a different approach. My best practice is to avoi

CFEngine Help: Re: delete_lines and select region

2012-07-20 Thread no-reply
Forum: CFEngine Help Subject: Re: delete_lines and select region Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,26551,26560#msg-26560 You might also consider a different approach. My best practice is to avoid destructive policies. If something goes wrong the whole file

CFEngine Help: Re: delete_lines and select region

2012-07-20 Thread no-reply
Forum: CFEngine Help Subject: Re: delete_lines and select region Author: zzamboni Link to topic: https://cfengine.com/forum/read.php?3,26551,26559#msg-26559 Hi, Looking at the verbose output of running the policy, it seems this message is produced by the second and third passes CFEngine does ove