ansible/lib/ansible
Darragh Bailey be17ba67b2 Prevent race in key setup for accelerate daemon (#15299)
Ensure that initial setup in creating the key directory for ansible
accelerate mode keys, and generation/storage of the key for a
particular host are completed in a multiprocess safe manner.

Creating directories/files and then assigning permissions and contents
to them means that paths may exist and satisfy the os.path.exists()
method in python for other processes before they are usable.

Use a combination of locking around operations with use of unique named
files and an OS file system move to ensure that the conditions of
checking whether a file or directory exists, where it is potentially
created by another thread, will only succeed when the file has both the
correct contents and permissions.

Fixes #13850
2016-04-25 12:13:42 -04:00
..
cli fixes to vault/copy 2016-04-14 14:12:48 -04:00
compat Bundle a new version of python-six for compatibility along with some code to make it easy for distributions to override the bunndled copy if they have a new enough version. 2015-10-16 08:21:28 -07:00
config Making the switch to v2 2015-05-03 21:47:26 -05:00
errors Add options to make includes 'static' 2016-03-24 10:12:51 -04:00
executor Fixing the way we iterate over child states for tasks 2016-04-25 11:13:44 -04:00
galaxy Fix issue with ansible-galaxy and --ignore-certs 2016-04-11 01:17:15 -04:00
inventory removed unused section regex, corrected group one 2016-04-20 11:52:50 -04:00
module_utils fix default REST ports for http and https in openswitch (#15580) 2016-04-25 11:42:28 -04:00
modules submodule ref update 2016-04-21 16:30:27 -04:00
new_inventory fix some warning of undefined name. 2015-10-09 12:43:42 +08:00
parsing Trnasform file name to bytes before opening it to avoid unicode errors if python tries to encode it implicitly 2016-04-19 08:33:01 -07:00
playbook add centrify dzdo escalation (#15219) 2016-04-25 11:24:26 -04:00
plugins Merge pull request #15314 from nitzmahone/win_reboot 2016-04-25 09:13:18 -07:00
template moved last utils.debug to display.debug 2016-04-08 16:00:36 -04:00
utils Prevent race in key setup for accelerate daemon (#15299) 2016-04-25 12:13:42 -04:00
vars Fix var precedence bug introduced in ff9f5d7d 2016-04-19 12:40:31 -04:00
__init__.py Bump version in devel now that stable-2.0 has been branched 2015-12-02 17:57:53 +05:30
constants.py add centrify dzdo escalation (#15219) 2016-04-25 11:24:26 -04:00
test-requirements.txt Making the switch to v2 2015-05-03 21:47:26 -05:00