Skip to content

Commit

Permalink
Rename autoscaling modules (ansible-collections#1294)
Browse files Browse the repository at this point in the history
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
tremble authored and goneri committed Sep 21, 2022
1 parent 8f06ca9 commit 7582b27
Show file tree
Hide file tree
Showing 14 changed files with 3,999 additions and 0 deletions.
1,950 changes: 1,950 additions & 0 deletions plugins/modules/autoscaling_group.py

Large diffs are not rendered by default.

458 changes: 458 additions & 0 deletions plugins/modules/autoscaling_group_info.py

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions tests/integration/targets/autoscaling_group/aliases
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
8 changes: 8 additions & 0 deletions tests/integration/targets/autoscaling_group/inventory
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 }}"
36 changes: 36 additions & 0 deletions tests/integration/targets/autoscaling_group/main.yml
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
1 change: 1 addition & 0 deletions tests/integration/targets/autoscaling_group/meta/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dependencies: []
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
Loading

0 comments on commit 7582b27

Please sign in to comment.