My current cf2 implementation updates /etc/hosts, and the syntax it uses 
deletes lines that don't match exactly. I'm having a hard time converting this 
cf2 logic to cf3:
editfiles:
sunos_5_10::
{ /etc/hosts
                BeginGroupIfNoSuchLine "10.1.1.4   myserver"
                        DeleteLinesStarting "10.1.1.4"
                        AppendIfNoSuchLine "10.1.1.4   myserver"
                EndGroup
}

I can insert or append lines in cf3, but I can't convert this extra error check 
logic that prevents having two different hostnames with the same IP address. 
Any guidance is appreciated.

RCA
--
UNIX Administrator, BAE Systems EIT
desk 763-572-6684  mobile 612-419-9362

_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to