James Cammarata
1cc9b6d90b
Break out of loop for sockets in wait_for when there's no data to read
11 years ago
James Cammarata
1abf10a4f6
Merge branch 'wait-for-port-search-regex' of https://github.com/sivel/ansible into sivel-wait-for-port-search-regex
11 years ago
James Cammarata
35960ea192
Merge pull request #7374 from hfinucane/wait_for_pipes
...
Allow wait_for to wait on non-traditional files
11 years ago
Matt Martz
7ec52c9001
Allow search_regex to be used in wait_for with port
11 years ago
Brian Coca
bd95479777
corrected doc example, non existing fact to the 2 it had 'merged'
11 years ago
Henry Finucane
898ebf7358
Fail fast in the presence of permissions issues
11 years ago
Henry Finucane
34bf59ac4c
Allow wait_for to wait on non-traditional files
...
Use os.path.exists to check for file existence, instead of "can we open
this file for reading".
Fixes #6710
11 years ago
James Cammarata
d9a09916d4
Close fds when running commands from the accelerate daemon
...
Fixes #7307
11 years ago
Dag Wieers
a19fbc7b24
Add an example to show all hostvars using debug
...
This is a useful example to help debug how facts and vars are being collated.
11 years ago
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
11 years ago
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)
11 years ago
Michael DeHaan
9495dda0ab
Amend wait_for docs to reference version of feature addition.
11 years ago
Michael DeHaan
6bc94937ac
Merge branch 'devel' of git://github.com/AnderEnder/ansible into devel
11 years ago
James Cammarata
a2dfffeac9
Create the tempdir in the accelerate module if it doesn't exist
...
Fixes #6047
11 years ago
Michael DeHaan
6aadf11ff8
Fix up examples in the assert docs to match the way things work.
11 years ago
Michael DeHaan
58c445b8a6
Add the start of an integration test structure using Ansible playbooks, also added an assert action plugin to make writing those easier.
11 years ago
James Cammarata
0dff07b53e
Detect remote_user change in accelerate daemon and allow a restart
...
Fixes #5812
11 years ago
jctanner
c21e88e2df
Merge pull request #5784 from geerlingguy/patch-1
...
Update wait_for documentation - remove extra quote
11 years ago
Michael DeHaan
0d3a74d905
ansible -> ansibleworks
11 years ago
Jeff Geerling
e602d16158
Update wait_for documentation - remove extra quote
...
The timeout is in seconds (int), and the extra quote at the end could throw someone off if they're copying and pasting the example.
11 years ago
Jim Kleckner
2903c7b568
Fix documentation example for the fail module
...
The example for the fail module doesn't work:
http://www.ansibleworks.com/docs/modules.html#fail
The current text shows:
- fail: msg="The system may not be provisioned according to the CMDB status."
when: "{{ cmdb_status }} != 'to-be-staged'"
The "when" documentation indicates that the argument is already a Jinja2
expression:
http://www.ansibleworks.com/docs/playbooks_conditionals.html#the-when-statement
Thus, the following is
when: cmdb_status != "to-be-staged"
is preferred even though the following could work but generates a
deprecation warning:
when: {{cmdb_status != "to-be-staged"}}
11 years ago
Andrii Radyk
29c9922ac5
Adding absent condition for to the wait_for module
11 years ago
James Tanner
4f9aadcc07
Addresses #5023 Fix import comments
11 years ago
James Tanner
38edad70ac
Fixes #5023 Convert all modules to use new snippet import pattern
11 years ago
James Cammarata
a1f1f459d8
Fix accelerate module parameter for IPv6 activation
11 years ago
Junegunn Choi
2663513b5c
Remove Python 2.4-incompatible 'with' statement
11 years ago
jctanner
5ed73281b0
Merge pull request #4780 from mscherer/fix_accelerate_various
...
Fix various warning on accelerate module, found by pyflakes
11 years ago
James Tanner
d9147bc0e0
Fixes #4851 Set syslog debug mode for accelerate properly
11 years ago
John Jarvis
51b9be9bfd
Adding more wait conditions to the wait_for module
...
Adds a new option to wait_for to wait for a file to exist on the file
system before continuing, optionally takes a search_regex param to match
text in the file.
11 years ago
Michael Scherer
33e1a82fae
fix incorrect send_data call. there is no client variable, and send_data
...
is a class method. Pyflakes complained about it.
11 years ago
Michael Scherer
d000ef1844
remove unused variable (pyflakes)
11 years ago
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
11 years ago
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
11 years ago
James Tanner
78f4f95e64
Fixes #4485 add an ipv6 parameter to accelerate so that the daemon will bind to an ipv6 port instead of ipv4
11 years ago
Michael DeHaan
1381f80e47
Make it slightly more clear what side of the connection is missing keyczar if using accelerate mode.
11 years ago
Michael DeHaan
e939a41bfb
Update module documentation.
11 years ago
Michael Scherer
8f5a0f9112
Try/finally is a python 2.5 construct, so not working
...
on EL5. Fix #4763
11 years ago
Michael DeHaan
dd6af369af
Some simplification of include_vars and renamed include_files to include_vars.
11 years ago
Michael DeHaan
684cbf8154
Merge branch 'include_files' of git://github.com/bennojoy/ansible into devel
11 years ago
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
11 years ago
bennojoy
00b9aae26e
include files
11 years ago
Michael DeHaan
ce8b0944a9
Misc pep8 fixes
11 years ago
Michael DeHaan
4503cbebc0
Added "debug: var=variableName" capability.
11 years ago
James Cammarata
3cd459faf7
Fix for network byte order issues in accelerate
11 years ago
James Cammarata
88b9bc5de8
Merge branch 'accelerate_improvements' into devel
...
Conflicts:
library/utilities/accelerate
11 years ago
James Cammarata
3b87b2c56c
Make recv_data less greedy so it doesn't eat other packets
11 years ago
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
11 years ago
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.
11 years ago
James Cammarata
18379701f0
Use atomic_move to put the file, rather than shelling out
...
Fixes #4321
11 years ago
James Cammarata
42449a3901
Add more verbose debugging options for accelerate
11 years ago