%PDF- %PDF-
| Direktori : /proc/thread-self/root/proc/3522530/root/lib/python2.7/site-packages/salt/states/ |
| Current File : //proc/thread-self/root/proc/3522530/root/lib/python2.7/site-packages/salt/states/debconfmod.pyc |
�
���^c @@ s` d Z d d l m Z m Z m Z d d l m Z d Z d � Z d d d d � Z
d � Z d S( u
Management of debconf selections
================================
:depends: - debconf-utils package
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
.. code-block:: yaml
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 :ref:`here <yaml-idiosyncrasies>`),
the values in the ``data`` dict must be indented four spaces instead of two.
i ( t absolute_importt print_functiont unicode_literals( t sixu debconfc C@ s( t d d k r t Sd t k r$ t St S( u9
Confirm this module is on a Debian based system
u os_familyu Debianu debconf.show( t
__grains__t Falset __salt__t __virtualname__( ( ( s: /usr/lib/python2.7/site-packages/salt/states/debconfmod.pyt __virtual__0 s
c K@ s i | d 6i d 6t d 6d d 6} | d k r7 i } n'