Commit Graph

21 Commits (de437795658eb450d1115c706a66beab38b6eb81)

Author SHA1 Message Date
Niall Donegan f7d2f76976 Handle missing module with fail_json 2016-12-08 11:32:33 -05:00
Niall Donegan 9d5669e6b3 sys.exit used, but not imported. 2016-12-08 11:32:33 -05:00
Sébastien Gross 95031a8bea Merge wrapped lines.
Some devices return their description on multiple lines such as:

    lldp.eth0.chassis.descr=cisco CISCO7609-S running on
    Cisco IOS Software, c7600s72033_rp Software (c7600s72033_rp-IPSERVICESK9-M), Version 12.2(33)SRE3, RELEASE SOFTWARE (fc1)
    Technical Support: http://www.cisco.com/techsupport
    Copyright (c) 1986-2011 by Cisco Systems, Inc.
    Compiled Wed 26-Jan-11 06:54 by prod_rel_team

The generated fact will result as:

    "descr": "cisco CISCO7609-S running on"

This patch fixes the line wrapping to return the full description
handling line breaks:

    "descr": "cisco CISCO7609-S running on\nCisco IOS Software, c7600s72033_rp Software (c7600s72033_rp-IPSERVICESK9-M), Version 12.2(33)SRE3, RELEASE SOFTWARE (fc1)\nTechnical Support: http://www.cisco.com/techsupport\nCopyright (c) 1986-2011 by Cisco Systems, Inc.\nCompiled Wed 26-Jan-11 06:54 by prod_rel_team"
2016-12-08 11:32:32 -05:00
Andy Hill d72734ed47 bigip_facts: Add missing "device" option
The device option was already implemented but omitted from docs and allowed
choices. With the addition of device, a devices failover_state can be
determined.
2016-12-08 11:32:32 -05:00
Jesse Keating dce3597782 Add enabled/disabled support to bigip_node
This allows one to enable or disable a node, useful for when doing
maintenance on a node to prevent connections from being attempted to it.

This will completely disable the node for any pool it might be in.
2016-12-08 11:32:30 -05:00
Marc Abramowitz 128cf5fd74 Add `validate_certs` param to bigip_* modules
Ignoring SSL cert verification may be necessary when testing with a
server that has a self-signed certificate.

See
https://github.com/ansible/ansible-modules-extras/pull/288#issuecomment-85196736
2016-12-08 11:32:28 -05:00
Chad Norgan 2091b040ff Ignore lines that do not have the key in them
Some switches return multi-line output, which breaks the split function,
the change seeks to only preform the split on a line that has the key.
2016-12-08 11:32:27 -05:00
Matt Hite d4b996203a Another potential fix for issue 109; now catches WebFault 2016-12-08 11:32:26 -05:00
Brian Coca ed8842be47 removed unused import json which breaks 2.4/simplejson compat 2016-12-08 11:32:26 -05:00
James Barwell ce349b6c3d Fix argument parsing to module constructor
- Change to remove kwargs in a97d1016dc77186de8ad05704b6b4c141c005409
  did not remove arguments passed in to the constructor.
2016-12-08 11:32:25 -05:00
Brian Coca baf514957c moved version added 2016-12-08 11:32:22 -05:00
Brian Coca 3ef53f92eb minor cleanup, removing unused/redundant code, cleaned some comments, slight reformating in class to remove kwargs 2016-12-08 11:32:22 -05:00
Ravi Bhure 7e83da3480 Recorded the changes suggested by brian coca 2016-12-08 11:32:22 -05:00
Ravi Bhure e0f0cc4049 used ansible conventions to use trigered action ==> state, now only two states are available enabled/disabled_ get weight for backend server, is default behavior for both state, supports set weight while enable server in lb pool 2016-12-08 11:32:22 -05:00
Ravi Bhure a1c5149de3 Instead of action [enable_server,disable_server] we prefer to use state [enabled,disabled] [FIXED] misplaced the checkmode support (#L146) [FIXED] no need to check if host is not set as the argument spec (#L138), it should already complain about that [FIXED] 2016-12-08 11:32:22 -05:00
Ravi Bhure 6edde18f90 updated version 1.9 and moved haproxy module to network category 2016-12-08 11:32:22 -05:00
Brian Coca 766125d585 minor doc tweaks to snmp_facts 2016-12-08 11:32:21 -05:00
ogenstad 61cf02b727 1.9 2016-12-08 11:32:21 -05:00
ogenstad 779614e9cf added_version -> 1.9 and file move 2016-12-08 11:32:21 -05:00
Michael Warkentin 45f2a6734d Fix typo: `authenicate` -> `authenticate` 2016-12-08 11:32:20 -05:00
Michael DeHaan ee87304fb8 Fix rename error. 2016-12-08 11:32:19 -05:00