salt.states.debconfmod¶
Management of debconf selections.¶
The debconfmod state module manages the enforcement of debconf selections, this state can set those selections prior to package installation.
Available Functions¶
The debconfmod state has two functions, the set
and set_file
functions
- set
- Set debconf selections from the state itself
- set_file
- Set debconf selections from a file
nullmailer-debconf:
debconf.set:
- name: nullmailer
- data:
'shared/mailname': {'type': 'string', 'value': 'server.domain.tld'}
'nullmailer/relayhost': {'type': 'string', 'value': 'mail.domain.tld'}
ferm-debconf:
debconf.set:
- name: ferm
- data:
'ferm/enable': {'type': 'boolean', 'value': True}
Note
Due to how PyYAML imports nested dicts (see here), the values in the data
dict must be indented four spaces instead of two.
-
salt.states.debconfmod.
set
(name, data)¶ Set debconf selections
<state_id>: debconf.set: - name: <name> - data: <question>: {'type': <type>, 'value': <value>} <question>: {'type': <type>, 'value': <value>} <state_id>: debconf.set: - name: <name> - data: <question>: {'type': <type>, 'value': <value>} <question>: {'type': <type>, 'value': <value>}
- name:
- The package name to set answers for.
- data:
- A set of questions/answers for debconf. Note that everything under this must be indented twice.
- question:
- The question the is being pre-answered
- type:
- The type of question that is being asked (string, boolean, select, etc.)
- value:
- The answer to the question
-
salt.states.debconfmod.
set_file
(name, source, **kwargs)¶ Set debconf selections from a file
<state_id>: debconf.set_file: - source: salt://pathto/pkg.selections <state_id>: debconf.set_file: - source: salt://pathto/pkg.selections?env=myenvironment
- source:
- The location of the file containing the package selections