mirror of https://github.com/ansible/ansible.git
module_utils: ovirt: Add support to fetch nested object's attributes (#18666)
* module_utils: ovirt: Add support to fetch nested object's attributes This patch fixes issue #3555 * Update documentationpull/18757/head
parent
c414ded69a
commit
f1812b0f15
@ -0,0 +1,61 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
#
|
||||||
|
# Copyright (c) 2016 Red Hat, Inc.
|
||||||
|
#
|
||||||
|
# This file is part of Ansible
|
||||||
|
#
|
||||||
|
# Ansible is free software: you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation, either version 3 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# Ansible is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
#
|
||||||
|
|
||||||
|
class ModuleDocFragment(object):
|
||||||
|
|
||||||
|
# facts standart oVirt documentation fragment
|
||||||
|
DOCUMENTATION = '''
|
||||||
|
options:
|
||||||
|
fetch_nested:
|
||||||
|
description:
|
||||||
|
- "If I(True) the module will fetch additional data from the API."
|
||||||
|
- "It will fetch IDs of the VMs disks, snapshots, etc. User can configure to fetch other
|
||||||
|
attributes of the nested entities by specifing C(nested_attributes)."
|
||||||
|
version_added: "2.3"
|
||||||
|
nested_attributes:
|
||||||
|
description:
|
||||||
|
- "Specifies list of the attributes which should be fetched from the API."
|
||||||
|
- "This parameter apply only when C(fetch_nested) is I(true)."
|
||||||
|
version_added: "2.3"
|
||||||
|
auth:
|
||||||
|
required: True
|
||||||
|
description:
|
||||||
|
- "Dictionary with values needed to create HTTP/HTTPS connection to oVirt:"
|
||||||
|
- "C(username)[I(required)] - The name of the user, something like `I(admin@internal)`."
|
||||||
|
- "C(password)[I(required)] - The password of the user."
|
||||||
|
- "C(url)[I(required)] - A string containing the base URL of the server, usually
|
||||||
|
something like `I(https://server.example.com/ovirt-engine/api)`."
|
||||||
|
- "C(token) - Token to be used instead of login with username/password."
|
||||||
|
- "C(insecure) - A boolean flag that indicates if the server TLS
|
||||||
|
certificate and host name should be checked."
|
||||||
|
- "C(ca_file) - A PEM file containing the trusted CA certificates. The
|
||||||
|
certificate presented by the server will be verified using these CA
|
||||||
|
certificates. If `C(ca_file)` parameter is not set, system wide
|
||||||
|
CA certificate store is used."
|
||||||
|
- "C(kerberos) - A boolean flag indicating if Kerberos authentication
|
||||||
|
should be used instead of the default basic authentication."
|
||||||
|
requirements:
|
||||||
|
- python >= 2.7
|
||||||
|
- ovirt-engine-sdk-python >= 4.0.0
|
||||||
|
notes:
|
||||||
|
- "In order to use this module you have to install oVirt Python SDK.
|
||||||
|
To ensure it's installed with correct version you can create the following task:
|
||||||
|
pip: name=ovirt-engine-sdk-python version=4.0.0"
|
||||||
|
'''
|
Loading…
Reference in New Issue