Skip to content

[2016.3] Merge forward from 2015.8 to 2016.3 - #33151

Merged
rallytime merged 14 commits into
saltstack:2016.3from
rallytime:merge-2016.3
May 10, 2016
Merged

rallytime merged 14 commits into
saltstack:2016.3from
rallytime:merge-2016.3

Conversation

@rallytime

Copy link
Copy Markdown
Contributor

Conflicts:

  • salt/minion.py

Erik Johnson and others added 14 commits May 9, 2016 13:10
* 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
* Add mock function for mocking decorators

* Mock the stdlib user module because importing it will open the repl
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.
… salt-call (saltstack#33100)

* If cache_jobs: True is set, populate the local job cache

Fixes saltstack#32834

Allows a masterless minion to query the job cache.

* Refactor cache_jobs functionality to be DRY
Conflicts:
  - doc/conf.py
[2015.8] Merge forward from 2015.5 to 2015.8
…ll_test

Skipping salt-call --local test
[2015.8] Merge forward from 2015.5 to 2015.8
* 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.
* 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 saltstack#25040

* Silly typo!

* Remove tests which do not test any actual functionality or are too tightly coupled to the implementation
Conflicts:
  - salt/minion.py
@rallytime
rallytime merged commit ed2a7a7 into saltstack:2016.3 May 10, 2016
@rallytime
rallytime deleted the merge-2016.3 branch May 10, 2016 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants