Commit Graph

105 Commits (3016d360f4accac987938f72c7d5c82acba3ae10)

Author SHA1 Message Date
James Cammarata 79d18981c7 A few bug fixes and tweaks for the accelerate module 9 years ago
Toshio Kuratomi a580acc12a No longer check for tmp_path being sent as we don't use it here anyway 9 years ago
Brian Coca 697307f88c Merge pull request #1670 from mikeputnam/issue-1643-gpl-header
Add missing GPLv3 License header
9 years ago
Brian Coca 008caa1ff7 Merge pull request #591 from d3rp/wait_for
Fix 'wait_for' doesn't work with ipv6only host
9 years ago
Mike Putnam 6c0e264806 Add missing GPLv3 License header
Fixes #1643
9 years ago
Greg DeKoenigsberg 2a5f0bde87 Proper author info for all remaining modules 9 years ago
Brian Coca 7810a898e8 sleep when only doing a time delay to avoid cpu churn 9 years ago
Brian Coca d501f50c7b fixed try/except/finally to be 2.4 compatible 10 years ago
Toshio Kuratomi 60a66a544d Several cleanups to many modules:
* Fix docs to specify when python2.6+ is required (due to a library
  dep).  This helps us know when it is okay to use python2.6+ syntax in
  the file.
* remove BabyJson returns.  See #1211  This commit fixes all but the
  openstack modules.
* Use if __name__ == '__main__' to only run the main part of the module
  if the module is run as a program.  This allows for the potential to
  unittest the code later.
10 years ago
Nathaniel 5aae7f3e51 Update set_fact.py
Context: I recently discovered that when setting a fact, key=value pairs and complex arguments differ in how the fact is stored. For example, when attempting to use complex arguments using key=values, the result can be stored as a unicode string as opposed to an object/list/etc.

I'm hoping the above example update will better demonstrate to and instruct people to use complex arguments instead of key=value pairs in certain situations.
10 years ago
Brian Coca 1d6d3fece7 added docs to show wait_for default timeout settings
Fixes #400
10 years ago
Brian Coca cbc1655ba0 Merge pull request #784 from bcoca/wait_for_docs
added missing docs on connection_timeout for wait_for
10 years ago
Gerard Lynch 9967aa6681 wait_for: updated docs, must be resolvable hostname, updated example 10 years ago
Brian Coca 3100236628 added missing docs on connection_timeout for wait_for 10 years ago
Andrey Trubachev 10e48d18f7 Fix python-2.4 compatibility 10 years ago
Andrey Trubachev 659c6d3a7e Fix 'wait_for' doesn't work with ipv6only host 10 years ago
Brian Coca 5af9928996 let implied type do the spliting 10 years ago
Brian Coca d67ac4d33e minor fixes to wait_for to avoid tracebacks as per ansible core issue #9244 10 years ago
Brian Coca c6dcd38355 added missing init.py for utilities modules 10 years ago
Michael DeHaan cec519f70e Move internal category to utilities to remove one more category from the left hand menu, keeping it concise. 10 years ago
Michael DeHaan 0be8798858 Renames. 10 years ago
Ashish Ranjan eae233efe4 fields in /proc/net/tcp* are not always delimited by single space 10 years ago
Michael DeHaan 385a037cd6 package files 10 years ago
Michael DeHaan c8e1a2077e file extensions! 10 years ago
Michael DeHaan 417309a626 Restructuring. 10 years ago
Michael DeHaan 73123b69fa Move modules into subdirectory. 10 years ago
James Cammarata ec64538833 Convert boolean strings from set_fact to proper boolean values
Also adds integration tests for booleanification of strings

Fixes #8629
10 years ago
James Cammarata 6e7773e9b8 Removing unused name param for wait_for tcp draining classes
Also updates the version_added and other references to the version
in which the connection draining functionality was added.
10 years ago
Greg Swift 7bc23ea007 Extend wait_for module to support draining of active tcp connections 10 years ago
Matt Martz 28939f49f7 Need to check e.errno instead of os.errno. Fixes #8548 10 years ago
James Cammarata 1cc9b6d90b Break out of loop for sockets in wait_for when there's no data to read 10 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 10 years ago
James Cammarata 35960ea192 Merge pull request #7374 from hfinucane/wait_for_pipes
Allow wait_for to wait on non-traditional files
10 years ago
Matt Martz 7ec52c9001 Allow search_regex to be used in wait_for with port 10 years ago
Brian Coca bd95479777 corrected doc example, non existing fact to the 2 it had 'merged' 10 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