forked from ansible-collections/amazon.aws
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In integration tests use a common AMI rather than hard coded per test (…
…ansible-collections#1067) In integration tests use a common AMI rather than hard coded per test Depends-On: ansible-collections#1068 SUMMARY Rather than hard coding the AMIs on a per-test basis, use a common AMI defined in setup_ec2_facts ISSUE TYPE Feature Pull Request COMPONENT NAME ec2_asg_instance_refresh ec2_asg_lifecycle_hook ec2_asg_scheduled_action ec2_launch_template ec2_lc ec2_metric_alarm ec2_scaling_policy elb_network_lb elb_target elb_target_info ADDITIONAL INFORMATION Reviewed-by: Markus Bergholz <[email protected]> Reviewed-by: Jill R <None>
- Loading branch information
Showing
29 changed files
with
85 additions
and
162 deletions.
There are no files selected for viewing
13 changes: 12 additions & 1 deletion
13
tests/integration/targets/ec2_asg_instance_refresh/defaults/main.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,16 @@ | ||
--- | ||
# defaults file for ec2_asg | ||
vpc_seed: '{{ tiny_prefix }}' | ||
ec2_ami_name: 'amzn2-ami-hvm-2.*-x86_64-gp2' | ||
subnet_a_cidr: '10.{{ 256 | random(seed=vpc_seed) }}.32.0/24' | ||
|
||
default_resource_name: '{{ resource_prefix }}-asg-refresh' | ||
short_resource_name: '{{ tiny_prefix }}-asg-refresh' | ||
|
||
vpc_name: '{{ default_resource_name }}' | ||
subnet_name: '{{ default_resource_name }}' | ||
route_name: '{{ default_resource_name }}' | ||
sg_name: '{{ default_resource_name }}' | ||
asg_name: '{{ default_resource_name }}' | ||
lc_name_1: '{{ default_resource_name }}-1' | ||
lc_name_2: '{{ default_resource_name }}-2' | ||
load_balancer_name: '{{ short_resource_name }}' |
2 changes: 2 additions & 0 deletions
2
tests/integration/targets/ec2_asg_instance_refresh/meta/main.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
dependencies: | ||
- setup_ec2_facts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
tests/integration/targets/ec2_asg_scheduled_action/defaults/main.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
--- | ||
# Amazon Linux 2 AMI 2.0.20211005.0 x86_64 HVM gp2 | ||
ec2_ami_name: "amzn2-ami-hvm-2.0.20211005.0-x86_64-gp2" |
1 change: 1 addition & 0 deletions
1
tests/integration/targets/ec2_asg_scheduled_action/meta/main.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
dependencies: | ||
- role: setup_ec2_facts | ||
- role: setup_botocore_pip | ||
vars: | ||
botocore_version: "1.20.24" |
Oops, something went wrong.