Commit Graph

69400 Commits

Author SHA1 Message Date
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
85c8ba1e47 Merge pull request #33192 from rallytime/merge-2016.3
[2016.3] Merge forward from 2015.8 to 2016.3
2016-05-11 17:29:07 -06:00
rallytime
a93c35d537 Merge branch '2015.8' into '2016.3'
Conflicts:
  - salt/cloud/deploy/bootstrap-salt.sh
2016-05-11 16:36:42 -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
Chandler
b28b507c4a Add username, channel, and emoji support to slack module (#33184)
* Add username, channel, and emoji support to slack module

* Fix for API compatibility
2016-05-11 16:03:06 -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
6af212f224 Whitespace fix for develop (#33186) 2016-05-11 14:49:30 -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
Seth House
10261580ce Add ext_pillar module for reading from CSV files (#33133) 2016-05-11 09:32:48 -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
a599be9777 [develop] Update to latest bootstrap script v2016.05.10 (#33158) 2016-05-10 17:20:53 -06:00
Nicole Thomas
eac3a3f067 [2016.3] Update to latest bootstrap script v2016.05.10 (#33157) 2016-05-10 17:20:45 -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
Joseph Hall
ed05544aba Initial Azure ARM driver commit (#33122)
* Initial Azure ARM driver commit

* Adding version added string

* Lint

* Add the ability to use a custom image

* Fix source image reference

* Parse image details in the right place

* Correct variable name

* Add OS type

* Fix userdata

* Use image, not source_image

* Fix image details for custom images

* Only custom images use os_type
2016-05-10 16:31:05 -06:00
Nicole Thomas
ed2a7a7ad1 Merge pull request #33151 from rallytime/merge-2016.3
[2016.3] Merge forward from 2015.8 to 2016.3
2016-05-10 16:14:45 -06:00
C. R. Oldham
aed0f07349 Strip ldap fqdn (#33127)
* Add option to strip off domain names on computer names that come from LDAP/AD

* Add strip_domains option for ldap.

* Add documentation for auth.ldap.minion_stripdomains.
2016-05-10 14:42:19 -07:00
rallytime
c6f18fac3f Merge branch '2015.8' into '2016.3'
Conflicts:
  - salt/minion.py
2016-05-10 15:13:24 -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
Erik Johnson
c5b0cb4f72 Fix regression in 2016.3 HEAD when version is specified (#33146)
Resolves #33013.
2016-05-10 15:02:29 -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
kerrick-lyft
39a39ff725 Clarify that state ID comes before module ID (#33148) 2016-05-10 13:21:17 -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
Loren Gordon
6b97161293 Support verify_options for pkg.verify
This patch adds support to `pkg.verify` for a list of `verify_options`
that modify how `rpm -V` is executed.

Fixes #33145
2016-05-10 15:26:54 -04: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
Mike Place
a1f286fc9b Move salt-ssh thin dir location to /var/tmp (#33130)
* Move salt-ssh thin dir location to /var/tmp

Closes #32771

* Remove performance penelty language
2016-05-10 07:36:03 -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
llua
0082404d79 useradd: correctly handle a user without a loginclass on openbsd (#33138) 2016-05-10 07:30:49 -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
a7e876a21f Merge pull request #33128 from rallytime/merge-2016.3
[2016.3] Merge forward from 2015.8 to 2016.3
2016-05-09 17:37:18 -06: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
rallytime
92e0c17645 Merge branch '2015.8' into '2016.3'
No conflicts.
2016-05-09 13:55:06 -06:00
Moe
ec6734d367 Add list_values to reg module (#33120) 2016-05-09 12:48:57 -07:00
Nicole Thomas
7aefc80006 Make sure new csf module docs are included in build (#33126) 2016-05-09 12:48:15 -07:00
Nicole Thomas
b6cf601722 Merge pull request #33103 from rallytime/merge-develop
[develop] Merge forward from 2016.3 to develop
2016-05-09 13:24:25 -06:00
plastikos
0efbbcd17f * Improve init script: specifically manage salt configurations rather than arbitrary salt processes (#32666)
* * Improve init script: specifically manage salt configurations rather than arbitrary salt processes

Unfortunately SysV init scripts tend to rummage through PIDs filtering for
appropriate processes to manage.  Unfortunately the filters are usually weak
and don't account for similar processes run by other users, PIDs of dead
processes being re-used for completely different executables, etc..  These
weaknesses can result in killing unrelated processes with potentially serious
results.

These improvements to the SysV init script is a complete rewrite with the
following improvements:

  * Specifically manage individual salt configurations rather than looking for
    salt minion-like processes.
  * Obtain salt minion information from the salt configuration - use the
    information to manage the specifically configured process.
  * Drop all of the platform-specific helper functions that allow the
    previously-mentioned weaknesses.

    + Unfortunately this means that the output information may not match the
      specific platform (this could easily be corrected).

  * Now can manage multiple salt processes started by different users

    + Unfortunately starts/stops/restarts as a group and is unable to manage
      them both as a group or as individual processes (this could easily be
      corrected)

The new initscript also allows various control variables to be overridden by
environment variables or through settings put in ``/etc/sysconf/salt`` or
``/etc/default/salt``.

:SALTMINION_DEBUG: Dump each line expansion before execution, output system
                   information on failure.  Default: unset

:SALTMINION_BINDIR: Location of ``salt-minion``, ``salt-call`` and other
                    executables.  Default: ``/usr/bin``

:SALTMINION_SYSCONFDIR: The parent directory for the ``salt`` configuration
                        directory and the ``sysconfig`` or ``default``
                        directory.

* Add lines that went missing in the rebase+squash
2016-05-09 10:57:13 -07:00
Loren Gordon
f354f68b64 Join domain with new name (#32988)
This patch will use a new, "pending" computer name when joining a
Windows system to an Active Directory domain. This allows a user
to rename a computer, then join a domain, and the new computer
name will be used for the computer account. Without this patch,
the old computer name would be used for the domain computer account.

This flag has been tested to work even if the computer name is not
changing.

See https://msdn.microsoft.com/en-us/library/windows/desktop/aa370433(v=vs.85).aspx.
2016-05-09 10:51:11 -07:00
Shubham Jain
b774daf313 Fix functionality of unless in states.cmd, when unless condition given as a list (#33026) 2016-05-09 10:50:00 -07:00
Robin
5a9260734f Fix override of ec2 volumetype (#33115)
* Fix override of ec2 volumetype

* Fixed the fix for ec2 volumetype override
2016-05-09 10:45:15 -07:00
rallytime
bfaf5409e6 Pylint 2016-05-09 11:43:03 -06:00
rallytime
f2dec459d8 Take the develop version of glusterfs.py state 2016-05-09 11:17:46 -06:00