mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #45801 from rallytime/merge-2017.7
[2017.7] Merge forward from 2016.11 to 2017.7
This commit is contained in:
commit
685b683db5
3 changed files with 24 additions and 15 deletions
|
@ -795,10 +795,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,
|
||||
|
@ -813,12 +813,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:
|
||||
|
||||
|
|
|
@ -3503,7 +3503,9 @@ def retention_schedule(name, retain, strptime_format=None, timezone=None):
|
|||
This is only used when datetime is pulled from ``os.path.getmtime()``.
|
||||
Defaults to ``None`` which uses the timezone from the locale.
|
||||
|
||||
.. code-block: yaml
|
||||
Usage example:
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
/var/backups/example_directory:
|
||||
file.retention_schedule:
|
||||
|
@ -3757,7 +3759,7 @@ def line(name, content=None, match=None, mode=None, location=None,
|
|||
processing can be bypassed in order to pass an equal sign through to the
|
||||
remote shell command by manually specifying the kwarg:
|
||||
|
||||
.. code-block: yaml
|
||||
.. code-block:: yaml
|
||||
|
||||
update_config:
|
||||
file.line:
|
||||
|
|
|
@ -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
|
||||
|
||||
|
@ -131,7 +131,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``.
|
||||
|
||||
|
@ -150,8 +150,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
|
||||
|
||||
|
@ -217,7 +223,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``.
|
||||
|
|
Loading…
Add table
Reference in a new issue