Article Listing 1 Listing 2 Listing 3 apr2006.tar

Listing 2 Second.cnf shows application pre-configuration, and demonstrates configuration file chaining

# second.cnf - a few configuration options for packages outside of the 
#              base, included into first.cnf by a preseed/include 
#              directive.  This shows off how easy it is to break your 
#              configuration into small manageable files, and also how 
#              easy it is to preseed things outside the base installation.

# Let's automate account creation.  This makes home directories private,
# enables md5 and shadow, only sets up root, and presets root's password.
adduser     adduser/homedir-permission  boolean false
passwd      passwd/md5                  boolean true
passwd      passwd/shadow               boolean true
passwd      passwd/make-user            boolean false
passwd      passwd/root-password        password badpassword
passwd      passwd/root-password-again  password badpassword

# Apache
apache-ssl apache-ssl/enable-suexec boolean true
apache-ssl apache-ssl/server-admin string root@example.com

# Snakeoil SSL Certificates (Useful as install-time placeholders)
ssl-cert make-ssl-cert/countryname string  US
ssl-cert make-ssl-cert/email string root@example.com
ssl-cert make-ssl-cert/hostname string localhost
ssl-cert make-ssl-cert/localityname string Pasadena
ssl-cert make-ssl-cert/organisationname string Hoosier High School
ssl-cert make-ssl-cert/ouname string Unlimited Sprockets, Pty. Ltd.
ssl-cert make-ssl-cert/statename string Tennessee

# You might as well preseed things like your locale; you're unlikely 
# to ever want to change it.
locales     locales/default_environment_locale select en_US
locales     locales/locales_to_be_generated   multiselect en_US ISO-8859-1