mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-09 18:04:02 -07:00
Avi Networks Ansible modules. (#20415)
* Avi Networks Ansible modules. Avi Version: 16.3.4 * Fixed Review comments 1. Changed description to be full sentences 2. Fixed Pep8 warnings. 3. Fixed comments and descriptions. * 1. Fixed descriptions and messages as per review comments. 2. Added descriptions for the missing parameters. * Fixed the shippable break due to the incorrect description format * Removed the extra modules so that there is a single module for the first commit * Updated license to BSD based on review comments * updated comments based on review feedback * Refactored code to handle POST and PUT scenarios where playbook does not need to check whether object is present. Moved ansible helper utilities to module_utils as now roles can be patched with module_utils as well. * fixed pep8 warnings
This commit is contained in:
parent
9f3870ddcd
commit
798972c72a
5 changed files with 350 additions and 0 deletions
45
lib/ansible/utils/module_docs_fragments/avi.py
Normal file
45
lib/ansible/utils/module_docs_fragments/avi.py
Normal file
|
@ -0,0 +1,45 @@
|
|||
#
|
||||
# Created on December 12, 2016
|
||||
# @author: Gaurav Rastogi (grastogi@avinetworks.com)
|
||||
# Avi Version: 16.3.4
|
||||
#
|
||||
#
|
||||
# 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):
|
||||
# Avi common documentation fragment
|
||||
DOCUMENTATION = """
|
||||
options:
|
||||
controller:
|
||||
description:
|
||||
- IP address or hostname of the controller. The default value is the environment variable C(AVI_CONTROLLER).
|
||||
username:
|
||||
description:
|
||||
- Username used for accessing Avi controller. The default value is the environment variable C(AVI_USERNAME).
|
||||
password:
|
||||
description:
|
||||
- Password of Avi user in Avi controller. The default value is the environment variable C(AVI_PASSWORD).
|
||||
tenant:
|
||||
description:
|
||||
- Name of tenant used for all Avi API calls and context of object.
|
||||
default: admin
|
||||
tenant_uuid:
|
||||
description:
|
||||
- UUID of tenant used for all Avi API calls and context of object.
|
||||
default: ''
|
||||
"""
|
Loading…
Add table
Add a link
Reference in a new issue