mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
Bulk spelling improvement to modules-core (#5225)
* Correct spelling mistakes * Correct more spelling issues * merge conflict * Revert typo in parms
This commit is contained in:
parent
a4077537e0
commit
25b6492d37
91 changed files with 908 additions and 148 deletions
|
@ -769,7 +769,7 @@ def create_block_device(module, ec2, volume):
|
|||
if int(volume['iops']) > MAX_IOPS_TO_SIZE_RATIO * size:
|
||||
module.fail_json(msg = 'IOPS must be at most %d times greater than size' % MAX_IOPS_TO_SIZE_RATIO)
|
||||
if 'encrypted' in volume:
|
||||
module.fail_json(msg = 'You can not set encyrption when creating a volume from a snapshot')
|
||||
module.fail_json(msg = 'You can not set encryption when creating a volume from a snapshot')
|
||||
if 'ephemeral' in volume:
|
||||
if 'snapshot' in volume:
|
||||
module.fail_json(msg = 'Cannot set both ephemeral and snapshot')
|
||||
|
@ -1023,7 +1023,7 @@ def create_instances(module, ec2, vpc, override_count=None):
|
|||
if ebs_optimized:
|
||||
params['ebs_optimized'] = ebs_optimized
|
||||
|
||||
# 'tenancy' always has a default value, but it is not a valid parameter for spot instance resquest
|
||||
# 'tenancy' always has a default value, but it is not a valid parameter for spot instance request
|
||||
if not spot_price:
|
||||
params['tenancy'] = tenancy
|
||||
|
||||
|
|
|
@ -253,7 +253,7 @@ owner_id:
|
|||
type: string
|
||||
sample: "435210894375"
|
||||
platform:
|
||||
description: plaform of image
|
||||
description: platform of image
|
||||
returned: when AMI is created or already exists
|
||||
type: string
|
||||
sample: null
|
||||
|
|
|
@ -228,7 +228,7 @@ owner_id:
|
|||
type: string
|
||||
sample: "435210894375"
|
||||
platform:
|
||||
description: plaform of image
|
||||
description: platform of image
|
||||
returned: when AMI found
|
||||
type: string
|
||||
sample: null
|
||||
|
|
|
@ -77,7 +77,7 @@ options:
|
|||
default: None
|
||||
lc_check:
|
||||
description:
|
||||
- Check to make sure instances that are being replaced with replace_instances do not aready have the current launch_config.
|
||||
- Check to make sure instances that are being replaced with replace_instances do not already have the current launch_config.
|
||||
required: false
|
||||
version_added: "1.8"
|
||||
default: True
|
||||
|
@ -118,7 +118,7 @@ options:
|
|||
version_added: "2.0"
|
||||
wait_timeout:
|
||||
description:
|
||||
- how long before wait instances to become viable when replaced. Used in concjunction with instance_ids option.
|
||||
- how long before wait instances to become viable when replaced. Used in conjunction with instance_ids option.
|
||||
default: 300
|
||||
version_added: "1.8"
|
||||
wait_for_instances:
|
||||
|
@ -130,6 +130,7 @@ options:
|
|||
termination_policies:
|
||||
description:
|
||||
- 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"i value is used. When used to change an existent autoscaling group, the current termination policies are maintained.
|
||||
required: false
|
||||
default: Default. Eg, 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
|
||||
choices: ['OldestInstance', 'NewestInstance', 'OldestLaunchConfiguration', 'ClosestToNextInstanceHour', 'Default']
|
||||
|
@ -373,7 +374,7 @@ def wait_for_elb(asg_connection, module, group_name):
|
|||
as_group = asg_connection.get_all_groups(names=[group_name])[0]
|
||||
|
||||
if as_group.load_balancers and as_group.health_check_type == 'ELB':
|
||||
log.debug("Waiting for ELB to consider intances healthy.")
|
||||
log.debug("Waiting for ELB to consider instances healthy.")
|
||||
try:
|
||||
elb_connection = connect_to_aws(boto.ec2.elb, region, **aws_connect_params)
|
||||
except boto.exception.NoAuthHandlerFound as e:
|
||||
|
@ -631,7 +632,7 @@ def replace(connection, module):
|
|||
if desired_capacity is None:
|
||||
desired_capacity = as_group.desired_capacity
|
||||
# set temporary settings and wait for them to be reached
|
||||
# This should get overriden if the number of instances left is less than the batch size.
|
||||
# This should get overwritten if the number of instances left is less than the batch size.
|
||||
|
||||
as_group = connection.get_all_groups(names=[group_name])[0]
|
||||
update_size(as_group, max_size + batch_size, min_size + batch_size, desired_capacity + batch_size)
|
||||
|
|
|
@ -207,7 +207,7 @@ class ElbManager:
|
|||
self.changed = True
|
||||
break
|
||||
elif self._is_instance_state_pending(instance_state):
|
||||
# If it's pending, we'll skip further checks andd continue waiting
|
||||
# If it's pending, we'll skip further checks and continue waiting
|
||||
pass
|
||||
elif (awaited_state == 'InService'
|
||||
and instance_state.reason_code == "Instance"
|
||||
|
@ -215,7 +215,7 @@ class ElbManager:
|
|||
# If the reason_code for the instance being out of service is
|
||||
# "Instance" this indicates a failure state, e.g. the instance
|
||||
# has failed a health check or the ELB does not have the
|
||||
# instance's availabilty zone enabled. The exact reason why is
|
||||
# instance's availability zone enabled. The exact reason why is
|
||||
# described in InstantState.description.
|
||||
msg = ("The instance %s could not be put in service on %s."
|
||||
" Reason: %s")
|
||||
|
|
|
@ -135,7 +135,7 @@ options:
|
|||
version_added: "1.8"
|
||||
stickiness:
|
||||
description:
|
||||
- An associative array of stickness policy settings. Policy will be applied to all listeners ( see example )
|
||||
- An associative array of stickiness policy settings. Policy will be applied to all listeners ( see example )
|
||||
required: false
|
||||
version_added: "2.0"
|
||||
wait:
|
||||
|
@ -314,7 +314,7 @@ EXAMPLES = """
|
|||
- load_balancer_port: 80
|
||||
- instance_port: 80
|
||||
|
||||
# Create an ELB with load balanacer stickiness enabled
|
||||
# Create an ELB with load balancer stickiness enabled
|
||||
- local_action:
|
||||
module: ec2_elb_lb
|
||||
name: "New ELB"
|
||||
|
|
|
@ -268,7 +268,7 @@ def rtb_changed(route_tables=None, vpc_conn=None, module=None, vpc=None, igw=Non
|
|||
Checks if the remote routes match the local routes.
|
||||
|
||||
route_tables : Route_tables parameter in the module
|
||||
vpc_conn : The VPC conection object
|
||||
vpc_conn : The VPC connection object
|
||||
module : The module object
|
||||
vpc : The vpc object for this route table
|
||||
igw : The internet gateway object for this vpc
|
||||
|
@ -497,7 +497,7 @@ def create_vpc(module, vpc_conn):
|
|||
|
||||
# Handle route tables - this may be worth splitting into a
|
||||
# different module but should work fine here. The strategy to stay
|
||||
# indempotent is to basically build all the route tables as
|
||||
# idempotent is to basically build all the route tables as
|
||||
# defined, track the route table ids, and then run through the
|
||||
# remote list of route tables and delete any that we didn't
|
||||
# create. This shouldn't interrupt traffic in theory, but is the
|
||||
|
|
|
@ -25,7 +25,7 @@ author: Jonathan Davila (@defionscode)
|
|||
options:
|
||||
name:
|
||||
description:
|
||||
- The name to give your VPC. This is used in combination with the cidr_block paramater to determine if a VPC already exists.
|
||||
- The name to give your VPC. This is used in combination with the cidr_block parameter to determine if a VPC already exists.
|
||||
required: yes
|
||||
cidr_block:
|
||||
description:
|
||||
|
|
|
@ -82,7 +82,7 @@ options:
|
|||
aliases: []
|
||||
access_key_ids:
|
||||
description:
|
||||
- A list of the keys that you want impacted by the access_key_state paramter.
|
||||
- A list of the keys that you want impacted by the access_key_state parameter.
|
||||
groups:
|
||||
description:
|
||||
- A list of groups the user should belong to. When update, will gracefully remove groups not listed.
|
||||
|
@ -340,7 +340,7 @@ def update_user(module, iam, name, new_name, new_path, key_state, key_count, key
|
|||
except boto.exception.BotoServerError as err:
|
||||
error_msg = boto_exception(str(err))
|
||||
if 'Password does not conform to the account password policy' in error_msg:
|
||||
module.fail_json(changed=False, msg="Passsword doesn't conform to policy")
|
||||
module.fail_json(changed=False, msg="Password doesn't conform to policy")
|
||||
else:
|
||||
module.fail_json(msg=error_msg)
|
||||
|
||||
|
@ -397,7 +397,7 @@ def update_user(module, iam, name, new_name, new_path, key_state, key_count, key
|
|||
|
||||
def set_users_groups(module, iam, name, groups, updated=None,
|
||||
new_name=None):
|
||||
""" Sets groups for a user, will purge groups not explictly passed, while
|
||||
""" Sets groups for a user, will purge groups not explicitly passed, while
|
||||
retaining pre-existing groups that also are in the new list.
|
||||
"""
|
||||
changed = False
|
||||
|
@ -630,7 +630,7 @@ def main():
|
|||
|
||||
if iam_type == 'role' and state == 'update':
|
||||
module.fail_json(changed=False, msg="iam_type: role, cannot currently be updated, "
|
||||
"please specificy present or absent")
|
||||
"please specify present or absent")
|
||||
|
||||
# check if trust_policy is present -- it can be inline JSON or a file path to a JSON file
|
||||
if trust_policy_filepath:
|
||||
|
|
|
@ -115,7 +115,7 @@ options:
|
|||
description:
|
||||
- Port number that the DB instance uses for connections. Used only when command=create or command=replicate.
|
||||
- Prior to 2.0 it always defaults to null and the API would use 3306, it had to be set to other DB default values when not using MySql.
|
||||
Starting at 2.0 it auotmaticaly defaults to what is expected for each c(db_engine).
|
||||
Starting at 2.0 it automatically defaults to what is expected for each c(db_engine).
|
||||
required: false
|
||||
default: 3306 for mysql, 1521 for Oracle, 1433 for SQL Server, 5432 for PostgreSQL.
|
||||
upgrade:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue