Commit Graph

61994 Commits

Author SHA1 Message Date
gerhardqux
8acee5e06c Fix iptables --match-set (#23643) (#33301)
Function is expecting two arguments. But after processing state only one
parameter (it contain two words) is pushed into list of options.
This patch reverts the parsing of "iptables --match-set" to the behaviour
of salt v2014.*.

This is a backport of https://github.com/saltstack/salt/pull/28325

Closes #23643
2016-05-17 10:24:14 -06:00
Julien BONACHERA
7a181f2062 Handle more ipv6 error as an exception #33299 (#33300)
* Handle ipv6 exception in scp_file()

* Handle ipv6 exception in sftp_file()
2016-05-17 10:03:03 -06:00
Erik Johnson
eb47a15a5e Ignore retcode when checking service's status (#33294)
* Pass an actual error message when raising exception

* debian_service.py: ignore retcode when checking service's status

This prevents spurious errors from being logged when a nonexistant
service is polled, or the service is not running.

* freebsdservice.py: ignore retcode when checking service's status

This prevents spurious errors from being logged when a nonexistant
service is polled, or the service is not running.

* netbsdservice.py: ignore retcode when checking service's status

This prevents spurious errors from being logged when a nonexistant
service is polled, or the service is not running.

* openbsdservice.py: ignore retcode when checking service's status

This prevents spurious errors from being logged when a nonexistant
service is polled, or the service is not running.
2016-05-17 07:08:59 -07:00
David Boucha
757ef20a31 fix "loose" typo (#33290) 2016-05-16 17:13:40 -06:00
twangboy
652f0079db Fix minion start retry on Windows 2016-05-16 15:46:54 -06:00
Nicole Thomas
b7d98da64d Add auth_tries config option to minion.rst docs (#33287) 2016-05-16 14:17:19 -07:00
Nicole Thomas
061851bcbf Document minion_id_caching config value (#33282)
Fixes #33276
2016-05-16 13:12:38 -07:00
Nicole Thomas
06edba448e Merge pull request #33274 from rallytime/merge-2015.8
[2015.8] Merge forward from 2015.5 to 2015.8
2016-05-16 10:41:32 -06:00
rallytime
bf641d3a66 Merge branch '2015.5' into '2015.8'
No conflicts.
2016-05-16 10:14:43 -06:00
Nicole Thomas
4f3596a69f Add comment for test=true w/o changes ret and add changes dict example (#33254)
Fixes #30258

Add simple changes dictionary example
2016-05-15 13:13:43 -07:00
Nicole Thomas
2a30c4879b Update Git Policy docs to match Contribution guide (#33252)
Fixes #30946
2016-05-15 13:08:37 -07:00
Loren Gordon
8fa72f6588 Clarify file.replace MULTILINE flag interaction with regex anchors (#33137)
Fixes #33118
2016-05-13 15:39:06 -06:00
Clint Armstrong
056c273d51 Fix #33238 (#33239)
* Fix #33238

* pep8
2016-05-13 15:35:01 -06:00
Erik Johnson
1cd34ab299 Properly report on invalid gitfs/git_pillar/winrepo repos (#33245) 2016-05-13 15:33:44 -06:00
Thomas S Hatch
94a53da92e Merge pull request #33253 from rallytime/fix-30605
Update the release process docs
2016-05-13 15:28:11 -06:00
rallytime
a129d05b6d Update the release process docs
Fixes #30605
2016-05-13 14:28:57 -06:00
Justin Findlay
8c2c5b13f0 update 2015.8.9 release notes (#33251) 2016-05-13 13:54:16 -06:00
Joseph Hall
8ee8ee3b3a Handle ipv6 error as an exception (#33246) 2016-05-13 13:23:16 -06:00
Erik Johnson
855bed36c1 Check rendered YAML for invalid keys (#33213)
* Check rendered YAML for invalid keys

PyYAML will for some reason allow improper YAML, specifically double
curly-braces like ``{{ }}``, to be formed into an unhashable dict (that
is, one with a dict as a key). This commit will change the YAML renderer
such that the rendered data is recursively checked for keys that are
dicts, and raises an SaltRenderError if such a key is encountered.

Resolves #33073.

* Fix smtp returner test

This test was using jinja placeholders but was not passing the template
through the jinja renderer. This commit adds the use of the jinja
renderer to this test to fix the failure caused by the addition of
verification of the loaded YAML inthe previous commit.
2016-05-13 09:22:43 -07:00
Nicole Thomas
6fb25a8440 Make note of files that begin with '_' in master.d or minion.d dirs (#33224)
* Make note of files that begin with '_' in master.d or minion.d dirs

Fixes #21903

* Be more specific about where '_' files come from.
2016-05-13 09:14:57 -07:00
Nicole Thomas
a6dc0d2d05 Gate jnpr imports in salt.proxy.junos.py (#33150)
* Gate jnpr imports in salt.proxy.junos.py

Fixes #31975

The doc build fails when these are not gated because jnpr raises
an ImportError.

* Remove logging line for copy/paste
2016-05-13 09:13:22 -07:00
Nicole Thomas
64a89c4883 Add docs for the http state (#33222)
* Add docs for the http state

Fixes #21315

* Fix typo
2016-05-13 09:07:58 -07:00
Nicole Thomas
0a32163d63 Don't stacktrace when using --out=highstate at CLI during staterun. (#33215)
Fixes #29796
2016-05-13 08:23:35 -07:00
Laurent
04d714df6a propagate opts to salt.util.http call (#33219) 2016-05-13 08:03:24 -07:00
Justin Findlay
c8236c05cb update 2015.8.9 release notes (#33237) 2016-05-13 08:40:23 -06:00
Justin Findlay
4b1f460256 update 2015.5.11 release notes (#33236) 2016-05-13 08:30:59 -06:00
Nicole Thomas
6dc5d605b1 Merge pull request #33217 from rallytime/merge-forward-2015.8
[2015.8] Merge forward from 2015.5 to 2015.8
2016-05-12 16:45:39 -06:00
rallytime
4655607b58 Merge branch '2015.5' into '2015.8'
No conflicts.
2016-05-12 15:44:56 -06:00
Thomas S Hatch
698f1eb657 Merge pull request #33211 from cachedout/user_kill
Don't try to kill a parent proc if we can't
2016-05-12 15:29:50 -06:00
Nicole Thomas
730bec1eef [2015.8] Merge forward from 2015.5 to 2015.8 (#33207)
* Fix file.managed for Windows (#33181)

* Revert back to import string_types

For some reason, there is a problem with the following
code when run from the file.py module:
```
from salt.ext import six
comment = 'This is a string'
isinstance(comment, six.string_types)
```
When run from within the python shell it works fine.

* Add six import

* Fix some lint

* Use correct six import

* Changed it back to explicit import

* Additional comments specific to 2015.5

* Fix file.managed for real

* Move comment to clarify purpose

* update 2015.5.11 release notes (#33197)

* Add pip installed and removed test (#33178)

* Resolve issue with pkg module on Mint Linux (#33205)

Closes #32198
2016-05-12 13:54:47 -07:00
Mike Place
d4f2e5baa7 Don't try to kill a parent proc if we can't 2016-05-12 14:02:00 -06:00
Erik Johnson
379b151d75 Add a fetch when compiling git_pillar for masterless minions (#33204)
Fixes #32917.
2016-05-12 13:53:51 -06:00
Mike Place
f86832911e Resolve issue with pkg module on Mint Linux (#33205)
Closes #32198
2016-05-12 12:23:34 -06:00
Justin Findlay
b3805d825a cloud.clouds.ec2: cache each named node (#33164) 2016-05-12 10:16:27 -07:00
Erik Johnson
86db5df7c1 Properly handle failed git commands when redirect_stderr=True (#33203)
* Properly handle redirected stderr

When running subprocess.Popen.communicate() on a command run with stderr
redirected to subprocess.STDOUT, the 2nd element of the return tuple
(representing the stderr) will be None, since all of the standard error
was sent to stdout.

Functions interpreting the return data from cmd.run_all will be
expecting the ``stderr`` key in the return dict to contain a string, not
a NoneType, so this commit forces the stderr to be set to an empty
string when redirect_stderr is True.

* Look at stdout instead of stderr for error text when redirect_stderr is True
2016-05-12 10:10:46 -07:00
Justin Anderson
a09e1b6335 Add pip installed and removed test (#33178) 2016-05-12 08:31:41 -07:00
Erik Johnson
8a0950de27 Don't force use of global ssh_config when git identity file is specified (#33152)
I can no longer reproduce the edge case I was trying to fix with this
logic, and it's a bad solution anyway in that it caused #32685.
2016-05-12 08:28:19 -07:00
Justin Findlay
ce071330de update 2015.8.9 release notes (#33198) 2016-05-12 05:03:07 -06:00
Justin Findlay
96e3586f12 update 2015.5.11 release notes (#33197) 2016-05-12 04:54:40 -06:00
Shane Lee
09b072a412 Fix file.managed for Windows (#33181)
* Revert back to import string_types

For some reason, there is a problem with the following
code when run from the file.py module:
```
from salt.ext import six
comment = 'This is a string'
isinstance(comment, six.string_types)
```
When run from within the python shell it works fine.

* Add six import

* Fix some lint

* Use correct six import

* Changed it back to explicit import

* Additional comments specific to 2015.5

* Fix file.managed for real

* Move comment to clarify purpose
2016-05-11 17:59:05 -06:00
Nicole Thomas
6177a6a36f Merge pull request #33188 from rallytime/merge-2015.8
[2015.8] Merge forward from 2015.5 to 2015.8
2016-05-11 16:32:29 -06:00
rallytime
f12bba6ebc Merge branch '2015.5' into '2015.8'
Conflicts:
  - salt/cloud/deploy/bootstrap-salt.sh
2016-05-11 15:14:23 -06:00
Nicole Thomas
30868ab06c [2015.5] Update to latest bootstrap script v2016.05.11 (#33185) 2016-05-11 14:41:53 -06:00
Thomas S Hatch
264ad34b3b Pip fix (#33180)
* fix pip!!

* make it work with old pip as well

* Added resiliency

* Don't need to check, just get the right name
2016-05-11 14:39:30 -06:00
Justin Findlay
e9108e0c1c add 2015.8.9 release notes (#33161) 2016-05-10 18:39:09 -06:00
Justin Findlay
43288b268d add 2015.5.11 release notes (#33160) 2016-05-10 18:12:56 -06:00
Nicole Thomas
2d9919eb11 [2015.8] Update to latest bootstrap script v2016.05.10 (#33156) 2016-05-10 17:20:01 -06:00
Nicole Thomas
e0da8fda7d [2015.5] Update to latest bootstrap script v2016.05.10 (#33155) 2016-05-10 17:19:51 -06:00
Mike Place
033bef2ed2 Hash fileclients by opts (#33142)
* Hash fileclients by opts

There was an issue whereby the cache of the fileclient was being overwritten
by dueling minion instances in multimaster mode. This protects them by hashing
by the id of opts.

Closes #25040

* Silly typo!

* Remove tests which do not test any actual functionality or are too tightly coupled to the implementation
2016-05-10 15:04:52 -06:00
Nicole Thomas
f520fa3cf1 Back-port #31769 to 2015.8 (#33139)
* Handle empty acl_name in linux_acl state

Calls to setfacl interpret an empty group or user name to mean to be the
owner of the file they're operating on. For example, for a directory
owned by group 'admin', the ACL 'default:group::rwx' is equivalent to
'default:group:admin:rwx'.

The output of the getfacl execution module returns ACLs in the format of
'group:admin:rwx' instead of 'group::rwx'. This commit changes the
acl.present state to look for the owner of the file if the acl_name
paremeter is empty.

* Fix acl.present/acl.absent changing default ACLs

The behaviour of the acl.present and acl.absent is to check the data
structure returned by getfacl contains a key by the name of acl_type.

However, this data structure does not contain any default ACLs if none
exist, so this check will fail. We omit the check if a default ACL was
passed into the state functions.

Unfortunately, the call to modfacl may fail if the user passes in an
acl_type such as 'default:random'. In this case the state will appear to
succeed, but do nothing.

This fixes the state module to allow setting default ACLs on files which
have none.
2016-05-10 13:21:55 -07:00