What's the best way to ensure that a cups configuration is up to date?

If I check that /etc/cups/printers.conf is identical on the clients and a 
policy master, then I cannot use "lpadmin -d" after a repair as this would make 
the files diverge. It looks as if cfengine has to do the whole job to allow 
this to converge, but that would mean locating and editing exactly one <Printer 
name> to read <DefaultPrinter name> and  then the hard bit, to edit the next 
</Printer> into </DefaultPrinter>.

One possibility might be the edit_xml bundle, are there any examples out there?

Another possibility is to keep some other file up to date (without 
DefaultPrinter) and then to use commands promises to make a live file from this 
whenever it is repaired.

Chris Ritson (Computing Officer and School Safety Officer)

Room 707, Claremont Tower,        EMAIL: c.r.rit...@ncl.ac.uk
School of Computing Science,      PHONE: +44 191 222 8175
Newcastle University,             FAX  : +44 191 222 8232
Newcastle upon Tyne, UK NE1 7RU.  WEB  : http://www.cs.ncl.ac.uk/


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

Reply via email to