New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AWS Network load balancer #33808
AWS Network load balancer #33808
Conversation
The test
The test
The test
The test
The test
The test
|
9a2726b
to
33864bc
Compare
The test
The test
The test
The test
The test
The test
The test
|
33864bc
to
447e897
Compare
The test
|
447e897
to
3d45887
Compare
|
||
region, ec2_url, aws_connect_params = get_aws_connection_info(module, boto3=True) | ||
|
||
if region: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If region is unset it is now handled in boto3_conn so you can remove this conditional.
- If yes, existing tags will be purged from the resource to match exactly what is defined by I(tags) parameter. If the I(tags) parameter is not set then | ||
tags will not be modified. | ||
required: false | ||
default: yes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should default to false probably.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, ignore me, sorry. We've had this conversation before having default true is documented. https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/amazon/GUIDELINES.md#dealing-with-tags
description: | ||
- If yes, existing listeners will be purged from the ELB to match exactly what is defined by I(listeners) parameter. If the I(listeners) parameter is | ||
not set then listeners will not be modified | ||
default: yes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this safer to default to false?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think so, I just got burned by this in testing it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That would be at odds with the default for elb_application_lb
I'm going to hold off on any more work here until #33769 is merged to ease my rebasing pain :) |
@wimnat can I use this branch to test our your module? |
The test
The test
|
The test
|
The test
|
bot_status |
Componentslib/ansible/module_utils/aws/elbv2.py lib/ansible/modules/cloud/amazon/elb_network_lb.py test/integration/targets/elb_network_lb/aliases test/integration/targets/elb_network_lb/defaults/main.yml test/integration/targets/elb_network_lb/meta/main.yml test/integration/targets/elb_network_lb/tasks/main.yml test/integration/targets/elb_network_lb/tasks/test_creating_nlb.yml test/integration/targets/elb_network_lb/tasks/test_deleting_nlb.yml test/integration/targets/elb_network_lb/tasks/test_modifying_nlb_listeners.yml test/integration/targets/elb_network_lb/tasks/test_nlb_bad_listener_options.yml test/integration/targets/elb_network_lb/tasks/test_nlb_tags.yml test/integration/targets/elb_network_lb/tasks/test_nlb_with_asg.yml Metadatawaiting_on: ansible |
* New module - elb_network_lb * Fix creating a load balancer without tags * Linter Fix purging tags Remove extra imports * add support for cross zone lb, doc update and fix tagging * pep8 fixes * Add integration tests for elb_network_lb module * more pep8 * Remove non-applicable option for NLBs * fix target protocol * pep8
* New module - elb_network_lb * Fix creating a load balancer without tags * Linter Fix purging tags Remove extra imports * add support for cross zone lb, doc update and fix tagging * pep8 fixes * Add integration tests for elb_network_lb module * more pep8 * Remove non-applicable option for NLBs * fix target protocol * pep8
SUMMARY
AWS Network Load Balancer module
ISSUE TYPE
COMPONENT NAME
elb_network_lb
ANSIBLE VERSION
ADDITIONAL INFORMATION
Requires pending PR to move application load balancer code in to new class.
Work still to do:
subnet_mappings work
check any nlb only attributes