[DOC] Add missing gpgautoimport for pkgrepo.managed

This commit is contained in:
Denys Havrysh 2018-01-30 15:39:04 +02:00
parent d7e09e2649
commit f80c7d8d69
No known key found for this signature in database
GPG key ID: 6407DC470520CDF7
2 changed files with 20 additions and 13 deletions

View file

@ -728,10 +728,10 @@ def mod_repo(repo, **kwargs):
be created, so long as the following values are specified:
repo or alias
alias by which the zypper refers to the repo
alias by which Zypper refers to the repo
url, mirrorlist or baseurl
the URL for zypper to reference
the URL for Zypper to reference
enabled
Enable or disable (True or False) repository,
@ -746,12 +746,13 @@ def mod_repo(repo, **kwargs):
gpgcheck
Enable or disable (True or False) GPG check for this repository.
gpgautoimport
Automatically trust and import new repository.
gpgautoimport : False
If set to True, automatically trust and import public GPG key for
the repository.
Key/Value pairs may also be removed from a repo's configuration by setting
a key to a blank value. Bear in mind that a name cannot be deleted, and a
url can only be deleted if a mirrorlist is specified (or vice versa).
URL can only be deleted if a ``mirrorlist`` is specified (or vice versa).
CLI Examples:

View file

@ -1,10 +1,10 @@
# -*- coding: utf-8 -*-
'''
Management of APT/YUM package repos
===================================
Management of APT/DNF/YUM/Zypper package repos
==============================================
Package repositories for APT-based and YUM-based distros can be managed with
these states. Here is some example SLS:
States for managing software package repositories on Linux distros. Supported
package managers are APT, DNF, YUM and Zypper. Here is some example SLS:
.. code-block:: yaml
@ -132,7 +132,7 @@ def managed(name, ppa=None, **kwargs):
disabled : False
Included to reduce confusion due to APT's use of the ``disabled``
argument. If this is passed for a yum/dnf/zypper-based distro, then the
argument. If this is passed for a YUM/DNF/Zypper-based distro, then the
reverse will be passed as ``enabled``. For example passing
``disabled=True`` will assume ``enabled=False``.
@ -151,8 +151,14 @@ def managed(name, ppa=None, **kwargs):
enabled configuration. Anything supplied for this list will be saved
in the repo configuration with a comment marker (#) in front.
Additional configuration values seen in yum repo files, such as ``gpgkey`` or
``gpgcheck``, will be used directly as key-value pairs. For example:
gpgautoimport
Only valid for Zypper package manager. If set to True, automatically
trust and import public GPG key for the repository. The key should be
specified with ``gpgkey`` parameter. See details below.
Additional configuration values seen in YUM/DNF/Zypper repo files, such as
``gpgkey`` or ``gpgcheck``, will be used directly as key-value pairs.
For example:
.. code-block:: yaml
@ -218,7 +224,7 @@ def managed(name, ppa=None, **kwargs):
and/or installing packages.
enabled : True
Included to reduce confusion due to yum/dnf/zypper's use of the
Included to reduce confusion due to YUM/DNF/Zypper's use of the
``enabled`` argument. If this is passed for an APT-based distro, then
the reverse will be passed as ``disabled``. For example, passing
``enabled=False`` will assume ``disabled=False``.