Commit Graph

61748 Commits

Author SHA1 Message Date
Justin Findlay
e9108e0c1c add 2015.8.9 release notes (#33161) 2016-05-10 18:39:09 -06:00
Nicole Thomas
2d9919eb11 [2015.8] Update to latest bootstrap script v2016.05.10 (#33156) 2016-05-10 17:20:01 -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
Nicole Thomas
2800762b44 Merge pull request #33144 from rallytime/merge-2015.8
[2015.8] Merge forward from 2015.5 to 2015.8
2016-05-10 13:40:31 -06:00
rallytime
449176f06e Merge branch '2015.5' into '2015.8'
No conflicts.
2016-05-10 11:58:55 -06:00
Nicole Thomas
6cd1641840 Merge pull request #33141 from jtand/disable_local_pkg_install_test
Skipping salt-call --local test
2016-05-10 11:05:17 -06:00
Nicole Thomas
72d075e14e Merge pull request #33140 from rallytime/merge-2015.8
[2015.8] Merge forward from 2015.5 to 2015.8
2016-05-10 10:57:55 -06:00
Justin Anderson
8b1e34fb17 Skipping salt-call --local test 2016-05-10 10:48:18 -06:00
rallytime
c732c8104b Merge branch '2015.5' into '2015.8'
Conflicts:
  - doc/conf.py
2016-05-10 09:27:18 -06:00
Nicole Thomas
ad607ef4a9 If cache_jobs: True is set, populate the local job cache when running salt-call (#33100)
* If cache_jobs: True is set, populate the local job cache

Fixes #32834

Allows a masterless minion to query the job cache.

* Refactor cache_jobs functionality to be DRY
2016-05-10 07:38:07 -07:00
Anthony
64689a6dbb Fix broken parsing of usermgmt.conf on OpenBSD (#33135)
When creating a new user, if a group of the same name already exists,
the usermgmt.conf file is consulted to determine the primary group.
It's in these cases that the parsing bug is triggered.

This code change addresses several of the existing issues:

- The previous split statement explicitly specified a single space.
  Since a config line may have any number of spaces and/or tabs
  surrounding the entries, the resulting array's elements may be
  incorrect.

- According to the man pages for usermgmt.conf, the "group" config
  entry accpets a single parameter -- so we shouldn't iterate.

- The "val[1]" was returning the 2nd letter of each word and not the
  second word on the config line as intended.
2016-05-10 07:33:32 -07:00
Seth House
878d34a865 Doc mock decorators (#33132)
* Add mock function for mocking decorators

* Mock the stdlib user module because importing it will open the repl
2016-05-10 07:25:13 -07:00
Nicole Thomas
06a382e59c Add a check that the cmdline of the found proc matches (#33129) 2016-05-09 15:15:34 -07:00
Erik Johnson
10018e9156 salt.utils.gitfs: fix formatting for warning messages (#33064)
* salt.utils.gitfs: fix formatting for warning messages

When git_pillar support was added to salt.utils.gitfs, the
recommendation globals had string formatting placeholders added to them,
but the locations where these values are referenced do not call
``.format()`` to properly replace them. This commit fixes that
oversight.

* Remove more gitfs and master-specific wording from log messages
2016-05-09 13:10:19 -07:00
Shane Lee
d45b599036 Fix 33058 (#33099)
* Fix servermanager module

- Added check for 2008 version of windows
- Added Import-Module ServerManager to _pshell_json.
  Apparently this needs to run each time we issue a
  servermanager command.

* Fix list_available
2016-05-09 09:45:11 -07:00
Colton Myers
8acc3147d6 Merge pull request #33106 from abednarik/abednarik_master_Finger_stacktrace
Moved _finger_fail method to parent class.
2016-05-09 10:31:09 -06:00
abednarik
91a69ba54a Moved _finger_fail method to parent class.
Method _finger_fail method from SAuth to AsyncAuth class to make method available
in both class and fix an issue where _finger_Fail is called inside AsyncAuth.
2016-05-07 11:34:15 -03:00
Megan Wilhite
20c7e10793 clarify docs that map is designed to be run once. is not stateful (#33102) 2016-05-06 15:53:31 -06:00
Nicole Thomas
558561d86f cloud.query needs to define mapper.opts (#33098) 2016-05-06 14:17:34 -06:00
Nicole Thomas
c1f7aed8a5 Merge pull request #33096 from rallytime/merge-2015.8
[2015.8] Merge forward from 2015.5 to 2015.8
2016-05-06 13:27:57 -06:00
rallytime
0fd5e9d157 Merge branch '2015.5' into '2015.8'
Conflits:
  - salt/minion.py
  - tests/integration/states/file.py
2016-05-06 12:04:06 -06:00
Mike Place
30edeadafd Lower display of msgpack failure msg to debug (#33078)
Closes #33074
2016-05-06 08:28:14 -07:00
Justin Anderson
d4928c5a22 Use saltstack repo in buildpackage.py on CentOS 5 (#33080) 2016-05-06 08:27:31 -07:00
idonin
22a327bc0b salt-cloud: fix ipv6-only virtual machines (#32865)
* salt-cloud: fix ipv6-only virtual machines

* fix hostname for rsync fallback in scp_file function

* use 4 spaces instead of 2

* remove global variable, use direct socket call instead
2016-05-06 09:25:57 -06:00
Justin Findlay
e788f7ec44 modules.npm: do not log npm --version at info level (#33084) 2016-05-06 08:22:20 -07:00
Mike Place
3808d05838 Merge pull request #33081 from jfindlay/ssh_doc
ssh docs: install py-2.6 for RHEL 5
2016-05-06 08:18:39 -07:00
Mike Place
6d604926d3 Merge pull request #33088 from isbm/isbm-zypper-fix-booleans
Bugfix: Restore boolean values from the repo configuration
2016-05-06 08:13:27 -07:00
Megan Wilhite
2c6326f14a fix tests for file.blockplace to remove newline (#33082) 2016-05-06 08:44:20 -06:00
Bo Maryniuk
3ca203eb8e Bugfix (follow-up): setting priority requires non-positive integer 2016-05-06 13:27:55 +02:00
Bo Maryniuk
79a46e091c Add repo config test 2016-05-06 12:57:52 +02:00
Bo Maryniuk
222b8369ca Add test data for repos 2016-05-06 12:57:36 +02:00
Bo Maryniuk
b746fa35f0 Bugfix: Restore boolean values from the repo configuration 2016-05-06 12:29:48 +02:00
Justin Findlay
a2c927b173 ssh docs: install py-2.6 for RHEL 5 2016-05-05 16:16:54 -06:00
Mike Place
fb89877cf2 Merge pull request #32892 from isbm/isbm-zypper-env-variables
Resolve Zypper locks on asynchronous calls
2016-05-05 07:34:59 -07:00
Megan Wilhite
61d126cb98 add test for installing package while using salt-call --local (#33025)
* add test for installing package while using salt-call --local

* fix pylint
2016-05-05 07:17:12 -07:00
Ronald van Zantvoort
3e0bf233ee Add fun_args to scheduled return data (part of #24237) (#33039)
* Add fun_args and fun_kwargs to scheduled return data (part of #24237)

* scheduled return data (part of #24237): Improved fix for fun_args
2016-05-05 07:15:26 -07:00
Thomas S Hatch
264c0d4c35 Don't append a newline when creating new content with blockreplace (#33049)
Fix #12422
2016-05-05 07:11:55 -07:00
Nicole Thomas
54b783a0b0 Pass all data to batch.run() call when using --failhard (#33048)
Fixes #24996
2016-05-05 07:11:16 -07:00
Nicole Thomas
2dbfa55f06 Display command output when command fails with batch + failhard options (#33050)
* Display command output when command fails with batch + failhard options

Fixes #32452

* Use 'res' instead of 'ret' in error message to see minion id
2016-05-05 07:11:01 -07:00
Nicole Thomas
add9199d34 Allow security_groups kwarg for boto_elb.present to be string or list (#33053)
Fixes #33041

Also added documentation for examples on how to use it.
2016-05-05 07:09:22 -07:00
Nicole Thomas
111701c8bb [2015.8] Merge forward from 2015.5 to 2015.8 (#33054)
* Add run_on_start docs to schedule.rst (#32958)

Fixes #22580

* Backport #33021 manually to 2015.5 (#33044)

* Saltfile with pillar tests (#33045)

* add file.managed with pillar data tests

* do not require git for other tests

* Whitespace...
2016-05-05 07:05:55 -07:00
Justin Anderson
1066063a19 File and User test fixes for 2015.8 on Fedora23 (#33056)
* Fix failing user present test

* Fix file_test.test_symlink failure on 2015.8
2016-05-05 07:05:10 -07:00
Justin Anderson
6d3e4e8935 File and User test fixes for 2015.5 on Fedora23 (#33055)
* Fix file_test.test_symlink on 2015.5

* Fix failing user present test
2016-05-05 07:00:59 -07:00
Megan Wilhite
d48b2b8b52 test pillar.items output (#33060) 2016-05-05 06:51:27 -07:00
Jεan Sacren
398793bfc0 Fix minor document error of test.assertion (#33067) 2016-05-05 06:50:46 -07:00
Nicole Thomas
f97b5d5531 Back-port #33030 to 2015.8 (#33040)
* When we restart the minion we should show the error that caused it

* looks better with a newline
2016-05-04 15:18:43 -07:00
Megan Wilhite
f8757631b2 Saltfile with pillar tests (#33045)
* add file.managed with pillar data tests

* do not require git for other tests
2016-05-04 14:37:57 -06:00
Thomas S Hatch
1d7892421e Backport #33021 manually to 2015.5 (#33044) 2016-05-04 14:34:29 -06:00
Nicole Thomas
e90a50142a Update the docs for saltutil.find_job to be more clear/accurate (#33017)
* Update the docs for saltutil.find_job to be more clear/accurate

* Spelling fix
2016-05-04 09:15:33 -07:00