Commit Graph

3408 Commits (7b9d991f78b1916fb0019bdd110f3582d4afb871)

Author SHA1 Message Date
James Cammarata d977da5b41 Fixing up fact_cache use in VariableManager 10 years ago
James Cammarata 932d1e57f7 Removing stray debugging print 10 years ago
James Cammarata 91c9bb96e3 Moving jsonfile cache plugin over and fixing #10883
Fixes #10883
10 years ago
Brian Coca d8abae71a4 now assemble skips during checkmode
TODO: actually make it check with checkmode
fixes http://github.com/ansible/ansible-modules-core/issues/661
10 years ago
Alejandro Guirao 587a6cb44c Remove v1 code 10 years ago
Alejandro Guirao 6e99023c84 Changed to support Ansible v2 10 years ago
Alejandro Guirao 8efc42d993 Add shelvefile lookup plugin 10 years ago
James Cammarata f40b66d841 Make sure the basedir is unicode
Fixes #10773
10 years ago
Brian Coca ba92965670 fix for when invocation data is missing 10 years ago
Brian Coca 4203b699a8 removed dict comprehension as 2.6 does not like 10 years ago
Brian Coca d993e7000c added cyan back to ignoring message 10 years ago
Brian Coca 064a34689a now actually continues play on ignore errors 10 years ago
Brian Coca 1274ce565d added result sanitation to registered var and to callbacks
removed time display as it only is provided by command module
10 years ago
Brian Coca fdea00880b now default shows time taken when -vv or above 10 years ago
Brian Coca 7a1bce1b5d added verbose option to show callback loaded info
also made mail module print nicer without all those 'u'
10 years ago
teh 4r9h 705018a417 Misspell in mail.py callback.
Looks like little misspell.
10 years ago
Brian Coca aaad33ccb6 fixed a couple of bugs 10 years ago
Brian Coca d0c6d2ff1c poreted log_plays, syslog_json and osx_say callbacks to v2
renamed plugins to contrib (they are not really plugins)
rewrote README.md to reflect new usage
added new dir to setup.py so it gets copied with installation, in views
of making using inventory scripts easier in teh future
10 years ago
Brian Coca 50d54b1be7 ported hipchat callback to v2 (needs testing) 10 years ago
Brian Coca e92e15b5f6 moved unused functions to base object 10 years ago
Brian Coca b47d7babe5 removed warning i was using for debug 10 years ago
Brian Coca 834b7a2857 ported context_demo to v2 callbacks 10 years ago
Brian Coca ba0e5323d6 removed connection info to _verbosity, just needed callbacks to call correct display.verbosity
added v2 methods and made them call v1 when possible by tranforming the data
10 years ago
Brian Coca f9d817e636 now looks at correct verbosity and removes the need to set a copy of it in _verbosity 10 years ago
James Cammarata f8ddf2eb04 Move role cache into the play to avoid roles crossing play boundaries 10 years ago
James Cammarata b520d5bc60 Lots of fixes for integration test bugs 10 years ago
Brian Coca 3ba67dd2d0 added ignore_hidden to assemble 10 years ago
Brian Coca 55366bdc6d ported mail callback plugin to work with v2 10 years ago
James Cammarata 27fcf1a4b5 Fix bug in registered variables related to delegate_to changes 10 years ago
James Cammarata 64a1b1e043 Fix first_available_file: support for copy and template actions 10 years ago
James Cammarata 2e5dfd57cc Clear flag indicating role had run before each play is run
Fixes #11514
10 years ago
James Cammarata f67949e42c Readd logic for ansible_managed to template action plugin
Fixes #11317
10 years ago
James Cammarata da307c8bfd Fix bug in logic introduced in 614c626 10 years ago
James Cammarata 293dd38d05 Correctly handle assigning results to the delegated to host 10 years ago
Brian Coca 688088547b new human_readable filter to transform bits and bytes into cake (not really) 10 years ago
James Cammarata 614c626ed0 Fix no hosts remaining logic in linear strategy 10 years ago
James Cammarata 1d8ccfb99f Fixing includes where the included file is "{{item}}" 10 years ago
Brian Coca 4d35d8bd31 properly booleanify copy field 10 years ago
Brian Coca 5122455db8 ported missing sequence updates from 1.9 10 years ago
Brian Coca 1b74102ab3 Merge pull request #11435 from hfinucane/ipwrap-generator
Treat generators like lists and tuples
10 years ago
Toshio Kuratomi 71f72b655e Merge pull request #11432 from sivel/splitext-filter
Add splitext filter
10 years ago
James Cammarata 9341148f04 Throw an error if with_first_found finds no files by default
Fixes #9976
10 years ago
James Cammarata cf51d0a790 Fixing up some check-mode stuff 10 years ago
James Cammarata ad53b6f36a Merge pull request #11461 from pilou-/shell_removed
Fix "AttributeError: 'ActionModule' object has no attribute '_shell'"
10 years ago
James Cammarata 2e386deeae Make undefined variables in debug var=foo more obvious
Fixes #9935
10 years ago
Pierre-Louis Bonicoli 4d4512940d Fix "AttributeError: 'ActionModule' object has no attribute '_shell'"
'_shell' was removed with commit 2a5fbd8570
10 years ago
James Cammarata ec4d1b11df Fix some more handler issues
* Only notify handlers when the task is changed
* Don't run handlers on hosts which have failed
10 years ago
Brian Coca d149ea5222 ported timer.py callback to v2 10 years ago
James Cammarata 9785e5397e Fix typo in SharedObjectLoader field basedirs 10 years ago
James Cammarata 927072546b Fixing up some issues with plugin loading 10 years ago
James Cammarata 2a5fbd8570 Winrm fixes for devel
* Include fixes for winrm connection plugin from v1 code
* Fixing shell plugin use
10 years ago
Henry Finucane 2d1cb7f328 Treat generators like lists and tuples 10 years ago
Matt Martz 4059904a18 Add splitext filter 10 years ago
Dustin Lundquist cf7744f2f1 IPv6 SLAAC address computation filter
Jinja2 filter to compute SLAAC address.

Usage:
    {{ '2db8::/64' | slaac(ansible_eth0.macaddress) }}
10 years ago
Toshio Kuratomi 548a7288a9 Use BUFSIZE when putting file as well as fetching file. 10 years ago
Toshio Kuratomi 270be6a6f5 Fix exec_command to not use a shell 10 years ago
Toshio Kuratomi e461241d7b Fix fetch_file() method 10 years ago
James Cammarata d0d9be30d5 Correctly compile handler blocks for dependent roles 10 years ago
Hugh Saunders 4246777759 Re-implement the ssh connection retry, originally added in 2df690 10 years ago
James Cammarata 006391eb83 Add the improved exception reporting to the minimal callback plugin 10 years ago
Toshio Kuratomi 952166f48e Fix problem with chroot connection plugins and symlinks from within the chroot. 10 years ago
Toshio Kuratomi 61e367f549 Better error messages when the file to be transferred does not exist. 10 years ago
James Cammarata 7490044bbe Implement play_hosts magic variable (and ansible_current_hosts)
Fixes #8073
10 years ago
James Cammarata 97954ff658 Minor tweak to potentially speed the linear strategy up
* Don't fetch vars for the task unless we're going to use them
10 years ago
Brian Coca b34b606fcf fixed and/or grouping 10 years ago
Brian Coca 68325dbfe2 fixed remote tmp creation when becoem user is not root and '~/' instead of $HOME is the default 10 years ago
Brian Coca 102de96ebf avoid password handling when no password is supplied 10 years ago
Brian Coca 3bad03d57a cleaned up and optimized become handling paths 10 years ago
James Cammarata 0d92599d18 Make exception printing a bit smarter 10 years ago
Toshio Kuratomi a77b58e351 Bumpt the BUFSIZE to 64k for better performance 10 years ago
Toshio Kuratomi 0777d02505 Fix problem with jail and zone connection plugins and symlinks from within the jail/zone. 10 years ago
Toshio Kuratomi ca2f2c4ebd Fix problem with jail and zone connection plugins and symlinks from within the jail/zone. 10 years ago
James Cammarata c0dfa8d512 Make sure task names are templated before callbacks are sent 10 years ago
James Cammarata 98fee172ee Fix bug in async action plugin 10 years ago
Brian Coca 7bb2a7aa87 actually no password to handle, this should return false 10 years ago
Brian Coca 87a0ccc354 fixed typo 10 years ago
Brian Coca aede9f08db fixed case in which prompt was None 10 years ago
Brian Coca 7c65f3ddd7 partial become support for local connection plugin 10 years ago
Brian Coca 671118ba71 fixed become password handling with paramiko 10 years ago
Brian Coca 744ec2bbad put hostkey locking into function (still needs fixing)
implemneted become handling here, cannot generalize well enough in base class
10 years ago
Brian Coca d6672ad285 removed unused import 10 years ago
Brian Coca 5cfd0f82a0 moved away from generic function for become 10 years ago
Brian Coca 3fab516d3d fixed detection of incorrect password 10 years ago
James Cammarata c3c398cffe Cleaning up some task failure detection problems
* fixed a bug in which failures from a with_* loop were not being
  caught correctly, leading to tasks continuing when they should stop
* when ignore_errors is enabled, the failure will no longer count
  towards the number of failed tasks
10 years ago
Brian Coca 3b1b95b916 moved ipv6 handling to init
fixed become password handling
10 years ago
Brian Coca bb7d33adbc moved become password handlingn to base class 10 years ago
James Cammarata 4b28a51f25 Don't fail outright when a play has an empty hosts list 10 years ago
Brian Coca c87591f76f updated to new exec_command signature 10 years ago
Brian Coca 98f5534d9c adaptaed to new exec signature
should fix #11275
10 years ago
Brian Coca dcf81e3ffe removed useless comments 10 years ago
Brian Coca 8ae58f7ea3 fixed executable, correctly this time 10 years ago
Brian Coca 1ce1c52f6f centralized bad password handling, fixed outputing of become method 10 years ago
Brian Coca b89071e485 now detects incorrect password with sudo and su (at least in english) 10 years ago
Brian Coca 580993fef7 enabled initial support for password prompt on become
- moved check prompt/password functions to connection, make more senes there
- TODO: consider moving make_become to connection from connection_info
- removed executable param that was never overriden outside of connection info
10 years ago
Brian Coca bac35ae773 set correct become mehotds for plugin
fixed mixup with remote password vs become_password
10 years ago
Brian Coca c3ccf26b70 added become check back to connections 10 years ago
Brian Coca a248678518 initial become support to ssh plugin
- password prompt detection and incorrect passwrod detection to connection info
- sudoable flag to avoid become on none pe'able commands
10 years ago
Brian Coca e7abe06440 added first_found to template 10 years ago
Brian Coca 8ee4c7266c corrected original_file code path to use actually use data from original file 10 years ago
Brian Coca 491761f880 added note to add faf deprecation 10 years ago
Brian Coca a6ca133da8 got first_available working with copy 10 years ago
Brian Coca aca125d03e Merge pull request #11252 from sivel/deprecated-warning
Display a warning when using a deprecated module
10 years ago
Matt Martz 9ed3e2ef48 Display a warning when using a deprecated module 10 years ago
Toshio Kuratomi d315f6e22c Fix Etcd constructor 10 years ago
Toshio Kuratomi 77c76e632e Switch etcd and url lookup plugins to verify ssl certificates 10 years ago
Brian Coca e07dde1a3c Merge pull request #11251 from sivel/issue/11244
Require passlib over crypt in password_hash for Mac OS X/Darwin. Fixes #11244

i was almost done with my patch ... but I like yours better
10 years ago
Matt Martz a4e2d1eb62 Require passlib over crypt in password_hash for Mac OS X/Darwin. Fixes #11244 10 years ago
Brian Coca aaab69cae9 brought back terms testing as with_ is not only way to call and we cannot guarantee terms is a list otherwise. 10 years ago
Brian Coca c8fde467b5 Merge pull request #11163 from sivel/ssh-private-key-fixme
Re-introduce ssh connection private key support
10 years ago
Brian Coca 40336b50af removed redundant string check
added playbook path lookup
10 years ago
Brian Coca 19161dfd72 fixed typo in placeholder check 10 years ago
Brian Coca 8e3213a91e updated copyright as MPD does not deserve the blame for this one 10 years ago
Brian Coca 70b5c28694 initial implementation of the generic OS package module 10 years ago
Toshio Kuratomi e88a9e943c Use to_bytes to avoid tracebacks when passed a byte str instead of a unicode string
Fixes #11198
10 years ago
Brian Coca 97bc92d2df minor cleanup, pushed ipv6 fixing to init
pushed up using host short var
made close conditional, started implementing close for controlmaster
10 years ago
Brian Coca bdba807fd1 minor fixes to ssh error reporting
shoudl fix #11041
10 years ago
Matt Martz 6f5ebb4489 Fix syntax error in winrm 10 years ago
Brian Coca 04f4f77d91 Merge pull request #11124 from sivel/jit-connect
Use a decorator to perform just in time connection
10 years ago
James Cammarata 73c956366e Correctly determine failed task state when checking results
Fixes #11172
10 years ago
James Cammarata a4ebee4b16 Merge pull request #11170 from dguerri/devel
Fix lookup() plugin
10 years ago
James Cammarata ee5e166563 Fixing ansible_*_interpreter use
Fixes ansible/ansible-modules-core#1459
10 years ago
Davide Guerri ee06eebea3 Fix lookup() plugin
lookup() plugin is currently broken because _get_file_contents() now
returns a tuple: (contents, show_data).

This patch fix that issue.
10 years ago
Matt Martz bce281014c Decorate the ConnectionBase methods, switch to calling super from individual connection classes 10 years ago
Matt Martz 9754c67138 Use a decorator to ensure jit connection, instead of an explicit call to _connect 10 years ago
James Cammarata f3f3fb7c49 Fixing vars_prompt 10 years ago
Matt Martz 6a97e49a06 Re-introduce ssh connection private key support 10 years ago
Toshio Kuratomi 7dd3ef7b60 Older python-six from early RHEL and ubuntu do not have add_metaclass but do have with_metaclass 10 years ago
Brian Coca 3e2e81d896 missing path in import path for making paths 10 years ago
James Cammarata c4ae51089d Merge pull request #11129 from sivel/fix-scp-if-ssh
Fix command building for scp if ssh
10 years ago
Matt Martz 71014ab01e Fix command building for scp if ssh 10 years ago
Brian Coca 2590df6df1 created makedirs_safe function for use in cases of multiprocess
should fix #11126 and most race conditions
10 years ago
James Cammarata 4bc7703db3 Fixing some small bugs related to integration tests (v2) 10 years ago
James Cammarata 7985d2a8be Moving included file stuff to a proper dedicated class and file (v2) 10 years ago
James Cammarata fe014148d9 Removing errant debug print 10 years ago
Brian Coca 16c70dd7d4 added equivalent of #9636 to v2 10 years ago
James Cammarata 9921a1d2be Unit tests for base strategy class (v2) 10 years ago
James Cammarata 21fa385ce7 Reorganizing plugin unit tests and adding start of strategy tests (v2) 10 years ago
James Cammarata 9aa8676bdd More template unit tests for v2 10 years ago
Toshio Kuratomi b91ce29007 Go to next task when we get an error in linear 10 years ago
James Cammarata b94e2a1f4e Fixing bugs related to parsing and fixing up parsing integration tests (v2) 10 years ago
James Cammarata 830225d9c1 Fix errors in subelements lookup plugin and associated tests (v2) 10 years ago
James Cammarata b03b7892f8 Fix method of exiting task loop (v2) 10 years ago
Serge van Ginderachter 9b646dea41 Add optional 'skip_missing' flag to subelements 10 years ago
James Cammarata 3697d6582f Connection plugins no longer auto-connect (v2)
Also fixed a bug in ssh.py where an attribute was being inappropriately
initialized in the _connect() method instead of __init__()
10 years ago
James Cammarata daf533c80e V2 fixes
* PluginLoader class will now be more selective about loading some
  plugin classes, if a required base class is specified (used to avoid
  loading v1 plugins that have changed significantly in their apis)
* Added ability for the connection info class to read values from a
  given hosts variables, to support "magic" variables
* Added some more magic variables to the VariableManager output
* Fixed a bug in the ActionBase class, where the module configuration
  code was not correctly handling unicode
10 years ago
James Cammarata 0f1eb3cfc2 Better fix for serializing/deserializing cache plugins (v2) 10 years ago
James Cammarata cd6d1f9221 Fix pickling errors with cache plugins (v2)
Fixes #10945
10 years ago
James Cammarata 198476e345 Cleaning up some portions of synchronize action plugin (v2) 10 years ago
Matt Martz 88e8ecb620 Actually get the synchronize action plugin to work 10 years ago
Matt Martz 4f4df29cb0 Add ability to specify using ssh_args in synchronize for v2 10 years ago
James Cammarata 1152c7327a Fix serialization bug for plugins (v2) 10 years ago
James Cammarata 4f28a814ae Return a list instead of tuple when password is specified to ssh connection plugin (v2) 10 years ago
Toshio Kuratomi 7733dc7bb5 Fix for new octal syntax 10 years ago
James Cammarata 8214ac7841 Add serializer/deserializer to plugin base object (v2)
Fixes #10923
10 years ago
James Cammarata d34b586eb6 Add ability for connection plugins to set attributes based on host variables (v2) 10 years ago
James Cammarata 8fae2abed4 Properly fail out of the task loop in the linear strategy on failures (v2) 10 years ago
James Cammarata 803fb397f3 Fixing filter plugins directory from switch 10 years ago
James Cammarata ce3ef7f4c1 Making the switch to v2 10 years ago