1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/lib/ansible
sramakr b980a5c02a Use Boto3 for ec2_group Fixes #23507 (#25340)
* Use Boto3 for ec2_group

Currently boto doesn't support ipv6. To support ipv6 in ec2_group, we need boto3.
boto3 has significant API changes, which caused more re-factoring for ec2_group module.
Added additional integration test to test_ec2_group role.

* Follow the standard for boto3 ansible

Fixed imports. Use boto3 ansible exception with camel_dict_to_snake_dict.
Refactored the call to authorize/revoke  ingress and egress.

* Removed dependancy with module ipaddress

Added new parameter called cidr_ipv6 for specifying
ipv6 addresses inline with how boto3 handles ipv6 addresses.

* Updated integration test

* Added ipv6 integration test for ec2_group

* Set purge_rules to false for integration test

* Fixed import statements

Added example for ipv6.
Removed defining HAS_BOTO3 variable and import HAS_BOTO3 from ec2.
Cleaned up import statements.

* Fixed exception handling

* Add IAM permissions for ec2_group tests

Missing AuthorizeSecurityGroupEgress necessary for latest tests

* Wrapped botocore import in try/except block

Import just botocore to be more similar to other modules
2017-07-17 12:03:31 +10:00
..
cli metadata and doc generator optimization and fixes 2017-07-04 01:12:43 -07:00
compat ansible/compat/: PEP8 compliancy (#24689) 2017-05-18 08:36:11 +01:00
config added ansible_remote_tmp inventory var (#26754) 2017-07-13 15:31:10 -07:00
errors correct, cleanup & simplify dwim stack (#25956) 2017-07-03 15:27:53 -04:00
executor Namespaced facts fixes (#26615) 2017-07-12 19:27:05 -04:00
galaxy Transition inventory into plugins (#23001) 2017-05-23 17:16:49 -04:00
inventory ensure all groups inherit from 'all' 2017-07-13 18:38:39 -04:00
module_utils junos implementation of net_lldp (#26872) 2017-07-17 07:14:09 +05:30
modules Use Boto3 for ec2_group Fixes #23507 (#25340) 2017-07-17 12:03:31 +10:00
parsing Adds search in template/files/vars relative to the playbook path (#26460) 2017-07-05 19:45:09 -04:00
playbook added ansible_remote_tmp inventory var (#26754) 2017-07-13 15:31:10 -07:00
plugins fixed issue with null host vars 2017-07-15 00:20:08 -04:00
template Try to show original exception info for yaml (and other) errors (#24468) 2017-06-09 13:13:15 -04:00
utils Remove metadata from docstring parsing as per last week's meeting decision 2017-07-04 01:12:43 -07:00
vars Namespaced facts fixes (#26615) 2017-07-12 19:27:05 -04:00
__init__.py Fix ziploader for the cornercase of ansible invoking ansible. 2016-04-29 08:47:49 -07:00
constants.py constants: pep8 fix (#25735) 2017-06-15 13:40:06 +02:00
release.py Collated PEP8 fixes (#25293) 2017-06-02 12:14:11 +01:00