Commit Graph

7288 Commits (d55452d3ed77ce4a52c224c1962ed4c0ec91a68e)

Author SHA1 Message Date
Connor Osborn b06c61c49b Fix exceptions thrown from cryptography import (#16723)
A simple import of cryptography can throw several types of errors. For example,
if `setuptools` is less than cryptography's minimum requirement of 11.3, then
this import of cryptography will throw a VersionConflict here. An earlier case
threw a DistributionNotFound exception.

An optional dependency should not stop ansible. If the error is more than
an ImportError, log a warning, so that errors can be fixed in ansible or
elsewhere.
10 years ago
James Cammarata d8a3feb976 Fix bug where getting role vars does not follow the dep chain
This bug was introduced in 3ced6d3, where getting vars from a role
did not follow the dep chain. This was originally hidden by the fact
that we got vars twice (from the block and from the roles directly).

Fixes #16729
10 years ago
Peter Sprygada e4b3032231 removes methods to write to dest from net_config 10 years ago
Peter Sprygada c4e2c0f487 Merge pull request #16728 from privateip/netcfg
minor update to the default comment tokens in netcfg
10 years ago
Peter Sprygada ab3c5a0a17 minor update to the default comment tokens in netcfg
* adds checkout /* and */ as comment delimiters
* now raises exception if invalid output keyword value is used
10 years ago
Peter Sprygada 05ca246ddc adds new function to check config for unsupported commands
Some commands fail when being set so the load_config function will
now filter those commands out and return them in the result key
as filtered.
10 years ago
Peter Sprygada e560bfeaca Merge pull request #16719 from privateip/action-plugin-vyos
add vyos action plugin for handling local operations
10 years ago
Toshio Kuratomi 9055d3ad5c Update submodule refs 10 years ago
Peter Sprygada e5e387562d add vyos action plugin for handling local operations
This plugin extends the functions of the net_config plugin to vyos
10 years ago
Peter Sprygada 7ecc75b555 Merge pull request #16718 from privateip/vyos
add common argument save_config to vyos_argument_spec
10 years ago
jctanner 238c6461f6 Add a function to check for killed processes in all strategies (#16684)
* Add a function to check for killed processes so that if any
threads are sigkilled or sigtermed, the entire playbook execution is aborted.
10 years ago
Brian Coca ae0c1bbc47 ansible-doc now notes when module has action plugin 10 years ago
James Cammarata 1905b7cc33 Submodule ref update 10 years ago
James Cammarata 153133132d Updating tests for new module feature for remote_src in unarchive
Fixes #10218
10 years ago
Peter Sprygada f0c8c9e55c add common argument save_config to vyos_argument_spec 10 years ago
Brian Coca ee815bc9a4 fxed typo 10 years ago
Toshio Kuratomi 786ee97c38 Update submodule refs 10 years ago
Brian Coca 3c39bb5633 fixed lookup search path (#16630)
* fixed lookup search path

added ansible_search_path var that contains the proper list and in order
removed roledir var which was only used by first_found, rest used role_path
added needle function for lookups that mirrors the action plugin one, now
both types of plugins use same pathing.

* added missing os import

* renamed as per feedback

* fixed missing rename in first_found

* also fixed first_found

* fixed import to match new error class

* fixed getattr ref
10 years ago
Chris Houseknecht 30c0ce1e60 Merge pull request #16680 from chouseknecht/devel
Fix find_image() not matching on tag
10 years ago
Brian Coca ed7623ecde J2 test docs (#16646)
* moved tests from filters to actual jinja2 tests

also removed some unused declarations and imports

* split tests into their own docs

removed isnan as existing jinja2's 'number' already covers same
added missing docs for several tests

* updated as per feedback
10 years ago
James Cammarata 245ce9461d Fix unreachable host/any_errors_fatal bug in linear strategy
2e003adb added the ability for tasks using any_errors_fatal to fail
when there were unreachable hosts. However that patch used the running
unreachable hosts data rather than the results from the current task,
which causes failures when any run_once or BYPASS_HOST_LOOP task is hit
after an unreachable host causes a failure. This patch corrects that by
using the current set of results to determine if any hosts were
unreachable during the last task only.

Fixes ansible/ansible-modules-core#4160
10 years ago
Chris Houseknecht 16a3f28f6e Fix find_image() not matching on tag 10 years ago
nitzmahone 31e963dd2a tkuratomi bugfix for BOMs in powershell modules
fixes #15998
10 years ago
Brian Coca 0a439df4b0 removed redundant True/False cause `arg.lower()` 10 years ago
Peter Sprygada 54fc1a10fe Merge pull request #16674 from privateip/ios_config_action
adds action plugin for working with network configuration files
10 years ago
Peter Sprygada 075a03d511 adds action plugin for working with network configuration files
This adds a action plugin that will allow config and template modules
to be merged into a single module.  Once completed this will supercede
the net_template action plugin.
10 years ago
Peter Sprygada 637bbdadfa add new features to ios shared module
* add load_config() for loading a set of configuration commands
* add load_candidate() function for loading a candidate config
* updates shared module to provide NetworKModule instead of get_module
* fixes Cli transport implementation for 2.2 refactor
* updates ios documentation fragments with new options
10 years ago
Rene Moser fffd4b7b46 update extras submodule ref
fixes build in ansible-module-extras
10 years ago
Rene Moser be7a3b2fe6 update extras submodule ref 10 years ago
Peter Sprygada 80ab80b6fd adds additional capabilities to diff of network configs
* diff functions now split out for easier troubleshooting
* added dumps() function to serialize config objects to strings
* difference() can now expand all blocks instead of just singluar blocks
10 years ago
Peter Sprygada c2d5865627 adds restconf transport option to ios shared module
includes changes from PR ansible/ansible#16636 and refactors for the
NetworkModule changes

new features

* ios now supports transport=restcon will additional arguments
* ModuleStub refactored into common network shared module
* import temporary get_module() function (to be removed prior to 2.2 final)
10 years ago
Peter Sprygada c0c9cf6441 add helper factory function to avoid breaking network modules in devel
This is a temporary change to keep the get_module() function until all
of the network module refactoring is completed to avoid breaking them
in devel.   The get_module() function should not be used and will be
removed before 2.2 final.
10 years ago
jctanner fe8258a378 make timeout decorator for facts have a configurable duration (#16551)
* Add a gather_timeout parameter
* update example ansible.cfg
* fix play level fact gathering too
10 years ago
James Tanner ebd3eeec8c Update submodule refs 10 years ago
Brian Coca 7657f75f75 removed defined/undefined as jinja2 already has em 10 years ago
Brian Coca 7f28bcacaa added defined/undefined tests 10 years ago
Nathaniel Case af5fba759f EOS new ModuleStub
As per #16575
10 years ago
James Cammarata 9ad8132628 Updating submodule refs 10 years ago
Peter Sprygada b4d36f6ed4 Implement IOS restconf 10 years ago
Nathaniel Case 18738c81da New ModuleStub solution 10 years ago
Matt Davis 30c63a41e9 Merge pull request #16555 from matsu-chara/fix-error-msg-default-to-defaults
fix default/main.yml to defaults/main.yml
10 years ago
nitzmahone b6d41d3d4b bump extras submodule ref 10 years ago
Nathaniel Case 72204ddd3e Net mod ios (#16426)
* Update IOS with new NetworkModule

* Remove redundant EOS code

* `authorize` can get rolled into NetCli

* Fix up IOS to where EOS is.

* Update IOSXR for NetworkModule

* collections is unnecessary
10 years ago
James Cammarata 6cde80fe69 Updating submodule refs 10 years ago
Brian Coca 906dc99c64 correctly set become value in console
fixes #16614
10 years ago
James Cammarata 9248cde239 Force remote_user to be the currently user for connection=local
Fixes ansible-modules-core#4092
10 years ago
Toshio Kuratomi 251c9182fe Refactor network and eos module_utils to use a subclass instead of factory function to create the NetworkModule 10 years ago
Toshio Kuratomi 626e6aee7d Update core submodule for unarchive fixes 10 years ago
Toshio Kuratomi d1558fcee4 Don't check that we import basic.py in new-style modules (#16613)
Since Ansiballz, we no longer need to import basic directly into
a new-style module.  Some modules, like the Networking modules, may
import basic in their own module_utils files and the module will import
that specialized module_util file rather than basic.
10 years ago
Toshio Kuratomi a93cf801e1 Update submodule refs 10 years ago