Commit Graph

86041 Commits

Author SHA1 Message Date
Alexandru Bleotu
f211874462 Added tests for salt.utils.vmware.update_dvs 2017-09-22 14:31:19 -04:00
Alexandru Bleotu
ce6e8c8522 Added salt.utils.vmware.update_dvs 2017-09-22 14:31:16 -04:00
Alexandru Bleotu
d31d98c2d3 Added tests for salt.utils.vmware.create_dvs 2017-09-22 14:31:14 -04:00
Alexandru Bleotu
793acab99f Added for salt.utils.vmware.create_dvs 2017-09-22 14:31:11 -04:00
Alexandru Bleotu
4f09bf5e88 Added tests for salt.utils.vmware.get_network_folder 2017-09-22 14:31:08 -04:00
Alexandru Bleotu
c0040aaa1a Added salt.utils.vmware.get_network_folder that retrieves the network folder 2017-09-22 14:31:06 -04:00
Alexandru Bleotu
3584a91692 Added tests for salt.utils.vmware.get_dvss 2017-09-22 14:31:03 -04:00
Alexandru Bleotu
173a697be2 Added comments and imports for dvs functions in salt.utils.vmware 2017-09-22 14:31:01 -04:00
Alexandru Bleotu
9e32ce72cc Added salt.utils.vmware.get_dvss that retrieves DVSs in a datacenter 2017-09-22 14:30:58 -04:00
Mike Place
15c6e69bc1 Merge pull request #43651 from bodhi-space/infra5461
Re-opening https://github.com/saltstack/salt/pull/43642 which I deleted too soon
2017-09-22 12:25:22 -06:00
Mike Place
75dd97ee50 Merge pull request #43645 from alexbleotu/cluster_states-gh
VMware cluster states + dependencies
2017-09-22 11:46:25 -06:00
Mike Place
7e3a6b92d5 Merge pull request #43518 from terminalmage/issue38971
Reduce unnecessary file downloading in archive/file states
2017-09-22 11:44:04 -06:00
Mike Place
530a6bb2e7 Merge pull request #43698 from theredcat/elastic-timeout
Add timeout option to elasticsearch execution module
2017-09-22 11:30:14 -06:00
Nicole Thomas
c0bfa7a77c Merge pull request #43684 from rklaren/salt-cloud-libvirt-fix-python-warning
salt-cloud libvirt updates
2017-09-22 10:50:11 -04:00
Nicole Thomas
0ec22d48a0 Merge pull request #43688 from abergmann/develop
Extend openscap module command parsing.
2017-09-22 10:43:52 -04:00
Nicole Thomas
49bb3b0a52 Merge branch 'develop' into issue38971 2017-09-22 10:38:34 -04:00
Nicole Thomas
7448153154 Merge pull request #43691 from dmyerscough/fix-docstring-formatting
Fix docstring code-blocks
2017-09-22 10:34:51 -04:00
Nathan DELHAYE
25a1958304 Add timeout option to elasticsearch execution module 2017-09-22 15:49:44 +02:00
Damian Myerscough
012281dea2 Fix docstring code-blocks 2017-09-21 22:46:03 -07:00
Ric Klaren
b750c44224 Fix some lint warnings 2017-09-21 22:38:13 -05:00
Ric Klaren
7595f97488 Ensure libvirt does not write to stderr by itself
Install error handler and redirect stderr output to debug log.
2017-09-21 22:38:13 -05:00
Ric Klaren
ab0892c802 Fix fire_event for destroy 2017-09-21 22:38:13 -05:00
Ric Klaren
022a25e3fc Mention Fedora 26 support 2017-09-21 22:38:13 -05:00
Mike Place
d7b19ab64f Merge pull request #43686 from terminalmage/issue43383
Make git_pillar runner return None when no changes are fetched
2017-09-21 15:44:48 -06:00
Mike Place
9c585e052f Merge pull request #43683 from rallytime/stale-config-update
Reduce the number of days an issue is stale by 30
2017-09-21 14:58:36 -06:00
Alexander Bergmann
f5188cb886 Extend openscap module command parsing.
This commit extends the cmd_pattern with unknown parts of the parsing
process. Otherwise it is not possible to customize the openscap XCCDF
execution with additional parameters like --remediate.
2017-09-21 22:28:31 +02:00
Mike Place
ed22e0f2fd Merge pull request #43507 from rallytime/replace-utils-calls
Update which and is_windows calls to use new paths
2017-09-21 14:11:21 -06:00
Mike Place
9fc0699613 Merge pull request #43511 from spenceation/panos/security-rule
- Added get_security_rule function to PANOS execution module.
2017-09-21 14:08:32 -06:00
Erik Johnson
7dcac84521 Make git_pillar runner return None when no changes are fetched
This distinguishes cases in which no changes were fetched from those
when there were errors.
2017-09-21 14:05:31 -05:00
Mike Place
310f826cc0 Merge pull request #43524 from kbespalov/develop
[network.interface_ip] Correct handling of interfaces without IP
2017-09-21 12:06:24 -06:00
Nicole Thomas
4d50243971 Merge pull request #43544 from lyft/fix-boto3-util-pack-error
Fix boto3 util pack error
2017-09-21 14:04:09 -04:00
rallytime
100113726c
Reduce the number of days an issue is stale by 30 2017-09-21 13:18:07 -04:00
Erik Johnson
8b237c129a Improve logging when keeping the cached source file 2017-09-21 12:04:53 -05:00
Erik Johnson
4d7bcff58f Rename cache_source arg to keep_source
This new argument name is ambiguous as "cache" can either be interpreted
as a noun or a verb.
2017-09-21 12:04:53 -05:00
Erik Johnson
bb1d40e425 Guard against exceptions when running file.cached state within archive.extracted
The code used to have a salt.state.HighState instance call the state.
That method pre-dated availability of __states__ to use for executing
the state function. The HighState instance handles exception catching
and produces a list as output if there were errors which arose before
the state was executed. Running the state function using __states__ does
not give you any such protection. This commit removes the type check on
the return data, as it will never be a list when run via __states__, and
wraps the state function in a try/except to catch any exceptions that
may be raised by invoking the file.cached state.
2017-09-21 12:04:53 -05:00
Erik Johnson
68ae5a2ec6 Add documentation for using file.cached state within other states 2017-09-21 12:04:52 -05:00
Erik Johnson
fd1d89d385 Reduce unnecessary file downloading in archive/file states
The file.managed state, which is used by the archive.extracted state to
download the source archive, at some point recently was modified to
clear the file from the minion cache. This caused unnecessary
re-downloading on subsequent runs, which slows down states considerably
when dealing with larger archives.

This commit makes the following changes to improve this:

1. The fileclient now accepts a `source_hash` argument, which will cause
   the client's get_url function to skip downloading http(s) and ftp
   files if the file is already cached, and its hash matches the passed
   hash. This argument has also been added to the `cp.get_url` and
   `cp.cache_file` function.

2. We no longer try to download the file when it's an http(s) or ftp URL
   when running `file.source_list`.

3. Where `cp.cache_file` is used, we pass the `source_hash` if it is
   available.

4. A `cache_source` argument has been added to the `file.managed` state,
   defaulting to `True`. This is now used to control whether or not the
   source file is cleared from the minion cache when the state
   completes.

5. Two new states (`file.cached` and `file.not_cached`) have been added
   to managed files in the minion cache.

In addition, the `archive.extracted` state has been modified in the
following ways:

1. For consistency with `file.managed`, a `cache_source` argument has
   been added. This also deprecates `keep`. If `keep` is used,
   `cache_source` assumes its value, and a warning is added to the state
   return to let the user know to update their SLS.

2. The variable name `cached_source` (used internally in the
   `archive.extracted` state) has been renamed to `cached` to reduce
   confusion with the new `cache_source` argument.

3. The new `file.cached` and `file.not_cached` states are now used to
   manage the source tarball instead of `file.managed`. This improves
   disk usage and reduces unnecessary complexity in the state as we no
   longer keep a copy of the archive in a separate location within the
   cachedir. We now only use the copy downloaded using `cp.cache_file`
   within the `file.cached` state. This change has also necessitated a
   new home for hash files tracked by the `source_hash_update` argument,
   in a subdirectory of the minion cachedir called `archive_hash`.
2017-09-21 12:04:52 -05:00
Mike Place
0e9eaed62c Merge pull request #43653 from terminalmage/gitfs-update-url
salt.utils.gitfs: Enforce fetch URL along with refspecs and http.sslVerify
2017-09-21 10:53:21 -06:00
Mike Place
d6057a8007 Merge pull request #43678 from rallytime/add-purefa-autodocs
Add autodoc file for new purefa execution module
2017-09-21 10:35:20 -06:00
Alexandru Bleotu
f46afa0fa9 Removed references to Pthon 2.6 as it's no longer supported in Salt 2017-09-21 12:31:40 -04:00
Alexandru Bleotu
2f55841037 Added python/pyvmomi compatibility check to salt.modules.vsphere 2017-09-21 12:31:38 -04:00
Alexandru Bleotu
5f30477a6a Added python/pyvmomi compatibility check to salt.states.esxcluster 2017-09-21 12:31:36 -04:00
rallytime
bd88c375d8
Add autodoc file for new purefa execution module 2017-09-21 11:51:15 -04:00
Nicole Thomas
f66eb1c5ad Merge pull request #43588 from gtmanfred/do
digitalocean should be one word.
2017-09-21 09:25:38 -04:00
Nicole Thomas
f4eac59d96 Merge pull request #43652 from VertigoRay/patch-1
Salt Repo has Deb 9 and 8
2017-09-21 09:19:27 -04:00
Nicole Thomas
9eab1ea94c Merge pull request #43663 from moio/develop-multiprocessing-doc-fix
multiprocessing minion option: documentation fixes (develop)
2017-09-21 09:01:30 -04:00
Alexandru Bleotu
cbefa4d3fd Fixed except statement 2017-09-21 06:42:52 -04:00
Silvio Moioli
4a35fe5019 multiprocessing minion option: documentation fixes 2017-09-21 11:30:21 +02:00
Alexandru Bleotu
ee0dcd7b67 More pylint 2017-09-21 05:01:19 -04:00
Alexandru Bleotu
1706c24add Imported salt.exceptions in salt.states.esxcluster 2017-09-21 04:14:59 -04:00