Commit Graph

18 Commits (84527b1d3135cdc16d6fc90cc3c11992d80433bc)

Author SHA1 Message Date
Michael DeHaan 08161d1e4d Log tracebacks to syslog when using fireball mode. 12 years ago
Michael DeHaan 65b826a8a8 'make pep8' is now clean 12 years ago
Daniel Hokka Zakrisson 650089d24c Fix module.run_command usage in fireball 12 years ago
Stephen Fromm e4964f42e0 Update modules to use run_command in module_common.py
This updates apt, apt_repository, command, cron, easy_install, facter,
fireball, git, group, mount, ohai, pip, service, setup, subversion,
supervisorctl, svr4pkg, user, and yum to take advantage of run_command
in module_common.py.
12 years ago
Dag Wieers cb162046f1 Allow to change executable (shell/interpreter) when using raw
This patch adds an optional 'executable=' option to the raw command line to override the default shell (/bin/sh), much like the shell module does.
12 years ago
Dag Wieers 0ef97cd917 Add return code and error output to raw module
Since we use 'raw' heavily on equipment where 'command' and 'shell' are not (yet) working (and python may need to be installed first using raw) these improvements are necessary in order to write more complex scripts (with return code handling and separated stdout/stderr).

This change includes the following changes:

 - exec_command() now returns the return code of the command
 - _low_level_exec_command() now returns a dict, including 'rc', 'stdout' and 'stderr'
 - all users of the above interfaces have been improved to make use of the above changes
 - all connection plugins have been modified to return rc and stderr
 - fix the newline problem (stdout and stderr would have excess newlines)

In a future commit I intend to add assertions or error handling code to verify the return code in those places where it wasn't done. Since only the output was available, the return code was ignored, even though we expect them to be 0.
12 years ago
Jan-Piet Mens d184f72aa9 DOCUMENTATION strings 12 years ago
Michael DeHaan 6f6559670f chmod -x for all module files in source checkout 12 years ago
Michael DeHaan b0e28c1669 Allow fireball to transfer binary files, fixup fireball docs, make fetch work with fireball. 12 years ago
Daniel Hokka Zakrisson 8fba4cc04f Keep fireball from spreading its socket around 12 years ago
Michael DeHaan 8d3f73d562 pep8 fixes 12 years ago
Jan-Piet Mens d069c57974 Reformat code: examples consistently
- added terse syntax to modules.rst
 - added description of special variables to template module
12 years ago
Jan-Piet Mens 800d830c2b module_formatter: .rst now correctly handles code examples
- fixed template (it was the template), adding indentation with Jinja2
 - added description of code examples to man-page template (was missing)
 - fixed fireball, cron, and debug module examples to confrom
12 years ago
Michael DeHaan 37dedf719d implement lookup plugins for arbitrary enumeration over arbitrary things. See the mailing list for some cool examples. 12 years ago
Michael DeHaan ef7811e4d4 Teach fireball mode to disable the fireball by paying attention to 'minutes=N' (default 30) and do not let fireball module crash
on input.
12 years ago
Jan-Piet Mens 8baea3d38a fireball DOCUMENTATION
- amended
12 years ago
Jan-Piet Mens a804eb8866 template DOCUMENTATION added to fireball 12 years ago
Michael DeHaan 99c98a0875 The very first start of 'fireball mode', which uses ansible in SSH mode to deploy a ephemeral zeromq daemon (entirely optional) that is will die after
it is no longer used.  No key signing will be required.  At this point, development use only -- NOT complete.
12 years ago