Peter Sprygada
0430923647
Merge pull request #16423 from privateip/netcfg
...
bug fix in netcfg replace method to handle whitespace argument
2016-07-04 22:54:16 -04:00
Peter Sprygada
65713c2418
Merge pull request #16574 from privateip/vyos
...
add get_config function to vyos shared module
2016-07-04 22:53:26 -04:00
Peter Sprygada
2866c7a9fb
updates netcfg to remove dependency on collections module
...
This fixes the netcfg shared lib to be compatable with python versions
prior to 2.7.
2016-07-04 22:25:39 -04:00
Peter Sprygada
6b8c24e0f8
bug fix in netcfg replace method to handle whitespace argument
2016-07-04 22:24:02 -04:00
Peter Sprygada
527e4196b2
adds new method to return specific response from command to netcmd
...
This adds a new method that will return the output from a specified
command that has already been excuted by the CommandRunner. The new
method, get_command takes a single argument which is the full name
of the command to retrieve.
2016-07-04 22:20:51 -04:00
Peter Sprygada
062db03f99
add get_config function to vyos shared module
...
This adds a new shard function get_config to retrieve the device
configuration either from module arguments or remotely from the
device.
2016-07-04 22:10:39 -04:00
Chris Houseknecht
54db1df244
Merge pull request #16559 from chouseknecht/azure-rc5
...
Fix authentication via params and env variables.
2016-07-04 15:03:13 -04:00
Chris Houseknecht
c71a939b08
Fix authentication via params and env vars. Update guide to RC5.
2016-07-02 21:36:34 -04:00
Chris Houseknecht
9e93f1c907
Merge pull request #16558 from chouseknecht/azure-rc5
...
Update and pin to azure-2.0.0rc5
2016-07-02 18:35:36 -04:00
chouseknecht
a076612b63
Update and pin to azure-2.0.0rc5
2016-07-02 18:16:43 -04:00
Stian Vikan
288446c9bf
Added and-quit to all commit statements. ( #16411 )
2016-07-01 12:11:05 -04:00
Peter Sprygada
46a97e1f55
removes dependency on collections module from eos ( #16485 )
...
This removes the dependency on the Python collections module to make
it fully compliant with version prior to py2.7
2016-06-30 11:55:21 -04:00
Peter Sprygada
9b40e1106e
removes dependency on collections module from netcmd
...
This change removes the dependency on collections so netcmd is
compatable with python versions prior to py2.7
2016-06-28 17:13:13 -07:00
Lars Fredriksen
4b5203c5fb
add holders to partitions ( #16446 )
...
* add holders to partitions
* make holder gathering a function
2016-06-28 09:44:51 -04:00
Peter Sprygada
d83962d3f5
Merge pull request #15992 from ogenstad/asa
...
Module util, template action and doc fragment for Cisco ASA
2016-06-27 06:32:12 -07:00
Peter Sprygada
32b605f603
Merge pull request #16422 from privateip/network
...
bug fix changes Config class in network to only raise exceptions
2016-06-23 16:15:20 -07:00
Peter Sprygada
77922f82e2
initial commit of vyos shared module with Cli transport
...
This adds support for the VyOS network operating system using the
Cli transport. This module will simplify building VyOS based
modules in Ansible
2016-06-23 12:27:33 -07:00
James Cammarata
3ea3fa8d46
Merge pull request #14639 from ivovangeel/find_mount_point-bug
...
Fixed bug in find_mount_point function
2016-06-22 22:38:54 -05:00
James Cammarata
7c27f72515
Merge pull request #14356 from mludvig/session_token
...
Add support for AWS_SESSION_TOKEN environment variable. (trivial patch)
2016-06-22 18:51:09 -05:00
Peter Sprygada
107c13759e
changes Config class in network to only raise exceptions
...
The Config class should not call fail_json but simply raise exceptions
and allow the implementor to handle the exception
2016-06-22 09:22:50 -05:00
Nathaniel Case
5dccff29bf
Network Module: EOS ( #16158 )
...
* add new module network
* move EOS to NetworkModule
* shell.py Python 3.x compatibility
* implements the Command class through the connection for eos
This implements a new Command class that specifies the cli command
and output format. This removes the need to batch commands through
the connection
* initial add of netcmd module
2016-06-20 12:11:48 -04:00
Zempashi
af150ea43a
Fix linux 'ip' stdout parsing. ( #16170 )
...
With network-manager in debian (stretch) and openvpn connection enabled
the output for ipv6 is different and include a 'peer' keyword.
Fixes #15448
2016-06-17 17:10:45 -04:00
Nate Coraor
706778ee7f
Fix distro detection for Solaris derivatives
2016-06-17 16:54:52 -04:00
Toshio Kuratomi
c4838286ac
Make sure we don't end up with an empty PYTHONPATH ( #16240 )
...
When the PYTHONPATH is an empty string python will treat it as though
the cwd is in the PYTHONPATH. This can be undesirable. So make sure we
delete PYTHONPATH from the environment altgether in this case.
Fixes #16195
2016-06-15 07:02:56 -07:00
biancalana
e143d3a75b
Better FreeBSD distribution facts ( #15866 )
...
* - Give more usable content to distribution_version and set distribution_major_version
* Make python 2.4 friendly
2016-06-14 17:58:23 -04:00
ben-taylor-nzme
e1d248dddf
fix error message ( #16264 )
...
The error was: TypeError: fail_json() takes exactly 1 argument (2 given)
2016-06-14 10:02:07 -04:00
Peter Sprygada
59e1bb3e6e
fixes using ssh keyfile with junos network module
...
The junos network module will now properly use the ssh key file if its
passed from the playbook to authenticate to the remote device. Prior
to this commit, the ssh keyfile was ignored.
2016-06-13 22:39:51 -04:00
Toshio Kuratomi
0e98ce11c4
Comment on is_executable's limitations and change logic to only use bit-manipulations
...
This is clearer to anyone who understands that unix file modes are bitfields.
2016-06-13 09:43:51 -07:00
René Moser
7aca70b4b0
cloudstack: simplify tag handling ( #16188 )
...
Fixes tag support in projects.
2016-06-13 08:27:27 +02:00
Dag Wieers
04ce71b4bd
Give a module the possibility to known its own name ( #16087 )
...
* Give a module the possibility to known its own name
This is useful for logging and reporting and fixes the longstanding problem with syslog-messages:
May 30 15:50:11 moria ansible-<stdin>: Invoked with ...
now becomes:
Jun 1 17:32:03 moria ansible-copy: Invoked with ...
This fixes #15830
* Rename the internal name from module.ansible_module_name to module._name
2016-06-10 11:48:54 -04:00
Brian Coca
c376954ecf
avoid processing bad mtab entries ( #16206 )
...
fixes #16174
2016-06-09 15:05:06 -04:00
Peter Sprygada
178cfd142b
fixes issue with ssh keyfile and nxos authentication
...
The nxos cli provider would not properly handle ssh key files passed
from the playbook task. The ssh_keyfile argument is now properly
passed to the ssh authentication method
This fix address the bug reported in #3862
2016-06-07 21:01:34 -04:00
Peter Sprygada
596b32f31e
Merge pull request #16148 from privateip/working
...
fixes issues with authenticating using ssh-agent for ios devices
2016-06-07 06:31:46 -04:00
Trond Hindenes
ad4eb751a5
moved pending reboot to powershell.ps1
2016-06-06 23:18:51 +02:00
Peter Sprygada
0a87651fc5
fixes issues with authenticating using ssh-agent for ios devices
...
Exception was raised when trying to use ssh-agent for authentication to
ios devices. This fix enables ssh-agent and enable use of password
protected ssh keys. There is one additional fix to capture authentication
exceptions nicely.
2016-06-06 07:53:42 -04:00
Toshio Kuratomi
5a3493be5f
Port urls.py to python3 and other byte vs text fixes ( #16124 )
...
* Port urls.py to python3
Fixes (largely normalizing byte vs text strings) for python3
* Rework what we do with attributes that aren't set already.
* Comments
2016-06-04 16:19:57 -07:00
nitzmahone
d1b611a730
updates for Azure SDK 2.0.0rc4
2016-06-04 15:05:13 -07:00
Brian Coca
2482c687b7
optimize openbsd pkg_mgr fact discovery
2016-06-03 09:54:59 -04:00
ogenstad
6027e5b580
Module util, template action and doc fragment for Cisco ASA
2016-06-01 20:57:30 +02:00
Chris St. Pierre
bfd69a7042
Modules: check for list-like choices in arg spec
...
This makes it possible to use anything other than a list (e.g., a
tuple, or dict.keys() in py3k) for argument_spec choices. It also
improves the error messages if you don't use a list type.
2016-05-26 16:20:31 -05:00
René Moser
176a207c61
Merge pull request #15974 from resmo/feature/vpc
...
cloudstack: add VPC support
2016-05-26 07:43:40 +02:00
Toshio Kuratomi
3b69ef7e8b
Add strings 'True' and 'False' as booleans as python bools converted to strings will look that way.
...
Workaround for custom modules which are using choices=BOOLEANS instead
of type='bool'.
2016-05-25 10:36:16 -07:00
Rene Moser
62c424797a
cloudstack: add common network code
...
Also used for VPC support.
2016-05-24 23:18:17 +02:00
Tim Rupp
9041a0fee9
Adds a general purpose Exception class for F5 modules ( #15977 )
...
This class can be used by F5 modules for raising exceptions.
This should be used to handle known errors and raise them so
that they can be printed in the fail_json method.
The common Exception class built-in should not be used because
it hides tracebacks that are necessary to have when debugging
problems with the module.
2016-05-24 11:18:39 -04:00
Rene Moser
fe05c5e35a
cloudstack: add VPC support
2016-05-23 23:01:31 +02:00
Michael Scherer
cf44db58e0
Add SEQUENCETYPE to handle the dict_keys type ( #15953 )
...
On python 3, there is a specific type for dict keys
instead of list, so previous tests based on Sequence didn't
not work anymore.
2016-05-23 15:17:28 -04:00
Brian Coca
c8f0cdbdfd
renamed systemd detection function
2016-05-23 15:09:09 -04:00
Michael Scherer
f9f6f24acd
Add a alias for 'long' since python3 do not have it ( #15952 )
2016-05-23 10:30:06 -04:00
jctanner
5bb4ee0c1e
Avoid duplicate system related fact calls. ( #15716 )
...
* Avoid duplicate system related fact calls.
Addresses #1461
2016-05-19 22:34:19 -04:00
Toshio Kuratomi
aad9f43dda
Make load_params into a function that custom modules can access ( #15913 )
2016-05-18 10:50:55 -07:00