On Tue,  3 Apr 2012 20:45:08 +0200 (CEST) sauer wrote: 

n> I've been working on this for sudoers, where later entries override
n> earlier entries.  The way I'm currently doing it is to have a
n> directory full of small templates which start with a number.  It looks
n> like the new lsdir function will make this easier in the future, but
n> for now, I just have a simple module which uses classes to select
n> files which should be included.  Because of the numbered prefix, the
n> module can easily return the slist of include files in order - which
n> then get inserted in order with an insert_lines promise.

Newer versions of sudo support including from a sudoers.d directory,
which seems very similar to what you're doing.  Stitching a file from
pieces is always a messy business but sometimes (e.g. limits.conf) it's
unavoidable.

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

Reply via email to