forked from ansible-collections/community.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.
Rename autoscaling modules (ansible-collections#1294)
Rename autoscaling modules SUMMARY Rename the autoscaling modules based on the new naming scheme ISSUE TYPE Feature Pull Request COMPONENT NAME plugins/modules/autoscaling_group.py plugins/modules/autoscaling_group_info.py plugins/modules/autoscaling_instance_refresh.py plugins/modules/autoscaling_instance_refresh_info.py plugins/modules/autoscaling_launch_config.py plugins/modules/autoscaling_launch_config_find.py plugins/modules/autoscaling_launch_config_info.py plugins/modules/autoscaling_lifecycle_hook.py plugins/modules/autoscaling_policy.py plugins/modules/autoscaling_scheduled_action.py plugins/modules/ec2_asg.py plugins/modules/ec2_asg_info.py plugins/modules/ec2_asg_instance_refresh.py plugins/modules/ec2_asg_instance_refresh_info.py plugins/modules/ec2_asg_lifecycle_hook.py plugins/modules/ec2_asg_scheduled_action.py plugins/modules/ec2_lc.py plugins/modules/ec2_lc_find.py plugins/modules/ec2_lc_info.py plugins/modules/ec2_scaling_policy.py ADDITIONAL INFORMATION Reviewed-by: Markus Bergholz <[email protected]> This commit was initially merged in https://github.com/ansible-collections/community.aws See: ansible-collections@8721cf6
- Loading branch information
Showing
14 changed files
with
3,999 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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,7 @@ | ||
# reason: slow | ||
# Tests take around 30 minutes | ||
|
||
slow | ||
cloud/aws | ||
|
||
autoscaling_group_info |
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,8 @@ | ||
[tests] | ||
create_update_delete | ||
tag_operations | ||
instance_detach | ||
|
||
[all:vars] | ||
ansible_connection=local | ||
ansible_python_interpreter="{{ ansible_playbook_python }}" |
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,36 @@ | ||
--- | ||
# Beware: most of our tests here are run in parallel. | ||
# To add new tests you'll need to add a new host to the inventory and a matching | ||
# '{{ inventory_hostname }}'.yml file in roles/ec2_asg/tasks/ | ||
|
||
|
||
# Prepare the VPC and figure out which AMI to use | ||
- hosts: all | ||
gather_facts: no | ||
tasks: | ||
- module_defaults: | ||
group/aws: | ||
aws_access_key: "{{ aws_access_key }}" | ||
aws_secret_key: "{{ aws_secret_key }}" | ||
security_token: "{{ security_token | default(omit) }}" | ||
region: "{{ aws_region }}" | ||
block: | ||
- include_role: | ||
name: 'ec2_asg' | ||
tasks_from: env_setup.yml | ||
rescue: | ||
- include_role: | ||
name: 'ec2_asg' | ||
tasks_from: env_cleanup.yml | ||
run_once: yes | ||
- fail: | ||
msg: 'Environment preparation failed' | ||
run_once: yes | ||
|
||
# VPC should get cleaned up once all hosts have run | ||
- hosts: all | ||
gather_facts: no | ||
strategy: free | ||
serial: 6 | ||
roles: | ||
- ec2_asg |
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 @@ | ||
dependencies: [] |
6 changes: 6 additions & 0 deletions
6
tests/integration/targets/autoscaling_group/roles/ec2_asg/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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
# defaults file for ec2_asg | ||
# Amazon Linux 2 AMI 2019.06.12 (HVM), GP2 Volume Type | ||
ec2_ami_name: 'amzn2-ami-hvm-2.0.20190612-x86_64-gp2' | ||
load_balancer_name: "{{ tiny_prefix }}-lb" | ||
ec2_asg_setup_run_once: true |
Oops, something went wrong.