And to share some code:

    # Get debconf to be as unobtrusive as possible
    # man 5 debconf.conf, in package debconf-doc
    editfiles:
        { /etc/debconf.conf
            DeleteLinesStarting "Frontend:"
            DeleteLinesStarting "Admin-Email:"
            ResetSearch "1"
            LocateLineMatching "^Templates:.*"
            InsertLine "Frontend: noninteractive"
            InsertLine "Admin-Email:"
        }

    editfiles:
        { /etc/apt/apt.conf.d/30dpkg_force_confold
            AutoCreate
            EmptyEntireFilePlease
            AppendIfNoSuchLine 'DPkg::Options {"--force-confold";};'
        }

I use a Perl script to do the actual package installations based on
lists of packages for various host groups, and the actual apt-get call
looks something like:

    yes y | apt-get -qq -y install $packages >/dev/null 2>&1

This works pretty well for me, though it is not that elegant.

Best,
Brendan

--
Senior System Administrator
The University of Chicago
Department of Computer Science

http://www.cs.uchicago.edu/people/brendan

http://people.cs.uchicago.edu/~brendan


_______________________________________________
Help-cfengine mailing list
Help-cfengine@gnu.org
http://lists.gnu.org/mailman/listinfo/help-cfengine

Reply via email to