mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Add performance reminder for wildcard versions
This commit is contained in:
parent
83ed40c06a
commit
fc7d16f1af
@ -989,11 +989,11 @@ def installed(
|
||||
**WILDCARD VERSIONS**
|
||||
|
||||
As of the 2017.7.0 release, this state now supports wildcards in
|
||||
package versions for SUSE SLES/Leap/Tumbleweed, Debian/Ubuntu, RHEL/CentOS,
|
||||
Arch Linux, and their derivatives. Using wildcards can be useful for
|
||||
packages where the release name is built into the version in some way,
|
||||
such as for RHEL/CentOS which typically has version numbers like
|
||||
``1.2.34-5.el7``. An example of the usage for this would be:
|
||||
package versions for SUSE SLES/Leap/Tumbleweed, Debian/Ubuntu,
|
||||
RHEL/CentOS, Arch Linux, and their derivatives. Using wildcards can be
|
||||
useful for packages where the release name is built into the version in
|
||||
some way, such as for RHEL/CentOS which typically has version numbers
|
||||
like ``1.2.34-5.el7``. An example of the usage for this would be:
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
@ -1001,6 +1001,11 @@ def installed(
|
||||
pkg.installed:
|
||||
- version: '1.2.34*'
|
||||
|
||||
Keep in mind that using wildcard versions will result in a slower state
|
||||
run since Salt must gather the available versions of the specified
|
||||
packages and figure out which of them match the specified wildcard
|
||||
expression.
|
||||
|
||||
:param bool refresh:
|
||||
This parameter controls whether or not the package repo database is
|
||||
updated prior to installing the requested package(s).
|
||||
|
Loading…
Reference in New Issue
Block a user