Class: Ansible::Ruby::Modules::Ec2_asg

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_asg.rb

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

Methods inherited from Ansible::Ruby::Models::Base

attr_option, attr_options, attribute, #initialize, #to_h, validates

Constructor Details

This class inherits a constructor from Ansible::Ruby::Models::Base

Instance Method Details

#availability_zonesArray<String>, ...

Returns List of availability zone names in which to create the group. Defaults to all the availability zones in the region if vpc_zone_identifier is not set.

Returns:

  • (Array<String>, String, nil)

    List of availability zone names in which to create the group. Defaults to all the availability zones in the region if vpc_zone_identifier is not set.



22
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_asg.rb', line 22

attribute :availability_zones

#default_cooldownString?

Returns The number of seconds after a scaling activity completes before another can begin.

Returns:

  • (String, nil)

    The number of seconds after a scaling activity completes before another can begin.



74
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_asg.rb', line 74

attribute :default_cooldown

#desired_capacityInteger?

Returns Desired number of instances in group, if unspecified then the current group value will be used.

Returns:

  • (Integer, nil)

    Desired number of instances in group, if unspecified then the current group value will be used.



38
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_asg.rb', line 38

attribute :desired_capacity

#health_check_periodString?

Returns Length of time in seconds after a new EC2 instance comes into service that Auto Scaling starts checking its health.

Returns:

  • (String, nil)

    Length of time in seconds after a new EC2 instance comes into service that Auto Scaling starts checking its health.



66
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_asg.rb', line 66

attribute :health_check_period

#health_check_type:EC2, ...

Returns The service you want the health status from, Amazon EC2 or Elastic Load Balancer.

Returns:

  • (:EC2, :ELB, nil)

    The service you want the health status from, Amazon EC2 or Elastic Load Balancer.



70
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_asg.rb', line 70

attribute :health_check_type

#launch_config_nameString

Returns Name of the Launch configuration to use for the group. See the ec2_lc module for managing these.

Returns:

  • (String)

    Name of the Launch configuration to use for the group. See the ec2_lc module for managing these.



26
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_asg.rb', line 26

attribute :launch_config_name

#lc_checkBoolean?

Returns Check to make sure instances that are being replaced with replace_instances do not aready have the current launch_config.

Returns:

  • (Boolean, nil)

    Check to make sure instances that are being replaced with replace_instances do not aready have the current launch_config.



54
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_asg.rb', line 54

attribute :lc_check

#load_balancersArray<String>, ...

Returns List of ELB names to use for the group.

Returns:

  • (Array<String>, String, nil)

    List of ELB names to use for the group



18
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_asg.rb', line 18

attribute :load_balancers

#max_sizeInteger?

Returns Maximum number of instances in group, if unspecified then the current group value will be used.

Returns:

  • (Integer, nil)

    Maximum number of instances in group, if unspecified then the current group value will be used.



34
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_asg.rb', line 34

attribute :max_size

#min_sizeInteger?

Returns Minimum number of instances in group, if unspecified then the current group value will be used.

Returns:

  • (Integer, nil)

    Minimum number of instances in group, if unspecified then the current group value will be used.



30
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_asg.rb', line 30

attribute :min_size

#nameString

Returns Unique name for group to be created or deleted.

Returns:

  • (String)

    Unique name for group to be created or deleted



14
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_asg.rb', line 14

attribute :name

#replace_all_instancesBoolean?

Returns In a rolling fashion, replace all instances with an old launch configuration with one from the current launch configuration.

Returns:

  • (Boolean, nil)

    In a rolling fashion, replace all instances with an old launch configuration with one from the current launch configuration.



42
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_asg.rb', line 42

attribute :replace_all_instances

#replace_batch_sizeInteger?

Returns Number of instances you’d like to replace at a time. Used with replace_all_instances.

Returns:

  • (Integer, nil)

    Number of instances you’d like to replace at a time. Used with replace_all_instances.



46
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_asg.rb', line 46

attribute :replace_batch_size

#replace_instancesArray<String>, ...

Returns List of instance_ids belonging to the named ASG that you would like to terminate and be replaced with instances matching the current launch configuration.

Returns:

  • (Array<String>, String, nil)

    List of instance_ids belonging to the named ASG that you would like to terminate and be replaced with instances matching the current launch configuration.



50
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_asg.rb', line 50

attribute :replace_instances

#state:present, :absent

Returns register or deregister the instance.

Returns:

  • (:present, :absent)

    register or deregister the instance



10
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_asg.rb', line 10

attribute :state

#tagsArray<Hash>, ...

Returns A list of tags to add to the Auto Scale Group. Optional key is ‘propagate_at_launch’, which defaults to true.

Returns:

  • (Array<Hash>, Hash, nil)

    A list of tags to add to the Auto Scale Group. Optional key is ‘propagate_at_launch’, which defaults to true.



62
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_asg.rb', line 62

attribute :tags

#termination_policies:OldestInstance, ...

Returns An ordered list of criteria used for selecting instances to be removed from the Auto Scaling group when reducing capacity.,For ‘Default’, when used to create a new autoscaling group, the “Default” value is used. When used to change an existent autoscaling group, the current termination policies are mantained.

Returns:

  • (:OldestInstance, :NewestInstance, :OldestLaunchConfiguration, :ClosestToNextInstanceHour, :Default, nil)

    An ordered list of criteria used for selecting instances to be removed from the Auto Scaling group when reducing capacity.,For ‘Default’, when used to create a new autoscaling group, the “Default” value is used. When used to change an existent autoscaling group, the current termination policies are mantained



86
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_asg.rb', line 86

attribute :termination_policies

#vpc_zone_identifierArray<String>, ...

Returns List of VPC subnets to use.

Returns:

  • (Array<String>, String, nil)

    List of VPC subnets to use



58
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_asg.rb', line 58

attribute :vpc_zone_identifier

#wait_for_instancesBoolean?

Returns Wait for the ASG instances to be in a ready state before exiting. If instances are behind an ELB, it will wait until the ELB determines all instances have a lifecycle_state of “InService” and a health_status of “Healthy”.

Returns:

  • (Boolean, nil)

    Wait for the ASG instances to be in a ready state before exiting. If instances are behind an ELB, it will wait until the ELB determines all instances have a lifecycle_state of “InService” and a health_status of “Healthy”.



82
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_asg.rb', line 82

attribute :wait_for_instances

#wait_timeoutInteger?

Returns how long before wait instances to become viable when replaced. Used in concjunction with instance_ids option.

Returns:

  • (Integer, nil)

    how long before wait instances to become viable when replaced. Used in concjunction with instance_ids option.



78
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_asg.rb', line 78

attribute :wait_timeout