mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Expanded documentation for boto_elb state and module (#33341)
* Describes what happens when the CNAME parameter is given. * Describes what the recognized attributes are for for ELBs.
This commit is contained in:
parent
9b42a05519
commit
55be0abf4d
2 changed files with 39 additions and 1 deletions
|
@ -415,6 +415,37 @@ def set_attributes(name, attributes, region=None, key=None, keyid=None,
|
|||
'''
|
||||
Set attributes on an ELB.
|
||||
|
||||
name (string)
|
||||
Name of the ELB instance to set attributes for
|
||||
|
||||
attributes
|
||||
A dict of attributes to set.
|
||||
|
||||
Valid attributes are:
|
||||
|
||||
access_log (dict)
|
||||
enabled (bool)
|
||||
Enable storage of access logs.
|
||||
s3_bucket_name (string)
|
||||
The name of the S3 bucket to place logs.
|
||||
s3_bucket_prefix (string)
|
||||
Prefix for the log file name.
|
||||
emit_interval (int)
|
||||
Interval for storing logs in S3 in minutes. Valid values are
|
||||
5 and 60.
|
||||
|
||||
connection_draining (dict)
|
||||
enabled (bool)
|
||||
Enable connection draining.
|
||||
timeout (int)
|
||||
Maximum allowed time in seconds for sending existing
|
||||
connections to an instance that is deregistering or unhealthy.
|
||||
Default is 300.
|
||||
|
||||
cross_zone_load_balancing (dict)
|
||||
enabled (bool)
|
||||
Enable cross-zone load balancing.
|
||||
|
||||
CLI example to set attributes on an ELB::
|
||||
|
||||
salt myminion boto_elb.set_attributes myelb '{"access_log": {"enabled": "true", "s3_bucket_name": "mybucket", "s3_bucket_prefix": "mylogs/", "emit_interval": "5"}}' region=us-east-1
|
||||
|
|
|
@ -257,13 +257,20 @@ def present(
|
|||
|
||||
attributes
|
||||
A dict defining the attributes to set on this ELB.
|
||||
Unknown keys will be silently ignored.
|
||||
|
||||
See the :mod:`salt.modules.boto_elb.set_attributes` function for
|
||||
recognized attributes.
|
||||
|
||||
attributes_from_pillar
|
||||
name of pillar dict that contains attributes. Attributes defined for this specific
|
||||
state will override those from pillar.
|
||||
|
||||
cnames
|
||||
A list of cname dicts with attributes: name, zone, ttl, and identifier.
|
||||
An optional list of cname dicts with attributes: name, zone, ttl, and
|
||||
identifier. If specified, a CNAME record will be created referencing
|
||||
this ELB's public FQDN.
|
||||
|
||||
See the boto_route53 state for information about these attributes.
|
||||
|
||||
alarms:
|
||||
|
|
Loading…
Add table
Reference in a new issue