Commit Graph

219 Commits (b418632a8d3c42b8ccbcb3e68815f9496336f5e2)

Author SHA1 Message Date
Michael DeHaan a0480a1bc5 Block some paramiko warnings that are not relevant. 13 years ago
Michael DeHaan 95e045d153 Remove remote logging as we're going to move this logging to the modules for performance reasons. 13 years ago
Michael DeHaan 245aa9bf8e Some tweaks to the fetch module. 'err' return was for stderr, so that should be empty string.
Some minor code shortening.  Added a test to TestRunner.
13 years ago
Michael DeHaan 62224271e9 Merge pull request #131 from mgwilliams/feature-fetch-module
Fetch Module
13 years ago
Matthew Williams 31d3f52b28 fetch to host specific directory 13 years ago
Matthew Williams 611e3fec4c fetch 'module' -- working with paramiko and local connections 13 years ago
Michael DeHaan 4c75b7f3ad Merge commit '8ae71cc' into integration
Conflicts:
	bin/ansible
	bin/ansible-playbook
	lib/ansible/utils.py
13 years ago
Michael DeHaan 1d75a29ec9 Allow variables coming in from the playbook and the API to be expressed as dictionaries throughout their full life cycle
such that nested data can be made available in templates and playbooks.
13 years ago
Seth Vidal 8ae71cc7b1 go back to using a normal optparser to add options instead of the dict
interface.

add very small subclass of OptionParser to sort the options so mdehaan is happy
13 years ago
Brad Olson f840c0d167 Wired in Michael's usage string optparse style. 13 years ago
Michael DeHaan 6749903e57 Allow explicit request of the local connection. 13 years ago
Michael DeHaan da9d4eb29a Merge pull request #123 from sfromm/localconnection
Add LocalConnection class to connection.py
13 years ago
Stephen Fromm 70a3fab79f Add LocalConnection class to connection.py
This creates a LocalConnection class for the case when operating on the
localhost.  If the host, argument to Connection.connect(), matches
127.0.0.1, localhost, or the name of the host as returned by
os.uname()[1], Connection.connect() will opt to use LocalConnection
instead of ParamikoConnection.  LocalConnection implements connect(),
exec_command(), put_file(), and close().
13 years ago
Michael DeHaan 7b9856bc0e Modification on top of skvidal's common options patch to keep options to command line tools sorted. 13 years ago
Seth Vidal 7e50d170a8 move the bulk of the opt parsing out of ansible/ansible-playbook and into utils
for other scripts to use.
13 years ago
Jeroen Hoekx ab86726a15 Introduce per task variables and push them to templates. 13 years ago
Jeroen Hoekx edd5baad8b Refactor _transfer_argsfile to generic string transfer function. 13 years ago
Michael DeHaan 09e690fd7c Indentation error causing forks to not be parallel. Ahem :) 13 years ago
Michael DeHaan 778fe8755f Merge pull request #110 from jhoekx/remote-vars
Always add vars to a play.
13 years ago
Michael DeHaan eae1fdd734 Merge pull request #109 from jeckersb/version-0.0.2
Bump release to 0.0.2
13 years ago
Jeroen Hoekx e38ae18627 Always add vars to a play.
A play without vars section would fail to use variables given in an include. They would be added to the dict returned by play.get, but the dict would not be added to the play.
13 years ago
John Eckersberg 82b781925c pep8 fix 13 years ago
John Eckersberg 5aad4bacc7 Bump release to 0.0.2 13 years ago
Michael DeHaan e5d5b072db Merge remote branch 'public/integration' 13 years ago
Michael DeHaan 59a1ff31db Merge pull request #103 from jeckersb/no-shebang-on-callbacks.py
Remove shebang from callbacks.py
13 years ago
Michael DeHaan 2f1f0d44b4 Merge pull request #106 from mgwilliams/honor-hostfile-returncode
raise error if executable host file execution fails
13 years ago
Matthew Williams 461a4e78c2 raise error if executable host file execution fails 13 years ago
Matthew Williams c742b8eb0b bugfix for extra-vars 13 years ago
Seth Vidal bcef25f7eb add vars_prompt to playbooks
- this allows some vars to be prompted for at the start of the playbook
  setup
- defaults to no output since this would mostly be used for passwords
13 years ago
John Eckersberg 2dad8cc27c Remove shebang from callbacks.py
It is not +x, and has no __main__.  It draws ire of rpmlint.
13 years ago
Seth Vidal 04aecdcf34 before we run the actual module/command - emit what that would be to the logs 13 years ago
Michael DeHaan 2511992659 Surface module debug (-D) to /usr/bin/ansible also 13 years ago
Michael DeHaan 4a8dc50249 Merge pull request #97 from jhoekx/stderr-logging
Stderr logging
13 years ago
Jeroen Hoekx 74ae4b29ad Add a debug attribute to Runner/Playbook.
This prints the stderr of the executed modules on local stderr.
Most methods on Runner now return a fourth "err" parameter.
13 years ago
Jeroen Hoekx fb1a313974 Correct default user and port in playbook.
They are set in the constructor.
13 years ago
Michael DeHaan 6275e57718 pyflakes: Unused import / unused var 13 years ago
Michael DeHaan 9569be8bdb Need for quoting/unquoting problems go away once module_args are all treated as strings throughout. 13 years ago
Michael DeHaan 3ded27fe35 Treat module args as strings everywhere to avoid unneccessary shlex and requoting 13 years ago
Michael DeHaan f11de2f5c9 --extra-vars option for ansible-playbook
Conflicts:

	lib/ansible/playbook.py

Removed unneccessary shlex and replaced with basic split, some repurcussions in runner
that can be eliminated once we consistently pass args as a string (soon).
13 years ago
Michael DeHaan 6db87a5018 Minor style fix, update test to match quote fix patch 13 years ago
Matthew Williams ec6f488d1f shell quoting fixes
(edited author's original commit comment -- MPD)
13 years ago
Matthew Williams 99d5796605 support for quotes strings in command module (via posix=False), related fixes to keep other things from breaking 13 years ago
Michael DeHaan 2372a3b734 Sudo support operational in both playbooks and main program. Implementation could use some cleanup. 13 years ago
Michael DeHaan 81e3496037 Added preliminary support for --sudo to ansible, playbook support and further testing pending. 13 years ago
Michael DeHaan 72cc99722d sudo tweaks 13 years ago
Michael DeHaan 7ae75eb14b Default sudo is false 13 years ago
Michael DeHaan c2a6e2f97b Work in progress on sudo, hitting some issues with paramiko saying the connection is closed. 13 years ago
Michael DeHaan 7133734d87 Remove debug statements (WIP on sudo) 13 years ago
Michael DeHaan 4971101f27 Handler doesn't take this param. 13 years ago
Michael DeHaan 706ba9fd9a Add paramiko/pycrypto atfork workaround (can back out later if not useful), tweak error
message text per skvidal's suggestion
13 years ago