Commit Graph

18 Commits (d15ca75dd2342585a6ad2a6955abbecd4cd7f11b)

Author SHA1 Message Date
James Cammarata c61d04dd1f Check to make sure key exists in tag list before using it
Fixes #7910
11 years ago
Frédéric de Villamil b4fc3cdb9a Adds support for `health_check_period` and `health_check_type` in `ec2_asg` module.
Default is set to 300 seconds, which is AWS default.

This PR fixes a bug (#7898) where instances created within an autoscaling group using the `ec2_asg` module gets immediately terminated because the `health_check_period` is set to 0, which causes the instance to be checked without having the time to actually boot.

Adding `health_check_type` is needed because you may want to check your instance health against an ELB instead of just EC2 default cloudwatch.
11 years ago
James Cammarata 5006ef9732 Merge branch 'exit_json' of https://github.com/psa/ansible into psa-exit_json 11 years ago
James Cammarata a3c79eebb7 Fixing doc typos and adding version_added for tags param in ec2_asg 11 years ago
Matt Ferrante 05632e17c9 ec2_asg module enhancements
- Added a more verbose response
  - includes its settable attributes and a list of its instances.
  - allows setting of tags, changes upon which mark the task changed
  - allow getting of information from asg module, not just setting
  - doesn't mark changed if the parameter wasn't specified
  - Availability Zones are pulled from the region
11 years ago
James Cammarata 14b4887733 Catch failed connection due to a bad region in ec2_scaling_policy
Fixes #7505
11 years ago
Kevin Bell 8e18202796 Fixed asg instance count polling 11 years ago
Kevin Bell 340f7c18c2 Fix default availability zone list 11 years ago
Paul Armstrong ba52d02b31 Add proper state output to ec2_asg, ec2_metric_alarm, ec2_scaling_policy 11 years ago
Ben Holloway 0830d9eed5 documentation fix 11 years ago
Ben Holloway c20f6b58c7 attempt to set availability_zones to all if neither availability_zones or vpc_identifier are set 11 years ago
Ben 008905f58d documentation fix availability_zones should be required for ec2_asg 11 years ago
willthames d1a7fca7f3 Moved AWS modules over to common module fragments
Created common module doc fragment, and applied to all
modules that use ec2_connect or connect_to_aws as
they definitely share the common doc fragments
11 years ago
Zeekin dba0aa71a9 Improvements to ec2 autoscaling modules
* Added desired_capacity and vpc_zone_identifier to ec2_asg
* Use ec2_argument_spec() method and then remove unnecessary
  declarations from argument_spec
* Remove AWS_REGIONS declaration
* Rename block_device_mappings to volumes to be consistent with ec2
* Remove all pep8 warnings except line length and continuation indent
* Use updated module_utils/ec2.py to add profile and security_token
  support
* Remove mandatory arguments for delete to make launchconfig deletion
  work
* Handle existing launch configurations better
* Improve output information
* Improve documentation
11 years ago
tmperret dbec576633 Made load_balencers in ec2_lc non-required as not all ASGs require an ELB 11 years ago
Gareth Rushgrove 89148e15ed correct name in documentation and example 11 years ago
Gareth Rushgrove 0fd5628482 correct version added 11 years ago
Gareth Rushgrove 869f95c0a6 Added modules to manage ec2 autoscaling groups
Includes management of Launch Configuration and related Autoscaling
Groups
11 years ago