Commit graph

261 commits

Author SHA1 Message Date
Tim Rupp
e81bbf9b8f Bugfix bigip_facts that was trying to check the length of an iterator (#2842)
Recently, a user reported that the bigip_facts module was failing with the error

    received exception: object of type 'itertools.imap' has no len()

This reported was occurring at line 1657 of the bigip_facts module

bug report is here

https://github.com/F5Networks/f5-ansible/issues/25

Upon further investigation, the map function for returning the specified
includes was returning an iterator, and calling len() on an iterator does
not work.

I believe this problem was caused by part of the Python 3.x effort insofar
as the inclusion of this line

https://github.com/ansible/ansible/blob/devel/lib/ansible/module_utils/basic.py#L143

seems to affect our usage of map(), probably for the better anyway, and we need
to change our expectations in our module's code to no longer assume a list, but
instead assume an iterator.

After trawling through the module_utils/basic code, I think a list
comprehension is more appropriate here anyway, so I'm changing it to be
that. The affected user reported it works this way, and my own testing
on 2.2.0 supports that.
2016-09-02 23:07:32 -07:00
Tim Rupp
ef6eb80c12 Adds allow_service parameter to bigip_selfip (#2808)
This parameter can be used to open up access to (among other things)
the mgmt address of a BIG-IP. It is necessary for configuring bigips
in an HA configuration.
2016-08-31 14:49:03 +02:00
Adam Števko
2fda8831bd Add modules to configure Solaris/illumos networking (1st batch) (#2416)
* Add modules to configure Solaris/illumos networking (1st batch)

* Add choices to temporary flags
2016-08-30 19:46:53 +01:00
René Moser
4b7b70b35f new modules for managing exoscale DNS (#2788) 2016-08-30 19:40:06 +01:00
Tim Rupp
2ef4a34eee Fixes documentation bugs in bigip_irule (#2797)
The return docs were incorrect for this module. This patch fixes them
and adds some additional return values
2016-08-29 18:29:47 +02:00
Peter Sprygada
628ee6864d Merge pull request #2683 from gerva/a10_server_configuration_write
when write_config is no, we should not try to write any configuration…
2016-08-26 08:37:03 -04:00
Tim Rupp
f29efb5626 Adds provision info to bigip facts (#2783)
This patch adds provision information to the bigip_facts module
through a "provision" include.
2016-08-25 19:18:22 +02:00
John R Barker
beaa0c6c22 Merge pull request #2780 from caphrim007/new-module-bigip-irule
New module bigip_irule
2016-08-24 18:07:46 +01:00
Tim Rupp
de902d4308 This module can be used as part of the bootstrapping of a BIG-IP. It
allows one to configure the various NTP settings that are part of
a BIG-IP.

Tests for this module can be found here

https://github.com/F5Networks/f5-ansible/blob/master/roles/__bigip_device_ntp/tasks/main.yaml

Platforms this was tested on are

11.6.0
12.0.0
12.1.0
12.1.0 HF1
2016-08-24 09:38:54 -07:00
John R Barker
eda7c1b7fd Merge pull request #2775 from caphrim007/new-module-bigip-device-sshd
Addition of bigip_device_sshd module
2016-08-24 17:36:38 +01:00
John R Barker
8e3a88e6ea Merge pull request #2778 from caphrim007/new-module-bigip-device-dns
New module bigip_device_dns
2016-08-24 17:31:16 +01:00
Tim Rupp
325d497fb8 Addition of bigip_device_sshd module
This module can be used as part of the bootstrapping of a BIG-IP. It
allows one to configure the various SSHD settings that are part of
a BIG-IP.

Tests for this module can be found here

https://github.com/F5Networks/f5-ansible/blob/master/roles/__bigip_device_sshd/tasks/main.yaml

Platforms this was tested on are

11.6.0
12.0.0
12.1.0
12.1.0 HF1
2016-08-24 09:01:31 -07:00
Tim Rupp
3ec172c3ca New module bigip_irule
This module can be used to maintain the iRules for both LTM and GTM
on a BIG-IP. iRules should be supplied in their string form using
normal strings (unlikely), file lookups (likely), or template
lookups (likely).

Tests for this module can be found here

https://github.com/F5Networks/f5-ansible/blob/master/roles/__bigip_irule/tasks/main.yaml

Platforms this was tested on are

11.6.1
12.0.0
12.1.0
2016-08-23 20:56:43 -07:00
Tim Rupp
fc91c93108 This module can be used as part of the bootstrapping of a BIG-IP. It
allows one to configure the various DNS settings that are part of
a BIG-IP.

Tests for this module can be found here

https://github.com/F5Networks/f5-ansible/blob/master/roles/__bigip_device_dns/tasks/main.yaml

Platforms this was tested on are

11.6.0
12.0.0
12.1.0
12.1.0 HF1
2016-08-23 12:26:23 -07:00
Tim Rupp
5399deff0b Adds documentation fragment to bigip modules
This patch removes the common documentation bits and replaces them
with a doc fragment that already exists in core
2016-08-23 12:24:15 -07:00
Adrian Likins
82771ed755 Add a 'requirements:' field to cloudflare_dns doc (#2631)
cloudflare_dns.py makes use of the python
2.6 features (the string .format() method).
2016-08-23 13:08:42 -04:00
Angus Williams
19107086f4 bigip_pool_member: fix idempotency with session_state argument (#2745) 2016-08-23 09:26:40 +02:00
Peter Sprygada
fc34f17871 Merge pull request #2760 from caphrim007/new-module-bigip-routedomain
Add bigip_routedomain module
2016-08-22 16:59:35 -04:00
Tim Rupp
0833a1e8c0 Another bootstrapping module, this module allows for one to manage
route domains on a BIG-IP.

Tests for this module can be found here

https://github.com/F5Networks/f5-ansible/blob/master/roles/__bigip_routedomain/tasks/main.yaml

Platforms this was tested on are

11.6.0
12.0.0
12.1.0
12.1.0 HF1
2016-08-19 13:35:59 -07:00
Tim Rupp
f4d5ee6ba9 Adds the bigip_selfip module
Another bootstrapping module, this module allows for one to manage
self IP addresses on a BIG-IP.

Tests for this module can be found here

https://github.com/F5Networks/f5-ansible/blob/master/roles/__bigip_selfip/tasks/main.yaml

Platforms this was tested on are

11.5.4 HF1
11.6.0
12.0.0
12.1.0 HF1
2016-08-18 09:21:56 -07:00
Shinichi TAMURA
5fbb0de36f Allow value to be bool where 'yes'/'no' are in choices (#2593)
* Changed type of 'details' argument to bool on ecs_service_facts module.

* Changed type of 'autostart' argument to bool on virt_* modules.

* Changed types of 'autoconnect' and 'stp' argument to bool on nmcli module.
('create_connection_bridge(self)' and 'modify_connection_bridge(self)' are not implemented yet?)

* Added conversion of 'value' argument when 'vtype' is boolean on debconf module.
2016-08-17 07:32:49 -07:00
Tim Rupp
f47e02d7e9 Introduces the bigip_gtm_datacenter module (#1000)
This module can be used to manipulate data centers in a BIG-IP.
It supports both the iControl SOAP and iControl REST APIs, but default
to the REST API. With this module, you can perform operations similar
to those available in tmsh to create data centers and set the contact,
location, and description of those data centers.

This module is most useful in the initial provisioning of a BIG-IP
2016-08-16 17:14:05 -07:00
Tim Rupp
b6a2e8ad67 Introduces the bigip_sys_db module (#998)
This module can be used to directly manipulate the system database
variables in a BIG-IP. It supports both the iControl SOAP and iControl
REST APIs, but default to the REST API. With this module, you can
perform operations similar to those available in tmsh to set system
variables such as turning off the default setup screen.

This module is most useful in the initial provisioning of a BIG-IP
2016-08-16 17:13:16 -07:00
Tim Rupp
06057a9eb7 Adds bigip_vlan module (#2661)
This module can be used to manage VLANs in BIG-IP on various software
versions. It is part of a bootstrapping effort underway to provide
modules necessary to bootstrap core settings in a BIG-IP.

Tests for this module can be found here

https://github.com/F5Networks/f5-ansible/blob/master/roles/__bigip_vlan/tasks/main.yaml

Platforms this was tested on are

  - 11.5.4 HF1
  - 11.6.0
  - 12.0.0
  - 12.1.0 HF1
2016-08-16 17:11:09 -07:00
Tim Rupp
e8b29dd750 Adds style conventions for bigip_node (#2697)
A number of coding conventions have been adopted for new F5 modules
that are in development. To ensure common usage across the modules,
this module needed to be updated to reflect those conventions.

No functional code changes were made.
2016-08-09 08:35:36 +02:00
Massimo Gervasini
34b4c34306 when write_config is no, we should not try to write any configuration changes 2016-08-06 18:48:26 +08:00
Tim Rupp
be367cc2de Bugfixes and code style (#2627)
A number of coding conventions have been adopted for new F5 modules
that are in development. To ensure common usage across the modules,
this module needed to be updated to reflect those conventions.

Additionally, this patch fixes a couple bugs in the module that were
preventing it from being idempotent.
2016-07-28 11:05:40 -04:00
Loïc
8449fb3c90 Fix argument type to bool. By default shutdown_sessions is always true then it should'nt. (#2596) 2016-07-27 23:16:15 +02:00
Donovan Jones
fd235289dd Update comment for ttl parameter to indicate 2-119 seconds is invalid (#2546) 2016-07-20 07:59:48 +02:00
Tim Rupp
277a2b5df1 Adds style conventions to bigip_monitor_http (#2564)
A number of coding conventions have been adopted for new F5 modules
that are in development. To ensure common usage across the modules,
this module needed to be updated to reflect those conventions.

No functional code changes were made.
2016-07-16 09:41:57 +02:00
Dag Wieers
54ce5c88d5 wakeonlan: New module to send out magic WOL packets (#2271)
* New module wakeonlan to send out magic WOL packets

For a local project managing desktop Windows systems at an elementary school, we want to send out wake-on-lan packets to all systems before continuing using Ansible.

That is the purpose of this module.

PS We can make this module idempotent by implementing arping support using scapy. At some point I may add this, at this time I simply plan on using wait_for to check if the system is online.

* Improved documentation and notes

* Improve the documentation a bit

* Fix Travis warnings and review remarks

* Fix exception handling to support both python2 and python3

* Documentation changes
2016-07-14 09:24:08 -04:00
Patrick Ogenstad
8285bbda6a New module asa_command (#2306) 2016-07-11 12:55:45 -04:00
Patrick Ogenstad
200654e45d New module asa_config (#2307) 2016-07-11 12:55:03 -04:00
Patrick Ogenstad
0b9f3100b1 New module asa_template (#2308) 2016-07-11 12:54:31 -04:00
Patrick Ogenstad
a4207029de New module asa_acl (#2309) 2016-07-11 12:53:33 -04:00
Tim Rupp
b85303f023 Adds style conventions to bigip_pool (#2537)
A number of coding conventions have been adopted for new F5 modules
that are in development. To ensure common usage across the modules,
this module needed to be updated to reflect those conventions.

No functional code changes were made.
2016-07-09 09:21:10 +02:00
Tim Rupp
188a01ff1a Adds style conventions to bigip_pool_member (#2535)
A number of coding conventions have been adopted for new F5 modules
that are in development. To ensure common usage across the modules,
this module needed to be updated to reflect those conventions.

No functional code changes were made.
2016-07-08 07:56:09 +02:00
Blake Covarrubias
46e7d2716a Define external_ids ’type' in openvswitch_bridge (#2523)
The external_ids 'type' was not defined in the argument spec of
openvswitch_bridge. This caused 'external_ids' to be converted to a
string leading to an error when later calling exp_external_ids.items().
2016-07-08 00:33:24 +02:00
blinkiz
b7e21d161e Update openvswitch_port with tag feature (#2522)
* Update openvswitch_port with tag feature

Possibility to create a port with VLAN tag.

* Update openvswitch_port.py
2016-07-06 07:14:31 +02:00
Tim Rupp
e0b3e2f790 Adds coding conventions to the bigip_facts module (#2515)
A number of coding conventions have been adopted for new F5 modules
that are in development. To ensure common usage across the modules,
this module needed to be updated to reflect those conventions.

No functional code changes were made.
2016-07-03 18:19:53 +02:00
Tim Rupp
4bbbad6378 Adds coding conventions for the bigip-virtual-server module (#2473)
A number of coding conventions have been adopted for new F5 modules
that are in development. To ensure common usage across the modules,
this module needed to be updated to reflect those conventions.
2016-06-29 09:09:37 +02:00
Michael Grüner
4debfcc241 cloudflare_dns: Improve error handling (#2470)
Use the new "body" field of the info dict in case of a HTTPError.
2016-06-23 22:15:55 +02:00
Tim Rupp
9d37820b08 Adds server port argument to legacy modules (#2444)
This patch adds support for the server_port module. It
additionally updates the documentation in the module for
it.

The changes were tested in the f5-ansible repository to
ensure no breaking changes were made. This argument allows
modules to be used on BIG-IPs that are listening on
non-standard ports.
2016-06-23 11:33:49 +02:00
Gerik Bonaert
df8d41ba0f Define 'type' in argument_spec of openvswitch_port (#2355)
The external_ids 'type' was not defined in the argument spec of
openvswitch_port. This lead 'external_ids' to be converted to a
string, when the value was not defined. Further down the code this
was leading to an exception in some cases. By defining the type
all is right.
2016-06-03 22:02:58 +02:00
Leandro Lisboa Penz
4497cb4874 netconf module with edit-config operation (#2103)
* netconf module with edit-config operation
2016-06-01 12:17:38 -04:00
Gerrit Germis
a003b8d081 fail when backend host is not found (#1385) 2016-05-31 12:26:25 -04:00
Adrian Likins
1e3c0ba1cf Fix bad merge of #555 (mv bigip_gtm_virtual_server) (#2302)
f5/ was the wrong directory. Move it to network/f5
and remove f5/.
2016-05-28 01:52:28 +02:00
Orion Poplawski
14a0b7b9b7 Fix gw4/gw6 typo (#1841) 2016-05-20 08:46:52 -04:00
David Keijser
7b7af3bcf9 Make it possible to manage rules of f5 vs (#1821) 2016-05-08 23:33:25 +02:00
Ben Knight
239c60ec13 Add reselect_tries option to big_pool module (#2156) 2016-05-08 23:30:04 +02:00