Commit Graph

17 Commits (2d6babbd63531d99f851c812f7e11c5cd089797b)

Author SHA1 Message Date
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
Michael DeHaan 16f3d018c0 Added 'creates=filename' to the shell/command module, which can skip command execution if a file
already exists
13 years ago
Michael DeHaan be723aa98b 'shell' is a magic module that executes the command module with shell=True 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
Seth Vidal 903178cdd4 convert so they handle argsfiles rather than arguments 13 years ago
Michael DeHaan 749b00a571 Strip trailing newlines from command module, which happens in some shell commands 13 years ago
Michael DeHaan 35d498aeba make command module error when no -a more obvious as command is the default module and someone
may forget about -a.  The CLI already warns about no host pattern by pulling up usage.
13 years ago
Michael DeHaan 7638c0ecf8 -p has been replaced by a required option. Various docs changes. 13 years ago
Michael DeHaan 0491fa1dda have command module raise an error if no arguments are supplied 13 years ago
Michael DeHaan a5499d8992 Add ansible command, fix import error in runner 13 years ago
Michael DeHaan 1bd1552b43 Relicensing to GPLv3, all previous committers ok'd on mailing list. 13 years ago
Seth Vidal a26f236e9b when it is an IOError or an OSError - return a normal error message instead of a traceback barf 13 years ago
Michael DeHaan fed3462502 applying indentation patch from skvidal 13 years ago
Michael DeHaan 3e010b9500 Added remote templating engine using jinja2, see examples/playbook.yml for usage.
Cleanup is due in runner.py
13 years ago
Jeremy Katz 8336f0d650 Don't use a shell and thus avoid a whole class of problems 13 years ago
Jeremy Katz 2a3a0d60cd Fall back to standalone simplejson module
CentOS5 has python 2.4 which doesn't have a built-in json
module
13 years ago
Michael DeHaan e0661a17eb Added command module 13 years ago