Commit Graph

78001 Commits

Author SHA1 Message Date
Mike Place
f16b7246e4 Merge pull request #43103 from aogier/43101-genesis-bootstrap
genesis.bootstrap deboostrap fix
2017-08-25 14:48:23 -06:00
Nicole Thomas
4863771428 Merge pull request #42663 from StreetHawkInc/fix_git_tag_check
Check remote tags before deciding to do a fetch #42329
2017-08-25 16:14:31 -04:00
Gareth J. Greenaway
ef7e93eb3f Reverting this change due to it breaking other uses. 2017-08-25 12:52:26 -07:00
Mike Place
4193e7f0a2 Merge pull request #43199 from corywright/disk-format-alias
Add `disk.format` alias for `disk.format_`
2017-08-25 13:21:07 -06:00
Mike Place
5471f9fe0c Merge pull request #43196 from gtmanfred/2016.11
Pin request install to version for npm tests
2017-08-25 12:43:05 -06:00
lomeroe
33a30bac06 correcting bad format statement in search for policy to be disabled 2017-08-25 12:31:12 -05:00
Cory Wright
f00d3a9ddc Add disk.format alias for disk.format_ 2017-08-25 13:29:40 -04:00
Daniel Wallace
ccd2241777 Pin request install to version
This fails on centos 6 because its node is too old to support the version of
hawk bumped here https://github.com/request/request/pull/2751, we can still
test the functionality.  This will pull from github, and install a specific tag
version, and we still do the uninstall using the github path.

This should be more stable.
2017-08-25 10:23:35 -06:00
Nicole Thomas
ace2715c60 Merge pull request #43178 from terminalmage/issue43143
git.detached: Fix traceback when rev is a SHA and is not present locally
2017-08-25 09:58:36 -04:00
Viktor Krivak
4164047951 Fix apache.config with multiple statement
At this moment when you post more than one statement in config only last
is used. Also file is rewrited multiple times until last statement is
written.
Example:
salt '*' apache.config /etc/httpd/conf.d/ports.conf config="[{'Listen': '8080'}, {'Proxy': "Something"}]"
Ends only with
   Proxy Something
and ignore Listen 8080,
This patch fix this issue.
2017-08-25 15:56:40 +02:00
Mike Place
12e9507b9e Merge pull request #43179 from terminalmage/old-deprecation
Fix missed deprecation
2017-08-24 16:52:33 -06:00
Erik Johnson
2640833400 git.detached: Fix traceback when rev is a SHA and is not present locally
This catches the (expected) CommandExecutionError when git.describe is
run on a commit that doesn't exist.

This also renames the remote_ref_type variable to remote_rev_type. This
change was made for the 2017.7 branch, but this fix is being applied to
2016.11, so by making the rename here as well we will avoid a potential
bug from creeping in on a merge-forward.
2017-08-24 16:56:18 -05:00
Erik Johnson
3adf8ad04b Fix missed deprecation
This removes an argument that was slated for deprecation in the Hydrogen
release.
2017-08-24 15:26:55 -05:00
garethgreenaway
b595440d90 Merge pull request #43171 from terminalmage/salt-utils-warning
Add warning about adding new functions to salt/utils/__init__.py
2017-08-24 12:10:22 -07:00
garethgreenaway
4f273cac4f Merge pull request #43173 from Ch3LL/add_branch_docs
Add New Release Branch Strategy to Contribution Docs
2017-08-24 12:04:55 -07:00
Ch3LL
1b24244bd3 Add New Release Branch Strategy to Contribution Docs 2017-08-24 12:51:00 -04:00
Erik Johnson
7b5943a31a Add warning about adding new functions to salt/utils/__init__.py
Since we are breaking this up, we don't want new functions added here.
2017-08-24 11:04:31 -05:00
Alessandro -oggei- Ogier
db94f3bb1c better formatting 2017-08-24 15:07:08 +02:00
Alessandro -oggei- Ogier
e5cc667762 tests: fix a leftover and simplify some parts 2017-08-24 15:04:37 +02:00
Alessandro -oggei- Ogier
13e5997457 lint 2017-08-24 12:49:39 +02:00
Alessandro -oggei- Ogier
216ced69e5 allow comma-separated pkgs lists, quote args, test deb behaviour 2017-08-24 12:00:36 +02:00
Alessandro -oggei- Ogier
d8612ae006 fix debootstrap and enhance packages selection/deletion via cmdline 2017-08-24 10:26:43 +02:00
Mike Place
669b376abf Merge pull request #43151 from ushmodin/2016.11
state.sls hangs on file.recurse with clean: True on windows
2017-08-23 11:25:32 -06:00
lomeroe
acc3d7ac82 correct fopen calls from salt.utils for 2016.11's utils function 2017-08-23 11:09:12 -05:00
lomeroe
2da1cdd109 lint fix 2017-08-23 11:02:53 -05:00
lomeroe
61bd12c0de track xml namespace to ensure policies w/duplicate IDs or Names do not
conflict
2017-08-23 11:02:53 -05:00
lomeroe
f232bed9f9 add additional checks for ADM policies that have the same ADMX policy ID
(#42279)
2017-08-23 10:56:20 -05:00
Ushmodin Nikolay
c5841e2ade state.sls hangs on file.recurse with clean: True on windows 2017-08-23 22:43:04 +07:00
Mike Place
ae9d2b7985 Merge pull request #42986 from renner/systemd-notify
Notify systemd synchronously (via NOTIFY_SOCKET)
2017-08-22 10:52:56 -06:00
Mike Place
b420fbe618 Merge pull request #43037 from mcarlton00/fix-bhyve-grains
Issue #43036 Bhyve virtual grain in Linux VMs
2017-08-22 10:43:40 -06:00
Mike Place
0a86f2d884 Merge pull request #43100 from vutny/doc-add-missing-utils-ext
[DOCS] Add missing `utils` sub-dir listed for `extension_modules`
2017-08-22 09:40:08 -06:00
Alessandro -oggei- Ogier
42a118ff56 fixed cmd composition and unified his making across module 2017-08-22 16:25:54 +02:00
Johannes Renner
79c53f3f81 Fallback to systemd_notify_call() in case of socket.error 2017-08-22 15:57:51 +02:00
Johannes Renner
f1765472dd Notify systemd synchronously (via NOTIFY_SOCKET)
Forking the systemd-notify command is known to be unreliable at least
with older versions of the kernel and/or systemd. When systemd receives
the notification the systemd-notify process may have already exited
causing an error in the logs while waiting for a (90 seconds) timeout.

This patch instead notifies the systemd NOTIFY_SOCKET synchronously in
case the systemd.daemon python library is not available.
2017-08-22 13:42:01 +02:00
Denys Havrysh
af743ff6c3 [DOCS] Add missing utils sub-dir listed for extension_modules 2017-08-22 12:18:42 +03:00
Mike Place
e2bf2f448e Merge pull request #42985 from DSRCorporation/bugs/15171_recursion_limit
Properly handle `prereq` having lost requisites.
2017-08-21 16:49:38 -06:00
Mike Place
e51333306c Merge pull request #43092 from mitodl/2016.11
Fixed issue with silently passing all tests in Testinfra module
2017-08-21 14:22:07 -06:00
Mike Place
77a443ce8e Merge pull request #43060 from twangboy/osx_update_pkg_scripts
Osx update pkg scripts
2017-08-21 14:06:11 -06:00
Tobias Macey
d4b113acdf
Fixed issue with silently passing all tests in Testinfra module
The Testinfra module had a line where the collection of passed arguments was silently overwritten so that it would not actually perform any assertions. Updated the variable names to address the issue of the parameters being clobbered so that asertions are performed properly.
2017-08-21 13:34:43 -04:00
Nicole Thomas
1b1b6da803 Merge pull request #43064 from terminalmage/issue42869
Fix race condition in git.latest
2017-08-21 10:29:52 -04:00
Erik Johnson
093c0c2f77 Fix race condition in git.latest
The git.latest state runs a `git ls-remote` on the remote repo to
discover which SHA it should end up at, and whether or not it needs to
fetch from the repo to get the commit it needs. However, since we
fast-forward using a `git merge` to the branch specified in the `rev`
argument, this leaves the state susceptible to a race condition when
someone pushes to the remote repo between when we run the `git
ls-remote` and when we fetch the remote repo. We will successfully
fast-forward to the head of the branch, but that branch will be pointing
to a different commit than the one identified in the `git ls-remote`, so
we will report the state as having failed.

This commit fixes that race condition by fast-forwarding to the commit
identified in the `git ls-remote`, rather than to the branch named by
`rev`.

NOTE: This means that in these edge cases, we will report a `True`
result despite the head of the branch having advanced past the commit to
which we fast-forwarded, but that seems like a reasonable trade-off for
avoiding a race condition. If we repeated the `git ls-remote` after
fetching, we'd just be opening up a window (albeit a smaller one) for
another race condition.
2017-08-18 16:39:01 -05:00
Nicole Thomas
96e8e836d1 Merge pull request #43054 from lorengordon/fix/yumpkg/config-parser
Uses ConfigParser to read yum config files
2017-08-18 16:49:43 -04:00
Arount
3b2cb81a72 fix typo in salt.modules.yumpkg 2017-08-18 14:36:02 -04:00
Arount
38add0e4a2 break if leading comments are all fetched 2017-08-18 14:35:46 -04:00
Arount
d7f65dc7a7 fix configparser import & log if error was raised 2017-08-18 14:35:14 -04:00
Arount
ca1b1bb633 use configparser to parse yum repo file 2017-08-18 14:34:55 -04:00
twangboy
ef8a14cdf9 Remove /opt/salt instead of /opt/salt/bin 2017-08-18 12:19:04 -06:00
twangboy
2dd62aa1da Add more information to the description 2017-08-18 12:09:08 -06:00
twangboy
f44f5b70dc Only stop services if they are running
Otherwise it will cause an error and the installation will fail
2017-08-18 11:52:34 -06:00
twangboy
3b62bf953c Remove salt from the path 2017-08-18 11:44:35 -06:00