fix typos in cloud modules (#62194)

* fix typos in cloud modules

* fix typos in cloud modules, fix ci tests
This commit is contained in:
Andrey Klychkov 2019-09-12 17:01:14 +03:00 committed by Will Thames
parent 3dbf89e8ae
commit 7e91998049
135 changed files with 211 additions and 213 deletions

View file

@ -233,7 +233,7 @@ def manage_state(module, aws):
if state == 'present': if state == 'present':
if current_state == 'present': if current_state == 'present':
updates = False updates = False
# Update Batch Job Queuet configuration # Update Batch Job Queue configuration
job_kwargs = {'jobQueue': job_queue_name} job_kwargs = {'jobQueue': job_queue_name}
# Update configuration if needed # Update configuration if needed

View file

@ -190,7 +190,7 @@ EXAMPLES = '''
RETURN = ''' RETURN = '''
project: project:
description: Returns the dictionary desribing the code project configuration. description: Returns the dictionary describing the code project configuration.
returned: success returned: success
type: complex type: complex
contains: contains:
@ -208,7 +208,7 @@ project:
description: A description of the build project description: A description of the build project
returned: always returned: always
type: string type: string
sample: My nice little proejct sample: My nice little project
source: source:
description: Information about the build input source code. description: Information about the build input source code.
returned: always returned: always
@ -304,7 +304,7 @@ def create_or_update_project(client, params, module):
formatted_create_params = dict((k, v) for k, v in formatted_params.items() if k in permitted_create_params) formatted_create_params = dict((k, v) for k, v in formatted_params.items() if k in permitted_create_params)
formatted_update_params = dict((k, v) for k, v in formatted_params.items() if k in permitted_update_params) formatted_update_params = dict((k, v) for k, v in formatted_params.items() if k in permitted_update_params)
# Check if project with that name aleady exists and if so update existing: # Check if project with that name already exists and if so update existing:
found = describe_project(client=client, name=name, module=module) found = describe_project(client=client, name=name, module=module)
changed = False changed = False

View file

@ -139,7 +139,7 @@ EXAMPLES = '''
RETURN = ''' RETURN = '''
pipeline: pipeline:
description: Returns the dictionary desribing the code pipeline configuration. description: Returns the dictionary describing the code pipeline configuration.
returned: success returned: success
type: complex type: complex
contains: contains:

View file

@ -36,7 +36,7 @@ options:
- The ID of the Direct Connect link aggregation group. - The ID of the Direct Connect link aggregation group.
num_connections: num_connections:
description: description:
- The number of connections with which to intialize the link aggregation group. - The number of connections with which to initialize the link aggregation group.
min_links: min_links:
description: description:
- The minimum number of physical connections that must be operational for the LAG itself to be operational. - The minimum number of physical connections that must be operational for the LAG itself to be operational.
@ -353,7 +353,7 @@ def ensure_absent(client, lag_id, lag_name, force_delete, delete_with_disassocia
latest_status = lag_status(client, lag_id) latest_status = lag_status(client, lag_id)
# determinine the associated connections and virtual interfaces to disassociate # determine the associated connections and virtual interfaces to disassociate
virtual_interfaces, connections = get_connections_and_virtual_interfaces(client, lag_id) virtual_interfaces, connections = get_connections_and_virtual_interfaces(client, lag_id)
# If min_links is not 0, there are associated connections, or if there are virtual interfaces, ask for force_delete # If min_links is not 0, there are associated connections, or if there are virtual interfaces, ask for force_delete

View file

@ -25,7 +25,7 @@ options:
choices: [present, absent] choices: [present, absent]
id_to_associate: id_to_associate:
description: description:
- The ID of the link aggrecation group or connection to associate with the virtual interface. - The ID of the link aggregation group or connection to associate with the virtual interface.
aliases: [link_aggregation_group_id, connection_id] aliases: [link_aggregation_group_id, connection_id]
public: public:
description: description:

View file

@ -177,7 +177,7 @@ class AwsCvsNetappFileSystem(object):
def __init__(self): def __init__(self):
""" """
Parse arguments, setup state variables, Parse arguments, setup state variables,
check paramenters and ensure request module is installed check parameters and ensure request module is installed
""" """
self.argument_spec = netapp_utils.aws_cvs_host_argument_spec() self.argument_spec = netapp_utils.aws_cvs_host_argument_spec()
self.argument_spec.update(dict( self.argument_spec.update(dict(

View file

@ -112,7 +112,7 @@ class AwsCvsNetappSnapshot(object):
def __init__(self): def __init__(self):
""" """
Parse arguments, setup state variables, Parse arguments, setup state variables,
check paramenters and ensure request module is installed check parameters and ensure request module is installed
""" """
self.argument_spec = netapp_utils.aws_cvs_host_argument_spec() self.argument_spec = netapp_utils.aws_cvs_host_argument_spec()
self.argument_spec.update(dict( self.argument_spec.update(dict(
@ -145,7 +145,7 @@ class AwsCvsNetappSnapshot(object):
def getSnapshotId(self, name): def getSnapshotId(self, name):
# Check if snapshot exists # Check if snapshot exists
# Return snpashot Id If Snapshot is found, None otherwise # Return snapshot Id If Snapshot is found, None otherwise
list_snapshots, error = self.restApi.get('Snapshots') list_snapshots, error = self.restApi.get('Snapshots')
if error: if error:
@ -217,7 +217,7 @@ class AwsCvsNetappSnapshot(object):
elif cd_action == "create": elif cd_action == "create":
if 'from_name' in self.data: if 'from_name' in self.data:
# If cd_action is craete and from_name is given # If cd_action is create and from_name is given
snapshotId = self.getSnapshotId(self.data['from_name']) snapshotId = self.getSnapshotId(self.data['from_name'])
if snapshotId is not None: if snapshotId is not None:
# If resource pointed by from_name exists, rename the snapshot to name # If resource pointed by from_name exists, rename the snapshot to name

View file

@ -29,7 +29,7 @@ options:
description: The name used to identify the policy within the scope of the identity it's attached to. description: The name used to identify the policy within the scope of the identity it's attached to.
required: true required: true
policy: policy:
description: A properly formated JSON sending authorization policy. Required when I(state=present). description: A properly formatted JSON sending authorization policy. Required when I(state=present).
state: state:
description: Whether to create(or update) or delete the authorization policy on the identity. description: Whether to create(or update) or delete the authorization policy on the identity.
default: present default: present

View file

@ -47,7 +47,7 @@ options:
description: description:
- A list of rules that the Web ACL will enforce. - A list of rules that the Web ACL will enforce.
- Each rule must contain I(name), I(action), I(priority) keys. - Each rule must contain I(name), I(action), I(priority) keys.
- Priorities must be unique, but not necessarily consecutive. Lower numbered priorities are evalauted first. - Priorities must be unique, but not necessarily consecutive. Lower numbered priorities are evaluated first.
- The I(type) key can be passed as C(rate_based), it defaults to C(regular) - The I(type) key can be passed as C(rate_based), it defaults to C(regular)
purge_rules: purge_rules:
description: description:

View file

@ -153,7 +153,7 @@ options:
required: False required: False
capabilities: capabilities:
description: description:
- Specify capabilites that stack template contains. - Specify capabilities that stack template contains.
- Valid values are CAPABILITY_IAM, CAPABILITY_NAMED_IAM and CAPABILITY_AUTO_EXPAND. - Valid values are CAPABILITY_IAM, CAPABILITY_NAMED_IAM and CAPABILITY_AUTO_EXPAND.
type: list type: list
version_added: "2.8" version_added: "2.8"

View file

@ -30,7 +30,7 @@ extends_documentation_fragment:
options: options:
distribution_id: distribution_id:
description: description:
- The id of the cloudfront distribution to invalidate paths for. Can be specified insted of the alias. - The id of the cloudfront distribution to invalidate paths for. Can be specified instead of the alias.
required: false required: false
alias: alias:
description: description:

View file

@ -101,7 +101,7 @@ cloud_front_origin_access_identity:
returned: always returned: always
type: str type: str
s3_canonical_user_id: s3_canonical_user_id:
description: the cannonical user id of the user who created the oai description: the canonical user id of the user who created the oai
returned: always returned: always
type: str type: str
e_tag: e_tag:

View file

@ -279,7 +279,7 @@ class CloudWatchEventRule(object):
return targets_request return targets_request
def _snakify(self, dict): def _snakify(self, dict):
"""Converts cammel case to snake case""" """Converts camel case to snake case"""
return camel_dict_to_snake_dict(dict) return camel_dict_to_snake_dict(dict)

View file

@ -209,7 +209,7 @@ def get_endpoint_deleted_waiter(client):
def endpoint_exists(endpoint): def endpoint_exists(endpoint):
""" Returns boolean based on the existance of the endpoint """ Returns boolean based on the existence of the endpoint
:param endpoint: dict containing the described endpoint :param endpoint: dict containing the described endpoint
:return: bool :return: bool
""" """

View file

@ -108,7 +108,7 @@ def get_dms_client(module, aws_connect_params, client_region, ec2_url):
def replication_subnet_exists(subnet): def replication_subnet_exists(subnet):
""" Returns boolean based on the existance of the endpoint """ Returns boolean based on the existence of the endpoint
:param endpoint: dict containing the described endpoint :param endpoint: dict containing the described endpoint
:return: bool :return: bool
""" """
@ -140,7 +140,7 @@ def compare_params(module, param_described):
""" """
modparams = create_module_params(module) modparams = create_module_params(module)
changed = False changed = False
# need to sanitize values that get retured from the API # need to sanitize values that get returned from the API
if 'VpcId' in param_described.keys(): if 'VpcId' in param_described.keys():
param_described.pop('VpcId') param_described.pop('VpcId')
if 'SubnetGroupStatus' in param_described.keys(): if 'SubnetGroupStatus' in param_described.keys():

View file

@ -1410,7 +1410,7 @@ def get_instances_by_launch_config(props, lc_check, initial_instances):
def get_instances_by_launch_template(props, lt_check, initial_instances): def get_instances_by_launch_template(props, lt_check, initial_instances):
new_instances = [] new_instances = []
old_instances = [] old_instances = []
# old instances are those that have the old launch template or version of the same launch templatec # old instances are those that have the old launch template or version of the same launch template
if lt_check: if lt_check:
for i in props['instances']: for i in props['instances']:
# Check if migrating from launch_config_name to launch_template_name first # Check if migrating from launch_config_name to launch_template_name first

View file

@ -71,7 +71,7 @@ options:
version_added: "2.5" version_added: "2.5"
tag_name: tag_name:
description: description:
- When reuse_existing_ip_allowed is true, suppplement with this option to only reuse - When reuse_existing_ip_allowed is true, supplement with this option to only reuse
an Elastic IP if it is tagged with tag_name. an Elastic IP if it is tagged with tag_name.
default: 'no' default: 'no'
version_added: "2.9" version_added: "2.9"

View file

@ -502,7 +502,7 @@ class ElbManager(object):
self._set_cross_az_load_balancing() self._set_cross_az_load_balancing()
if self._check_attribute_support('access_log'): if self._check_attribute_support('access_log'):
self._set_access_log() self._set_access_log()
# add sitcky options # add sticky options
self.select_stickiness_policy() self.select_stickiness_policy()
# ensure backend server policies are correct # ensure backend server policies are correct

View file

@ -69,7 +69,7 @@ network_interfaces:
public_ip: "52.1.0.63" public_ip: "52.1.0.63"
} }
attachment: attachment:
description: Infor about attached ec2 instance description: Info about attached ec2 instance
returned: always, empty dict if ENI is not attached returned: always, empty dict if ENI is not attached
type: dict type: dict
sample: { sample: {

View file

@ -123,7 +123,7 @@ options:
version_added: "2.4" version_added: "2.4"
placement_tenancy: placement_tenancy:
description: description:
- Determines whether the instance runs on single-tenant harware or not. - Determines whether the instance runs on single-tenant hardware or not.
default: 'default' default: 'default'
version_added: "2.4" version_added: "2.4"

View file

@ -507,7 +507,7 @@ class Ec2Metadata(object):
for (key, value) in dict.items(): for (key, value) in dict.items():
self._data['%s:%s' % (new_uri, key.lower())] = value self._data['%s:%s' % (new_uri, key.lower())] = value
except Exception: except Exception:
self._data['%s' % (new_uri)] = content # not a stringifed JSON string self._data['%s' % (new_uri)] = content # not a stringified JSON string
def fix_invalid_varnames(self, data): def fix_invalid_varnames(self, data):
"""Change ':'' and '-' to '_' to ensure valid template variable names""" """Change ':'' and '-' to '_' to ensure valid template variable names"""

View file

@ -179,7 +179,7 @@ vpc_id:
type: str type: str
sample: "vpc-12345" sample: "vpc-12345"
nat_gateway_addresses: nat_gateway_addresses:
description: List of dictionairies containing the public_ip, network_interface_id, private_ip, and allocation_id. description: List of dictionaries containing the public_ip, network_interface_id, private_ip, and allocation_id.
returned: In all cases. returned: In all cases.
type: str type: str
sample: [ sample: [

View file

@ -139,7 +139,7 @@ vpc:
type: NoneType type: NoneType
sample: null sample: null
dhcp_options_id: dhcp_options_id:
description: the id of the DHCP options assocaited with this VPC description: the id of the DHCP options associated with this VPC
returned: always returned: always
type: str type: str
sample: dopt-0fb8bd6b sample: dopt-0fb8bd6b

View file

@ -494,7 +494,7 @@ def ensure_vgw_absent(client, module):
else: else:
# Check that a name and type argument has been supplied if no vgw-id # Check that a name and type argument has been supplied if no vgw-id
if not module.params.get('name') or not module.params.get('type'): if not module.params.get('name') or not module.params.get('type'):
module.fail_json(msg='A name and type is required when no vgw-id and a status of \'absent\' is suppled') module.fail_json(msg='A name and type is required when no vgw-id and a status of \'absent\' is supplied')
existing_vgw = find_vgw(client, module) existing_vgw = find_vgw(client, module)
if existing_vgw != [] and existing_vgw[0]['State'] != 'deleted': if existing_vgw != [] and existing_vgw[0]['State'] != 'deleted':

View file

@ -134,16 +134,16 @@ options:
version_added: 2.8 version_added: 2.8
service_registries: service_registries:
description: description:
- describes service disovery registries this service will register with. - describes service discovery registries this service will register with.
required: false required: false
version_added: 2.8 version_added: 2.8
suboptions: suboptions:
container_name: container_name:
description: description:
- container name for service disovery registration - container name for service discovery registration
container_port: container_port:
description: description:
- container port for service disovery registration - container port for service discovery registration
arn: arn:
description: description:
- Service discovery registry ARN - Service discovery registry ARN
@ -598,7 +598,7 @@ def main():
loadBalancer['containerPort'] = int(loadBalancer['containerPort']) loadBalancer['containerPort'] = int(loadBalancer['containerPort'])
if update: if update:
# check various parameters and boto versions and give a helpful erro in boto is not new enough for feature # check various parameters and boto versions and give a helpful error in boto is not new enough for feature
if module.params['scheduling_strategy']: if module.params['scheduling_strategy']:
if not module.botocore_at_least('1.10.37'): if not module.botocore_at_least('1.10.37'):

View file

@ -126,7 +126,7 @@ EXAMPLES = '''
''' '''
RETURN = ''' RETURN = '''
task: task:
description: details about the tast that was started description: details about the task that was started
returned: success returned: success
type: complex type: complex
contains: contains:

View file

@ -372,7 +372,7 @@ def main():
existing_definitions_in_family = task_mgr.describe_task_definitions(module.params['family']) existing_definitions_in_family = task_mgr.describe_task_definitions(module.params['family'])
if 'revision' in module.params and module.params['revision']: if 'revision' in module.params and module.params['revision']:
# The definition specifies revision. We must gurantee that an active revision of that number will result from this. # The definition specifies revision. We must guarantee that an active revision of that number will result from this.
revision = int(module.params['revision']) revision = int(module.params['revision'])
# A revision has been explicitly specified. Attempt to locate a matching revision # A revision has been explicitly specified. Attempt to locate a matching revision
@ -381,7 +381,7 @@ def main():
if existing and existing['status'] != "ACTIVE": if existing and existing['status'] != "ACTIVE":
# We cannot reactivate an inactive revision # We cannot reactivate an inactive revision
module.fail_json(msg="A task in family '%s' already exists for revsion %d, but it is inactive" % (family, revision)) module.fail_json(msg="A task in family '%s' already exists for revision %d, but it is inactive" % (family, revision))
elif not existing: elif not existing:
if not existing_definitions_in_family and revision != 1: if not existing_definitions_in_family and revision != 1:
module.fail_json(msg="You have specified a revision of %d but a created revision would be 1" % revision) module.fail_json(msg="You have specified a revision of %d but a created revision would be 1" % revision)

View file

@ -25,7 +25,7 @@ author:
options: options:
encrypt: encrypt:
description: description:
- A boolean value that, if true, creates an encrypted file system. This can not be modfied after the file - A boolean value that, if true, creates an encrypted file system. This can not be modified after the file
system is created. system is created.
type: bool type: bool
default: 'no' default: 'no'

View file

@ -111,7 +111,7 @@ elasticache_clusters:
type: str type: str
sample: in-sync sample: in-sync
cache_parameter_group: cache_parameter_group:
description: Contents of the Cache Parameter GGroup description: Contents of the Cache Parameter Group
returned: always returned: always
type: complex type: complex
contains: contains:

View file

@ -486,7 +486,7 @@ class ElbManager(object):
self._set_cross_az_load_balancing() self._set_cross_az_load_balancing()
if self._check_attribute_support('access_log'): if self._check_attribute_support('access_log'):
self._set_access_log() self._set_access_log()
# add sitcky options # add sticky options
self.select_stickiness_policy() self.select_stickiness_policy()
# ensure backend server policies are correct # ensure backend server policies are correct

View file

@ -159,7 +159,7 @@ instance_target_groups:
type: complex type: complex
contains: contains:
target_id: target_id:
description: the target ID referiing to this instance description: the target ID referring to this instance
type: str type: str
returned: always returned: always
sample: sample:

View file

@ -265,9 +265,9 @@ def delete_dependencies_first(module, iam, name):
except boto.exception.BotoServerError as err: except boto.exception.BotoServerError as err:
error_msg = boto_exception(err) error_msg = boto_exception(err)
if 'must detach all policies first' in error_msg: if 'must detach all policies first' in error_msg:
module.fail_json(changed=changed, msg="All inline polices have been removed. Though it appears" module.fail_json(changed=changed, msg="All inline policies have been removed. Though it appears"
"that %s has Managed Polices. This is not " "that %s has Managed Polices. This is not "
"currently supported by boto. Please detach the polices " "currently supported by boto. Please detach the policies "
"through the console and try again." % name) "through the console and try again." % name)
module.fail_json(changed=changed, msg="Failed to delete policies: %s" % err, exception=traceback.format_exc()) module.fail_json(changed=changed, msg="Failed to delete policies: %s" % err, exception=traceback.format_exc())
@ -494,9 +494,9 @@ def delete_group(module=None, iam=None, name=None):
except boto.exception.BotoServerError as err: except boto.exception.BotoServerError as err:
error_msg = boto_exception(err) error_msg = boto_exception(err)
if ('must delete policies first') in error_msg: if ('must delete policies first') in error_msg:
module.fail_json(changed=changed, msg="All inline polices have been removed. Though it appears" module.fail_json(changed=changed, msg="All inline policies have been removed. Though it appears"
"that %s has Managed Polices. This is not " "that %s has Managed Polices. This is not "
"currently supported by boto. Please detach the polices " "currently supported by boto. Please detach the policies "
"through the console and try again." % name) "through the console and try again." % name)
else: else:
module.fail_json(changed=changed, msg=str(error_msg)) module.fail_json(changed=changed, msg=str(error_msg))
@ -578,9 +578,9 @@ def delete_role(module, iam, name, role_list, prof_list):
except boto.exception.BotoServerError as err: except boto.exception.BotoServerError as err:
error_msg = boto_exception(err) error_msg = boto_exception(err)
if ('must detach all policies first') in error_msg: if ('must detach all policies first') in error_msg:
module.fail_json(changed=changed, msg="All inline polices have been removed. Though it appears" module.fail_json(changed=changed, msg="All inline policies have been removed. Though it appears"
"that %s has Managed Polices. This is not " "that %s has Managed Polices. This is not "
"currently supported by boto. Please detach the polices " "currently supported by boto. Please detach the policies "
"through the console and try again." % name) "through the console and try again." % name)
else: else:
module.fail_json(changed=changed, msg=str(err)) module.fail_json(changed=changed, msg=str(err))

View file

@ -447,7 +447,7 @@ instance:
type: complex type: complex
contains: contains:
name: name:
description: avaialbility zone description: availability zone
returned: when RDS instance exists returned: when RDS instance exists
type: string type: string
sample: "eu-west-1b" sample: "eu-west-1b"

View file

@ -142,7 +142,7 @@ snapshots:
type: str type: str
sample: default:postgres-9-5 sample: default:postgres-9-5
percent_progress: percent_progress:
description: Perecent progress of snapshot description: Percent progress of snapshot
returned: always returned: always
type: int type: int
sample: 100 sample: 100
@ -244,7 +244,7 @@ cluster_snapshots:
type: str type: str
sample: shertel sample: shertel
percent_progress: percent_progress:
description: Perecent progress of snapshot description: Percent progress of snapshot
returned: always returned: always
type: int type: int
sample: 0 sample: 0

View file

@ -96,7 +96,7 @@ options:
aliases: ['retention_period'] aliases: ['retention_period']
port: port:
description: description:
- which port the cluster is listining - which port the cluster is listening
cluster_version: cluster_version:
description: description:
- which version the cluster should have - which version the cluster should have
@ -172,7 +172,7 @@ cluster:
type: float type: float
sample: 1430158536.308 sample: 1430158536.308
status: status:
description: Stutus of the cluster. description: Status of the cluster.
returned: success returned: success
type: str type: str
sample: "available" sample: "available"
@ -226,7 +226,7 @@ from ansible.module_utils.aws.core import AnsibleAWSModule, is_boto3_error_code
def _collect_facts(resource): def _collect_facts(resource):
"""Transfrom cluster information to dict.""" """Transform cluster information to dict."""
facts = { facts = {
'identifier': resource['ClusterIdentifier'], 'identifier': resource['ClusterIdentifier'],
'status': resource['ClusterStatus'], 'status': resource['ClusterStatus'],
@ -516,7 +516,7 @@ def main():
final_cluster_snapshot_identifier = module.params.get('final_cluster_snapshot_identifier') final_cluster_snapshot_identifier = module.params.get('final_cluster_snapshot_identifier')
# can't use module basic required_if check for this case # can't use module basic required_if check for this case
if command == 'delete' and skip_final_cluster_snapshot is False and final_cluster_snapshot_identifier is None: if command == 'delete' and skip_final_cluster_snapshot is False and final_cluster_snapshot_identifier is None:
module.fail_json(msg="Need to specifiy final_cluster_snapshot_identifier if skip_final_cluster_snapshot is False") module.fail_json(msg="Need to specify final_cluster_snapshot_identifier if skip_final_cluster_snapshot is False")
conn = module.client('redshift') conn = module.client('redshift')

View file

@ -85,7 +85,7 @@ options:
description: description:
- This is a string. - This is a string.
- Cache-Control header set on uploaded objects. - Cache-Control header set on uploaded objects.
- Directives are separated by commmas. - Directives are separated by commas.
required: false required: false
version_added: "2.4" version_added: "2.4"
delete: delete:
@ -130,7 +130,7 @@ EXAMPLES = '''
RETURN = ''' RETURN = '''
filelist_initial: filelist_initial:
description: file listing (dicts) from inital globbing description: file listing (dicts) from initial globbing
returned: always returned: always
type: list type: list
sample: [{ sample: [{

View file

@ -195,7 +195,7 @@ options:
type: bool type: bool
subnet_resource_id: subnet_resource_id:
description: description:
- Subnet associdated to the cluster. - Subnet associated to the cluster.
version_added: "2.8" version_added: "2.8"
extends_documentation_fragment: extends_documentation_fragment:

View file

@ -71,7 +71,7 @@ applicationsecuritygroups:
"/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Network/applicationSecurityGroups/MyAsg" "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Network/applicationSecurityGroups/MyAsg"
location: location:
description: description:
- Loation of the application security group. - Location of the application security group.
type: str type: str
returned: always returned: always
sample: eastus sample: eastus

View file

@ -242,7 +242,7 @@ EXAMPLES = '''
name: scale name: scale
resource_group: myResourceGroup resource_group: myResourceGroup
- name: Create an auto scale with compicated profile - name: Create an auto scale with complicated profile
azure_rm_autoscale: azure_rm_autoscale:
target: "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets target: "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets
/myVmss" /myVmss"

View file

@ -371,7 +371,7 @@ class AzureRMCdnendpoint(AzureRMModuleBase):
if not response: if not response:
if self.started is None: if self.started is None:
# If endpoint dosen't exist and no start/stop operation specified, create endpoint. # If endpoint doesn't exist and no start/stop operation specified, create endpoint.
if self.origins is None: if self.origins is None:
self.fail("Origins is not provided when trying to create endpoint") self.fail("Origins is not provided when trying to create endpoint")
self.log("Need to create the Azure CDN endpoint") self.log("Need to create the Azure CDN endpoint")

View file

@ -155,7 +155,7 @@ cdnendpoints:
sample: xxxxxxxx.blob.core.windows.net sample: xxxxxxxx.blob.core.windows.net
origin_path: origin_path:
description: description:
- A directory path on the origin that CDN can use to retreive content from. - A directory path on the origin that CDN can use to retrieve content from.
type: str type: str
sample: /pic/ sample: /pic/
tags: tags:

View file

@ -142,7 +142,7 @@ credentials:
sample: pass2value sample: pass2value
tags: tags:
description: description:
- Tags assigned to the resource. Dictionary of string:string parirs. - Tags assigned to the resource. Dictionary of string:string pairs.
returned: always returned: always
type: dict type: dict
''' '''

View file

@ -441,7 +441,7 @@ class AzureRMCosmosDBAccount(AzureRMModuleBase):
response = self.mgmt_client.database_accounts.delete(resource_group_name=self.resource_group, response = self.mgmt_client.database_accounts.delete(resource_group_name=self.resource_group,
account_name=self.name) account_name=self.name)
# This currently doesnt' work as there is a bug in SDK / Service # This currently doesn't work as there is a bug in SDK / Service
# if isinstance(response, LROPoller) or isinstance(response, AzureOperationPoller): # if isinstance(response, LROPoller) or isinstance(response, AzureOperationPoller):
# response = self.get_poller_result(response) # response = self.get_poller_result(response)
except CloudError as e: except CloudError as e:

View file

@ -327,8 +327,7 @@ deployment:
- The Azure ID of the deployment. - The Azure ID of the deployment.
type: str type: str
returned: always returned: always
sample: "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Resources/deployments/myD sample: "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Resources/deployments/myDeployment"
eployment"
instances: instances:
description: description:
- Provides the public IP addresses for each VM instance. - Provides the public IP addresses for each VM instance.

View file

@ -57,8 +57,7 @@ deployments:
- The identifier of the resource. - The identifier of the resource.
returned: always returned: always
type: str type: str
sample: "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Resources/deployments/myD sample: "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Resources/deployments/myDeployment"
eployment"
resource_group: resource_group:
description: description:
- Resource group name. - Resource group name.

View file

@ -242,7 +242,7 @@ class AzureRMDtlEnvironment(AzureRMModuleBase):
return self.results return self.results
self.delete_environment() self.delete_environment()
# This currently doesnt' work as there is a bug in SDK / Service # This currently doesn't work as there is a bug in SDK / Service
if isinstance(response, LROPoller) or isinstance(response, AzureOperationPoller): if isinstance(response, LROPoller) or isinstance(response, AzureOperationPoller):
response = self.get_poller_result(response) response = self.get_poller_result(response)
else: else:

View file

@ -214,7 +214,7 @@ class AzureRMSchedule(AzureRMModuleBase):
return self.results return self.results
self.delete_schedule() self.delete_schedule()
# This currently doesnt' work as there is a bug in SDK / Service # This currently doesn't work as there is a bug in SDK / Service
if isinstance(response, LROPoller) or isinstance(response, AzureOperationPoller): if isinstance(response, LROPoller) or isinstance(response, AzureOperationPoller):
response = self.get_poller_result(response) response = self.get_poller_result(response)
else: else:

View file

@ -208,7 +208,7 @@ class AzureRMDevTestLabVirtualNetwork(AzureRMModuleBase):
if self.check_mode: if self.check_mode:
return self.results return self.results
self.delete_virtualnetwork() self.delete_virtualnetwork()
# This currently doesnt' work as there is a bug in SDK / Service # This currently doesn't work as there is a bug in SDK / Service
if isinstance(response, LROPoller) or isinstance(response, AzureOperationPoller): if isinstance(response, LROPoller) or isinstance(response, AzureOperationPoller):
response = self.get_poller_result(response) response = self.get_poller_result(response)
else: else:

View file

@ -142,7 +142,7 @@ options:
type: int type: int
disallowed: disallowed:
description: description:
- Disalloved parameter values. - Disallowed parameter values.
type: dict type: dict
suboptions: suboptions:
disk_types: disk_types:

View file

@ -139,7 +139,7 @@ options:
connection_string: connection_string:
description: description:
- Connection string of the custom endpoint. - Connection string of the custom endpoint.
- The connection string should have send priviledge. - The connection string should have send privilege.
type: str type: str
required: yes required: yes
container: container:

View file

@ -387,7 +387,7 @@ class AzureRMKeyVaultKeyInfo(AzureRMModuleBase):
''' '''
Lists keys in specific key vault. Lists keys in specific key vault.
:return: deserialized keys, incldues key identifier, attributes and tags. :return: deserialized keys, includes key identifier, attributes and tags.
''' '''
self.log("Get the key vaults in current subscription") self.log("Get the key vaults in current subscription")
@ -429,7 +429,7 @@ class AzureRMKeyVaultKeyInfo(AzureRMModuleBase):
''' '''
Lists deleted keys in specific key vault. Lists deleted keys in specific key vault.
:return: deserialized keys, incldues key identifier, attributes and tags. :return: deserialized keys, includes key identifier, attributes and tags.
''' '''
self.log("Get the key vaults in current subscription") self.log("Get the key vaults in current subscription")

View file

@ -31,7 +31,7 @@ options:
managed_resource_id: managed_resource_id:
description: description:
- Manage a lock for the specified resource ID. - Manage a lock for the specified resource ID.
- Mututally exclusive with I(resource_group). - Mutually exclusive with I(resource_group).
- If neither I(managed_resource_id) or I(resource_group) are specified, manage a lock for the current subscription. - If neither I(managed_resource_id) or I(resource_group) are specified, manage a lock for the current subscription.
- "'/subscriptions/{subscriptionId}' for subscriptions." - "'/subscriptions/{subscriptionId}' for subscriptions."
- "'/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' for resource groups." - "'/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' for resource groups."

View file

@ -30,7 +30,7 @@ options:
description: description:
- ID of the resource where need to manage the lock. - ID of the resource where need to manage the lock.
- Get this via facts module. - Get this via facts module.
- Cannot be set mutal with I(resource_group). - Cannot be set mutual with I(resource_group).
- Manage subscription if both I(managed_resource_id) and I(resource_group) not defined. - Manage subscription if both I(managed_resource_id) and I(resource_group) not defined.
- "'/subscriptions/{subscriptionId}' for subscriptions." - "'/subscriptions/{subscriptionId}' for subscriptions."
- "'/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' for resource groups." - "'/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' for resource groups."
@ -41,7 +41,7 @@ options:
description: description:
- Resource group name where need to manage the lock. - Resource group name where need to manage the lock.
- The lock is in the resource group level. - The lock is in the resource group level.
- Cannot be set mutal with I(managed_resource_id). - Cannot be set mutual with I(managed_resource_id).
- Query subscription if both I(managed_resource_id) and I(resource_group) not defined. - Query subscription if both I(managed_resource_id) and I(resource_group) not defined.
- Can get all locks with 'child scope' in this resource group, use the I(managed_resource_id) in response for further management. - Can get all locks with 'child scope' in this resource group, use the I(managed_resource_id) in response for further management.
type: str type: str

View file

@ -164,7 +164,7 @@ response:
allowExtensionOperations: allowExtensionOperations:
description: description:
- Specifies whether extension operations should be allowed on the virtual machine. - Specifies whether extension operations should be allowed on the virtual machine.
- This may only be set to False when no extentions are present on the virtual machine. - This may only be set to False when no extensions are present on the virtual machine.
type: bool type: bool
returned: always returned: always
sample: true sample: true
@ -176,7 +176,7 @@ response:
sample: myVM sample: myVM
requireGuestProvisionSignale: requireGuestProvisionSignale:
description: description:
- Specifies the host require guest provision siganl or not. - Specifies the host require guest provision signal or not.
type: bool type: bool
returned: always returned: always
sample: true sample: true
@ -188,7 +188,7 @@ response:
sample: [] sample: []
linuxConfiguration: linuxConfiguration:
description: description:
- Specifies the Linux operatiing system settings on the virtual machine. - Specifies the Linux operating system settings on the virtual machine.
type: dict type: dict
returned: when OS type is Linux returned: when OS type is Linux
sample: { sample: {
@ -203,14 +203,14 @@ response:
sample: Succeeded sample: Succeeded
vmID: vmID:
description: description:
- Specifies the VM unique ID whic is a 128-bits identifier that is encoded and stored in all Azure laaS VMs SMBIOS. - Specifies the VM unique ID which is a 128-bits identifier that is encoded and stored in all Azure laaS VMs SMBIOS.
- It can be read using platform BIOS commands. - It can be read using platform BIOS commands.
type: str type: str
returned: always returned: always
sample: "eb86d9bb-6725-4787-a487-2e497d5b340c" sample: "eb86d9bb-6725-4787-a487-2e497d5b340c"
storageProfile: storageProfile:
description: description:
- Specifies the storae account type for the managed disk. - Specifies the storage account type for the managed disk.
type: complex type: complex
returned: always returned: always
contains: contains:

View file

@ -28,7 +28,7 @@ options:
required: True required: True
permissions: permissions:
description: description:
- Set of role definition peremissions. - Set of role definition permissions.
- See U(https://docs.microsoft.com/en-us/azure/app-service/app-service-web-overview) for more info. - See U(https://docs.microsoft.com/en-us/azure/app-service/app-service-web-overview) for more info.
suboptions: suboptions:
actions: actions:
@ -250,7 +250,7 @@ class AzureRMRoleDefinition(AzureRMModuleBase):
elif self.state == 'absent': elif self.state == 'absent':
if old_response: if old_response:
self.log("Delete role defintion") self.log("Delete role definition")
self.results['changed'] = True self.results['changed'] = True
if self.check_mode: if self.check_mode:

View file

@ -24,7 +24,7 @@ description:
options: options:
scope: scope:
description: description:
- The scope of role defintion. - The scope of role definition.
required: True required: True
id: id:
description: description:

View file

@ -329,7 +329,7 @@ state:
sample: "westus" sample: "westus"
name: name:
description: description:
- Name of the secrurity group. - Name of the security group.
returned: always returned: always
type: str type: str
sample: "mysecgroup" sample: "mysecgroup"

View file

@ -196,7 +196,7 @@ servicebuses:
sample: 1 sample: 1
count_details: count_details:
description: description:
- Message count deatils. - Message count details.
returned: always returned: always
type: complex type: complex
contains: contains:

View file

@ -527,7 +527,7 @@ EXAMPLES = '''
image: image:
id: '{{image_id}}' id: '{{image_id}}'
- name: Create VM with spcified OS disk size - name: Create VM with specified OS disk size
azure_rm_virtualmachine: azure_rm_virtualmachine:
resource_group: myResourceGroup resource_group: myResourceGroup
name: big-os-disk name: big-os-disk
@ -1884,7 +1884,7 @@ class AzureRMVirtualMachine(AzureRMModuleBase):
return True return True
def delete_vm_storage(self, vhd_uris): def delete_vm_storage(self, vhd_uris):
# FUTURE: figure out a cloud_env indepdendent way to delete these # FUTURE: figure out a cloud_env independent way to delete these
for uri in vhd_uris: for uri in vhd_uris:
self.log("Extracting info from blob uri '{0}'".format(uri)) self.log("Extracting info from blob uri '{0}'".format(uri))
try: try:

View file

@ -697,7 +697,7 @@ class AzureRMWebAppSlots(AzureRMModuleBase):
return True return True
return False return False
# comparing deployment source with input, determine wheather it's changed # comparing deployment source with input, determine whether it's changed
def is_deployment_source_changed(self, existing_webapp): def is_deployment_source_changed(self, existing_webapp):
if self.deployment_source: if self.deployment_source:
if self.deployment_source.get('url') \ if self.deployment_source.get('url') \

View file

@ -34,7 +34,7 @@ options:
required: False required: False
state: state:
description: description:
- Whether to install or un-install the package. Currently it supports only "present" for install action. - Whether to install or uninstall the package. Currently it supports only "present" for install action.
required: False required: False
default: present default: present
choices: ['present'] choices: ['present']

View file

@ -16,7 +16,7 @@ DOCUMENTATION = '''
module: clc_firewall_policy module: clc_firewall_policy
short_description: Create/delete/update firewall policies short_description: Create/delete/update firewall policies
description: description:
- Create or delete or update firewall polices on Centurylink Cloud - Create or delete or update firewall policies on Centurylink Cloud
version_added: "2.0" version_added: "2.0"
options: options:
location: location:

View file

@ -49,7 +49,7 @@ options:
default: 1 default: 1
count_group: count_group:
description: description:
- Required when exact_count is specified. The Server Group use to determine how many severs to deploy. - Required when exact_count is specified. The Server Group use to determine how many servers to deploy.
cpu: cpu:
description: description:
- How many CPUs to provision on the server - How many CPUs to provision on the server

View file

@ -21,7 +21,7 @@ short_description: Manages servers on the cloudscale.ch IaaS service
description: description:
- Create, update, start, stop and delete servers on the cloudscale.ch IaaS service. - Create, update, start, stop and delete servers on the cloudscale.ch IaaS service.
notes: notes:
- Since version 2.8, I(uuid) and I(name) or not mututally exclusive anymore. - Since version 2.8, I(uuid) and I(name) or not mutually exclusive anymore.
- If I(uuid) option is provided, it takes precedence over I(name) for server selection. This allows to update the server's name. - If I(uuid) option is provided, it takes precedence over I(name) for server selection. This allows to update the server's name.
- If no I(uuid) option is provided, I(name) is used for server selection. If more than one server with this name exists, execution is aborted. - If no I(uuid) option is provided, I(name) is used for server selection. If more than one server with this name exists, execution is aborted.
- Only the I(name) and I(flavor) are evaluated for the update. - Only the I(name) and I(flavor) are evaluated for the update.

View file

@ -65,7 +65,7 @@ options:
type: list type: list
tags: tags:
description: description:
- Tags assosiated with the volume. Set this to C({}) to clear any tags. - Tags associated with the volume. Set this to C({}) to clear any tags.
type: dict type: dict
version_added: '2.9' version_added: '2.9'
extends_documentation_fragment: cloudscale extends_documentation_fragment: cloudscale
@ -149,7 +149,7 @@ state:
type: str type: str
sample: present sample: present
tags: tags:
description: Tags assosiated with the volume. description: Tags associated with the volume.
returned: state == present returned: state == present
type: dict type: dict
sample: { 'project': 'my project' } sample: { 'project': 'my project' }
@ -183,7 +183,7 @@ class AnsibleCloudscaleVolume(AnsibleCloudscaleBase):
if self._module.params.get('uuid'): if self._module.params.get('uuid'):
self._module.fail_json(msg="The volume with UUID '%s' was not found " self._module.fail_json(msg="The volume with UUID '%s' was not found "
"and we would create a new one with different UUID, " "and we would create a new one with different UUID, "
"this is probaly not want you have asked for." % self._module.params.get('uuid')) "this is probably not want you have asked for." % self._module.params.get('uuid'))
self._result['changed'] = True self._result['changed'] = True
data = { data = {

View file

@ -15,7 +15,7 @@ module: cs_zone_facts
short_description: Gathering facts of zones from Apache CloudStack based clouds. short_description: Gathering facts of zones from Apache CloudStack based clouds.
description: description:
- Gathering facts from the API of a zone. - Gathering facts from the API of a zone.
- Sets Ansible facts accessable by the key C(cloudstack_zone) and since version 2.6 also returns results. - Sets Ansible facts accessible by the key C(cloudstack_zone) and since version 2.6 also returns results.
deprecated: deprecated:
removed_in: "2.13" removed_in: "2.13"
why: Transformed into an info module. why: Transformed into an info module.

View file

@ -922,7 +922,7 @@ class AnsibleCloudStackInstance(AnsibleCloudStack):
def stop_instance(self): def stop_instance(self):
instance = self.get_instance() instance = self.get_instance()
# in check mode instance may not be instanciated # in check mode instance may not be instantiated
if instance: if instance:
if instance['state'].lower() in ['stopping', 'stopped']: if instance['state'].lower() in ['stopping', 'stopped']:
return instance return instance
@ -939,7 +939,7 @@ class AnsibleCloudStackInstance(AnsibleCloudStack):
def start_instance(self): def start_instance(self):
instance = self.get_instance() instance = self.get_instance()
# in check mode instance may not be instanciated # in check mode instance may not be instantiated
if instance: if instance:
if instance['state'].lower() in ['starting', 'running']: if instance['state'].lower() in ['starting', 'running']:
return instance return instance
@ -960,7 +960,7 @@ class AnsibleCloudStackInstance(AnsibleCloudStack):
def restart_instance(self): def restart_instance(self):
instance = self.get_instance() instance = self.get_instance()
# in check mode instance may not be instanciated # in check mode instance may not be instantiated
if instance: if instance:
if instance['state'].lower() in ['running', 'starting']: if instance['state'].lower() in ['running', 'starting']:
self.result['changed'] = True self.result['changed'] = True
@ -978,7 +978,7 @@ class AnsibleCloudStackInstance(AnsibleCloudStack):
def restore_instance(self): def restore_instance(self):
instance = self.get_instance() instance = self.get_instance()
self.result['changed'] = True self.result['changed'] = True
# in check mode instance may not be instanciated # in check mode instance may not be instantiated
if instance: if instance:
args = {} args = {}
args['templateid'] = self.get_template_or_iso(key='id') args['templateid'] = self.get_template_or_iso(key='id')

View file

@ -67,7 +67,7 @@ options:
description: description:
- List of tags. Tags are a list of dictionaries having keys I(key) and I(value). - List of tags. Tags are a list of dictionaries having keys I(key) and I(value).
- Tags can be used as an unique identifier for the IP Addresses. - Tags can be used as an unique identifier for the IP Addresses.
- In this case, at least one of them must be unique to ensure idempontency. - In this case, at least one of them must be unique to ensure idempotency.
type: list type: list
aliases: [ tag ] aliases: [ tag ]
version_added: '2.6' version_added: '2.6'
@ -80,7 +80,7 @@ extends_documentation_fragment: cloudstack
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: Associate an IP address conditonally - name: Associate an IP address conditionally
cs_ip_address: cs_ip_address:
network: My Network network: My Network
register: ip_address register: ip_address

View file

@ -189,7 +189,7 @@ EXAMPLES = '''
cs_network: cs_network:
name: my network name: my network
clean_up: yes clean_up: yes
state: restared state: restarted
delegate_to: localhost delegate_to: localhost
- name: Remove a network - name: Remove a network

View file

@ -104,7 +104,7 @@ options:
aliases: [ service_provider ] aliases: [ service_provider ]
specify_ip_ranges: specify_ip_ranges:
description: description:
- Wheter the network offering supports specifying IP ranges. - Whether the network offering supports specifying IP ranges.
- Defaulted to C(no) by the API if not specified. - Defaulted to C(no) by the API if not specified.
type: bool type: bool
specify_vlan: specify_vlan:
@ -178,7 +178,7 @@ service_offering_id:
type: str type: str
sample: c5f7a5fc-43f8-11e5-a151-feff819cdc9f sample: c5f7a5fc-43f8-11e5-a151-feff819cdc9f
max_connections: max_connections:
description: The maximum number of concurrents connections to be handled by LB. description: The maximum number of concurrent connections to be handled by LB.
returned: success returned: success
type: int type: int
sample: 300 sample: 300

View file

@ -152,7 +152,7 @@ class AnsibleCloudStackSshKey(AnsibleCloudStack):
# delete the ssh key with matching fingerprint but wrong name # delete the ssh key with matching fingerprint but wrong name
args['name'] = ssh_key['name'] args['name'] = ssh_key['name']
self.query_api('deleteSSHKeyPair', **args) self.query_api('deleteSSHKeyPair', **args)
# First match for key retrievment will be the fingerprint. # First match for key retrievement will be the fingerprint.
# We need to make another lookup if there is a key with identical name. # We need to make another lookup if there is a key with identical name.
self.ssh_key = None self.ssh_key = None
ssh_key = self.get_ssh_key() ssh_key = self.get_ssh_key()

View file

@ -217,7 +217,7 @@ suitable_for_migration:
type: bool type: bool
sample: false sample: false
storage_capabilities: storage_capabilities:
description: Capabilities of the torage pool. description: Capabilities of the storage pool.
returned: success returned: success
type: dict type: dict
sample: {"VOLUME_SNAPSHOT_QUIESCEVM": "false"} sample: {"VOLUME_SNAPSHOT_QUIESCEVM": "false"}

View file

@ -267,7 +267,7 @@ class AnsibleCloudStackVpc(AnsibleCloudStack):
vpc_name = self.module.params.get('name') vpc_name = self.module.params.get('name')
for v in vpcs: for v in vpcs:
if vpc_name in [v['name'], v['displaytext'], v['id']]: if vpc_name in [v['name'], v['displaytext'], v['id']]:
# Fail if the identifyer matches more than one VPC # Fail if the identifier matches more than one VPC
if self.vpc: if self.vpc:
self.module.fail_json(msg="More than one VPC found with the provided identifyer: %s" % vpc_name) self.module.fail_json(msg="More than one VPC found with the provided identifyer: %s" % vpc_name)
else: else:

View file

@ -28,7 +28,7 @@ version_added: "2.6"
options: options:
image_type: image_type:
description: description:
- Specifies the type of image information to be retrived. - Specifies the type of image information to be retrieved.
- If set to C(application), then information are gathered related to all application images. - If set to C(application), then information are gathered related to all application images.
- If set to C(distribution), then information are gathered related to all distribution images. - If set to C(distribution), then information are gathered related to all distribution images.
- If set to C(private), then information are gathered related to all private images. - If set to C(private), then information are gathered related to all private images.

View file

@ -67,7 +67,7 @@ options:
default: present default: present
allow_expand: allow_expand:
description: description:
- Permit expansion of the target VLAN's network if the module parameters specify a larger network than the VLAN currently posesses? - Permit expansion of the target VLAN's network if the module parameters specify a larger network than the VLAN currently possesses.
- If C(False), the module will fail under these conditions. - If C(False), the module will fail under these conditions.
- This is intended to prevent accidental expansion of a VLAN's network (since this operation is not reversible). - This is intended to prevent accidental expansion of a VLAN's network (since this operation is not reversible).
type: bool type: bool

View file

@ -476,7 +476,7 @@ options:
- For examples of the data structure and usage see EXAMPLES below. - For examples of the data structure and usage see EXAMPLES below.
- To remove a container from one or more networks, use the C(purge_networks) option. - To remove a container from one or more networks, use the C(purge_networks) option.
- Note that as opposed to C(docker run ...), M(docker_container) does not remove the default - Note that as opposed to C(docker run ...), M(docker_container) does not remove the default
network if C(networks) is specified. You need to explicity use C(purge_networks) to enforce network if C(networks) is specified. You need to explicitly use C(purge_networks) to enforce
the removal of the default network (and all other networks not explicitly mentioned in C(networks)). the removal of the default network (and all other networks not explicitly mentioned in C(networks)).
type: list type: list
suboptions: suboptions:

View file

@ -425,7 +425,7 @@ def create_record(module, gcdns, zone, record):
except LibcloudError: except LibcloudError:
# We deleted the old record, couldn't create the new record, and # We deleted the old record, couldn't create the new record, and
# couldn't roll back. That really sucks. We'll dump the original # couldn't roll back. That really sucks. We'll dump the original
# record to the failure output so the user can resore it if # record to the failure output so the user can restore it if
# necessary. # necessary.
module.fail_json( module.fail_json(
msg='error updating record, and could not restore original record, ' + msg='error updating record, and could not restore original record, ' +

View file

@ -125,7 +125,7 @@ def get_target_http_proxy(client, name, project_id=None):
""" """
Get a Target HTTP Proxy from GCP. Get a Target HTTP Proxy from GCP.
:param client: An initialized GCE Compute Disovery resource. :param client: An initialized GCE Compute Discovery resource.
:type client: :class: `googleapiclient.discovery.Resource` :type client: :class: `googleapiclient.discovery.Resource`
:param name: Name of the Target Proxy. :param name: Name of the Target Proxy.
@ -146,7 +146,7 @@ def create_target_http_proxy(client, params, project_id):
""" """
Create a new Target_Proxy. Create a new Target_Proxy.
:param client: An initialized GCE Compute Disovery resource. :param client: An initialized GCE Compute Discovery resource.
:type client: :class: `googleapiclient.discovery.Resource` :type client: :class: `googleapiclient.discovery.Resource`
:param params: Dictionary of arguments from AnsibleModule. :param params: Dictionary of arguments from AnsibleModule.
@ -200,7 +200,7 @@ def update_target_http_proxy(client, target_proxy, params, name, project_id):
If the target_proxy has not changed, the update will not occur. If the target_proxy has not changed, the update will not occur.
:param client: An initialized GCE Compute Disovery resource. :param client: An initialized GCE Compute Discovery resource.
:type client: :class: `googleapiclient.discovery.Resource` :type client: :class: `googleapiclient.discovery.Resource`
:param target_proxy: Name of the Target Proxy. :param target_proxy: Name of the Target Proxy.

View file

@ -15,9 +15,9 @@ DOCUMENTATION = '''
--- ---
module: gcp_url_map module: gcp_url_map
version_added: "2.4" version_added: "2.4"
short_description: Create, Update or Destory a Url_Map. short_description: Create, Update or Destroy a Url_Map.
description: description:
- Create, Update or Destory a Url_Map. See - Create, Update or Destroy a Url_Map. See
U(https://cloud.google.com/compute/docs/load-balancing/http/url-map) for an overview. U(https://cloud.google.com/compute/docs/load-balancing/http/url-map) for an overview.
More details on the Url_Map API can be found at More details on the Url_Map API can be found at
U(https://cloud.google.com/compute/docs/reference/latest/urlMaps#resource). U(https://cloud.google.com/compute/docs/reference/latest/urlMaps#resource).
@ -330,7 +330,7 @@ def get_url_map(client, name, project_id=None):
""" """
Get a Url_Map from GCP. Get a Url_Map from GCP.
:param client: An initialized GCE Compute Disovery resource. :param client: An initialized GCE Compute Discovery resource.
:type client: :class: `googleapiclient.discovery.Resource` :type client: :class: `googleapiclient.discovery.Resource`
:param name: Name of the Url Map. :param name: Name of the Url Map.
@ -353,7 +353,7 @@ def create_url_map(client, params, project_id):
""" """
Create a new Url_Map. Create a new Url_Map.
:param client: An initialized GCE Compute Disovery resource. :param client: An initialized GCE Compute Discovery resource.
:type client: :class: `googleapiclient.discovery.Resource` :type client: :class: `googleapiclient.discovery.Resource`
:param params: Dictionary of arguments from AnsibleModule. :param params: Dictionary of arguments from AnsibleModule.
@ -379,7 +379,7 @@ def delete_url_map(client, name, project_id):
""" """
Delete a Url_Map. Delete a Url_Map.
:param client: An initialized GCE Compute Disover resource. :param client: An initialized GCE Compute Discover resource.
:type client: :class: `googleapiclient.discovery.Resource` :type client: :class: `googleapiclient.discovery.Resource`
:param name: Name of the Url Map. :param name: Name of the Url Map.
@ -405,7 +405,7 @@ def update_url_map(client, url_map, params, name, project_id):
If the url_map has not changed, the update will not occur. If the url_map has not changed, the update will not occur.
:param client: An initialized GCE Compute Disovery resource. :param client: An initialized GCE Compute Discovery resource.
:type client: :class: `googleapiclient.discovery.Resource` :type client: :class: `googleapiclient.discovery.Resource`
:param url_map: Name of the Url Map. :param url_map: Name of the Url Map.

View file

@ -18,10 +18,10 @@ version_added: '2.4'
short_description: Create, Update or Destroy GCE Labels. short_description: Create, Update or Destroy GCE Labels.
description: description:
- Create, Update or Destroy GCE Labels on instances, disks, snapshots, etc. - Create, Update or Destroy GCE Labels on instances, disks, snapshots, etc.
When specifying the GCE resource, users may specifiy the full URL for When specifying the GCE resource, users may specify the full URL for
the resource (its 'self_link'), or the individual parameters of the the resource (its 'self_link'), or the individual parameters of the
resource (type, location, name). Examples for the two options can be resource (type, location, name). Examples for the two options can be
seen in the documentaion. seen in the documentation.
See U(https://cloud.google.com/compute/docs/label-or-tag-resources) for See U(https://cloud.google.com/compute/docs/label-or-tag-resources) for
more information about GCE Labels. Labels are gradually being added to more information about GCE Labels. Labels are gradually being added to
more GCE resources, so this module will need to be updated as new more GCE resources, so this module will need to be updated as new

View file

@ -40,7 +40,7 @@ description:
other resources to communicate with each other via internal, private IP addresses. other resources to communicate with each other via internal, private IP addresses.
- Each VPC network is subdivided into subnets, and each subnet is contained within - Each VPC network is subdivided into subnets, and each subnet is contained within
a single region. You can have more than one subnet in a region for a given VPC network. a single region. You can have more than one subnet in a region for a given VPC network.
Each subnet has a contiguous private RFC1918 IP space. You create instances, containers, Each subnet has a continuous private RFC1918 IP space. You create instances, containers,
and the like in these subnets. and the like in these subnets.
- When you create an instance, you must create it in a subnet, and the instance draws - When you create an instance, you must create it in a subnet, and the instance draws
its internal IP address from that subnet. its internal IP address from that subnet.

View file

@ -541,7 +541,7 @@ defaultObjectAcl:
type: str type: str
id: id:
description: description:
- The ID of the bucket. For buckets, the id and name properities are the same. - The ID of the bucket. For buckets, the id and name properties are the same.
returned: success returned: success
type: str type: str
lifecycle: lifecycle:

View file

@ -279,7 +279,7 @@ def main():
push_endpoint=mod_params['subscription'].get('push_endpoint', None)) push_endpoint=mod_params['subscription'].get('push_endpoint', None))
if mod_params['state'] == 'absent': if mod_params['state'] == 'absent':
# Remove the most granular resource. If subcription is specified # Remove the most granular resource. If subscription is specified
# we remove it. If only topic is specified, that is what is removed. # we remove it. If only topic is specified, that is what is removed.
# Note that a topic can be removed without first removing the subscription. # Note that a topic can be removed without first removing the subscription.
# TODO(supertom): Enhancement: Provide an option to only delete a topic # TODO(supertom): Enhancement: Provide an option to only delete a topic

View file

@ -41,7 +41,7 @@ options:
type: str type: str
label_selector: label_selector:
description: description:
- The label selector for the servery you want to get. - The label selector for the server you want to get.
type: str type: str
extends_documentation_fragment: hcloud extends_documentation_fragment: hcloud
""" """

View file

@ -76,7 +76,7 @@ hcloud_ssh_key_info:
type: str type: str
sample: 0e:e0:bd:c7:2d:1f:69:49:94:44:91:f1:19:fd:35:f3 sample: 0e:e0:bd:c7:2d:1f:69:49:94:44:91:f1:19:fd:35:f3
public_key: public_key:
description: The acctual public key description: The actual public key
returned: always returned: always
type: str type: str
sample: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGpl/tnk74nnQJxxLAtutUApUZMRJxryKh7VXkNbd4g9 john@example.com" sample: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGpl/tnk74nnQJxxLAtutUApUZMRJxryKh7VXkNbd4g9 john@example.com"

View file

@ -131,7 +131,7 @@ options:
- "If set, this module will wait for the PVC to become bound and CDI (if enabled) to finish its operation - "If set, this module will wait for the PVC to become bound and CDI (if enabled) to finish its operation
before returning." before returning."
- "Used only if I(state) set to C(present)." - "Used only if I(state) set to C(present)."
- "Unless used in conjuction with I(cdi_source), this might result in a timeout, as clusters may be configured - "Unless used in conjunction with I(cdi_source), this might result in a timeout, as clusters may be configured
to not bind PVCs until first usage." to not bind PVCs until first usage."
default: false default: false
type: bool type: bool
@ -161,7 +161,7 @@ EXAMPLES = '''
cdi_source: cdi_source:
http: http:
url: https://www.source.example/path/of/data/vm.img url: https://www.source.example/path/of/data/vm.img
# If the URL points to a tar.gz containing the disk image, ucomment the line below: # If the URL points to a tar.gz containing the disk image, uncomment the line below:
#content_type: archive #content_type: archive
- name: Create a PVC as a clone from a different PVC - name: Create a PVC as a clone from a different PVC

View file

@ -68,7 +68,7 @@ requirements:
EXAMPLES = ''' EXAMPLES = '''
- name: Create virtual machine replica set 'myvmir' - name: Create virtual machine replica set 'myvmir'
kubevirt_rs: kubevirt_rs:
state: presnet state: present
name: myvmir name: myvmir
namespace: vms namespace: vms
wait: true wait: true

View file

@ -129,7 +129,7 @@ options:
Then, that value is substituted wherever the parameter is referenced. References can be defined in any Then, that value is substituted wherever the parameter is referenced. References can be defined in any
field in the objects list field. This is useful for generating random passwords or allowing the user to field in the objects list field. This is useful for generating random passwords or allowing the user to
supply a host name or other user-specific value that is required to customize the template." supply a host name or other user-specific value that is required to customize the template."
- "More information can be foud at: U(https://docs.openshift.com/container-platform/3.6/dev_guide/templates.html#writing-parameters)" - "More information can be found at: U(https://docs.openshift.com/container-platform/3.6/dev_guide/templates.html#writing-parameters)"
type: list type: list
version: version:
description: description:
@ -335,7 +335,7 @@ class KubeVirtVMTemplate(KubeVirtRawModule):
if self.params.get('default_network'): if self.params.get('default_network'):
annotations['defaults.template.cnv.io/network'] = self.params.get('default_network').get('name') annotations['defaults.template.cnv.io/network'] = self.params.get('default_network').get('name')
# Proccess objects: # Process objects:
self.client = self.get_api_client() self.client = self.get_api_client()
definition['objects'] = [] definition['objects'] = []
objects = self.params.get('objects') or [] objects = self.params.get('objects') or []
@ -358,7 +358,7 @@ class KubeVirtVMTemplate(KubeVirtRawModule):
# Set kubevirt API version: # Set kubevirt API version:
vm_definition['apiVersion'] = '%s/%s' % (API_GROUP, MAX_SUPPORTED_API_VERSION) vm_definition['apiVersion'] = '%s/%s' % (API_GROUP, MAX_SUPPORTED_API_VERSION)
# Contruct k8s vm API object: # Construct k8s vm API object:
vm_template = vm_definition['spec']['template'] vm_template = vm_definition['spec']['template']
dummy, vm_def = self.construct_vm_template_definition('VirtualMachine', vm_definition, vm_template, obj) dummy, vm_def = self.construct_vm_template_definition('VirtualMachine', vm_definition, vm_template, obj)

View file

@ -52,7 +52,7 @@ options:
type: str type: str
ephemeral: ephemeral:
description: description:
- If (true) ephemeral vitual machine will be created. When destroyed it won't be accessible again. - If (true) ephemeral virtual machine will be created. When destroyed it won't be accessible again.
- Works only with C(state) I(present) and I(absent). - Works only with C(state) I(present) and I(absent).
type: bool type: bool
default: false default: false

View file

@ -165,7 +165,7 @@ notes:
is "stopped" and the container does not exist it will be first created, is "stopped" and the container does not exist it will be first created,
"started", the command executed, and then "stopped". If you use a "|" "started", the command executed, and then "stopped". If you use a "|"
in the variable you can use common script formatting within the variable in the variable you can use common script formatting within the variable
iteself The "container_command" option will always execute as BASH. itself The "container_command" option will always execute as BASH.
When using "container_command" a log file is created in the /tmp/ directory When using "container_command" a log file is created in the /tmp/ directory
which contains both stdout and stderr of any command executed. which contains both stdout and stderr of any command executed.
- If "archive" is **true** the system will attempt to create a compressed - If "archive" is **true** the system will attempt to create a compressed

View file

@ -165,7 +165,7 @@ def delete_zone_domain(args=None, payload=None):
if not has_failed: if not has_failed:
has_changed = True has_changed = True
memset_api = response.json() memset_api = response.json()
# unset msg as we don't want to return unecessary info to the user. # unset msg as we don't want to return unnecessary info to the user.
msg = None msg = None
return(has_failed, has_changed, memset_api, msg) return(has_failed, has_changed, memset_api, msg)

View file

@ -72,7 +72,7 @@ options:
- Enable booting from specified disk. C((ide|sata|scsi|virtio)\d+) - Enable booting from specified disk. C((ide|sata|scsi|virtio)\d+)
clone: clone:
description: description:
- Name of VM to be cloned. If C(vmid) is setted, C(clone) can take arbitrary value but required for intiating the clone. - Name of VM to be cloned. If C(vmid) is setted, C(clone) can take arbitrary value but required for initiating the clone.
cores: cores:
description: description:
- Specify number of cores per socket. - Specify number of cores per socket.
@ -302,7 +302,7 @@ options:
state: state:
description: description:
- Indicates desired state of the instance. - Indicates desired state of the instance.
- If C(current), the current state of the VM will be fecthed. You can access it with C(results.status) - If C(current), the current state of the VM will be fetched. You can access it with C(results.status)
choices: ['present', 'started', 'absent', 'stopped', 'restarted','current'] choices: ['present', 'started', 'absent', 'stopped', 'restarted','current']
default: present default: present
storage: storage:

View file

@ -41,7 +41,7 @@ options:
default: 127.0.0.1 default: 127.0.0.1
port: port:
description: description:
- The port on which the API is reacheable. - The port on which the API is reachable.
type: int type: int
default: 443 default: 443
insecure_api: insecure_api:

View file

@ -44,7 +44,7 @@ options:
api_url: api_url:
description: description:
- Custom API URL. Overrides the - Custom API URL. Overrides the
ONEANDONE_API_URL environement variable. ONEANDONE_API_URL environment variable.
required: false required: false
name: name:
description: description:

View file

@ -65,7 +65,7 @@ options:
required: true required: true
health_check_path: health_check_path:
description: description:
- Url to call for cheking. Required for HTTP health check. maxLength=1000 - Url to call for checking. Required for HTTP health check. maxLength=1000
required: false required: false
health_check_parse: health_check_parse:
description: description:

View file

@ -249,7 +249,7 @@ class HostModule(OpenNebulaModule):
if desired_template_changes is None: if desired_template_changes is None:
desired_template_changes = dict() desired_template_changes = dict()
# complete the template with speficic ansible parameters # complete the template with specific ansible parameters
if self.is_parameter('labels'): if self.is_parameter('labels'):
desired_template_changes['LABELS'] = self.get_parameter('labels') desired_template_changes['LABELS'] = self.get_parameter('labels')

View file

@ -49,7 +49,7 @@ options:
- Password of the user to login into OpenNebula OneFlow API server. If not set then the value of the C(ONEFLOW_PASSWORD) environment variable is used. - Password of the user to login into OpenNebula OneFlow API server. If not set then the value of the C(ONEFLOW_PASSWORD) environment variable is used.
template_name: template_name:
description: description:
- Name of service template to use to create a new instace of a service - Name of service template to use to create a new instance of a service
template_id: template_id:
description: description:
- ID of a service template to use to create a new instance of a service - ID of a service template to use to create a new instance of a service
@ -132,7 +132,7 @@ EXAMPLES = '''
public_network_id: 21 public_network_id: 21
private_network_id: 26 private_network_id: 26
# Instiate a new service 'foo' if the service doesn't already exist, otherwise do nothing # Instantiate a new service 'foo' if the service doesn't already exist, otherwise do nothing
- one_service: - one_service:
template_id: 53 template_id: 53
service_name: 'foo' service_name: 'foo'
@ -731,7 +731,7 @@ def main():
if template_id and state == 'absent': if template_id and state == 'absent':
module.fail_json(msg="State absent is not valid for template") module.fail_json(msg="State absent is not valid for template")
if template_id and state == 'present': # Intantiate a service if template_id and state == 'present': # Instantiate a service
result = create_service_and_operation(module, auth, template_id, service_name, owner_id, result = create_service_and_operation(module, auth, template_id, service_name, owner_id,
group_id, permissions, custom_attrs, unique, wait, wait_timeout) group_id, permissions, custom_attrs, unique, wait, wait_timeout)
else: else:

View file

@ -167,8 +167,8 @@ options:
disk_saveas: disk_saveas:
description: description:
- Creates an image from a VM disk. - Creates an image from a VM disk.
- It is a dictionary where you have to specife C(name) of the new image. - It is a dictionary where you have to specify C(name) of the new image.
- Optionally you can specife C(disk_id) of the disk you want to save. By default C(disk_id) is 0. - Optionally you can specify C(disk_id) of the disk you want to save. By default C(disk_id) is 0.
- I(NOTE)':' This operation will only be performed on the first VM (if more than one VM ID is passed) - I(NOTE)':' This operation will only be performed on the first VM (if more than one VM ID is passed)
- and the VM has to be in the C(poweredoff) state. - and the VM has to be in the C(poweredoff) state.
- Also this operation will fail if an image with specified C(name) already exists. - Also this operation will fail if an image with specified C(name) already exists.
@ -1386,7 +1386,7 @@ def main():
if exact_count is not None and exact_count < 0: if exact_count is not None and exact_count < 0:
module.fail_json(msg='`exact_count` cannot be less than 0') module.fail_json(msg='`exact_count` cannot be less than 0')
if count <= 0: if count <= 0:
module.fail_json(msg='`count` has to be grater than 0') module.fail_json(msg='`count` has to be greater than 0')
if permissions is not None: if permissions is not None:
import re import re

View file

@ -182,7 +182,7 @@ def main():
network_id = cloud.get_network(name_or_id=network)["id"] network_id = cloud.get_network(name_or_id=network)["id"]
else: else:
network_id = None network_id = None
# check if we have floting ip on given nat_destination network # check if we have floating ip on given nat_destination network
if nat_destination: if nat_destination:
nat_floating_addrs = [addr for addr in server.addresses.get( nat_floating_addrs = [addr for addr in server.addresses.get(
cloud.get_network(nat_destination)['name'], []) cloud.get_network(nat_destination)['name'], [])

View file

@ -64,7 +64,7 @@ ansible_facts:
type: str type: str
sample: "x86_64" sample: "x86_64"
local_gb: local_gb:
description: Total size of local disk storage as updaed in node properties. description: Total size of local disk storage as updated in node properties.
type: str type: str
sample: "10" sample: "10"
cpus: cpus:

Some files were not shown because too many files have changed in this diff Show more