Commit Graph

20 Commits (d4548fdd01a2eec248cff7a5f6798b14da82d1a0)

Author SHA1 Message Date
Matt Ferrante 66d3d75b35 Added setting of the health_check options on an existing ASG 11 years ago
Matt Ferrante 03fc2714f1 fixed the choices typo got the ec2_asg module 11 years ago
James Cammarata 375edbd087 Check to make sure key exists in tag list before using it
Fixes #7910
11 years ago
Frédéric de Villamil 1f3663b196 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 1c318fa3bd Merge branch 'exit_json' of https://github.com/psa/ansible into psa-exit_json 11 years ago
James Cammarata ffce57a8f6 Fixing doc typos and adding version_added for tags param in ec2_asg 11 years ago
Matt Ferrante 3e875c7867 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 9cb05a0845 Catch failed connection due to a bad region in ec2_scaling_policy
Fixes #7505
11 years ago
Kevin Bell e0a4c389f3 Fixed asg instance count polling 11 years ago
Kevin Bell 426a827b46 Fix default availability zone list 11 years ago
Paul Armstrong 7d28f30bda Add proper state output to ec2_asg, ec2_metric_alarm, ec2_scaling_policy 11 years ago
Ben Holloway e45d33954b documentation fix 11 years ago
Ben Holloway 4596521147 attempt to set availability_zones to all if neither availability_zones or vpc_identifier are set 11 years ago
Ben 5a39672efa documentation fix availability_zones should be required for ec2_asg 11 years ago
willthames 509561f658 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 dae519b723 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 94198690c1 Made load_balencers in ec2_lc non-required as not all ASGs require an ELB 11 years ago
Gareth Rushgrove a26bc3e2f9 correct name in documentation and example 11 years ago
Gareth Rushgrove 87265cd4b3 correct version added 11 years ago
Gareth Rushgrove c770462fad Added modules to manage ec2 autoscaling groups
Includes management of Launch Configuration and related Autoscaling
Groups
11 years ago