Commit graph

8941 commits

Author SHA1 Message Date
GGabriele
37d27c9b2c Fixed module structure 2016-09-04 17:30:19 +02:00
GGabriele
1f3d7681e2 Fixed DOCSTRING 2016-09-02 18:15:30 +02:00
GGabriele
bb9d8c6385 Adding nxos_bgp_neighbor_af module 2016-09-02 18:10:42 +02:00
James Pharaoh
5bce0049a1 fix error in documentation for stat checksum (#4582) 2016-08-27 21:25:26 -04:00
Peter Sprygada
9e97431308 Merge pull request #4578 from privateip/nxos_facts
convert nxos_facts map from dict to frozenset
2016-08-27 14:39:50 -04:00
Ilja Bauer
acb7d873f8 Replaced use of bare variables with full variable syntax (#4149) 2016-08-27 17:11:42 +02:00
Gennady Trafimenkov
6ac58a5832 Clarify what checksum algorithm is used by copy modules (#4198) 2016-08-27 17:11:17 +02:00
Ali Ok
ab55355b00 Fix minor syntax error in authorized_key module doc (#4491) 2016-08-27 16:52:03 +02:00
Robin Roth
9da4c42679 Clarify that refspec is needed to checkout a git hash (#4564)
fixes #1531
2016-08-27 16:51:18 +02:00
Michael Scherer
21688383c3 Convert command output to native string (#4559)
Without it, the module always return changed on python3,
which is harmless but add noise and can have some side effects.
2016-08-27 15:53:13 +02:00
Chris Houseknecht
6ca02cadd0 Merge pull request #4577 from chouseknecht/devel
Fix container labels expected vs actual comparison.
2016-08-27 09:06:02 -04:00
Peter Sprygada
277f8cfa5c convert nxos_facts map from dict to frozenset
* key maps are now frozenset instead of dict objects
* FactsBase now includes utility functions for transforming json data structures

Tested on NXOS 7.3(0)D1(1)
2016-08-27 08:47:42 -04:00
chouseknecht
48941291c1
Fix container labels expected vs actual comparison. 2016-08-27 08:00:13 -04:00
Brian Coca
5d90b86d82 added docs for vars_from/defaults_from 2016-08-26 21:56:19 -04:00
Peter Sprygada
565fb59d0a Merge pull request #4565 from privateip/iosxr_facts
add new iosxr_facts module for fact collection from XR devices
2016-08-26 21:43:18 -04:00
Peter Sprygada
dfce797dad add new iosxr_facts module for fact collection from XR devices
* adds support for std network facts
* adds support for default facts subset
* adds support for config facts subset
* adds support for interface facts subset
* adds support for hardware facts subset

Tested on IOS-XR 6.0.0
2016-08-26 21:41:05 -04:00
Peter Sprygada
5917a73623 Merge pull request #4563 from privateip/iosxr_config
update iosxr_config with new arguments
2016-08-26 21:39:36 -04:00
Peter Sprygada
a093fb1c83 Merge pull request #4566 from privateip/iosxr_template
update iosxr_template to use network shared modules
2016-08-26 21:39:23 -04:00
Peter Sprygada
13cfc911b4 Merge pull request #4567 from privateip/ios_template
update ios_template module using refactored network shared modules
2016-08-26 21:39:00 -04:00
Peter Sprygada
f33b232819 Merge pull request #4568 from privateip/eos_template
update eos_template for network shared module
2016-08-26 21:38:30 -04:00
Peter Sprygada
97b231561b Merge pull request #4569 from privateip/nxos_template
update nxos_template module with network shared module changes
2016-08-26 21:38:20 -04:00
Peter Sprygada
49414a4c83 Merge pull request #4549 from privateip/nxos_facts
updates nxos_facts with more fact collections
2016-08-26 21:38:09 -04:00
Brian Coca
c5e13ca0ed updated include_role docs to latest info 2016-08-26 16:40:00 -04:00
Peter Sprygada
074273dbb4 update eos_template for network shared module
This updates the eos_template module to work with the changes introduced
in the network shared module in Ansible 2.2

Tested on EOS 4.15.4F
2016-08-26 16:37:59 -04:00
Peter Sprygada
78b58f4fa9 update nxos_template module with network shared module changes
This updates the nxos_template module to work with the network shared
modules introduced in Ansible 2.2

Tested on NXOS 7.3(0)D1(1)
2016-08-26 16:19:22 -04:00
Peter Sprygada
9acf4ea417 update ios_template module using refactored network shared modules
This updates the ios_template module to work with the network shared
modules introduced in Ansible 2.2

Tested in IOS 15.6(1)T
2016-08-26 16:05:46 -04:00
Peter Sprygada
7b5a4e2fa3 update iosxr_template to use network shared modules
This updates the iosxr_template module to make it work with the new
shared network modules introduced in Ansible 2.2

Tested on IOSXR 6.0.0
2016-08-26 15:56:17 -04:00
Brian Coca
6eab2b3d40 1st draft of include role docs 2016-08-26 13:27:15 -04:00
Peter Sprygada
cababe0947 update iosxr_config with new arguments
* add src argument to provide path to config file
* add new choice to match used to ignore current running config
* add update argument with choices merge, replace or check
* add backup argument to backup current running config to control host
* add comment argument to provide comment to commit
* deprecated force argument, use match=none instead
2016-08-26 13:22:56 -04:00
Peter Sprygada
84d69ee51b Merge pull request #4551 from privateip/eos_facts
add new eos_facts module for fact collect of EOS nodes
2016-08-26 11:25:59 -04:00
Peter Sprygada
ef48b9188f add new eos_facts module for fact collect of EOS nodes
* adds support for std network facts
* adds support for default facts subset
* adds support for config facts subset
* adds support for interface facts subset
* adds support for hardware facts subset

Tested on EOS 4.15.4F
2016-08-26 09:12:52 -04:00
Peter Sprygada
2ca2223af2 updates nxos_facts with more fact collections
* adds support for std network facts
* adds support for default facts subset
* adds support for config facts subset
* adds support for interface facts subset
* adds support for hardware facts subset
* maintains backwards capabilitity with 2.1 facts module

Tested on NXOS 7.3(0)D1(1)
2016-08-26 09:11:50 -04:00
Peter Sprygada
44adf4195b Merge pull request #4523 from privateip/vyos_config
updates to vyos_config module arguments
2016-08-26 09:09:51 -04:00
Toshio Kuratomi
4912ec30a7 Fixes for lineinfile (#4553)
Lineinfile deals heavily with Unic text files.  Makes some sense to deal
with it all as byte strings.  So there is a lot of work done here to
show that we're dealing with byte strings throughout.
2016-08-26 01:05:53 -07:00
Peter Sprygada
73f955569e Merge pull request #4550 from privateip/ios_facts
update RETURNS doc string in ios_facts
2016-08-25 22:23:20 -04:00
Peter Sprygada
e3b7bf0bf9 update RETURNS doc string in ios_facts
updates the doc string for consistency and completeness
2016-08-25 20:01:07 -04:00
Patrick Marques
f3c0c09fb6 ssh_public_keys on Azure virtual machine is a list (#4350)
The ssh_public_keys must be a list otherwise will give the error:
"argument ssh_public_keys is of type <type 'dict'> and we were unable to convert to list"
2016-08-25 15:08:54 -07:00
Peter Sprygada
ef84dbbddd Merge pull request #4536 from privateip/sros
initial add of network/sros modules
2016-08-25 12:21:27 -04:00
Peter Sprygada
24b697f925 updates to vyos_config module arguments
* arguments for vyos_config for 2.2 are now complete
* adds loading config file from disk (src argument)
* removes unsupported rollback argument
* changes update_config to update with options merge or check
* changes backup_config to backup
* add state argument for state of configuration file
* adds backup argument to backup current configuration
* adds save argument to control if active config is saved to disk
* adds comment argument for setting commit comment
* adds match argument to control configuraiton match

Tested with VyOS 1.7
2016-08-25 12:13:24 -04:00
Peter Sprygada
1320094ee9 initial add of network/sros modules
* adds support for sros_command module for sending arbitrary commands
* adds support for sros_config module for working with sros configurations
2016-08-25 11:43:03 -04:00
Dag Wieers
9ea56d26b0 Fix multiple issues with unzip and gtar support (#4131)
* Improve the correct handling of gtar and unzip options

Add the option --show-transformed-names when extra_opts is being used
Ignore bogus warnings related to empty filenames
Properly quote _and_ escape filenames for unzip command
Rewrite gtar options and provide run_command with array, not string

This fixes #2480 and #4109.

* Make check-mode work for zip-files

Check-mode was disabled for zip-files since gtar did not support it.
This change enables check-mode support for zip-files, but does skip the task when used with gtar.
(Best of both worlds)

Also remove unused compress_mode variable.

This replaces PR #4401, the changes overlap somewhat so I merged them
2016-08-25 14:25:21 +01:00
Dag Wieers
ec158e3ed8 Remove redundant code AFAICT (#3908) 2016-08-24 18:47:39 -04:00
Peter Sprygada
55191c77b8 Merge pull request #4524 from privateip/vyos_command
added new functionality to vyos_command
2016-08-24 17:11:03 -04:00
Peter Sprygada
a3931f9315 Merge pull request #4509 from privateip/iosxr_command
add new functionality to iosxr_command module
2016-08-24 17:10:46 -04:00
Toshio Kuratomi
cbd9e07f19 Fix hg for python3 (#4528)
* Remove import of unused ConfigParser (ConfigParser has been renamed in py3)
* When retrieving version, normalize to a native string
2016-08-24 11:14:45 -07:00
Richard Adams
c8ca1a6211 Add parameter to ec2 module to control instance shutdown behavior (stop|terminate) 2016-08-24 13:34:48 -04:00
Toshio Kuratomi
2f26352e49 Cleanups of command.py (#4526)
* Import module_utils at the top
* Fix python3 by marking literals combined with stdout/stderr as byte
  literals
* Mark parameters as type=path where appropriate
2016-08-24 08:27:36 -07:00
Karthik Suresh
64ded1bb5e Removing duplicate name: parameter possible typo (#4525)
Removed name:parameter in documentation. Possible typo.
2016-08-24 11:04:59 -04:00
Peter Sprygada
66e48f5eb4 added new functionality to vyos_command
* commands argument now accepts a dict arguments
* waitfor has been renamed to wait_for with an alias to waitfor
* only show commands are allowd when check mode is specified
* config mode is no longer allowed in the command stack
* add argument match with valid values any, all
2016-08-24 10:37:51 -04:00
Matt Clay
f16091c718 Enable CI on Shippable for OS X. (#4515) 2016-08-23 15:14:36 -07:00