Commit graph

33 commits

Author SHA1 Message Date
James Cammarata
d9a09916d4 Close fds when running commands from the accelerate daemon
Fixes #7307
2014-05-07 08:47:38 -05:00
James Cammarata
6f38595ba2 Acclerate improvements
* Added capability to support multiple keys, so clients from different
  machines can connect to a single daemon instance
* Any activity on the daemon will cause the timeout to extend, so that the
  daemon must be idle for the full number of minutes before it will auto-
  shutdown
* Various other small fixes to remove some redundancy

Fixes #5171
2014-03-23 14:45:49 -05:00
James Cammarata
f46760ef37 Execute commands through accelerate with shell when needed
This fixes an issue related to the new run_command changes, whereby
Popen fails to run a command when an executable is specified + shell=False
and there are multiple positional arguments (see Popen docs for details)
2014-03-18 12:24:13 -05:00
James Cammarata
a2dfffeac9 Create the tempdir in the accelerate module if it doesn't exist
Fixes #6047
2014-03-05 22:08:09 -06:00
James Cammarata
0dff07b53e Detect remote_user change in accelerate daemon and allow a restart
Fixes #5812
2014-01-30 14:40:41 -06:00
Michael DeHaan
0d3a74d905 ansible -> ansibleworks 2014-01-28 20:29:41 -05:00
James Tanner
4f9aadcc07 Addresses #5023 Fix import comments 2013-12-02 15:13:49 -05:00
James Tanner
38edad70ac Fixes #5023 Convert all modules to use new snippet import pattern 2013-12-02 15:11:23 -05:00
James Cammarata
a1f1f459d8 Fix accelerate module parameter for IPv6 activation 2013-11-27 09:32:07 -06:00
jctanner
5ed73281b0 Merge pull request #4780 from mscherer/fix_accelerate_various
Fix various warning on accelerate module, found by pyflakes
2013-11-19 12:42:32 -08:00
James Tanner
d9147bc0e0 Fixes #4851 Set syslog debug mode for accelerate properly 2013-11-18 09:56:12 -05:00
Michael Scherer
33e1a82fae fix incorrect send_data call. there is no client variable, and send_data
is a class method. Pyflakes complained about it.
2013-11-07 08:11:56 +01:00
Michael Scherer
d000ef1844 remove unused variable (pyflakes) 2013-11-07 08:11:56 +01:00
Michael Scherer
c2851cd1e8 make pyflakes a bit more silent
- explictely import json, since this is used ( only to silence pyflakes)
- remove shutil as it is unused
2013-11-07 08:11:56 +01:00
jctanner
ac3baf2f93 Merge pull request #4772 from mscherer/fix_4763
Try/finally is a python 2.5 construct, so not working on EL5. Fix #4763
2013-11-04 15:36:02 -08:00
James Tanner
78f4f95e64 Fixes #4485 add an ipv6 parameter to accelerate so that the daemon will bind to an ipv6 port instead of ipv4 2013-11-04 17:20:03 -05:00
Michael DeHaan
1381f80e47 Make it slightly more clear what side of the connection is missing keyczar if using accelerate mode. 2013-11-03 12:46:21 -05:00
Michael Scherer
8f5a0f9112 Try/finally is a python 2.5 construct, so not working
on EL5. Fix #4763
2013-11-02 11:24:29 +01:00
Michael Scherer
a53972c3a7 Fix accelerate module on centos 5 by removing
unsupported string prefix in 2.4

http://docs.python.org/release/2.4/ref/strings.html
This is also ignored on later version of python 2
and is present only for python 3 conversion, as seen
on http://docs.python.org/2/reference/lexical_analysis.html#string-literals

Also see http://stackoverflow.com/questions/6269765/what-does-the-b-character-do-in-front-of-a-string-literal

Fix https://github.com/ansible/ansible/issues/4739
2013-10-31 21:04:34 +01:00
Michael DeHaan
ce8b0944a9 Misc pep8 fixes 2013-10-19 13:03:15 -04:00
James Cammarata
3cd459faf7 Fix for network byte order issues in accelerate 2013-10-02 15:37:15 -05:00
James Cammarata
88b9bc5de8 Merge branch 'accelerate_improvements' into devel
Conflicts:
	library/utilities/accelerate
2013-10-01 21:22:17 -05:00
James Cammarata
3b87b2c56c Make recv_data less greedy so it doesn't eat other packets 2013-10-01 16:50:32 -05:00
James Cammarata
13f28d31fa Adding an accelerate_timeout parameter for plays
This setting makes the timeout for each play configurable, rather than
hard-coding it at 300 seconds (now the default if left unspecified)

Fixes #4162
2013-10-01 15:26:50 -05:00
James Cammarata
d3f1c89470 Added keepalive packets to accelerate mode
Commands will now be started up in a separate task from the main
handler thread, so that it can be monitored for completeness while
sending a keepalive packet back to the controller to avoid a socket
receive timeout.
2013-10-01 15:19:21 -05:00
James Cammarata
18379701f0 Use atomic_move to put the file, rather than shelling out
Fixes #4321
2013-10-01 14:47:50 -05:00
James Cammarata
42449a3901 Add more verbose debugging options for accelerate 2013-09-30 14:08:07 -05:00
Andrey Shorin
7e2755a542 Make --check mode work with fireball and accelerate connections 2013-09-23 13:51:43 +04:00
Erick Yellott
55e26fdfda Typo fix from accelerated: true to accelerate: true 2013-09-18 16:47:49 -05:00
James Cammarata
156ab85478 Check for an empty executable passed into the accelerate plugin
This was breaking at least the script module, so it would seem best
to check for it and set it to the default executable value
2013-09-05 15:11:26 -05:00
James Cammarata
a05eec87b2 When putting a file in accelerated mode, make sure it's chowned correctly 2013-09-05 12:04:08 -05:00
James Cammarata
0a27ded6f3 Adding the facility to the accelerate daemon syslog calls 2013-09-03 11:30:29 -05:00
James Cammarata
f8c77e3980 Renaming fireball2 as 'accelerate' and removing old references 2013-08-30 13:26:27 -05:00
Renamed from utilities/fireball2 (Browse further)