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 just and add line, if I modify one of the hosts ip address it
won't replace it with the new one, it just adds the line at the end.

I have been triying to get it working with replace_with and regex
expresions, but I really can't find a way to do it easily, any of you doing
something like this could get me started ??

I'cant paste the code I am using because i'm not at work, but I will get in
tomorrow.

Thnx for the help
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to