debconf

set a debconf answer

Only the scripts of a package read its answers. Put the step before the pkg step that installs the package, also when the package comes in as a dependency.

After a package loaded the question, as at its install, the check compares type with the type of the question. A select or multiselect value must be one of the choices of the question. A type that differs, or a value that is not a choice, fails the check.

Keys

KeyTypeDefaultMeaning
packagestringrequiredpackage that asks the question
questionstringrequiredname, such as postfix/main_mailer_type
typestringrequiredquestion type, such as string, boolean, or select
valuestringrequiredanswer, as text

debconf.package

string, required

Package that asks the question.

debconf.question

string, required

Name, such as postfix/main_mailer_type.

debconf.type

string, required

Question type, such as string, boolean, or select.

debconf.value

string, required

Answer, as text. Only the scripts of the package read it, so put the step before the pkg step that installs the package.

Example

- debconf:
    package: postfix
    question: postfix/main_mailer_type
    type: select
    value: Internet Site