Forum: Cfengine Help Subject: Insertion of certain definitions, in predefined order Author: pieterb Link to topic: https://cfengine.com/forum/read.php?3,19085,19085#msg-19085
I'm trying to manage a printers.conf file for all workstations in the office. Addition or removal of a printer has to be as easy as installing the printer and adding the printer definitions to a Cfengine policy; I don't want to have to copy ppd's to all workstations on my net. I currently achieve this by matching the printers.conf file to a file on the server, and if that doesn't match, copy it and mirror the complete ppd/ directory. Downside of this approach is that user cannot add other printers, i.e. printers they use at home. I have tried this using Cfengine's line management, to no avail. Cfengine seems to screw up on a couple of lines; the addition of the first printer definitions goes without a problem, when adding the second printer it feels that some lines of the definition are already in the file, and omits those. I have posted a thread about this before, but this still does not seem possible. I want a block of text, treated as one line. Is this possible? _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine