mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Merge pull request #10925 from gravyboat/develop
file module doc update, and pkg state update for names.
This commit is contained in:
commit
9d796fd672
@ -2343,6 +2343,11 @@ def check_file_meta(
|
|||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
salt '*' file.check_file_meta /etc/httpd/conf.d/httpd.conf salt://http/httpd.conf '{hash_type: 'md5', 'hsum': <md5sum>}' root, root, '755' base
|
salt '*' file.check_file_meta /etc/httpd/conf.d/httpd.conf salt://http/httpd.conf '{hash_type: 'md5', 'hsum': <md5sum>}' root, root, '755' base
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
|
||||||
|
Supported hash types include sha512, sha384, sha256, sha224, sha1, and
|
||||||
|
md5.
|
||||||
'''
|
'''
|
||||||
changes = {}
|
changes = {}
|
||||||
if not source_sum:
|
if not source_sum:
|
||||||
|
@ -314,6 +314,7 @@ def installed(
|
|||||||
skip_verify=False,
|
skip_verify=False,
|
||||||
skip_suggestions=False,
|
skip_suggestions=False,
|
||||||
pkgs=None,
|
pkgs=None,
|
||||||
|
names=None,
|
||||||
sources=None,
|
sources=None,
|
||||||
**kwargs):
|
**kwargs):
|
||||||
'''
|
'''
|
||||||
@ -362,7 +363,8 @@ def installed(
|
|||||||
Multiple Package Installation Options: (not supported in Windows or pkgng)
|
Multiple Package Installation Options: (not supported in Windows or pkgng)
|
||||||
|
|
||||||
pkgs
|
pkgs
|
||||||
A list of packages to install from a software repository.
|
A list of packages to install from a software repository. Each package
|
||||||
|
will be installed individually by the package manager.
|
||||||
|
|
||||||
Usage::
|
Usage::
|
||||||
|
|
||||||
@ -414,6 +416,61 @@ def installed(
|
|||||||
- bar: '~>=1.2:slot::overlay[use,-otheruse]'
|
- bar: '~>=1.2:slot::overlay[use,-otheruse]'
|
||||||
- baz
|
- baz
|
||||||
|
|
||||||
|
names
|
||||||
|
A list of packages to install from a software repository. All packages
|
||||||
|
listed under names will be installed via a single command.
|
||||||
|
|
||||||
|
Usage::
|
||||||
|
|
||||||
|
mypkgs:
|
||||||
|
pkg.installed:
|
||||||
|
- names:
|
||||||
|
- foo
|
||||||
|
- bar
|
||||||
|
- baz
|
||||||
|
|
||||||
|
``NOTE:`` For :mod:`apt <salt.modules.aptpkg>`,
|
||||||
|
:mod:`ebuild <salt.modules.ebuild>`,
|
||||||
|
:mod:`pacman <salt.modules.pacman>`, :mod:`yumpkg <salt.modules.yumpkg>`,
|
||||||
|
and :mod:`zypper <salt.modules.zypper>`, version numbers can be specified
|
||||||
|
in the ``names`` argument. Example::
|
||||||
|
|
||||||
|
mypkgs:
|
||||||
|
pkg.installed:
|
||||||
|
- names:
|
||||||
|
- foo
|
||||||
|
- bar: 1.2.3-4
|
||||||
|
- baz
|
||||||
|
|
||||||
|
Additionally, :mod:`ebuild <salt.modules.ebuild>`,
|
||||||
|
:mod:`pacman <salt.modules.pacman>` and
|
||||||
|
:mod:`zypper <salt.modules.zypper>` support the ``<``, ``<=``, ``>=``, and
|
||||||
|
``>`` operators for more control over what versions will be installed.
|
||||||
|
Example::
|
||||||
|
|
||||||
|
mypkgs:
|
||||||
|
pkg.installed:
|
||||||
|
- names:
|
||||||
|
- foo
|
||||||
|
- bar: '>=1.2.3-4'
|
||||||
|
- baz
|
||||||
|
|
||||||
|
``NOTE:`` When using comparison operators, the expression must be enclosed
|
||||||
|
in quotes to avoid a YAML render error.
|
||||||
|
|
||||||
|
With :mod:`ebuild <salt.modules.ebuild>` is also possible to specify a use
|
||||||
|
flag list and/or if the given packages should be in package.accept_keywords
|
||||||
|
file and/or the overlay from which you want the package to be installed.
|
||||||
|
Example::
|
||||||
|
|
||||||
|
mypkgs:
|
||||||
|
pkg.installed:
|
||||||
|
- names:
|
||||||
|
- foo: '~'
|
||||||
|
- bar: '~>=1.2:slot::overlay[use,-otheruse]'
|
||||||
|
- baz
|
||||||
|
|
||||||
|
|
||||||
sources
|
sources
|
||||||
A list of packages to install, along with the source URI or local path
|
A list of packages to install, along with the source URI or local path
|
||||||
from which to install each package. In the example below, ``foo``,
|
from which to install each package. In the example below, ``foo``,
|
||||||
|
Loading…
Reference in New Issue
Block a user