Commit Graph

70849 Commits

Author SHA1 Message Date
Mike Place
3584f935fa Merge pull request #40053 from saltstack/rh_ip_patch
Update rh_ip.py
2017-03-15 12:57:31 -06:00
Nicole Thomas
837432d3d2 Merge pull request #40041 from terminalmage/issue40011
Fix transposed lines in salt.utils.process
2017-03-15 11:58:24 -06:00
Daniel Wallace
219947acdb Update rh_ip.py 2017-03-15 12:07:27 -05:00
velom
3fae91d879 correctly parse "pkg_name===version" from pip freeze 2017-03-15 18:00:38 +03:00
Erik Johnson
5b5d1b375c Fix transposed lines in salt.utils.process
Resolves #40011.
2017-03-15 09:31:30 -05:00
Mike Place
ee7f3b1200 Merge pull request #40021 from Ch3LL/2016.3.6_release
2016.3.6 release notes with change log
2017-03-14 15:06:18 -06:00
Ch3LL
f3e7e4fb2a Add 2016.3.6 Release Notes 2017-03-14 13:39:48 -06:00
Nicole Thomas
26895b7be2 Merge pull request #40016 from terminalmage/fix-grains-test
Attempt to fix failing grains tests in 2016.3
2017-03-14 12:34:31 -06:00
Nicole Thomas
0c61d064ad Merge pull request #39980 from vutny/cmd-run-state-bg
[2016.3] Allow to use `bg` kwarg for `cmd.run` state function
2017-03-14 11:16:13 -06:00
Nicole Thomas
0ec81a4cde Fixup a syntax error 2017-03-14 11:15:02 -06:00
Pablo Suárez Hernández
9f5c3b7dcd Allows to set custom timeouts for 'manage.up' and 'manage.status' 2017-03-14 16:40:09 +00:00
Pablo Suárez Hernández
2102d9c75c Allows to set 'timeout' and 'gather_job_timeout' via kwargs 2017-03-14 16:39:28 +00:00
Erik Johnson
5d84b40bfd Attempt to fix failing grains tests in 2016.3
The tearDown appears to only be removing the grain if it matches a
specific value. This may be leading to the grain value not being blank
at the time the next test is run.

Instead of only deleting the grain if it matches a specific value,
instead delete all items from that grain to ensure that it is empty for
the next test.
2017-03-14 11:25:15 -05:00
Erik Johnson
b042484455 Merge pull request #39994 from rallytime/ulimits-dockerng-version
Add a versionadded tag for dockerng ulimits addition
2017-03-13 15:58:01 -05:00
rallytime
37bd800fac Add a versionadded tag for dockerng ulimits addition
Fixes #39942
2017-03-13 14:20:02 -06:00
Erik Johnson
e125c94ba5 Merge pull request #39988 from terminalmage/dockerng-timeout
Add comment explaining change from #39973
2017-03-13 13:37:28 -05:00
Erik Johnson
bd2519ed1b Add comment explaining change from #39973
See https://github.com/saltstack/salt/pull/39973#issuecomment-286142419
2017-03-13 10:51:29 -05:00
Denys Havrysh
a81dc9dfc1 [2016.3] Allow to use bg kwarg for cmd.run state function 2017-03-13 11:59:03 +02:00
Mike Place
cd0336e868 Merge pull request #39973 from terminalmage/dockerng-timeout
Don't use docker.Client instance from context if missing attributes
2017-03-11 07:57:49 -07:00
Erik Johnson
869416e7db Don't use docker.Client instance from context if missing attributes
Under some circumstances (which I can't reliably reproduce), the
docker.Client() instance does not have a timeout attribute, causing
anything that needs to use the docker client to result in a traceback.

This fixes this corner case (later branches initialize the timeout
differently).
2017-03-10 21:48:49 -06:00
Mike Place
282c607d26 Merge pull request #39962 from cachedout/disable_mentionbot_delay_3
Disable mention bot delay on 2016.3
2017-03-10 13:24:07 -07:00
Mike Place
7a638f204b
Disable mention bot delay on 2016.3 2017-03-10 13:23:20 -07:00
Mike Place
1e0c88ae08 Merge pull request #39937 from cachedout/gpg_zypper
Fix --non-gpg-checks in zypper module
2017-03-10 11:02:51 -07:00
Mike Place
13ed0d1209
Fix --non-gpg-checks in zypper module
Fix via @jporcaro
2017-03-09 17:18:45 -07:00
Nicole Thomas
4526fc6e08 Merge pull request #39929 from terminalmage/pr-39770-2016.3
Scrap event-based approach for refreshing grains (2016.3 branch)
2017-03-09 15:03:15 -07:00
Erik Johnson
cf0100dabe Scrap event-based approach for refreshing grains
The call to refresh_modules() in saltutil.refresh_grains was resulting
in a race condition with the event I added to refresh the grains. This
meant that, even though self.opts['grains'] was being changed by the new
event, before that process could finish the module refresh was itself
re-loading the grains and re-packing these new grains into the
__grains__ dunder, negating the refresh.

Since the module refresh loads the grains anyway, this commit changes
saltutil.refresh_grains to refresh the modules. It also removes the
refresh argument recently added to the grains module functions, as we're
no longer using it to conditionally refresh modules.
2017-03-09 13:24:01 -06:00
Nicole Thomas
111110caf8 Merge pull request #39919 from The-Loeki/patch-1
CIDR matching supports IPv6, update docs
2017-03-09 09:02:59 -07:00
Ronald van Zantvoort
170cbadc54 CIDR matching supports IPv6, update docs
After #22080 IPv6 CIDR matching is supported & functional, docs should('ve) reflected that since 2015.8
2017-03-09 13:52:13 +01:00
Nicole Thomas
caf10e9988 Merge pull request #39899 from techhat/cleanupdisks
Update cleanup function for azure
2017-03-08 16:28:32 -07:00
Joseph Hall
baf4579e63 Update cleanup function for azure 2017-03-08 10:19:06 -07:00
Mike Place
fcf95f3654 Merge pull request #39871 from terminalmage/squelch-import-warning
Squelch warning for pygit2 import
2017-03-07 13:40:17 -07:00
Erik Johnson
2b2ec69d04 Squelch warning for pygit2 import
RedHat updated cffi for RHEL/CentOS 7.3, which causes a pair of warnings
on the pygit2 import. This warning is spit out to the CLI on several
commands, when they result in the git fileserver backend to be loaded.

This commit squelches that warning as it is just noise. Upgrading
pygit2/libgit2 would solve this, but that is not likely to happen in
RHEL/CentOS 7.
2017-03-07 09:31:43 -06:00
Mike Place
d46845a5b6 Add newline at end of file
Needed for lint
2017-03-06 20:54:53 -07:00
Tomas Zvala
d4a3c8a66a Use regular expression instead of split when replacing authorized_keys
In some cases (e.g. Ubuntu cloud-init) authorized_keys may contain quoted spaces as part of options:
`no-port-forwarding,no-agent-forwarding,no-X11-forwarding,com‌​mand="echo 'Please login as the user \"ubuntu\" rather than the user \"root\".';echo;sleep 10" ssh-rsa xxxxxx`
which confused the split in _replace_auth_key() in modules/ssh.py.
2017-03-06 18:36:04 +01:00
Mike Place
f223fa8906 Merge pull request #39794 from cachedout/clean_monitor_socket_shutdown
Clean up errors which might be thrown when the monitor socket shuts down
2017-03-04 09:12:37 -07:00
Mike Place
4002dc1947 Merge pull request #39819 from terminalmage/top-file-matching-docs
Improve the Top File matching docs
2017-03-04 09:06:39 -07:00
Mike Place
c08aaeb7fd Merge pull request #39820 from ni3mm4nd/beacons_topic_doc_typo
Add missing apostrophe in Beacons topic documentation
2017-03-04 09:05:28 -07:00
Mike Place
cbd2a4e3cc Merge pull request #39826 from cachedout/yubikey_fix
Add group func to yubikey auth
2017-03-04 09:02:13 -07:00
Mike Place
6125eff02d
Add group func to yubikey auth
Because we don't support groups with yubikeys (and can't, in fact)
we need to dummy up this to always return false. This allows individual
user auths to work, whereas they would fail prior to this change.
2017-03-03 16:46:24 -07:00
Jan Kadlec
804b12048c Add missing apostrophe 2017-03-03 17:58:53 +01:00
Erik Johnson
7178e77eee Improve the Top File matching docs
In 2014.7.0, default matcher in the top file was changed to the compound
matcher, but the docs still suggest that it is the glob matcher. This
commit updates the docs to explicitly mention that the compound matcher
is now the default, and adds a table describing all of the available
matchers that can be set in the top file.
2017-03-03 10:40:22 -06:00
Mike Place
f575ef459f Merge pull request #39624 from drawsmcgraw/39622
Address issue 39622
2017-03-03 08:59:03 -07:00
Pedro Algarvio
1f3619c1e5 Merge pull request #39796 from cachedout/master_shutdown
Stop the process manager when it no longer has processes to manage
2017-03-02 23:03:12 +00:00
Mike Place
e31d46c1b8
Stop the process manager when it no longer has processes to manage 2017-03-02 14:45:57 -07:00
Mike Place
2e683e788b
Clean up errors which might be thrown when the monitor socket shuts down 2017-03-02 13:27:32 -07:00
Mike Place
53341cf152 Merge pull request #39791 from gtmanfred/2016.3
load runners if role is master
2017-03-02 12:43:41 -07:00
Daniel Wallace
3ab4f843bf load runners if role is master 2017-03-02 12:05:52 -06:00
Mike Place
c234c25092 Merge pull request #39784 from sergeizv/fix-39782
Fix 39782
2017-03-02 09:08:50 -07:00
Sergei Zviagintsev
b71c3fe13c Revert "cloud.clouds.ec2: cache each named node (#33164)"
This reverts commit b3805d825a ("cloud.clouds.ec2: cache each named
node (#33164)").

Commit 25771fc030 ("_get_node return instance info directly, not a
dict of instances") from 2016.3 feature release changed how the result
of _get_node should be interpreted. Before it was like

  res = _get_node(...)
  node = res[name]

and after the commit it became

  node = _get_node(...)

Commit b3805d825a ("cloud.clouds.ec2: cache each named node (#33164)")
submitted into 2015.8 as a bugfix for #33162 added loops over the keys
of a dictionary returned by _get_node, fixing
salt.utils.cloud.cache_node calls in queue_instances() and
show_instance().

But after being merged into 2016.3 with merge commit 679200aeb2
("Merge branch '2015.8' into '2016.3'"), the commit in question
reintroduced the bug on 2016.3 because of changed return value of
_get_node.

Fixes #39782
2017-03-02 12:42:24 +01:00
Mike Place
4ee59be22c Merge pull request #39766 from rallytime/fix-ipv6-connection
Restore ipv6 connectivity and "master: <ip>:<port>" support
2017-03-01 19:55:54 -07:00