Merge branch '2015.8' into '2016.3'

No conflicts.
This commit is contained in:
rallytime 2016-06-20 17:22:07 -06:00
commit b061b86946
3 changed files with 37 additions and 5 deletions

View file

@ -2871,7 +2871,7 @@ def get_id(opts, cache_minion_id=False):
newid = salt.utils.network.generate_minion_id()
if '__role' in opts and opts.get('__role') == 'minion':
log.info('Found minion id from generate_minion_id(): {0}'.format(newid))
log.debug('Found minion id from generate_minion_id(): {0}'.format(newid))
if cache_minion_id and opts.get('minion_id_caching', True):
_cache_id(newid, id_cache)
is_ipv4 = newid.count('.') == 3 and not any(c.isalpha() for c in newid)

View file

@ -700,8 +700,22 @@ def installed(
- salt-minion: 2015.8.5-1.el6
:param bool refresh:
Update the repo database of available packages prior to installing the
requested package.
This parameter controls whether or not the packge repo database is
updated prior to installing the requested package(s).
If ``True``, the package database will be refreshed (``apt-get
update`` or equivalent, depending on platform) before installing.
If ``False``, the package database will *not* be refreshed before
installing.
If unset, then Salt treats package database refreshes differently
depending on whether or not a ``pkg`` state has been executed already
during the current Salt run. Once a refresh has been performed in a
``pkg`` state, for the remainder of that Salt run no other refreshes
will be performed for ``pkg`` states which do not explicitly set
``refresh`` to ``True``. This prevents needless additional refreshes
from slowing down the Salt run.
:param str fromrepo:
Specify a repository from which to install
@ -1470,8 +1484,24 @@ def latest(
Skip the GPG verification check for the package to be installed
refresh
Update the repo database of available packages prior to installing the
requested package.
This parameter controls whether or not the packge repo database is
updated prior to checking for the latest available version of the
requested packages.
If ``True``, the package database will be refreshed (``apt-get update``
or equivalent, depending on platform) before checking for the latest
available version of the requested packages.
If ``False``, the package database will *not* be refreshed before
checking.
If unset, then Salt treats package database refreshes differently
depending on whether or not a ``pkg`` state has been executed already
during the current Salt run. Once a refresh has been performed in a
``pkg`` state, for the remainder of that Salt run no other refreshes
will be performed for ``pkg`` states which do not explicitly set
``refresh`` to ``True``. This prevents needless additional refreshes
from slowing down the Salt run.
Multiple Package Installation Options:

View file

@ -193,6 +193,8 @@ class PkgModuleTest(integration.ModuleCase,
self.assertIn(ret, (True, None))
elif os_family == 'Debian':
ret = self.run_function(func)
if not isinstance(ret, dict):
self.skipTest('{0} encountered an error: {1}'.format(func, ret))
self.assertNotEqual(ret, {})
if not isinstance(ret, dict):
self.skipTest('Upstream repo did not return coherent results. Skipping test.')