Commit Graph

15 Commits (74c85c1929cf761ea1b0482c75f9d6877ba89b2a)

Author SHA1 Message Date
Michael DeHaan 6f6559670f chmod -x for all module files in source checkout 12 years ago
Michael DeHaan 5ed21bf443 whitespace + remove deprecated YAML parser (migration script lives in examples/scripts and warning was added
in 0.6 release)
12 years ago
Michael DeHaan baacde6c74 Add encoding lines to python modules such that they can take unicode options if they are fed them, since the
AnsibleModule stuff no longer base64 encodes for simplicity and speed reasons.
12 years ago
Stephen Fromm 67ee30f135 Apply logging of arguments to modules (issue #122)
The ohai and facter modules use /usr/bin/logger to log the fact that
they have been invoked.  I added 'import os' to the ping module
so that it could have the same syslog statements as the other modules.
I separated the condensed:
    shlex.split(open(argfile, 'r').read())
into two separate statements similar to the other modules.
13 years ago
Jeroen Hoekx 5045841719 Make async wrapper kill the process it supervises.
It wasn't killing the job at all before.
Indentation was 3 spaces.
13 years ago
Michael DeHaan a3bd951bfb Eliminate possible race condition in async_wrapper where ansible deletes the argsfile while the module
is still kicking off.  Should not happen except in modules that are somewhat slow to load and probably
can be fixed better than the included sleep, i.e. some IPC communication that the process has
launched and is ok to exit.  This works pretty well for now though.
13 years ago
Michael DeHaan 842d7cca6f Fix async to use the new argfiles method (wrapping brain around rock, really must write module development guide) 13 years ago
Michael DeHaan 1e694d464f Fixed up async and polling logic. 13 years ago
Michael DeHaan 2fafe74544 Add async polling logic to runner. Will add to playbook shortly, have to diagnose why paramiko
is not letting async_wrapper daemonize itself when it does work fine when directly executed.
13 years ago
Michael DeHaan a3ac183861 Async tests complete. Fixed bug in async_wrapper 13 years ago
Michael DeHaan 42b3eccbb2 Remove debug comments 13 years ago
Michael DeHaan aff5e5bb49 Async module, mostly operational, daemonizing/watch code may have bugs 13 years ago
Michael DeHaan 6632bef17d async module now forks 13 years ago
Michael DeHaan 7f272d8b25 Time limit needs to be passed to async_wrapper. 13 years ago
Michael DeHaan c4004ef6d4 Laying the groundwork for async mode, async status script still needs to be done, and async_wrapper
still needs to daemonize.  Then, once done, playbook can be taught how to poll async within the
timing window.
13 years ago