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
| Key | Type | Default | Meaning |
|---|---|---|---|
package | string | required | package that asks the question |
question | string | required | name, such as postfix/main_mailer_type |
type | string | required | question type, such as string, boolean, or select |
value | string | required | answer, 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