2020-03-09 10:11:07 +01:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
2022-08-05 12:28:29 +02:00
|
|
|
# Copyright (c) 2017, Simon Dodsley <simon@purestorage.com>
|
|
|
|
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
|
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
2020-03-09 10:11:07 +01:00
|
|
|
|
2020-06-24 21:50:36 +02:00
|
|
|
from __future__ import (absolute_import, division, print_function)
|
|
|
|
__metaclass__ = type
|
|
|
|
|
2020-03-09 10:11:07 +01:00
|
|
|
|
|
|
|
class ModuleDocFragment(object):
|
|
|
|
|
|
|
|
# Standard Pure Storage documentation fragment
|
|
|
|
DOCUMENTATION = r'''
|
|
|
|
options:
|
|
|
|
- See separate platform section for more details
|
|
|
|
requirements:
|
|
|
|
- See separate platform section for more details
|
|
|
|
notes:
|
|
|
|
- Ansible modules are available for the following Pure Storage products: FlashArray, FlashBlade
|
|
|
|
'''
|
|
|
|
|
|
|
|
# Documentation fragment for FlashBlade
|
|
|
|
FB = r'''
|
|
|
|
options:
|
|
|
|
fb_url:
|
|
|
|
description:
|
|
|
|
- FlashBlade management IP address or Hostname.
|
|
|
|
type: str
|
|
|
|
api_token:
|
|
|
|
description:
|
|
|
|
- FlashBlade API token for admin privileged user.
|
|
|
|
type: str
|
|
|
|
notes:
|
|
|
|
- This module requires the C(purity_fb) Python library
|
|
|
|
- You must set C(PUREFB_URL) and C(PUREFB_API) environment variables
|
2023-06-10 09:28:40 +02:00
|
|
|
if O(fb_url) and O(api_token) arguments are not passed to the module directly
|
2020-03-09 10:11:07 +01:00
|
|
|
requirements:
|
|
|
|
- python >= 2.7
|
|
|
|
- purity_fb >= 1.1
|
|
|
|
'''
|
|
|
|
|
|
|
|
# Documentation fragment for FlashArray
|
|
|
|
FA = r'''
|
|
|
|
options:
|
|
|
|
fa_url:
|
|
|
|
description:
|
|
|
|
- FlashArray management IPv4 address or Hostname.
|
|
|
|
type: str
|
|
|
|
required: true
|
|
|
|
api_token:
|
|
|
|
description:
|
|
|
|
- FlashArray API token for admin privileged user.
|
|
|
|
type: str
|
|
|
|
required: true
|
|
|
|
notes:
|
|
|
|
- This module requires the C(purestorage) Python library
|
|
|
|
- You must set C(PUREFA_URL) and C(PUREFA_API) environment variables
|
2023-06-10 09:28:40 +02:00
|
|
|
if O(fa_url) and O(api_token) arguments are not passed to the module directly
|
2020-03-09 10:11:07 +01:00
|
|
|
requirements:
|
|
|
|
- python >= 2.7
|
|
|
|
- purestorage
|
|
|
|
'''
|