Cfengine Help: Re: Cfengine Help: Best practice in edit_lines

2010-10-12 Thread no-reply
Forum: Cfengine Help Subject: Re: Cfengine Help: Best practice in edit_lines Author: pieterb Link to topic: https://cfengine.com/forum/read.php?3,18698,18699#msg-18699 Alright, so no ugly workarounds are needed. Thanks for the help! ___ Help-cfengine

Re: Cfengine Help: Best practice in edit_lines

2010-10-12 Thread Daniel V. Klein
Well first of all, look in cfengine_stdlib.cf - you might want to simply create a modified version of set_variable_values to do what you want (where you change the delimiter to "\s+" or something. But more importantly, you have a fundamental misunderstanding of how edit_lines works. Here's bas

Cfengine Help: Best practice in edit_lines

2010-10-12 Thread no-reply
Forum: Cfengine Help Subject: Best practice in edit_lines Author: pieterb Link to topic: https://cfengine.com/forum/read.php?3,18695,18695#msg-18695 There a certain files where I want to make sure there is only one definition of a certain attribute. For example, in /etc/nsswitch.conf, I want only