Commit graph

81 commits

Author SHA1 Message Date
Chris Long
08a3fa0620 Fixed descriptions to all be lists
replaced enabled with autoconnect - refactored code to reflect update.
removed ansible syslog entry.
2015-05-15 01:09:49 +10:00
Chris Long
8781bf8281 Updated as per bcoca's comments:
removed 'default' in state:
removed defunct action:
removed reference to load_platform_subclass
changed cname to conn_name
2015-05-15 00:45:51 +10:00
Chris Long
9b32a5d8bf Initial commit of nmcli: NetworkManager module. Currently supports:
Create, modify, remove of -
team, team-slave, bond, bond-slave, ethernet
TODO:
vlan, bridge, wireless related connections.
2015-05-12 22:10:53 +10:00
Brian Coca
2f4fa76298 Merge pull request #402 from ndonegan/devel
sys.exit used, but not imported.
2015-04-16 15:15:22 -04:00
Niall Donegan
b125d2685a Handle missing module with fail_json 2015-04-15 17:07:18 +01:00
Niall Donegan
b4ad532248 sys.exit used, but not imported. 2015-04-15 16:15:31 +01:00
Sébastien Gross
7c9217a8f7 [lldp] 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"
2015-04-08 18:33:40 +02:00
Brian Coca
4048de9c1e Merge pull request #373 from andyhky/add_failover
bigip_facts: Add missing 'device' option
2015-04-03 17:49:31 -04:00
Andy Hill
3431275921 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.
2015-04-02 13:44:07 -04:00
Jesse Keating
f86ce495c7 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.
2015-03-26 11:27:22 -07:00
Brian Coca
5293f452b5 corrected version added 2015-03-25 22:04:44 -04:00
Brian Coca
eef2a95f96 Merge pull request #334 from msabramo/bigip_disable_ssl_cert_verification
Add `verify` param; set false to ignore SSL cert
2015-03-25 21:46:11 -04:00
Marc Abramowitz
513724c0a5 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
2015-03-23 23:54:48 -07:00
Chad Norgan
8c94dd8b47 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.
2015-02-27 11:19:44 -06:00
Matt Hite
a7e1f86b8b Another potential fix for issue 109; now catches WebFault 2015-02-21 11:29:35 -08:00
Brian Coca
4109bfda49 removed unused import json which breaks 2.4/simplejson compat 2015-02-17 13:37:41 -05:00
James Barwell
2ec916ad38 Fix argument parsing to module constructor
- Change to remove kwargs in a97d1016dc
  did not remove arguments passed in to the constructor.
2015-02-06 09:39:17 +00:00
Brian Coca
9f88bdb7f5 moved version added 2014-12-09 12:29:28 -05:00
Brian Coca
a97d1016dc minor cleanup, removing unused/redundant code, cleaned some comments, slight reformating in class to
remove kwargs
2014-12-09 09:06:04 -05:00
Brian Coca
82aaaa4152 Merge pull request #23 from ravibhure/devel
Added module haproxy, to handle enable/disable backend server with shutdown_sessions feature in haproxy.
2014-12-09 08:51:07 -05:00
Ravi Bhure
d4a096f7ff Recorded the changes suggested by brian coca 2014-12-07 02:29:16 -07:00
Brian Coca
cf215dbac4 minor doc tweaks to snmp_facts 2014-12-06 18:58:23 -05:00
Ravi Bhure
44b2cdb5f2 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
2014-12-05 11:44:43 -07:00
Ravi Bhure
bcbe945a41 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]
2014-12-03 08:14:35 -07:00
Ravi Bhure
78365ecf06 updated version 1.9 and
moved haproxy module to network category
2014-12-01 19:20:53 -07:00
Brian Coca
68bd8a55ae Merge pull request #99 from ogenstad/devel
Snmp module for Ansible
2014-12-01 13:59:48 -05:00
ogenstad
24822322d4 1.9 2014-12-01 19:39:49 +01:00
ogenstad
d4069bbc71 added_version -> 1.9 and file move 2014-12-01 19:34:39 +01:00
Michael Warkentin
691e424587 Fix typo: authenicate -> authenticate 2014-11-11 12:16:00 -05:00
Michael DeHaan
1e777bb508 Fix rename error. 2014-11-04 17:27:51 -05:00
Michael DeHaan
73123b69fa Move modules into subdirectory. 2014-09-26 09:23:50 -04:00
James Cammarata
1ef592ff00 Push the expanduser call on the source down to slurp rather than fetch
Also moves the calculation of the destination file name until after
the slurp of the file contents, since the source as returned by slurp
may now be different, so we want to use that expanded path locally.

Fixes #8942
2014-09-23 15:32:07 -05:00
Will Thames
25c5250025 get_url module: Add timeout parameter 2014-09-08 13:58:25 +10:00
George Yoshida
cd0dae890c For content-disposition response header field, try to parse filename parameter even if it's not quoted. 2014-08-23 12:10:45 +09:00
Brian Coca
ac14a8d6ad unified calls to fs function vs duplicate functions for file and
directory
2014-05-24 09:28:45 -04:00
James Cammarata
a9c2eefd06 Remove erroneous set of status_code causing a traceback in module uri
Fixes #7416
2014-05-16 08:49:08 -05:00
Christian Berendt
bbcfda8c18 [get_url] check against lowered stripped sha256sum
The content of the sha256sum attribute should be lowered before comparing it with the calculated sha256sum.

In the following example the used sha256sum uses ABC.. and not abc.. and the check failed. This should not happen.

```
TASK: [get_url url=http://ftp.fau.de/apache/hadoop/common/hadoop-2.4.0/hadoop-2.4.0.tar.gz dest=/home/vagrant/hadoop-2.4.0.tar.gz mode=0644 sha256sum=024326AC68A1A68B5566B10F95609EAAFD9F70CFEB37FCA0E97CBB1674E57C3A] ***
failed: [instance000] => {"failed": true}
msg: The SHA-256 checksum for /home/vagrant/hadoop-2.4.0.tar.gz did not match 024326AC68A1A68B5566B10F95609EAAFD9F70CFEB37FCA0E97CBB1674E57C3A; it was 024326ac68a1a68b5566b10f95609eaafd9f70cfeb37fca0e97cbb1674e57c3a.

FATAL: all hosts have already failed -- aborting
```
2014-05-06 18:27:43 +02:00
James Cammarata
89d61b8a7d Add parameters to get_url for the url username/password
Fixes #6928
2014-04-24 00:26:50 -05:00
James Tanner
c69608cbe6 Fixes #6857 Make the url parameter required for get_url 2014-04-04 16:36:38 -04:00
Michael DeHaan
b06f5162cd Example cleanup. 2014-04-02 17:32:44 -04:00
Sven Schliesing
898346a468 Update uri 2014-03-31 14:32:56 +02:00
Sven Schliesing
d193e5571d Example for queueing build in Jenkins 2014-03-31 14:32:07 +02:00
Michael DeHaan
eb1c37c6e1 Merge pull request #6649 from picsolvebryan/devel
Accept status code from a list of valid codes.
2014-03-28 11:49:04 -04:00
bryan hunt
dff1fd3b37 Accept status code from a list of valid codes.
(cast the list of acceptable codes to a list of int )
2014-03-24 14:23:18 +00:00
bryan hunt
eb9ac9308c Accept status code from a list of valid codes. 2014-03-24 14:17:36 +00:00
bryan hunt
5561fbc427 Accept status code from a list of valid codes. 2014-03-24 13:51:44 +00:00
James Cammarata
c68be8b418 Remove validate_certs parameter from fetch_url calls 2014-03-12 10:31:01 -05:00
James Cammarata
a1b1182662 Validate SSL certs accessed through urllib*
* Adds another module utility file which generalizes the
  access of urls via the urllib* libraries.
* Adds a new spec generator for common arguments.
* Makes the user-agent string configurable.

Fixes #6211
2014-03-10 16:06:52 -05:00
James Cammarata
09eaa0c920 Fixing the unicode issue in uri for EL6 platforms
Fixes #5869
2014-02-25 13:04:05 -06:00
James Cammarata
0c33cc19bb Handle unicode content in the uri module properly
Fixes #5869
2014-02-24 23:34:17 -06:00