1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Many typo fixes (#7429)

This commit is contained in:
Alex 2023-10-25 23:01:32 +02:00 committed by GitHub
parent f4d8168131
commit e556abb56b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
46 changed files with 66 additions and 66 deletions

View file

@ -204,7 +204,7 @@ def main():
":" + module.params['action'] + ":" + module.params['command'] ":" + module.params['action'] + ":" + module.params['command']
# If current entry exists or fields are different(if the entry does not # If current entry exists or fields are different(if the entry does not
# exists, then the entry wil be created # exists, then the entry will be created
if (not current_entry['exist']) or ( if (not current_entry['exist']) or (
module.params['runlevel'] != current_entry['runlevel'] or module.params['runlevel'] != current_entry['runlevel'] or
module.params['action'] != current_entry['action'] or module.params['action'] != current_entry['action'] or

View file

@ -1501,7 +1501,7 @@ class ClcServer:
return aa_policy_id return aa_policy_id
# #
# This is the function that gets patched to the Request.server object using a lamda closure # This is the function that gets patched to the Request.server object using a lambda closure
# #
@staticmethod @staticmethod

View file

@ -401,7 +401,7 @@ def create_role(configuration):
if len(configuration.node_identities) == 1 and configuration.node_identities[0] is None: if len(configuration.node_identities) == 1 and configuration.node_identities[0] is None:
node_id_specified = False node_id_specified = False
# get rid of None item so we can set an emtpy list for policies, service identities and node identities # get rid of None item so we can set an empty list for policies, service identities and node identities
if not policy_specified: if not policy_specified:
configuration.policies.pop() configuration.policies.pop()

View file

@ -400,7 +400,7 @@ class DconfPreference(object):
rc, out, err = dbus_wrapper.run_command(command) rc, out, err = dbus_wrapper.run_command(command)
if rc != 0: if rc != 0:
self.module.fail_json(msg='dconf failed while reseting the value with error: %s' % err, self.module.fail_json(msg='dconf failed while resetting the value with error: %s' % err,
out=out, out=out,
err=err) err=err)

View file

@ -178,7 +178,7 @@ class DNSimpleV2():
client = Client(sandbox=self.sandbox, email=self.account_email, access_token=self.account_api_token, user_agent="ansible/community.general") client = Client(sandbox=self.sandbox, email=self.account_email, access_token=self.account_api_token, user_agent="ansible/community.general")
else: else:
msg = "Option account_email or account_api_token not provided. " \ msg = "Option account_email or account_api_token not provided. " \
"Dnsimple authentiction with a .dnsimple config file is not " \ "Dnsimple authentication with a .dnsimple config file is not " \
"supported with dnsimple-python>=2.0.0" "supported with dnsimple-python>=2.0.0"
raise DNSimpleException(msg) raise DNSimpleException(msg)
client.identity.whoami() client.identity.whoami()
@ -225,24 +225,24 @@ class DNSimpleV2():
self.client.domains.delete_domain(self.account.id, domain) self.client.domains.delete_domain(self.account.id, domain)
def get_records(self, zone, dnsimple_filter=None): def get_records(self, zone, dnsimple_filter=None):
"""return dns ressource records which match a specified filter""" """return dns resource records which match a specified filter"""
records_list = self._get_paginated_result(self.client.zones.list_records, records_list = self._get_paginated_result(self.client.zones.list_records,
account_id=self.account.id, account_id=self.account.id,
zone=zone, filter=dnsimple_filter) zone=zone, filter=dnsimple_filter)
return [d.__dict__ for d in records_list] return [d.__dict__ for d in records_list]
def delete_record(self, domain, rid): def delete_record(self, domain, rid):
"""delete a single dns ressource record""" """delete a single dns resource record"""
self.client.zones.delete_record(self.account.id, domain, rid) self.client.zones.delete_record(self.account.id, domain, rid)
def update_record(self, domain, rid, ttl=None, priority=None): def update_record(self, domain, rid, ttl=None, priority=None):
"""update a single dns ressource record""" """update a single dns resource record"""
zr = ZoneRecordUpdateInput(ttl=ttl, priority=priority) zr = ZoneRecordUpdateInput(ttl=ttl, priority=priority)
result = self.client.zones.update_record(self.account.id, str(domain), str(rid), zr).data.__dict__ result = self.client.zones.update_record(self.account.id, str(domain), str(rid), zr).data.__dict__
return result return result
def create_record(self, domain, name, record_type, content, ttl=None, priority=None): def create_record(self, domain, name, record_type, content, ttl=None, priority=None):
"""create a single dns ressource record""" """create a single dns resource record"""
zr = ZoneRecordInput(name=name, type=record_type, content=content, ttl=ttl, priority=priority) zr = ZoneRecordInput(name=name, type=record_type, content=content, ttl=ttl, priority=priority)
return self.client.zones.create_record(self.account.id, str(domain), zr).data.__dict__ return self.client.zones.create_record(self.account.id, str(domain), zr).data.__dict__

View file

@ -509,15 +509,15 @@ class DME2(object):
return json.dumps(data, separators=(',', ':')) return json.dumps(data, separators=(',', ':'))
def createRecord(self, data): def createRecord(self, data):
# @TODO update the cache w/ resultant record + id when impleneted # @TODO update the cache w/ resultant record + id when implemented
return self.query(self.record_url, 'POST', data) return self.query(self.record_url, 'POST', data)
def updateRecord(self, record_id, data): def updateRecord(self, record_id, data):
# @TODO update the cache w/ resultant record + id when impleneted # @TODO update the cache w/ resultant record + id when implemented
return self.query(self.record_url + '/' + str(record_id), 'PUT', data) return self.query(self.record_url + '/' + str(record_id), 'PUT', data)
def deleteRecord(self, record_id): def deleteRecord(self, record_id):
# @TODO remove record from the cache when impleneted # @TODO remove record from the cache when implemented
return self.query(self.record_url + '/' + str(record_id), 'DELETE') return self.query(self.record_url + '/' + str(record_id), 'DELETE')
def getMonitor(self, record_id): def getMonitor(self, record_id):

View file

@ -485,7 +485,7 @@ class GitLabUser(object):
''' '''
@param user User object @param user User object
@param identites List of identities to be added/updated @param identities List of identities to be added/updated
@param overwrite_identities Overwrite user identities with identities passed to this module @param overwrite_identities Overwrite user identities with identities passed to this module
''' '''
def add_identities(self, user, identities, overwrite_identities=False): def add_identities(self, user, identities, overwrite_identities=False):
@ -504,7 +504,7 @@ class GitLabUser(object):
''' '''
@param user User object @param user User object
@param identites List of identities to be added/updated @param identities List of identities to be added/updated
''' '''
def delete_identities(self, user, identities): def delete_identities(self, user, identities):
changed = False changed = False

View file

@ -439,7 +439,7 @@ class Homectl(object):
self.result['changed'] = True self.result['changed'] = True
if self.disksize: if self.disksize:
# convert humand readble to bytes # convert human readable to bytes
if self.disksize != record.get('diskSize'): if self.disksize != record.get('diskSize'):
record['diskSize'] = human_to_bytes(self.disksize) record['diskSize'] = human_to_bytes(self.disksize)
self.result['changed'] = True self.result['changed'] = True

View file

@ -84,7 +84,7 @@ ilo_redfish_command:
type: dict type: dict
contains: contains:
ret: ret:
description: Return True/False based on whether the operation was performed succesfully. description: Return True/False based on whether the operation was performed successfully.
type: bool type: bool
msg: msg:
description: Status of the operation performed on the iLO. description: Status of the operation performed on the iLO.

View file

@ -133,7 +133,7 @@ def _check_new_pkg(module, package, repository_path):
def _check_installed_pkg(module, package, repository_path): def _check_installed_pkg(module, package, repository_path):
""" """
Check the package on AIX. Check the package on AIX.
It verifies if the package is installed and informations It verifies if the package is installed and information
:param module: Ansible module parameters spec. :param module: Ansible module parameters spec.
:param package: Package/fileset name. :param package: Package/fileset name.

View file

@ -69,7 +69,7 @@ EXAMPLES = '''
RETURN = ''' RETURN = '''
data: data:
description: "JSON parsed response from ipbase.com. Please refer to U(https://ipbase.com/docs/info) for the detailled structure of the response." description: "JSON parsed response from ipbase.com. Please refer to U(https://ipbase.com/docs/info) for the detailed structure of the response."
returned: success returned: success
type: dict type: dict
sample: { sample: {

View file

@ -458,7 +458,7 @@ def main():
# The issue comes when wanting to restore state from empty iptable-save's # The issue comes when wanting to restore state from empty iptable-save's
# output... what happens when, say: # output... what happens when, say:
# - no table is specified, and iptables-save's output is only nat table; # - no table is specified, and iptables-save's output is only nat table;
# - we give filter's ruleset to iptables-restore, that locks ourselve out # - we give filter's ruleset to iptables-restore, that locks ourselves out
# of the host; # of the host;
# then trying to roll iptables state back to the previous (working) setup # then trying to roll iptables state back to the previous (working) setup
# doesn't override current filter table because no filter table is stored # doesn't override current filter table because no filter table is stored

View file

@ -44,7 +44,7 @@ options:
choices: [ attach, comment, create, edit, fetch, link, search, transition, update, worklog ] choices: [ attach, comment, create, edit, fetch, link, search, transition, update, worklog ]
description: description:
- The operation to perform. - The operation to perform.
- V(worklog) was added in community.genereal 6.5.0. - V(worklog) was added in community.general 6.5.0.
username: username:
type: str type: str

View file

@ -17,7 +17,7 @@ short_description: Allows administration of Keycloak authentication required act
description: description:
- This module can register, update and delete required actions. - This module can register, update and delete required actions.
- It also filters out any duplicate required actions by their alias. The first ocurrence is preserved. - It also filters out any duplicate required actions by their alias. The first occurrence is preserved.
version_added: 7.1.0 version_added: 7.1.0

View file

@ -39,7 +39,7 @@ options:
description: description:
- An URL of the alternative overlays list that defines the overlay to install. - An URL of the alternative overlays list that defines the overlay to install.
This list will be fetched and saved under C(${overlay_defs}/${name}.xml), where This list will be fetched and saved under C(${overlay_defs}/${name}.xml), where
C(overlay_defs) is readed from the Layman's configuration. C(overlay_defs) is read from the Layman's configuration.
aliases: [url] aliases: [url]
type: str type: str
state: state:

View file

@ -207,7 +207,7 @@ class LdapAttrs(LdapGeneric):
self.ordered = self.module.params['ordered'] self.ordered = self.module.params['ordered']
def _order_values(self, values): def _order_values(self, values):
""" Preprend X-ORDERED index numbers to attribute's values. """ """ Prepend X-ORDERED index numbers to attribute's values. """
ordered_values = [] ordered_values = []
if isinstance(values, list): if isinstance(values, list):

View file

@ -213,7 +213,7 @@ class LdapEntry(LdapGeneric):
self.connection.delete_s(self.dn) self.connection.delete_s(self.dn)
def _delete_recursive(): def _delete_recursive():
""" Attempt recurive deletion using the subtree-delete control. """ Attempt recursive deletion using the subtree-delete control.
If that fails, do it manually. """ If that fails, do it manually. """
try: try:
subtree_delete = ldap.controls.ValueLessRequestControl('1.2.840.113556.1.4.805') subtree_delete = ldap.controls.ValueLessRequestControl('1.2.840.113556.1.4.805')

View file

@ -200,7 +200,7 @@ from ansible.module_utils.basic import AnsibleModule
def split_pid_name(pid_name): def split_pid_name(pid_name):
""" """
Split the entry PID/Program name into the PID (int) and the name (str) Split the entry PID/Program name into the PID (int) and the name (str)
:param pid_name: PID/Program String seperated with a dash. E.g 51/sshd: returns pid = 51 and name = sshd :param pid_name: PID/Program String separated with a dash. E.g 51/sshd: returns pid = 51 and name = sshd
:return: PID (int) and the program name (str) :return: PID (int) and the program name (str)
""" """
try: try:

View file

@ -420,7 +420,7 @@ class LXDProfileManagement(object):
Rebuild the Profile by the configuration provided in the play. Rebuild the Profile by the configuration provided in the play.
Existing configurations are discarded. Existing configurations are discarded.
This ist the default behavior. This is the default behavior.
Args: Args:
dict(config): Dict with the old config in 'metadata' and new config in 'config' dict(config): Dict with the old config in 'metadata' and new config in 'config'

View file

@ -382,7 +382,7 @@ def main():
part = MIMEText(body + "\n\n", _subtype=subtype, _charset=charset) part = MIMEText(body + "\n\n", _subtype=subtype, _charset=charset)
msg.attach(part) msg.attach(part)
# NOTE: Backware compatibility with old syntax using space as delimiter is not retained # NOTE: Backward compatibility with old syntax using space as delimiter is not retained
# This breaks files with spaces in it :-( # This breaks files with spaces in it :-(
for filename in attach_files: for filename in attach_files:
try: try:

View file

@ -169,7 +169,7 @@ records:
sample: fancy-hostname sample: fancy-hostname
type: type:
description: the record type description: the record type
returned: succcess returned: success
type: str type: str
sample: A sample: A
value: value:

View file

@ -1759,7 +1759,7 @@ class Nmcli(object):
'bridge.priority': self.priority, 'bridge.priority': self.priority,
'bridge.stp': self.stp, 'bridge.stp': self.stp,
}) })
# priority make sense when stp enabed, otherwise nmcli keeps bridge-priority to 32768 regrdless of input. # priority make sense when stp enabled, otherwise nmcli keeps bridge-priority to 32768 regrdless of input.
# force ignoring to save idempotency # force ignoring to save idempotency
if self.stp: if self.stp:
options.update({'bridge.priority': self.priority}) options.update({'bridge.priority': self.priority})

View file

@ -47,7 +47,7 @@ options:
type: str type: str
template_name: template_name:
description: description:
- Name of VM template to use to create a new instace - Name of VM template to use to create a new instance
type: str type: str
template_id: template_id:
description: description:
@ -195,12 +195,12 @@ options:
version_added: '0.2.0' version_added: '0.2.0'
datastore_id: datastore_id:
description: description:
- Name of Datastore to use to create a new instace - Name of Datastore to use to create a new instance
version_added: '0.2.0' version_added: '0.2.0'
type: int type: int
datastore_name: datastore_name:
description: description:
- Name of Datastore to use to create a new instace - Name of Datastore to use to create a new instance
version_added: '0.2.0' version_added: '0.2.0'
type: str type: str
updateconf: updateconf:
@ -1390,7 +1390,7 @@ def check_name_attribute(module, attributes):
if attributes.get("NAME"): if attributes.get("NAME"):
import re import re
if re.match(r'^[^#]+#*$', attributes.get("NAME")) is None: if re.match(r'^[^#]+#*$', attributes.get("NAME")) is None:
module.fail_json(msg="Ilegal 'NAME' attribute: '" + attributes.get("NAME") + module.fail_json(msg="Illegal 'NAME' attribute: '" + attributes.get("NAME") +
"' .Signs '#' are allowed only at the end of the name and the name cannot contain only '#'.") "' .Signs '#' are allowed only at the end of the name and the name cannot contain only '#'.")

View file

@ -77,7 +77,7 @@ EXAMPLES = '''
delegate_to: localhost delegate_to: localhost
register: result register: result
- name: Print fetched information about paginated, filtered ans sorted list of Enclosures - name: Print fetched information about paginated, filtered and sorted list of Enclosures
ansible.builtin.debug: ansible.builtin.debug:
msg: "{{ result.enclosures }}" msg: "{{ result.enclosures }}"

View file

@ -19,7 +19,7 @@ description:
author: "Pascal HERAUD (@pascalheraud)" author: "Pascal HERAUD (@pascalheraud)"
notes: notes:
- Uses the python OVH Api U(https://github.com/ovh/python-ovh). - Uses the python OVH Api U(https://github.com/ovh/python-ovh).
You have to create an application (a key and secret) with a consummer You have to create an application (a key and secret) with a consumer
key as described into U(https://docs.ovh.com/gb/en/customer/first-steps-with-ovh-api/) key as described into U(https://docs.ovh.com/gb/en/customer/first-steps-with-ovh-api/)
requirements: requirements:
- ovh >= 0.4.8 - ovh >= 0.4.8

View file

@ -16,7 +16,7 @@ author: Francois Lallart (@fraff)
version_added: '0.2.0' version_added: '0.2.0'
short_description: Manage OVH monthly billing short_description: Manage OVH monthly billing
description: description:
- Enable monthly billing on OVH cloud intances (be aware OVH does not allow to disable it). - Enable monthly billing on OVH cloud instances (be aware OVH does not allow to disable it).
requirements: [ "ovh" ] requirements: [ "ovh" ]
extends_documentation_fragment: extends_documentation_fragment:
- community.general.attributes - community.general.attributes

View file

@ -127,7 +127,7 @@ options:
link_text: link_text:
type: str type: str
description: description:
- A short decription of the link_url. - A short description of the link_url.
required: false required: false
version_added: 7.4.0 version_added: 7.4.0
source: source:

View file

@ -42,7 +42,7 @@ options:
required: true required: true
align: align:
description: description:
- Set alignment for newly created partitions. Use V(undefined) for parted default aligment. - Set alignment for newly created partitions. Use V(undefined) for parted default alignment.
type: str type: str
choices: [ cylinder, minimal, none, optimal, undefined ] choices: [ cylinder, minimal, none, optimal, undefined ]
default: optimal default: optimal

View file

@ -48,7 +48,7 @@ options:
description: description:
- List of regular expressions that can be used to detect prompts during pear package installation to answer the expected question. - List of regular expressions that can be used to detect prompts during pear package installation to answer the expected question.
- Prompts will be processed in the same order as the packages list. - Prompts will be processed in the same order as the packages list.
- You can optionnally specify an answer to any question in the list. - You can optionally specify an answer to any question in the list.
- If no answer is provided, the list item will only contain the regular expression. - If no answer is provided, the list item will only contain the regular expression.
- "To specify an answer, the item will be a dict with the regular expression as key and the answer as value C(my_regular_expression: 'an_answer')." - "To specify an answer, the item will be a dict with the regular expression as key and the answer as value C(my_regular_expression: 'an_answer')."
- You can provide a list containing items with or without answer. - You can provide a list containing items with or without answer.
@ -87,7 +87,7 @@ EXAMPLES = r'''
- name: Install multiple pear/pecl packages at once with prompts. - name: Install multiple pear/pecl packages at once with prompts.
Prompts will be processed on the same order as the packages order. Prompts will be processed on the same order as the packages order.
If there is more prompts than packages, packages without prompts will be installed without any prompt expected. If there is more prompts than packages, packages without prompts will be installed without any prompt expected.
If there is more packages than prompts, additionnal prompts will be ignored. If there is more packages than prompts, additional prompts will be ignored.
community.general.pear: community.general.pear:
name: pecl/gnupg, pecl/apcu name: pecl/gnupg, pecl/apcu
state: present state: present
@ -98,7 +98,7 @@ EXAMPLES = r'''
- name: Install multiple pear/pecl packages at once skipping the first prompt. - name: Install multiple pear/pecl packages at once skipping the first prompt.
Prompts will be processed on the same order as the packages order. Prompts will be processed on the same order as the packages order.
If there is more prompts than packages, packages without prompts will be installed without any prompt expected. If there is more prompts than packages, packages without prompts will be installed without any prompt expected.
If there is more packages than prompts, additionnal prompts will be ignored. If there is more packages than prompts, additional prompts will be ignored.
community.general.pear: community.general.pear:
name: pecl/gnupg, pecl/apcu name: pecl/gnupg, pecl/apcu
state: present state: present

View file

@ -26,7 +26,7 @@ notes:
C(subscription-manager) itself gets credentials only as arguments of command line C(subscription-manager) itself gets credentials only as arguments of command line
parameters, which is I(not) secure, as they can be easily stolen by checking the parameters, which is I(not) secure, as they can be easily stolen by checking the
process listing on the system. Due to limitations of the D-Bus interface of C(rhsm), process listing on the system. Due to limitations of the D-Bus interface of C(rhsm),
the module will I(not) use D-Bus for registation when trying either to register the module will I(not) use D-Bus for registration when trying either to register
using O(token), or when specifying O(environment), or when the system is old using O(token), or when specifying O(environment), or when the system is old
(typically RHEL 6 and older). (typically RHEL 6 and older).
- In order to register a system, subscription-manager requires either a username and password, or an activationkey and an Organization ID. - In order to register a system, subscription-manager requires either a username and password, or an activationkey and an Organization ID.

View file

@ -75,7 +75,7 @@ options:
value: value:
description: description:
- A redis config value. When memory size is needed, it is possible - A redis config value. When memory size is needed, it is possible
to specify it in the usal form of 1KB, 2M, 400MB where the base is 1024. to specify it in the usual form of 1KB, 2M, 400MB where the base is 1024.
Units are case insensitive i.e. 1m = 1mb = 1M = 1MB. Units are case insensitive i.e. 1m = 1mb = 1M = 1MB.
type: str type: str

View file

@ -108,11 +108,11 @@ rundeck_response:
returned: failed returned: failed
type: str type: str
before: before:
description: Dictionary containing ACL policy informations before modification. description: Dictionary containing ACL policy information before modification.
returned: success returned: success
type: dict type: dict
after: after:
description: Dictionary containing ACL policy informations after modification. description: Dictionary containing ACL policy information after modification.
returned: success returned: success
type: dict type: dict
''' '''

View file

@ -90,7 +90,7 @@ options:
secret_environment_variables: secret_environment_variables:
description: description:
- Secret environment variables of the container namespace. - Secret environment variables of the container namespace.
- Updating thoses values will not output a C(changed) state in Ansible. - Updating those values will not output a C(changed) state in Ansible.
- Injected in container at runtime. - Injected in container at runtime.
type: dict type: dict
default: {} default: {}

View file

@ -80,7 +80,7 @@ options:
secret_environment_variables: secret_environment_variables:
description: description:
- Secret environment variables of the container namespace. - Secret environment variables of the container namespace.
- Updating thoses values will not output a C(changed) state in Ansible. - Updating those values will not output a C(changed) state in Ansible.
- Injected in containers at runtime. - Injected in containers at runtime.
type: dict type: dict
default: {} default: {}

View file

@ -34,7 +34,7 @@ options:
state: state:
type: str type: str
description: description:
- Indicate desired state of the container regitry. - Indicate desired state of the container registry.
default: present default: present
choices: choices:
- present - present

View file

@ -90,7 +90,7 @@ options:
secret_environment_variables: secret_environment_variables:
description: description:
- Secret environment variables of the function. - Secret environment variables of the function.
- Updating thoses values will not output a C(changed) state in Ansible. - Updating those values will not output a C(changed) state in Ansible.
- Injected in function at runtime. - Injected in function at runtime.
type: dict type: dict
default: {} default: {}

View file

@ -80,7 +80,7 @@ options:
secret_environment_variables: secret_environment_variables:
description: description:
- Secret environment variables of the function namespace. - Secret environment variables of the function namespace.
- Updating thoses values will not output a C(changed) state in Ansible. - Updating those values will not output a C(changed) state in Ansible.
- Injected in functions at runtime. - Injected in functions at runtime.
type: dict type: dict
default: {} default: {}

View file

@ -266,14 +266,14 @@ options:
opsworks: opsworks:
description: description:
- The elastigroup OpsWorks integration configration.; - The elastigroup OpsWorks integration configuration.;
Expects the following key - Expects the following key -
layer_id (String) layer_id (String)
type: dict type: dict
persistence: persistence:
description: description:
- The Stateful elastigroup configration.; - The Stateful elastigroup configuration.;
Accepts the following keys - Accepts the following keys -
should_persist_root_device (Boolean), should_persist_root_device (Boolean),
should_persist_block_devices (Boolean), should_persist_block_devices (Boolean),

View file

@ -72,7 +72,7 @@ options:
default: present default: present
appliance: appliance:
description: description:
- Applicance to be used in host creation. - Appliance to be used in host creation.
- Required if O(state=present) and host does not yet exist. - Required if O(state=present) and host does not yet exist.
type: str type: str
default: backend default: backend

View file

@ -447,7 +447,7 @@ class NosystemdTimezone(Timezone):
filename: The name of the file to edit. filename: The name of the file to edit.
regexp: The regular expression to search with. regexp: The regular expression to search with.
value: The line which will be inserted. value: The line which will be inserted.
key: For what key the file is being editted. key: For what key the file is being edited.
""" """
# Read the file # Read the file
try: try:
@ -725,7 +725,7 @@ class BSDTimezone(Timezone):
localtime_file = '/etc/localtime' localtime_file = '/etc/localtime'
# Strategy 1: # Strategy 1:
# If /etc/localtime does not exist, assum the timezone is UTC. # If /etc/localtime does not exist, assume the timezone is UTC.
if not os.path.exists(localtime_file): if not os.path.exists(localtime_file):
self.module.warn('Could not read /etc/localtime. Assuming UTC.') self.module.warn('Could not read /etc/localtime. Assuming UTC.')
return 'UTC' return 'UTC'

View file

@ -170,7 +170,7 @@ result:
description: The list of the denied network names description: The list of the denied network names
type: list type: list
hot_standby: hot_standby:
description: Use hot standy description: Use hot standby
type: bool type: bool
path: path:
description: Path name description: Path name

View file

@ -88,7 +88,7 @@ result:
description: The list of the denied network names description: The list of the denied network names
type: list type: list
hot_standby: hot_standby:
description: Use hot standy description: Use hot standby
type: bool type: bool
path: path:
description: Path name description: Path name

View file

@ -135,7 +135,7 @@ def change_keys(recs, key='uuid', filter_func=None):
for param_name, param_value in rec.items(): for param_name, param_value in rec.items():
# param_value may be of type xmlrpc.client.DateTime, # param_value may be of type xmlrpc.client.DateTime,
# which is not simply convertable to str. # which is not simply convertible to str.
# Use 'value' attr to get the str value, # Use 'value' attr to get the str value,
# following an example in xmlrpc.client.DateTime document # following an example in xmlrpc.client.DateTime document
if hasattr(param_value, "value"): if hasattr(param_value, "value"):

View file

@ -36,12 +36,12 @@ notes:
values V(none) and V(dhcp) have same effect. More info here: values V(none) and V(dhcp) have same effect. More info here:
U(https://www.citrix.com/community/citrix-developer/citrix-hypervisor-developer/citrix-hypervisor-developing-products/citrix-hypervisor-staticip.html)' U(https://www.citrix.com/community/citrix-developer/citrix-hypervisor-developer/citrix-hypervisor-developing-products/citrix-hypervisor-staticip.html)'
- 'On platforms without official support for network configuration inside a guest OS, network parameters will be written to xenstore - 'On platforms without official support for network configuration inside a guest OS, network parameters will be written to xenstore
C(vm-data/networks/<vif_device>) key. Parameters can be inspected by using C(xenstore ls) and C(xenstore read) tools on \*nix guests or trough C(vm-data/networks/<vif_device>) key. Parameters can be inspected by using C(xenstore ls) and C(xenstore read) tools on \*nix guests or through
WMI interface on Windows guests. They can also be found in VM facts C(instance.xenstore_data) key as returned by the module. It is up to the user WMI interface on Windows guests. They can also be found in VM facts C(instance.xenstore_data) key as returned by the module. It is up to the user
to implement a boot time scripts or custom agent that will read the parameters from xenstore and configure network with given parameters. to implement a boot time scripts or custom agent that will read the parameters from xenstore and configure network with given parameters.
Take note that for xenstore data to become available inside a guest, a VM restart is needed hence module will require VM restart if any Take note that for xenstore data to become available inside a guest, a VM restart is needed hence module will require VM restart if any
parameter is changed. This is a limitation of XenAPI and xenstore. Considering these limitations, network configuration trough xenstore is most parameter is changed. This is a limitation of XenAPI and xenstore. Considering these limitations, network configuration through xenstore is most
useful for bootstraping newly deployed VMs, much less for reconfiguring existing ones. More info here: useful for bootstrapping newly deployed VMs, much less for reconfiguring existing ones. More info here:
U(https://support.citrix.com/article/CTX226713)' U(https://support.citrix.com/article/CTX226713)'
requirements: requirements:
- python >= 2.6 - python >= 2.6
@ -249,7 +249,7 @@ options:
custom_params: custom_params:
description: description:
- Define a list of custom VM params to set on VM. - Define a list of custom VM params to set on VM.
- Useful for advanced users familiar with managing VM params trough xe CLI. - Useful for advanced users familiar with managing VM params through xe CLI.
- A custom value object takes two fields O(custom_params[].key) and O(custom_params[].value) (see example below). - A custom value object takes two fields O(custom_params[].key) and O(custom_params[].value) (see example below).
type: list type: list
elements: dict elements: dict
@ -272,7 +272,7 @@ options:
default: false default: false
state_change_timeout: state_change_timeout:
description: description:
- 'By default, module will wait indefinitely for VM to accquire an IP address if O(wait_for_ip_address=true).' - 'By default, module will wait indefinitely for VM to acquire an IP address if O(wait_for_ip_address=true).'
- If this parameter is set to positive value, the module will instead wait specified number of seconds for the state change. - If this parameter is set to positive value, the module will instead wait specified number of seconds for the state change.
- In case of timeout, module will generate an error message. - In case of timeout, module will generate an error message.
type: int type: int
@ -990,7 +990,7 @@ class XenServerVM(XenServerObject):
vif_device = vm_vif_params['device'] vif_device = vm_vif_params['device']
# A user could have manually changed network # A user could have manually changed network
# or mac e.g. trough XenCenter and then also # or mac e.g. through XenCenter and then also
# make those changes in playbook manually. # make those changes in playbook manually.
# In that case, module will not detect any # In that case, module will not detect any
# changes and info in xenstore_data will # changes and info in xenstore_data will

View file

@ -62,7 +62,7 @@ options:
be equal to the length of O(value). be equal to the length of O(value).
- If only one O(value_type) is provided, but O(value) contains more than - If only one O(value_type) is provided, but O(value) contains more than
on element, that O(value_type) will be applied to all elements of O(value). on element, that O(value_type) will be applied to all elements of O(value).
- If the O(property) being set is an array and it can possibly have ony one - If the O(property) being set is an array and it can possibly have only one
element in the array, then O(force_array=true) must be used to ensure element in the array, then O(force_array=true) must be used to ensure
that C(xfconf-query) will interpret the value as an array rather than a that C(xfconf-query) will interpret the value as an array rather than a
scalar. scalar.