Re: How to replace hosts that change in the /etc/hosts file

2010-03-22 Thread daniel parkes
27;d like either in check-file-perms.cf or > library.cf > > Cheers, > --Nakarin > > On Mar 22, 2010, at 9:40 AM, daniel parkes wrote: > > > I'm using the first solution, but I'm getting and error with the always > clause: > > > > No such FnCall &qu

Re: How to replace hosts that change in the /etc/hosts file

2010-03-22 Thread daniel parkes
)"); > > # Be careful if the index string contains funny chars > "cindex[$(index)]" string => canonify("$(index)"); > > field_edits: > > # If the line is there, but commented out, first uncomment it > "#+$(index)\s+.*" > edit_field =>

How to replace hosts that change in the /etc/hosts file

2010-03-17 Thread daniel parkes
Hi, We have a very large /etc/hosts(300 hosts) files in our servers that we have to mantain for certain acient applications, as of now what I have configured in cfengine 3.0.2 is an edit line bundle that reads from a master host file and if the host isn't in the file it adds it. The problem is ju