On Debian and alike systems debconf-set-selections(1) can be used to setup configuration parameters.
# Setup configuration for nslcd __debconf_set_selections nslcd --file /path/to/file # Setup configuration for nslcd from another type __debconf_set_selections nslcd --file "$__type/files/preseed/nslcd" __debconf_set_selections nslcd --file - << eof gitolite gitolite/gituser string git eof