Matt Clay
72cca01cd4
Use file list, not recursion, in _fixup_perms. ( #16924 )
...
Run setfacl/chown/chmod on each temp dir and file.
This fixes temp file permissions handling on platforms such as FreeBSD
which always return success when using find -exec. This is done by
eliminating the use of find when setting up temp files and directories.
Additionally, tests that now pass on FreeBSD have been enabled for CI.
2016-08-05 18:40:28 -07:00
Toshio Kuratomi
39c543e356
Use find -exec + so that failures will be visible in find's exit code ( #16389 )
...
Fixes #16385
2016-06-22 05:42:37 -07:00
Toshio Kuratomi
6cb8fdeaf2
Use find instead of -R for recursive setfacl ( #16340 )
...
(-R is not present on Solaris or freebsd setfacl)
Fixes #16322
2016-06-17 10:00:21 -04:00
Matt Clay
bad293ae35
Add work-around for ssh pty race condition.
...
This should minimize loss of stdout when using
a pty and connecting with ssh or paramiko_ssh.
2016-05-19 10:33:17 -07:00
Matt Martz
196453b9b2
Merge pull request #13771 from sivel/binary-modules
...
First pass at allowing binary modules
2016-05-12 18:36:34 -05:00
Matt Martz
0faddfa168
Move binary module detection into executor/module_common.py
2016-05-12 12:25:09 -05:00
Matt Martz
ddf3c3838f
Re-implement/move some code lost due to merge conflicts
2016-05-12 12:25:09 -05:00
Matt Martz
1cee3f35b1
Guard against a shell profile printing extraneous data
2016-05-12 11:43:37 -05:00
Toshio Kuratomi
0ced20951f
Use /var/tmp is user set remote_tmp below /var/tmp.
...
We want them to be able to influence this choice in case they want to
keep files out of /tmp (perhaps to conserve RAM if that is a tmpfs).
2016-04-11 21:03:13 -07:00
Toshio Kuratomi
6a97d6386f
Always use system /tmp if system=True.
...
Otherwise unexpected errors can happen when the user sets remote_tmp.
Fixes #15372
2016-04-11 20:00:10 -07:00
James Cammarata
040893a677
Adding a config option to allow disabling locale settings upon module exec
...
Fixes #15138
2016-04-06 12:19:22 -04:00
nitzmahone
05af5c88ea
fix Mac chown/chmod -R issue, add error checks
...
The changes to chown/chmod were broken on Mac (-R was being appended to the end of the command- OSX requires it before the file list).
A number of base action remote setup commands were also blindly proceeding without checking for success. Added error raises for unrecoverable failure cases.
2016-03-29 07:44:09 -07:00
Brian Coca
28d20dbe53
moved 'path exists' function to shell
...
now it will work with powershell/winrm
2016-03-25 12:56:48 -07:00
Toshio Kuratomi
52e9209491
Don't create world-readable module and tempfiles without explicit user permission
2016-03-23 09:52:19 -07:00
Brian Coca
b4b24a0889
moved to base class for shell plugins
...
fish now sets env vars correctly
fish checksum now works
fixed and cleaned up imports
fixed typo
2016-02-09 17:39:51 -05:00
James Cammarata
ce3ef7f4c1
Making the switch to v2
2015-05-03 21:47:26 -05:00