Michael DeHaan
da6cb1ca6e
Less scrolling over constructor params now that documentation follows
14 years ago
Michael DeHaan
3f26a1c7f6
verbose option is not being used, so remove it. debug variable still exists.
14 years ago
Michael DeHaan
78b5cd64d0
Add pydoc for constructors. Some arguments can be trimmed as we plan to remove the need for them (like setup_cache and
...
maybe module_vars) with various pending refactoring.
14 years ago
Michael DeHaan
9ce27be878
Remove extra_vars tests
14 years ago
Michael DeHaan
08468dcb0c
Fixes to make ports DWIM.
14 years ago
Michael DeHaan
957867e088
Merge branch 'yaml-inventory' of https://github.com/jhoekx/ansible into jhoekx-yaml-inventory
...
Conflicts:
lib/ansible/runner.py
14 years ago
Jeroen Hoekx
746f1b92ae
Reimplement the class method on Runner.
14 years ago
Jeroen Hoekx
c5cae87eca
Refactor inventory code out of Runner.
...
This introduces the Inventory class.
Playbook uses the internals of Runner to limit the number of hosts to poll
asynchronously. To accomodate this, Inventory can be restricted to specific
hosts.
14 years ago
Michael DeHaan
d8f9d7c6c9
Use correct user to determine host files path, do not reuse .ansible
...
which is already taken for ansible management ops.
14 years ago
Michael DeHaan
3454fa9950
As part of the support for access to external nodes information, save fact data into /var/lib/ansible/setup_data
...
OR a per-user directory when running from playbooks. Technically this info is also available via the SETUP_CACHE
but that is a bit more complex of a construct and it would be better to not cross the streams.
14 years ago
Michael DeHaan
347637339c
Merge remote branch 'public/integration' into integration
14 years ago
Michael DeHaan
f2465e0571
Add support for specifying sudo passwords to both ansible & playbook. Nopasswd sudo is no longer required.
14 years ago
Jeroen Hoekx
a975852f66
Module_arguments can be unicode.
14 years ago
Michael DeHaan
09a0b9bea8
If the module return is not parsed, always show stderr information even if -D (debug)
...
is not specified. This will help for users that don't have prerequisites installed
(like python-simplejson on old RHEL) and do not know to run -D.
14 years ago
Stephen Fromm
0675f2511b
Merge branch 'master' into localconnection
...
Merge the SortedOptParser bits and debug attribute commits into
localconnection.
Conflicts:
bin/ansible
lib/ansible/playbook.py
lib/ansible/runner.py
lib/ansible/utils.py
14 years ago
Michael DeHaan
08c593bee1
Warn if no hosts matched
14 years ago
Michael DeHaan
f3489a53cd
English error messages if src and dest are left off the copy, template, or fetch modules
14 years ago
Michael DeHaan
95e045d153
Remove remote logging as we're going to move this logging to the modules for performance reasons.
14 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.
14 years ago
Michael DeHaan
62224271e9
Merge pull request #131 from mgwilliams/feature-fetch-module
...
Fetch Module
14 years ago
Matthew Williams
31d3f52b28
fetch to host specific directory
14 years ago
Matthew Williams
611e3fec4c
fetch 'module' -- working with paramiko and local connections
14 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.
14 years ago
Stephen Fromm
b5061bb62e
Verify that effective uid == remote_user when transport is local
...
Raise exception if effective uid of process is not the same as
remote_user.
14 years ago
Stephen Fromm
5d74fedeb9
Update Runner to default to C.DEFAULT_TRANSPORT
...
This also uses self.transport when instantiating Connection object.
14 years ago
Jeroen Hoekx
ab86726a15
Introduce per task variables and push them to templates.
14 years ago
Jeroen Hoekx
edd5baad8b
Refactor _transfer_argsfile to generic string transfer function.
14 years ago
Michael DeHaan
09e690fd7c
Indentation error causing forks to not be parallel. Ahem :)
14 years ago
Michael DeHaan
e5d5b072db
Merge remote branch 'public/integration'
14 years ago
Matthew Williams
461a4e78c2
raise error if executable host file execution fails
14 years ago
Seth Vidal
04aecdcf34
before we run the actual module/command - emit what that would be to the logs
14 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.
14 years ago
Michael DeHaan
3ded27fe35
Treat module args as strings everywhere to avoid unneccessary shlex and requoting
14 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).
14 years ago
Michael DeHaan
2372a3b734
Sudo support operational in both playbooks and main program. Implementation could use some cleanup.
14 years ago
Michael DeHaan
72cc99722d
sudo tweaks
14 years ago
Michael DeHaan
7ae75eb14b
Default sudo is false
14 years ago
Michael DeHaan
c2a6e2f97b
Work in progress on sudo, hitting some issues with paramiko saying the connection is closed.
14 years ago
Michael DeHaan
7133734d87
Remove debug statements (WIP on sudo)
14 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
14 years ago
Christopher Johnston
f06ec76fdb
add support for using an alternate remote port
14 years ago
Michael DeHaan
f693759252
Style fixes from pep8 makefile target
14 years ago
Michael DeHaan
f074f1c4c4
Fixes from pyflakes
14 years ago
Michael DeHaan
45a455a805
Make /usr/bin/ansible output realtime and also delete some code!
14 years ago
Michael DeHaan
6dda6f12dc
Applying callback model to runner, and using that in playbooks, so output can be more immediate in playbooks.
...
(Runner still does not use callbacks for default output)
14 years ago
Michael DeHaan
9df612f007
Add a "-o" override option so hosts not in a playbook can still be managed by a playbook.
14 years ago
Michael DeHaan
a8c921cbcc
Allow groups to be passed to runner API to make parse_hosts optional, misc fixes as a result of refactoring in Runner.
...
Cleanup in Playbooks module is next.
14 years ago
Michael DeHaan
94605b811b
Fixes from refactoring
14 years ago
Michael DeHaan
6a7aac38c5
misc cleanup in the runner module, splitting some things out into utils, breaking up functions into smaller functions.
14 years ago
Michael DeHaan
7ed734dfb2
move callbacks to seperate file, anticipating callbacks for Runner() as well
14 years ago