mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
cloud: ovirt: add note that modules works with RHV as well (#23808)
This commit is contained in:
parent
4594bee65a
commit
13c2c292f2
40 changed files with 159 additions and 159 deletions
|
@ -27,11 +27,11 @@ ANSIBLE_METADATA = {'metadata_version': '1.0',
|
|||
DOCUMENTATION = '''
|
||||
---
|
||||
module: ovirt_affinity_groups
|
||||
short_description: Module to manage affinity groups in oVirt
|
||||
short_description: Module to manage affinity groups in oVirt/RHV
|
||||
version_added: "2.3"
|
||||
author: "Ondra Machacek (@machacekondra)"
|
||||
description:
|
||||
- "This module manage affinity groups in oVirt. It can also manage assignments
|
||||
- "This module manage affinity groups in oVirt/RHV. It can also manage assignments
|
||||
of those groups to VMs."
|
||||
options:
|
||||
name:
|
||||
|
@ -52,12 +52,12 @@ options:
|
|||
host_enforcing:
|
||||
description:
|
||||
- "If I(true) VM cannot start on host if it does not satisfy the C(host_rule)."
|
||||
- "C(This parameter is support since oVirt 4.1 version.)"
|
||||
- "C(This parameter is support since oVirt/RHV 4.1 version.)"
|
||||
host_rule:
|
||||
description:
|
||||
- "If I(positive) I(all) VMs in this group should run on the this host."
|
||||
- "If I(negative) I(no) VMs in this group should run on the this host."
|
||||
- "C(This parameter is support since oVirt 4.1 version.)"
|
||||
- "C(This parameter is support since oVirt/RHV 4.1 version.)"
|
||||
choices:
|
||||
- positive
|
||||
- negative
|
||||
|
@ -79,7 +79,7 @@ options:
|
|||
hosts:
|
||||
description:
|
||||
- "List of the hosts names, which should have assigned this affinity group."
|
||||
- "C(This parameter is support since oVirt 4.1 version.)"
|
||||
- "C(This parameter is support since oVirt/RHV 4.1 version.)"
|
||||
extends_documentation_fragment: ovirt
|
||||
'''
|
||||
|
||||
|
@ -128,7 +128,7 @@ id:
|
|||
type: str
|
||||
sample: 7de90f31-222c-436c-a1ca-7e655bd5b60c
|
||||
affinity_group:
|
||||
description: "Dictionary of all the affinity group attributes. Affinity group attributes can be found on your oVirt instance
|
||||
description: "Dictionary of all the affinity group attributes. Affinity group attributes can be found on your oVirt/RHV instance
|
||||
at following url: https://ovirt.example.com/ovirt-engine/api/model#types/affinity_group."
|
||||
returned: On success if affinity group is found.
|
||||
'''
|
||||
|
@ -175,7 +175,7 @@ class AffinityGroupsModule(BaseModule):
|
|||
ag_service.vms_service().vm_service(vm).remove()
|
||||
for vm in to_add:
|
||||
# API return <action> element instead of VM element, so we
|
||||
# need to WA this issue, for oVirt versions having this bug:
|
||||
# need to WA this issue, for oVirt/RHV versions having this bug:
|
||||
try:
|
||||
ag_service.vms_service().add(otypes.Vm(id=vm))
|
||||
except ValueError as ex:
|
||||
|
|
|
@ -27,11 +27,11 @@ ANSIBLE_METADATA = {'metadata_version': '1.0',
|
|||
DOCUMENTATION = '''
|
||||
---
|
||||
module: ovirt_affinity_labels
|
||||
short_description: Module to manage affinity labels in oVirt
|
||||
short_description: Module to manage affinity labels in oVirt/RHV
|
||||
version_added: "2.3"
|
||||
author: "Ondra Machacek (@machacekondra)"
|
||||
description:
|
||||
- "This module manage affinity labels in oVirt. It can also manage assignments
|
||||
- "This module manage affinity labels in oVirt/RHV. It can also manage assignments
|
||||
of those labels to hosts and VMs."
|
||||
options:
|
||||
name:
|
||||
|
@ -88,7 +88,7 @@ id:
|
|||
type: str
|
||||
sample: 7de90f31-222c-436c-a1ca-7e655bd5b60c
|
||||
affinity_label:
|
||||
description: "Dictionary of all the affinity label attributes. Affinity label attributes can be found on your oVirt instance
|
||||
description: "Dictionary of all the affinity label attributes. Affinity label attributes can be found on your oVirt/RHV instance
|
||||
at following url: https://ovirt.example.com/ovirt-engine/api/model#types/affinity_label."
|
||||
returned: On success if affinity label is found.
|
||||
'''
|
||||
|
|
|
@ -27,11 +27,11 @@ ANSIBLE_METADATA = {'metadata_version': '1.0',
|
|||
DOCUMENTATION = '''
|
||||
---
|
||||
module: ovirt_affinity_labels_facts
|
||||
short_description: Retrieve facts about one or more oVirt affinity labels
|
||||
short_description: Retrieve facts about one or more oVirt/RHV affinity labels
|
||||
author: "Ondra Machacek (@machacekondra)"
|
||||
version_added: "2.3"
|
||||
description:
|
||||
- "Retrieve facts about one or more oVirt affinity labels."
|
||||
- "Retrieve facts about one or more oVirt/RHV affinity labels."
|
||||
notes:
|
||||
- "This module creates a new top-level C(ovirt_affinity_labels) fact, which
|
||||
contains a list of affinity labels."
|
||||
|
|
|
@ -27,12 +27,12 @@ ANSIBLE_METADATA = {'metadata_version': '1.0',
|
|||
DOCUMENTATION = '''
|
||||
---
|
||||
module: ovirt_auth
|
||||
short_description: "Module to manage authentication to oVirt"
|
||||
short_description: "Module to manage authentication to oVirt/RHV"
|
||||
author: "Ondra Machacek (@machacekondra)"
|
||||
version_added: "2.2"
|
||||
description:
|
||||
- "This module authenticates to oVirt engine and creates SSO token, which should be later used in
|
||||
all other oVirt modules, so all modules don't need to perform login and logout.
|
||||
- "This module authenticates to oVirt/RHV engine and creates SSO token, which should be later used in
|
||||
all other oVirt/RHV modules, so all modules don't need to perform login and logout.
|
||||
This module returns an Ansible fact called I(ovirt_auth). Every module can use this
|
||||
fact as C(auth) parameter, to perform authentication."
|
||||
options:
|
||||
|
@ -91,19 +91,19 @@ notes:
|
|||
- "Everytime you use ovirt_auth module to obtain ticket, you need to also revoke the ticket,
|
||||
when you no longer need it, otherwise the ticket would be revoked by engine when it expires.
|
||||
For an example of how to achieve that, please take a look at I(examples) section."
|
||||
- "In order to use this module you have to install oVirt Python SDK.
|
||||
- "In order to use this module you have to install oVirt/RHV Python SDK.
|
||||
To ensure it's installed with correct version you can create the following task:
|
||||
I(pip: name=ovirt-engine-sdk-python version=4.0.0)"
|
||||
- "Note that in oVirt 4.1 if you want to use a user which is not administrator
|
||||
- "Note that in oVirt/RHV 4.1 if you want to use a user which is not administrator
|
||||
you must enable the I(ENGINE_API_FILTER_BY_DEFAULT) variable in engine. In
|
||||
oVirt 4.2 and later it's enabled by default."
|
||||
oVirt/RHV 4.2 and later it's enabled by default."
|
||||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
tasks:
|
||||
- block:
|
||||
# Create a vault with `ovirt_password` variable which store your
|
||||
# oVirt user's password, and include that yaml file with variable:
|
||||
# oVirt/RHV user's password, and include that yaml file with variable:
|
||||
- include_vars: ovirt_password.yml
|
||||
|
||||
- name: Obtain SSO token with using username/password credentials
|
||||
|
@ -129,17 +129,17 @@ tasks:
|
|||
|
||||
RETURN = '''
|
||||
ovirt_auth:
|
||||
description: Authentication facts, needed to perform authentication to oVirt.
|
||||
description: Authentication facts, needed to perform authentication to oVirt/RHV.
|
||||
returned: success
|
||||
type: dictionary
|
||||
contains:
|
||||
token:
|
||||
description: SSO token which is used for connection to oVirt engine.
|
||||
description: SSO token which is used for connection to oVirt/RHV engine.
|
||||
returned: success
|
||||
type: string
|
||||
sample: "kdfVWp9ZgeewBXV-iq3Js1-xQJZPSEQ334FLb3eksoEPRaab07DhZ8ED8ghz9lJd-MQ2GqtRIeqhvhCkrUWQPw"
|
||||
url:
|
||||
description: URL of the oVirt engine API endpoint.
|
||||
description: URL of the oVirt/RHV engine API endpoint.
|
||||
returned: success
|
||||
type: string
|
||||
sample: "https://ovirt.example.com/ovirt-engine/api"
|
||||
|
|
|
@ -27,11 +27,11 @@ ANSIBLE_METADATA = {'metadata_version': '1.0',
|
|||
DOCUMENTATION = '''
|
||||
---
|
||||
module: ovirt_clusters
|
||||
short_description: Module to manage clusters in oVirt
|
||||
short_description: Module to manage clusters in oVirt/RHV
|
||||
version_added: "2.3"
|
||||
author: "Ondra Machacek (@machacekondra)"
|
||||
description:
|
||||
- "Module to manage clusters in oVirt"
|
||||
- "Module to manage clusters in oVirt/RHV"
|
||||
options:
|
||||
name:
|
||||
description:
|
||||
|
@ -81,7 +81,7 @@ options:
|
|||
- "If I(True) enables KSM C(ksm) for best berformance inside NUMA nodes."
|
||||
ha_reservation:
|
||||
description:
|
||||
- "If I(True) enable the oVirt to monitor cluster capacity for highly
|
||||
- "If I(True) enable the oVirt/RHV to monitor cluster capacity for highly
|
||||
available virtual machines."
|
||||
trusted_service:
|
||||
description:
|
||||
|
@ -254,7 +254,7 @@ id:
|
|||
type: str
|
||||
sample: 7de90f31-222c-436c-a1ca-7e655bd5b60c
|
||||
cluster:
|
||||
description: "Dictionary of all the cluster attributes. Cluster attributes can be found on your oVirt instance
|
||||
description: "Dictionary of all the cluster attributes. Cluster attributes can be found on your oVirt/RHV instance
|
||||
at following url: https://ovirt.example.com/ovirt-engine/api/model#types/cluster."
|
||||
returned: On success if cluster is found.
|
||||
'''
|
||||
|
|
|
@ -27,18 +27,18 @@ ANSIBLE_METADATA = {'metadata_version': '1.0',
|
|||
DOCUMENTATION = '''
|
||||
---
|
||||
module: ovirt_clusters_facts
|
||||
short_description: Retrieve facts about one or more oVirt clusters
|
||||
short_description: Retrieve facts about one or more oVirt/RHV clusters
|
||||
author: "Ondra Machacek (@machacekondra)"
|
||||
version_added: "2.3"
|
||||
description:
|
||||
- "Retrieve facts about one or more oVirt clusters."
|
||||
- "Retrieve facts about one or more oVirt/RHV clusters."
|
||||
notes:
|
||||
- "This module creates a new top-level C(ovirt_clusters) fact, which
|
||||
contains a list of clusters."
|
||||
options:
|
||||
pattern:
|
||||
description:
|
||||
- "Search term which is accepted by oVirt search backend."
|
||||
- "Search term which is accepted by oVirt/RHV search backend."
|
||||
- "For example to search cluster X from datacenter Y use following pattern:
|
||||
name=X and datacenter=Y"
|
||||
extends_documentation_fragment: ovirt_facts
|
||||
|
|
|
@ -27,11 +27,11 @@ ANSIBLE_METADATA = {'metadata_version': '1.0',
|
|||
DOCUMENTATION = '''
|
||||
---
|
||||
module: ovirt_datacenters
|
||||
short_description: Module to manage data centers in oVirt
|
||||
short_description: Module to manage data centers in oVirt/RHV
|
||||
version_added: "2.3"
|
||||
author: "Ondra Machacek (@machacekondra)"
|
||||
description:
|
||||
- "Module to manage data centers in oVirt"
|
||||
- "Module to manage data centers in oVirt/RHV"
|
||||
options:
|
||||
name:
|
||||
description:
|
||||
|
@ -62,7 +62,7 @@ options:
|
|||
mac_pool:
|
||||
description:
|
||||
- "MAC pool to be used by this datacenter."
|
||||
- "IMPORTANT: This option is deprecated in oVirt 4.1. You should
|
||||
- "IMPORTANT: This option is deprecated in oVirt/RHV 4.1. You should
|
||||
use C(mac_pool) in C(ovirt_clusters) module, as MAC pools are
|
||||
set per cluster since 4.1."
|
||||
extends_documentation_fragment: ovirt
|
||||
|
@ -92,7 +92,7 @@ id:
|
|||
type: str
|
||||
sample: 7de90f31-222c-436c-a1ca-7e655bd5b60c
|
||||
data_center:
|
||||
description: "Dictionary of all the datacenter attributes. Datacenter attributes can be found on your oVirt instance
|
||||
description: "Dictionary of all the datacenter attributes. Datacenter attributes can be found on your oVirt/RHV instance
|
||||
at following url: https://ovirt.example.com/ovirt-engine/api/model#types/datacenter."
|
||||
returned: "On success if datacenter is found."
|
||||
'''
|
||||
|
|
|
@ -27,18 +27,18 @@ ANSIBLE_METADATA = {'metadata_version': '1.0',
|
|||
DOCUMENTATION = '''
|
||||
---
|
||||
module: ovirt_datacenters_facts
|
||||
short_description: Retrieve facts about one or more oVirt datacenters
|
||||
short_description: Retrieve facts about one or more oVirt/RHV datacenters
|
||||
author: "Ondra Machacek (@machacekondra)"
|
||||
version_added: "2.3"
|
||||
description:
|
||||
- "Retrieve facts about one or more oVirt datacenters."
|
||||
- "Retrieve facts about one or more oVirt/RHV datacenters."
|
||||
notes:
|
||||
- "This module creates a new top-level C(ovirt_datacenters) fact, which
|
||||
contains a list of datacenters."
|
||||
options:
|
||||
pattern:
|
||||
description:
|
||||
- "Search term which is accepted by oVirt search backend."
|
||||
- "Search term which is accepted by oVirt/RHV search backend."
|
||||
- "For example to search datacenter I(X) use following pattern: I(name=X)"
|
||||
extends_documentation_fragment: ovirt_facts
|
||||
'''
|
||||
|
|
|
@ -27,11 +27,11 @@ ANSIBLE_METADATA = {'metadata_version': '1.0',
|
|||
DOCUMENTATION = '''
|
||||
---
|
||||
module: ovirt_disks
|
||||
short_description: "Module to manage Virtual Machine and floating disks in oVirt"
|
||||
short_description: "Module to manage Virtual Machine and floating disks in oVirt/RHV"
|
||||
version_added: "2.2"
|
||||
author: "Ondra Machacek (@machacekondra)"
|
||||
description:
|
||||
- "Module to manage Virtual Machine and floating disks in oVirt."
|
||||
- "Module to manage Virtual Machine and floating disks in oVirt/RHV."
|
||||
options:
|
||||
id:
|
||||
description:
|
||||
|
@ -54,7 +54,7 @@ options:
|
|||
download_image_path:
|
||||
description:
|
||||
- "Path on a file system where disk should be downloaded."
|
||||
- "Note that you must have an valid oVirt engine CA in your system trust store
|
||||
- "Note that you must have an valid oVirt/RHV engine CA in your system trust store
|
||||
or you must provide it in C(ca_file) parameter."
|
||||
- "Note that the disk is not downloaded when the file already exists,
|
||||
but you can forcibly download the disk when using C(force) I (true)."
|
||||
|
@ -63,7 +63,7 @@ options:
|
|||
description:
|
||||
- "Path to disk image, which should be uploaded."
|
||||
- "Note that currently we support only compability version 0.10 of the qcow disk."
|
||||
- "Note that you must have an valid oVirt engine CA in your system trust store
|
||||
- "Note that you must have an valid oVirt/RHV engine CA in your system trust store
|
||||
or you must provide it in C(ca_file) parameter."
|
||||
- "Note that there is no reliable way to achieve idempotency, so
|
||||
if you want to upload the disk even if the disk with C(id) or C(name) exists,
|
||||
|
@ -89,7 +89,7 @@ options:
|
|||
choices: ['raw', 'cow']
|
||||
storage_domain:
|
||||
description:
|
||||
- "Storage domain name where disk should be created. By default storage is chosen by oVirt engine."
|
||||
- "Storage domain name where disk should be created. By default storage is chosen by oVirt/RHV engine."
|
||||
storage_domains:
|
||||
description:
|
||||
- "Storage domain names where disk should be copied."
|
||||
|
@ -107,7 +107,7 @@ options:
|
|||
version_added: "2.3"
|
||||
profile:
|
||||
description:
|
||||
- "Disk profile name to be attached to disk. By default profile is chosen by oVirt engine."
|
||||
- "Disk profile name to be attached to disk. By default profile is chosen by oVirt/RHV engine."
|
||||
bootable:
|
||||
description:
|
||||
- "I(True) if the disk should be bootable. By default when disk is created it isn't bootable."
|
||||
|
@ -193,13 +193,13 @@ id:
|
|||
type: str
|
||||
sample: 7de90f31-222c-436c-a1ca-7e655bd5b60c
|
||||
disk:
|
||||
description: "Dictionary of all the disk attributes. Disk attributes can be found on your oVirt instance
|
||||
description: "Dictionary of all the disk attributes. Disk attributes can be found on your oVirt/RHV instance
|
||||
at following url: https://ovirt.example.com/ovirt-engine/api/model#types/disk."
|
||||
returned: "On success if disk is found and C(vm_id) or C(vm_name) wasn't passed."
|
||||
|
||||
disk_attachment:
|
||||
description: "Dictionary of all the disk attachment attributes. Disk attachment attributes can be found
|
||||
on your oVirt instance at following url:
|
||||
on your oVirt/RHV instance at following url:
|
||||
https://ovirt.example.com/ovirt-engine/api/model#types/disk_attachment."
|
||||
returned: "On success if disk is found and C(vm_id) or C(vm_name) was passed and VM was found."
|
||||
'''
|
||||
|
|
|
@ -27,11 +27,11 @@ ANSIBLE_METADATA = {'metadata_version': '1.0',
|
|||
DOCUMENTATION = '''
|
||||
---
|
||||
module: ovirt_external_providers
|
||||
short_description: Module to manage external providers in oVirt
|
||||
short_description: Module to manage external providers in oVirt/RHV
|
||||
version_added: "2.3"
|
||||
author: "Ondra Machacek (@machacekondra)"
|
||||
description:
|
||||
- "Module to manage external providers in oVirt"
|
||||
- "Module to manage external providers in oVirt/RHV"
|
||||
options:
|
||||
name:
|
||||
description:
|
||||
|
@ -130,22 +130,22 @@ id:
|
|||
type: str
|
||||
sample: 7de90f31-222c-436c-a1ca-7e655bd5b60c
|
||||
external_host_provider:
|
||||
description: "Dictionary of all the external_host_provider attributes. External provider attributes can be found on your oVirt instance
|
||||
description: "Dictionary of all the external_host_provider attributes. External provider attributes can be found on your oVirt/RHV instance
|
||||
at following url: https://ovirt.example.com/ovirt-engine/api/model#types/external_host_provider."
|
||||
returned: "On success and if parameter 'type: foreman' is used."
|
||||
type: dictionary
|
||||
openstack_image_provider:
|
||||
description: "Dictionary of all the openstack_image_provider attributes. External provider attributes can be found on your oVirt instance
|
||||
description: "Dictionary of all the openstack_image_provider attributes. External provider attributes can be found on your oVirt/RHV instance
|
||||
at following url: https://ovirt.example.com/ovirt-engine/api/model#types/openstack_image_provider."
|
||||
returned: "On success and if parameter 'type: os_image' is used."
|
||||
type: dictionary
|
||||
openstack_volume_provider:
|
||||
description: "Dictionary of all the openstack_volume_provider attributes. External provider attributes can be found on your oVirt instance
|
||||
description: "Dictionary of all the openstack_volume_provider attributes. External provider attributes can be found on your oVirt/RHV instance
|
||||
at following url: https://ovirt.example.com/ovirt-engine/api/model#types/openstack_volume_provider."
|
||||
returned: "On success and if parameter 'type: os_volume' is used."
|
||||
type: dictionary
|
||||
openstack_network_provider:
|
||||
description: "Dictionary of all the openstack_network_provider attributes. External provider attributes can be found on your oVirt instance
|
||||
description: "Dictionary of all the openstack_network_provider attributes. External provider attributes can be found on your oVirt/RHV instance
|
||||
at following url: https://ovirt.example.com/ovirt-engine/api/model#types/openstack_network_provider."
|
||||
returned: "On success and if parameter 'type: network' is used."
|
||||
type: dictionary
|
||||
|
|
|
@ -27,11 +27,11 @@ ANSIBLE_METADATA = {'metadata_version': '1.0',
|
|||
DOCUMENTATION = '''
|
||||
---
|
||||
module: ovirt_external_providers_facts
|
||||
short_description: Retrieve facts about one or more oVirt external providers
|
||||
short_description: Retrieve facts about one or more oVirt/RHV external providers
|
||||
author: "Ondra Machacek (@machacekondra)"
|
||||
version_added: "2.3"
|
||||
description:
|
||||
- "Retrieve facts about one or more oVirt external providers."
|
||||
- "Retrieve facts about one or more oVirt/RHV external providers."
|
||||
notes:
|
||||
- "This module creates a new top-level C(ovirt_external_providers) fact, which
|
||||
contains a list of external_providers."
|
||||
|
@ -61,22 +61,22 @@ EXAMPLES = '''
|
|||
|
||||
RETURN = '''
|
||||
external_host_providers:
|
||||
description: "List of dictionaries of all the external_host_provider attributes. External provider attributes can be found on your oVirt instance
|
||||
description: "List of dictionaries of all the external_host_provider attributes. External provider attributes can be found on your oVirt/RHV instance
|
||||
at following url: https://ovirt.example.com/ovirt-engine/api/model#types/external_host_provider."
|
||||
returned: "On success and if parameter 'type: foreman' is used."
|
||||
type: list
|
||||
openstack_image_providers:
|
||||
description: "List of dictionaries of all the openstack_image_provider attributes. External provider attributes can be found on your oVirt instance
|
||||
description: "List of dictionaries of all the openstack_image_provider attributes. External provider attributes can be found on your oVirt/RHV instance
|
||||
at following url: https://ovirt.example.com/ovirt-engine/api/model#types/openstack_image_provider."
|
||||
returned: "On success and if parameter 'type: os_image' is used."
|
||||
type: list
|
||||
openstack_volume_providers:
|
||||
description: "List of dictionaries of all the openstack_volume_provider attributes. External provider attributes can be found on your oVirt instance
|
||||
description: "List of dictionaries of all the openstack_volume_provider attributes. External provider attributes can be found on your oVirt/RHV instance
|
||||
at following url: https://ovirt.example.com/ovirt-engine/api/model#types/openstack_volume_provider."
|
||||
returned: "On success and if parameter 'type: os_volume' is used."
|
||||
type: list
|
||||
openstack_network_providers:
|
||||
description: "List of dictionaries of all the openstack_network_provider attributes. External provider attributes can be found on your oVirt instance
|
||||
description: "List of dictionaries of all the openstack_network_provider attributes. External provider attributes can be found on your oVirt/RHV instance
|
||||
at following url: https://ovirt.example.com/ovirt-engine/api/model#types/openstack_network_provider."
|
||||
returned: "On success and if parameter 'type: os_network' is used."
|
||||
type: list
|
||||
|
|
|
@ -27,11 +27,11 @@ ANSIBLE_METADATA = {'metadata_version': '1.0',
|
|||
DOCUMENTATION = '''
|
||||
---
|
||||
module: ovirt_groups
|
||||
short_description: Module to manage groups in oVirt
|
||||
short_description: Module to manage groups in oVirt/RHV
|
||||
version_added: "2.3"
|
||||
author: "Ondra Machacek (@machacekondra)"
|
||||
description:
|
||||
- "Module to manage groups in oVirt"
|
||||
- "Module to manage groups in oVirt/RHV"
|
||||
options:
|
||||
name:
|
||||
description:
|
||||
|
@ -44,7 +44,7 @@ options:
|
|||
default: present
|
||||
authz_name:
|
||||
description:
|
||||
- "Authorization provider of the group. In previous versions of oVirt known as domain."
|
||||
- "Authorization provider of the group. In previous versions of oVirt/RHV known as domain."
|
||||
required: true
|
||||
aliases: ['domain']
|
||||
namespace:
|
||||
|
@ -85,7 +85,7 @@ id:
|
|||
type: str
|
||||
sample: 7de90f31-222c-436c-a1ca-7e655bd5b60c
|
||||
group:
|
||||
description: "Dictionary of all the group attributes. Group attributes can be found on your oVirt instance
|
||||
description: "Dictionary of all the group attributes. Group attributes can be found on your oVirt/RHV instance
|
||||
at following url: https://ovirt.example.com/ovirt-engine/api/model#types/group."
|
||||
returned: On success if group is found.
|
||||
'''
|
||||
|
@ -116,7 +116,7 @@ def _group(connection, module):
|
|||
)
|
||||
|
||||
# If found more groups, filter them by namespace and authz name:
|
||||
# (filtering here, as oVirt backend doesn't support it)
|
||||
# (filtering here, as oVirt/RHV backend doesn't support it)
|
||||
if len(groups) > 1:
|
||||
groups = [
|
||||
g for g in groups if (
|
||||
|
|
|
@ -27,18 +27,18 @@ ANSIBLE_METADATA = {'metadata_version': '1.0',
|
|||
DOCUMENTATION = '''
|
||||
---
|
||||
module: ovirt_groups_facts
|
||||
short_description: Retrieve facts about one or more oVirt groups
|
||||
short_description: Retrieve facts about one or more oVirt/RHV groups
|
||||
author: "Ondra Machacek (@machacekondra)"
|
||||
version_added: "2.3"
|
||||
description:
|
||||
- "Retrieve facts about one or more oVirt groups."
|
||||
- "Retrieve facts about one or more oVirt/RHV groups."
|
||||
notes:
|
||||
- "This module creates a new top-level C(ovirt_groups) fact, which
|
||||
contains a list of groups."
|
||||
options:
|
||||
pattern:
|
||||
description:
|
||||
- "Search term which is accepted by oVirt search backend."
|
||||
- "Search term which is accepted by oVirt/RHV search backend."
|
||||
- "For example to search group X use following pattern: name=X"
|
||||
extends_documentation_fragment: ovirt_facts
|
||||
'''
|
||||
|
|
|
@ -27,11 +27,11 @@ ANSIBLE_METADATA = {'metadata_version': '1.0',
|
|||
DOCUMENTATION = '''
|
||||
---
|
||||
module: ovirt_host_networks
|
||||
short_description: Module to manage host networks in oVirt
|
||||
short_description: Module to manage host networks in oVirt/RHV
|
||||
version_added: "2.3"
|
||||
author: "Ondra Machacek (@machacekondra)"
|
||||
description:
|
||||
- "Module to manage host networks in oVirt."
|
||||
- "Module to manage host networks in oVirt/RHV."
|
||||
options:
|
||||
name:
|
||||
description:
|
||||
|
@ -133,7 +133,7 @@ id:
|
|||
type: str
|
||||
sample: 7de90f31-222c-436c-a1ca-7e655bd5b60c
|
||||
host_nic:
|
||||
description: "Dictionary of all the host NIC attributes. Host NIC attributes can be found on your oVirt instance
|
||||
description: "Dictionary of all the host NIC attributes. Host NIC attributes can be found on your oVirt/RHV instance
|
||||
at following url: https://ovirt.example.com/ovirt-engine/api/model#types/host_nic."
|
||||
returned: On success if host NIC is found.
|
||||
'''
|
||||
|
|
|
@ -27,11 +27,11 @@ ANSIBLE_METADATA = {'metadata_version': '1.0',
|
|||
DOCUMENTATION = '''
|
||||
---
|
||||
module: ovirt_host_pm
|
||||
short_description: Module to manage power management of hosts in oVirt
|
||||
short_description: Module to manage power management of hosts in oVirt/RHV
|
||||
version_added: "2.3"
|
||||
author: "Ondra Machacek (@machacekondra)"
|
||||
description:
|
||||
- "Module to manage power management of hosts in oVirt."
|
||||
- "Module to manage power management of hosts in oVirt/RHV."
|
||||
options:
|
||||
name:
|
||||
description:
|
||||
|
@ -54,7 +54,7 @@ options:
|
|||
- "Password of the user specified in C(username) parameter."
|
||||
type:
|
||||
description:
|
||||
- "Type of the power management. oVirt predefined values are I(drac5), I(ipmilan), I(rsa),
|
||||
- "Type of the power management. oVirt/RHV predefined values are I(drac5), I(ipmilan), I(rsa),
|
||||
I(bladecenter), I(alom), I(apc), I(apc_snmp), I(eps), I(wti), I(rsb), I(cisco_ucs),
|
||||
I(drac7), I(hpblade), I(ilo), I(ilo2), I(ilo3), I(ilo4), I(ilo_ssh),
|
||||
but user can have defined custom type."
|
||||
|
@ -109,7 +109,7 @@ id:
|
|||
type: str
|
||||
sample: 7de90f31-222c-436c-a1ca-7e655bd5b60c
|
||||
agent:
|
||||
description: "Dictionary of all the agent attributes. Agent attributes can be found on your oVirt instance
|
||||
description: "Dictionary of all the agent attributes. Agent attributes can be found on your oVirt/RHV instance
|
||||
at following url: https://ovirt.example.com/ovirt-engine/api/model#types/agent."
|
||||
returned: On success if agent is found.
|
||||
'''
|
||||
|
|
|
@ -27,11 +27,11 @@ ANSIBLE_METADATA = {'metadata_version': '1.0',
|
|||
DOCUMENTATION = '''
|
||||
---
|
||||
module: ovirt_hosts
|
||||
short_description: Module to manage hosts in oVirt
|
||||
short_description: Module to manage hosts in oVirt/RHV
|
||||
version_added: "2.3"
|
||||
author: "Ondra Machacek (@machacekondra)"
|
||||
description:
|
||||
- "Module to manage hosts in oVirt"
|
||||
- "Module to manage hosts in oVirt/RHV"
|
||||
options:
|
||||
name:
|
||||
description:
|
||||
|
@ -74,7 +74,7 @@ options:
|
|||
override_iptables:
|
||||
description:
|
||||
- "If True host iptables will be overridden by host deploy script."
|
||||
- "Note that C(override_iptables) is I(false) by default in oVirt."
|
||||
- "Note that C(override_iptables) is I(false) by default in oVirt/RHV."
|
||||
force:
|
||||
description:
|
||||
- "If True host will be forcibly moved to desired state."
|
||||
|
@ -111,7 +111,7 @@ EXAMPLES = '''
|
|||
# look at ovirt_auth module to see how to reuse authentication:
|
||||
|
||||
# Add host with username/password supporting SR-IOV.
|
||||
# Note that override_iptables is false by default in oVirt:
|
||||
# Note that override_iptables is false by default in oVirt/RHV:
|
||||
- ovirt_hosts:
|
||||
cluster: Default
|
||||
name: myhost
|
||||
|
@ -173,7 +173,7 @@ id:
|
|||
type: str
|
||||
sample: 7de90f31-222c-436c-a1ca-7e655bd5b60c
|
||||
host:
|
||||
description: "Dictionary of all the host attributes. Host attributes can be found on your oVirt instance
|
||||
description: "Dictionary of all the host attributes. Host attributes can be found on your oVirt/RHV instance
|
||||
at following url: https://ovirt.example.com/ovirt-engine/api/model#types/host."
|
||||
returned: On success if host is found.
|
||||
'''
|
||||
|
|
|
@ -27,18 +27,18 @@ ANSIBLE_METADATA = {'metadata_version': '1.0',
|
|||
DOCUMENTATION = '''
|
||||
---
|
||||
module: ovirt_hosts_facts
|
||||
short_description: Retrieve facts about one or more oVirt hosts
|
||||
short_description: Retrieve facts about one or more oVirt/RHV hosts
|
||||
author: "Ondra Machacek (@machacekondra)"
|
||||
version_added: "2.3"
|
||||
description:
|
||||
- "Retrieve facts about one or more oVirt hosts."
|
||||
- "Retrieve facts about one or more oVirt/RHV hosts."
|
||||
notes:
|
||||
- "This module creates a new top-level C(ovirt_hosts) fact, which
|
||||
contains a list of hosts."
|
||||
options:
|
||||
pattern:
|
||||
description:
|
||||
- "Search term which is accepted by oVirt search backend."
|
||||
- "Search term which is accepted by oVirt/RHV search backend."
|
||||
- "For example to search host X from datacenter Y use following pattern:
|
||||
name=X and datacenter=Y"
|
||||
extends_documentation_fragment: ovirt_facts
|
||||
|
|
|
@ -27,11 +27,11 @@ ANSIBLE_METADATA = {'metadata_version': '1.0',
|
|||
DOCUMENTATION = '''
|
||||
---
|
||||
module: ovirt_mac_pools
|
||||
short_description: Module to manage MAC pools in oVirt
|
||||
short_description: Module to manage MAC pools in oVirt/RHV
|
||||
version_added: "2.3"
|
||||
author: "Ondra Machacek (@machacekondra)"
|
||||
description:
|
||||
- "This module manage MAC pools in oVirt."
|
||||
- "This module manage MAC pools in oVirt/RHV."
|
||||
options:
|
||||
name:
|
||||
description:
|
||||
|
@ -48,7 +48,7 @@ options:
|
|||
allow_duplicates:
|
||||
description:
|
||||
- "If (true) allow a MAC address to be used multiple times in a pool."
|
||||
- "Default value is set by oVirt engine to I(false)."
|
||||
- "Default value is set by oVirt/RHV engine to I(false)."
|
||||
ranges:
|
||||
description:
|
||||
- "List of MAC ranges. The from and to should be splitted by comma."
|
||||
|
@ -81,7 +81,7 @@ id:
|
|||
type: str
|
||||
sample: 7de90f31-222c-436c-a1ca-7e655bd5b60c
|
||||
template:
|
||||
description: "Dictionary of all the MAC pool attributes. MAC pool attributes can be found on your oVirt instance
|
||||
description: "Dictionary of all the MAC pool attributes. MAC pool attributes can be found on your oVirt/RHV instance
|
||||
at following url: https://ovirt.example.com/ovirt-engine/api/model#types/mac_pool."
|
||||
returned: On success if MAC pool is found.
|
||||
'''
|
||||
|
|
|
@ -27,11 +27,11 @@ ANSIBLE_METADATA = {'metadata_version': '1.0',
|
|||
DOCUMENTATION = '''
|
||||
---
|
||||
module: ovirt_networks
|
||||
short_description: Module to manage logical networks in oVirt
|
||||
short_description: Module to manage logical networks in oVirt/RHV
|
||||
version_added: "2.3"
|
||||
author: "Ondra Machacek (@machacekondra)"
|
||||
description:
|
||||
- "Module to manage logical networks in oVirt"
|
||||
- "Module to manage logical networks in oVirt/RHV"
|
||||
options:
|
||||
name:
|
||||
description:
|
||||
|
@ -98,7 +98,7 @@ id:
|
|||
type: str
|
||||
sample: 7de90f31-222c-436c-a1ca-7e655bd5b60c
|
||||
network:
|
||||
description: "Dictionary of all the network attributes. Network attributes can be found on your oVirt instance
|
||||
description: "Dictionary of all the network attributes. Network attributes can be found on your oVirt/RHV instance
|
||||
at following url: https://ovirt.example.com/ovirt-engine/api/model#types/network."
|
||||
returned: "On success if network is found."
|
||||
'''
|
||||
|
|
|
@ -27,18 +27,18 @@ ANSIBLE_METADATA = {'metadata_version': '1.0',
|
|||
DOCUMENTATION = '''
|
||||
---
|
||||
module: ovirt_networks_facts
|
||||
short_description: Retrieve facts about one or more oVirt networks
|
||||
short_description: Retrieve facts about one or more oVirt/RHV networks
|
||||
author: "Ondra Machacek (@machacekondra)"
|
||||
version_added: "2.3"
|
||||
description:
|
||||
- "Retrieve facts about one or more oVirt networks."
|
||||
- "Retrieve facts about one or more oVirt/RHV networks."
|
||||
notes:
|
||||
- "This module creates a new top-level C(ovirt_networks) fact, which
|
||||
contains a list of networks."
|
||||
options:
|
||||
pattern:
|
||||
description:
|
||||
- "Search term which is accepted by oVirt search backend."
|
||||
- "Search term which is accepted by oVirt/RHV search backend."
|
||||
- "For example to search network starting with string vlan1 use: name=vlan1*"
|
||||
extends_documentation_fragment: ovirt_facts
|
||||
'''
|
||||
|
|
|
@ -27,11 +27,11 @@ ANSIBLE_METADATA = {'metadata_version': '1.0',
|
|||
DOCUMENTATION = '''
|
||||
---
|
||||
module: ovirt_nics
|
||||
short_description: Module to manage network interfaces of Virtual Machines in oVirt
|
||||
short_description: Module to manage network interfaces of Virtual Machines in oVirt/RHV
|
||||
version_added: "2.3"
|
||||
author: "Ondra Machacek (@machacekondra)"
|
||||
description:
|
||||
- "Module to manage network interfaces of Virtual Machines in oVirt."
|
||||
- "Module to manage network interfaces of Virtual Machines in oVirt/RHV."
|
||||
options:
|
||||
name:
|
||||
description:
|
||||
|
@ -104,7 +104,7 @@ id:
|
|||
type: str
|
||||
sample: 7de90f31-222c-436c-a1ca-7e655bd5b60c
|
||||
nic:
|
||||
description: "Dictionary of all the network interface attributes. Network interface attributes can be found on your oVirt instance
|
||||
description: "Dictionary of all the network interface attributes. Network interface attributes can be found on your oVirt/RHV instance
|
||||
at following url: https://ovirt.example.com/ovirt-engine/api/model#types/nic."
|
||||
returned: On success if network interface is found.
|
||||
'''
|
||||
|
|
|
@ -27,11 +27,11 @@ ANSIBLE_METADATA = {'metadata_version': '1.0',
|
|||
DOCUMENTATION = '''
|
||||
---
|
||||
module: ovirt_nics_facts
|
||||
short_description: Retrieve facts about one or more oVirt virtual machine network interfaces
|
||||
short_description: Retrieve facts about one or more oVirt/RHV virtual machine network interfaces
|
||||
author: "Ondra Machacek (@machacekondra)"
|
||||
version_added: "2.3"
|
||||
description:
|
||||
- "Retrieve facts about one or more oVirt virtual machine network interfaces."
|
||||
- "Retrieve facts about one or more oVirt/RHV virtual machine network interfaces."
|
||||
notes:
|
||||
- "This module creates a new top-level C(ovirt_nics) fact, which
|
||||
contains a list of NICs."
|
||||
|
|
|
@ -27,11 +27,11 @@ ANSIBLE_METADATA = {'metadata_version': '1.0',
|
|||
DOCUMENTATION = '''
|
||||
---
|
||||
module: ovirt_permissions
|
||||
short_description: "Module to manage permissions of users/groups in oVirt"
|
||||
short_description: "Module to manage permissions of users/groups in oVirt/RHV"
|
||||
version_added: "2.3"
|
||||
author: "Ondra Machacek (@machacekondra)"
|
||||
description:
|
||||
- "Module to manage permissions of users/groups in oVirt"
|
||||
- "Module to manage permissions of users/groups in oVirt/RHV"
|
||||
options:
|
||||
role:
|
||||
description:
|
||||
|
@ -80,7 +80,7 @@ options:
|
|||
you should ensure the group exists by using M(ovirt_groups) module."
|
||||
authz_name:
|
||||
description:
|
||||
- "Authorization provider of the user/group. In previous versions of oVirt known as domain."
|
||||
- "Authorization provider of the user/group. In previous versions of oVirt/RHV known as domain."
|
||||
required: true
|
||||
aliases: ['domain']
|
||||
namespace:
|
||||
|
@ -119,7 +119,7 @@ id:
|
|||
type: str
|
||||
sample: 7de90f31-222c-436c-a1ca-7e655bd5b60c
|
||||
permission:
|
||||
description: "Dictionary of all the permission attributes. Permission attributes can be found on your oVirt instance
|
||||
description: "Dictionary of all the permission attributes. Permission attributes can be found on your oVirt/RHV instance
|
||||
at following url: https://ovirt.example.com/ovirt-engine/api/model#types/permission."
|
||||
returned: On success if permission is found.
|
||||
'''
|
||||
|
@ -210,7 +210,7 @@ class PermissionsModule(BaseModule):
|
|||
)
|
||||
|
||||
# If found more groups, filter them by namespace and authz name:
|
||||
# (filtering here, as oVirt backend doesn't support it)
|
||||
# (filtering here, as oVirt/RHV backend doesn't support it)
|
||||
if len(groups) > 1:
|
||||
groups = [
|
||||
g for g in groups if (
|
||||
|
|
|
@ -27,11 +27,11 @@ ANSIBLE_METADATA = {'metadata_version': '1.0',
|
|||
DOCUMENTATION = '''
|
||||
---
|
||||
module: ovirt_permissions_facts
|
||||
short_description: Retrieve facts about one or more oVirt permissions
|
||||
short_description: Retrieve facts about one or more oVirt/RHV permissions
|
||||
author: "Ondra Machacek (@machacekondra)"
|
||||
version_added: "2.3"
|
||||
description:
|
||||
- "Retrieve facts about one or more oVirt permissions."
|
||||
- "Retrieve facts about one or more oVirt/RHV permissions."
|
||||
notes:
|
||||
- "This module creates a new top-level C(ovirt_permissions) fact, which
|
||||
contains a list of permissions."
|
||||
|
@ -44,7 +44,7 @@ options:
|
|||
- "Name of the the group to manage."
|
||||
authz_name:
|
||||
description:
|
||||
- "Authorization provider of the user/group. In previous versions of oVirt known as domain."
|
||||
- "Authorization provider of the user/group. In previous versions of oVirt/RHV known as domain."
|
||||
required: true
|
||||
aliases: ['domain']
|
||||
namespace:
|
||||
|
|
|
@ -27,11 +27,11 @@ ANSIBLE_METADATA = {'metadata_version': '1.0',
|
|||
DOCUMENTATION = '''
|
||||
---
|
||||
module: ovirt_quotas
|
||||
short_description: Module to manage datacenter quotas in oVirt
|
||||
short_description: Module to manage datacenter quotas in oVirt/RHV
|
||||
version_added: "2.3"
|
||||
author: "Ondra Machacek (@machacekondra)"
|
||||
description:
|
||||
- "Module to manage datacenter quotas in oVirt"
|
||||
- "Module to manage datacenter quotas in oVirt/RHV"
|
||||
options:
|
||||
name:
|
||||
description:
|
||||
|
@ -122,7 +122,7 @@ id:
|
|||
type: str
|
||||
sample: 7de90f31-222c-436c-a1ca-7e655bd5b60c
|
||||
quota:
|
||||
description: "Dictionary of all the quota attributes. Quota attributes can be found on your oVirt instance
|
||||
description: "Dictionary of all the quota attributes. Quota attributes can be found on your oVirt/RHV instance
|
||||
at following url: https://ovirt.example.com/ovirt-engine/api/model#types/quota."
|
||||
returned: On success if quota is found.
|
||||
'''
|
||||
|
|
|
@ -27,11 +27,11 @@ ANSIBLE_METADATA = {'metadata_version': '1.0',
|
|||
DOCUMENTATION = '''
|
||||
---
|
||||
module: ovirt_quotas_facts
|
||||
short_description: Retrieve facts about one or more oVirt quotas
|
||||
short_description: Retrieve facts about one or more oVirt/RHV quotas
|
||||
version_added: "2.3"
|
||||
author: "Red Hat"
|
||||
description:
|
||||
- "Retrieve facts about one or more oVirt quotas."
|
||||
- "Retrieve facts about one or more oVirt/RHV quotas."
|
||||
notes:
|
||||
- "This module creates a new top-level C(ovirt_quotas) fact, which
|
||||
contains a list of quotas."
|
||||
|
|
|
@ -27,11 +27,11 @@ ANSIBLE_METADATA = {'metadata_version': '1.0',
|
|||
DOCUMENTATION = '''
|
||||
---
|
||||
module: ovirt_snapshots
|
||||
short_description: "Module to manage Virtual Machine Snapshots in oVirt"
|
||||
short_description: "Module to manage Virtual Machine Snapshots in oVirt/RHV"
|
||||
version_added: "2.3"
|
||||
author: "Ondra Machacek (@machacekondra)"
|
||||
description:
|
||||
- "Module to manage Virtual Machine Snapshots in oVirt"
|
||||
- "Module to manage Virtual Machine Snapshots in oVirt/RHV"
|
||||
options:
|
||||
snapshot_id:
|
||||
description:
|
||||
|
@ -104,7 +104,7 @@ id:
|
|||
type: str
|
||||
sample: 7de90f31-222c-436c-a1ca-7e655bd5b60c
|
||||
snapshot:
|
||||
description: "Dictionary of all the snapshot attributes. Snapshot attributes can be found on your oVirt instance
|
||||
description: "Dictionary of all the snapshot attributes. Snapshot attributes can be found on your oVirt/RHV instance
|
||||
at following url: https://ovirt.example.com/ovirt-engine/api/model#types/snapshot."
|
||||
returned: On success if snapshot is found.
|
||||
'''
|
||||
|
|
|
@ -28,11 +28,11 @@ ANSIBLE_METADATA = {'metadata_version': '1.0',
|
|||
DOCUMENTATION = '''
|
||||
---
|
||||
module: ovirt_snapshots_facts
|
||||
short_description: Retrieve facts about one or more oVirt virtual machine snapshots
|
||||
short_description: Retrieve facts about one or more oVirt/RHV virtual machine snapshots
|
||||
author: "Ondra Machacek (@machacekondra)"
|
||||
version_added: "2.3"
|
||||
description:
|
||||
- "Retrieve facts about one or more oVirt virtual machine snapshots."
|
||||
- "Retrieve facts about one or more oVirt/RHV virtual machine snapshots."
|
||||
notes:
|
||||
- "This module creates a new top-level C(ovirt_snapshots) fact, which
|
||||
contains a list of snapshots."
|
||||
|
|
|
@ -27,11 +27,11 @@ ANSIBLE_METADATA = {'metadata_version': '1.0',
|
|||
DOCUMENTATION = '''
|
||||
---
|
||||
module: ovirt_storage_domains
|
||||
short_description: Module to manage storage domains in oVirt
|
||||
short_description: Module to manage storage domains in oVirt/RHV
|
||||
version_added: "2.3"
|
||||
author: "Ondra Machacek (@machacekondra)"
|
||||
description:
|
||||
- "Module to manage storage domains in oVirt"
|
||||
- "Module to manage storage domains in oVirt/RHV"
|
||||
options:
|
||||
name:
|
||||
description:
|
||||
|
@ -108,7 +108,7 @@ options:
|
|||
- "This parameter is relevant only when C(state) is I(absent)."
|
||||
format:
|
||||
description:
|
||||
- "If I(True) storage domain will be formatted after removing it from oVirt."
|
||||
- "If I(True) storage domain will be formatted after removing it from oVirt/RHV."
|
||||
- "This parameter is relevant only when C(state) is I(absent)."
|
||||
extends_documentation_fragment: ovirt
|
||||
'''
|
||||
|
@ -178,7 +178,7 @@ id:
|
|||
type: str
|
||||
sample: 7de90f31-222c-436c-a1ca-7e655bd5b60c
|
||||
storage_domain:
|
||||
description: "Dictionary of all the storage domain attributes. Storage domain attributes can be found on your oVirt instance
|
||||
description: "Dictionary of all the storage domain attributes. Storage domain attributes can be found on your oVirt/RHV instance
|
||||
at following url: https://ovirt.example.com/ovirt-engine/api/model#types/storage_domain."
|
||||
returned: On success if storage domain is found.
|
||||
'''
|
||||
|
|
|
@ -27,18 +27,18 @@ ANSIBLE_METADATA = {'metadata_version': '1.0',
|
|||
DOCUMENTATION = '''
|
||||
---
|
||||
module: ovirt_storage_domains_facts
|
||||
short_description: Retrieve facts about one or more oVirt storage domains
|
||||
short_description: Retrieve facts about one or more oVirt/RHV storage domains
|
||||
author: "Ondra Machacek (@machacekondra)"
|
||||
version_added: "2.3"
|
||||
description:
|
||||
- "Retrieve facts about one or more oVirt storage domains."
|
||||
- "Retrieve facts about one or more oVirt/RHV storage domains."
|
||||
notes:
|
||||
- "This module creates a new top-level C(ovirt_storage_domains) fact, which
|
||||
contains a list of storage domains."
|
||||
options:
|
||||
pattern:
|
||||
description:
|
||||
- "Search term which is accepted by oVirt search backend."
|
||||
- "Search term which is accepted by oVirt/RHV search backend."
|
||||
- "For example to search storage domain X from datacenter Y use following pattern:
|
||||
name=X and datacenter=Y"
|
||||
extends_documentation_fragment: ovirt_facts
|
||||
|
|
|
@ -27,11 +27,11 @@ ANSIBLE_METADATA = {'metadata_version': '1.0',
|
|||
DOCUMENTATION = '''
|
||||
---
|
||||
module: ovirt_tags
|
||||
short_description: Module to manage tags in oVirt
|
||||
short_description: Module to manage tags in oVirt/RHV
|
||||
version_added: "2.3"
|
||||
author: "Ondra Machacek (@machacekondra)"
|
||||
description:
|
||||
- "This module manage tags in oVirt. It can also manage assignments
|
||||
- "This module manage tags in oVirt/RHV. It can also manage assignments
|
||||
of those tags to entities."
|
||||
options:
|
||||
name:
|
||||
|
@ -87,7 +87,7 @@ id:
|
|||
type: str
|
||||
sample: 7de90f31-222c-436c-a1ca-7e655bd5b60c
|
||||
tag:
|
||||
description: "Dictionary of all the tag attributes. Tag attributes can be found on your oVirt instance
|
||||
description: "Dictionary of all the tag attributes. Tag attributes can be found on your oVirt/RHV instance
|
||||
at following url: https://ovirt.example.com/ovirt-engine/api/model#types/tag."
|
||||
returned: On success if tag is found.
|
||||
'''
|
||||
|
|
|
@ -27,11 +27,11 @@ ANSIBLE_METADATA = {'metadata_version': '1.0',
|
|||
DOCUMENTATION = '''
|
||||
---
|
||||
module: ovirt_tags_facts
|
||||
short_description: Retrieve facts about one or more oVirt tags
|
||||
short_description: Retrieve facts about one or more oVirt/RHV tags
|
||||
author: "Ondra Machacek (@machacekondra)"
|
||||
version_added: "2.3"
|
||||
description:
|
||||
- "Retrieve facts about one or more oVirt tags."
|
||||
- "Retrieve facts about one or more oVirt/RHV tags."
|
||||
notes:
|
||||
- "This module creates a new top-level C(ovirt_tags) fact, which
|
||||
contains a list of tags"
|
||||
|
|
|
@ -27,11 +27,11 @@ ANSIBLE_METADATA = {'metadata_version': '1.0',
|
|||
DOCUMENTATION = '''
|
||||
---
|
||||
module: ovirt_templates
|
||||
short_description: Module to manage virtual machine templates in oVirt
|
||||
short_description: Module to manage virtual machine templates in oVirt/RHV
|
||||
version_added: "2.3"
|
||||
author: "Ondra Machacek (@machacekondra)"
|
||||
description:
|
||||
- "Module to manage virtual machine templates in oVirt."
|
||||
- "Module to manage virtual machine templates in oVirt/RHV."
|
||||
options:
|
||||
name:
|
||||
description:
|
||||
|
@ -114,7 +114,7 @@ id:
|
|||
type: str
|
||||
sample: 7de90f31-222c-436c-a1ca-7e655bd5b60c
|
||||
template:
|
||||
description: "Dictionary of all the template attributes. Template attributes can be found on your oVirt instance
|
||||
description: "Dictionary of all the template attributes. Template attributes can be found on your oVirt/RHV instance
|
||||
at following url: https://ovirt.example.com/ovirt-engine/api/model#types/template."
|
||||
returned: On success if template is found.
|
||||
'''
|
||||
|
|
|
@ -27,18 +27,18 @@ ANSIBLE_METADATA = {'metadata_version': '1.0',
|
|||
DOCUMENTATION = '''
|
||||
---
|
||||
module: ovirt_templates_facts
|
||||
short_description: Retrieve facts about one or more oVirt templates
|
||||
short_description: Retrieve facts about one or more oVirt/RHV templates
|
||||
author: "Ondra Machacek (@machacekondra)"
|
||||
version_added: "2.3"
|
||||
description:
|
||||
- "Retrieve facts about one or more oVirt templates."
|
||||
- "Retrieve facts about one or more oVirt/RHV templates."
|
||||
notes:
|
||||
- "This module creates a new top-level C(ovirt_templates) fact, which
|
||||
contains a list of templates."
|
||||
options:
|
||||
pattern:
|
||||
description:
|
||||
- "Search term which is accepted by oVirt search backend."
|
||||
- "Search term which is accepted by oVirt/RHV search backend."
|
||||
- "For example to search template X from datacenter Y use following pattern:
|
||||
name=X and datacenter=Y"
|
||||
extends_documentation_fragment: ovirt_facts
|
||||
|
|
|
@ -27,11 +27,11 @@ ANSIBLE_METADATA = {'metadata_version': '1.0',
|
|||
DOCUMENTATION = '''
|
||||
---
|
||||
module: ovirt_users
|
||||
short_description: Module to manage users in oVirt
|
||||
short_description: Module to manage users in oVirt/RHV
|
||||
version_added: "2.3"
|
||||
author: "Ondra Machacek (@machacekondra)"
|
||||
description:
|
||||
- "Module to manage users in oVirt."
|
||||
- "Module to manage users in oVirt/RHV."
|
||||
options:
|
||||
name:
|
||||
description:
|
||||
|
@ -44,7 +44,7 @@ options:
|
|||
default: present
|
||||
authz_name:
|
||||
description:
|
||||
- "Authorization provider of the user. In previous versions of oVirt known as domain."
|
||||
- "Authorization provider of the user. In previous versions of oVirt/RHV known as domain."
|
||||
required: true
|
||||
aliases: ['domain']
|
||||
extends_documentation_fragment: ovirt
|
||||
|
@ -79,7 +79,7 @@ id:
|
|||
type: str
|
||||
sample: 7de90f31-222c-436c-a1ca-7e655bd5b60c
|
||||
user:
|
||||
description: "Dictionary of all the user attributes. User attributes can be found on your oVirt instance
|
||||
description: "Dictionary of all the user attributes. User attributes can be found on your oVirt/RHV instance
|
||||
at following url: https://ovirt.example.com/ovirt-engine/api/model#types/user."
|
||||
returned: On success if user is found.
|
||||
'''
|
||||
|
|
|
@ -27,18 +27,18 @@ ANSIBLE_METADATA = {'metadata_version': '1.0',
|
|||
DOCUMENTATION = '''
|
||||
---
|
||||
module: ovirt_users_facts
|
||||
short_description: Retrieve facts about one or more oVirt users
|
||||
short_description: Retrieve facts about one or more oVirt/RHV users
|
||||
author: "Ondra Machacek (@machacekondra)"
|
||||
version_added: "2.3"
|
||||
description:
|
||||
- "Retrieve facts about one or more oVirt users."
|
||||
- "Retrieve facts about one or more oVirt/RHV users."
|
||||
notes:
|
||||
- "This module creates a new top-level C(ovirt_users) fact, which
|
||||
contains a list of users."
|
||||
options:
|
||||
pattern:
|
||||
description:
|
||||
- "Search term which is accepted by oVirt search backend."
|
||||
- "Search term which is accepted by oVirt/RHV search backend."
|
||||
- "For example to search user X use following pattern: name=X"
|
||||
extends_documentation_fragment: ovirt_facts
|
||||
'''
|
||||
|
|
|
@ -27,11 +27,11 @@ ANSIBLE_METADATA = {'metadata_version': '1.0',
|
|||
DOCUMENTATION = '''
|
||||
---
|
||||
module: ovirt_vmpools
|
||||
short_description: Module to manage VM pools in oVirt
|
||||
short_description: Module to manage VM pools in oVirt/RHV
|
||||
version_added: "2.3"
|
||||
author: "Ondra Machacek (@machacekondra)"
|
||||
description:
|
||||
- "Module to manage VM pools in oVirt."
|
||||
- "Module to manage VM pools in oVirt/RHV."
|
||||
options:
|
||||
name:
|
||||
description:
|
||||
|
@ -103,7 +103,7 @@ id:
|
|||
type: str
|
||||
sample: 7de90f31-222c-436c-a1ca-7e655bd5b60c
|
||||
vm_pool:
|
||||
description: "Dictionary of all the VM pool attributes. VM pool attributes can be found on your oVirt instance
|
||||
description: "Dictionary of all the VM pool attributes. VM pool attributes can be found on your oVirt/RHV instance
|
||||
at following url: https://ovirt.example.com/ovirt-engine/api/model#types/vm_pool."
|
||||
returned: On success if VM pool is found.
|
||||
'''
|
||||
|
|
|
@ -27,18 +27,18 @@ ANSIBLE_METADATA = {'metadata_version': '1.0',
|
|||
DOCUMENTATION = '''
|
||||
---
|
||||
module: ovirt_vmpools_facts
|
||||
short_description: Retrieve facts about one or more oVirt vmpools
|
||||
short_description: Retrieve facts about one or more oVirt/RHV vmpools
|
||||
author: "Ondra Machacek (@machacekondra)"
|
||||
version_added: "2.3"
|
||||
description:
|
||||
- "Retrieve facts about one or more oVirt vmpools."
|
||||
- "Retrieve facts about one or more oVirt/RHV vmpools."
|
||||
notes:
|
||||
- "This module creates a new top-level C(ovirt_vmpools) fact, which
|
||||
contains a list of vmpools."
|
||||
options:
|
||||
pattern:
|
||||
description:
|
||||
- "Search term which is accepted by oVirt search backend."
|
||||
- "Search term which is accepted by oVirt/RHV search backend."
|
||||
- "For example to search vmpool X: name=X"
|
||||
extends_documentation_fragment: ovirt_facts
|
||||
'''
|
||||
|
|
|
@ -27,11 +27,11 @@ ANSIBLE_METADATA = {'metadata_version': '1.0',
|
|||
DOCUMENTATION = '''
|
||||
---
|
||||
module: ovirt_vms
|
||||
short_description: "Module to manage Virtual Machines in oVirt"
|
||||
short_description: "Module to manage Virtual Machines in oVirt/RHV"
|
||||
version_added: "2.2"
|
||||
author: "Ondra Machacek (@machacekondra)"
|
||||
description:
|
||||
- "This module manages whole lifecycle of the Virtual Machine(VM) in oVirt. Since VM can hold many states in oVirt,
|
||||
- "This module manages whole lifecycle of the Virtual Machine(VM) in oVirt/RHV. Since VM can hold many states in oVirt/RHV,
|
||||
this see notes to see how the states of the VM are handled."
|
||||
options:
|
||||
name:
|
||||
|
@ -77,20 +77,20 @@ options:
|
|||
- "C(memory_guaranteed) parameter can't be lower than C(memory) parameter. Default value is set by engine."
|
||||
cpu_shares:
|
||||
description:
|
||||
- "Set a CPU shares for this Virtual Machine. Default value is set by oVirt engine."
|
||||
- "Set a CPU shares for this Virtual Machine. Default value is set by oVirt/RHV engine."
|
||||
cpu_cores:
|
||||
description:
|
||||
- "Number of virtual CPUs cores of the Virtual Machine. Default value is set by oVirt engine."
|
||||
- "Number of virtual CPUs cores of the Virtual Machine. Default value is set by oVirt/RHV engine."
|
||||
cpu_sockets:
|
||||
description:
|
||||
- "Number of virtual CPUs sockets of the Virtual Machine. Default value is set by oVirt engine."
|
||||
- "Number of virtual CPUs sockets of the Virtual Machine. Default value is set by oVirt/RHV engine."
|
||||
type:
|
||||
description:
|
||||
- "Type of the Virtual Machine. Default value is set by oVirt engine."
|
||||
- "Type of the Virtual Machine. Default value is set by oVirt/RHV engine."
|
||||
choices: [server, desktop]
|
||||
operating_system:
|
||||
description:
|
||||
- "Operating system of the Virtual Machine. Default value is set by oVirt engine."
|
||||
- "Operating system of the Virtual Machine. Default value is set by oVirt/RHV engine."
|
||||
choices: [
|
||||
rhel_6_ppc64, other, freebsd, windows_2003x64, windows_10, rhel_6x64, rhel_4x64, windows_2008x64,
|
||||
windows_2008R2x64, debian_7, windows_2012x64, ubuntu_14_04, ubuntu_12_04, ubuntu_13_10, windows_8x64,
|
||||
|
@ -102,7 +102,7 @@ options:
|
|||
boot_devices:
|
||||
description:
|
||||
- "List of boot devices which should be used to boot. Choices I(network), I(hd) and I(cdrom)."
|
||||
- "For example: ['cdrom', 'hd']. Default value is set by oVirt engine."
|
||||
- "For example: ['cdrom', 'hd']. Default value is set by oVirt/RHV engine."
|
||||
host:
|
||||
description:
|
||||
- "Specify host where Virtual Machine should be running. By default the host is chosen by engine scheduler."
|
||||
|
@ -111,17 +111,17 @@ options:
|
|||
description:
|
||||
- "If I(True) Virtual Machine will be set as highly available."
|
||||
- "If I(False) Virtual Machine won't be set as highly available."
|
||||
- "If no value is passed, default value is set by oVirt engine."
|
||||
- "If no value is passed, default value is set by oVirt/RHV engine."
|
||||
delete_protected:
|
||||
description:
|
||||
- "If I(True) Virtual Machine will be set as delete protected."
|
||||
- "If I(False) Virtual Machine won't be set as delete protected."
|
||||
- "If no value is passed, default value is set by oVirt engine."
|
||||
- "If no value is passed, default value is set by oVirt/RHV engine."
|
||||
stateless:
|
||||
description:
|
||||
- "If I(True) Virtual Machine will be set as stateless."
|
||||
- "If I(False) Virtual Machine will be unset as stateless."
|
||||
- "If no value is passed, default value is set by oVirt engine."
|
||||
- "If no value is passed, default value is set by oVirt/RHV engine."
|
||||
clone:
|
||||
description:
|
||||
- "If I(True) then the disks of the created virtual machine will be cloned and independent of the template."
|
||||
|
@ -426,7 +426,7 @@ id:
|
|||
type: str
|
||||
sample: 7de90f31-222c-436c-a1ca-7e655bd5b60c
|
||||
vm:
|
||||
description: "Dictionary of all the VM attributes. VM attributes can be found on your oVirt instance
|
||||
description: "Dictionary of all the VM attributes. VM attributes can be found on your oVirt/RHV instance
|
||||
at following url: https://ovirt.example.com/ovirt-engine/api/model#types/vm."
|
||||
returned: On success if VM is found.
|
||||
'''
|
||||
|
@ -459,7 +459,7 @@ class VmsModule(BaseModule):
|
|||
|
||||
def __get_template_with_version(self):
|
||||
"""
|
||||
oVirt in version 4.1 doesn't support search by template+version_number,
|
||||
oVirt/RHV in version 4.1 doesn't support search by template+version_number,
|
||||
so we need to list all templates with specific name and then iterate
|
||||
through it's version until we find the version we look for.
|
||||
"""
|
||||
|
|
|
@ -27,18 +27,18 @@ ANSIBLE_METADATA = {'metadata_version': '1.0',
|
|||
DOCUMENTATION = '''
|
||||
---
|
||||
module: ovirt_vms_facts
|
||||
short_description: Retrieve facts about one or more oVirt virtual machines
|
||||
short_description: Retrieve facts about one or more oVirt/RHV virtual machines
|
||||
author: "Ondra Machacek (@machacekondra)"
|
||||
version_added: "2.3"
|
||||
description:
|
||||
- "Retrieve facts about one or more oVirt virtual machines."
|
||||
- "Retrieve facts about one or more oVirt/RHV virtual machines."
|
||||
notes:
|
||||
- "This module creates a new top-level C(ovirt_vms) fact, which
|
||||
contains a list of virtual machines."
|
||||
options:
|
||||
pattern:
|
||||
description:
|
||||
- "Search term which is accepted by oVirt search backend."
|
||||
- "Search term which is accepted by oVirt/RHV search backend."
|
||||
- "For example to search VM X from cluster Y use following pattern:
|
||||
name=X and cluster=Y"
|
||||
all_content:
|
||||
|
|
Loading…
Reference in a new issue