ansible.builtin.netapp_e_storagepool (v2.4.6.0-1) — module

Manage disk groups and disk pools

| "added in version" 2.2 of ansible.builtin"

Authors: Kevin Hulquest (@hulquest)

preview | supported by community

Install Ansible via pip

Install with pip install ansible==2.4.6.0.post1

Description

Create or remove disk groups and disk pools for NetApp E-series storage arrays.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
    - name: No disk groups
      netapp_e_storagepool:
        ssid: "{{ ssid }}"
        name: "{{ item }}"
        state: absent
        api_url: "{{ netapp_api_url }}"
        api_username: "{{ netapp_api_username }}"
        api_password: "{{ netapp_api_password }}"
        validate_certs: "{{ netapp_api_validate_certs }}"

Inputs

    
name:
    description:
    - The name of the storage pool to manage
    required: true

ssid:
    description:
    - The ID of the array to manage (as configured on the web services proxy).
    required: true

state:
    choices:
    - present
    - absent
    description:
    - Whether the specified storage pool should exist or not.
    - Note that removing a storage pool currently requires the removal of all defined
      volumes first.
    required: true

api_url:
    description:
    - The url to the SANtricity WebServices Proxy or embedded REST API.
    required: true

raid_level:
    choices:
    - raidAll
    - raid0
    - raid1
    - raid3
    - raid5
    - raid6
    - raidDiskPool
    description:
    - Only required when the requested state is 'present'.  The RAID level of the storage
      pool to be created.
    required: true

secure_pool:
    choices:
    - 'true'
    - 'false'
    description:
    - Whether to convert to a secure storage pool. Will only work if all drives in the
      pool are security capable.
    required: false

api_password:
    description:
    - The password to authenticate with the SANtricity WebServices Proxy or embedded REST
      API.
    required: true

api_username:
    description:
    - The username to authenticate with the SANtricity WebServices Proxy or embedded REST
      API.
    required: true

remove_volumes:
    default: false
    description:
    - Prior to removing a storage pool, delete all volumes in the pool.
    required: false

validate_certs:
    default: true
    description:
    - Should https certificates be validated?
    required: false

criteria_size_unit:
    choices:
    - bytes
    - b
    - kb
    - mb
    - gb
    - tb
    - pb
    - eb
    - zb
    - yb
    default: gb
    description:
    - The unit used to interpret size parameters

criteria_drive_type:
    choices:
    - hdd
    - ssd
    description:
    - The type of disk (hdd or ssd) to use when searching for candidates to use.

reserve_drive_count:
    description:
    - Set the number of drives reserved by the storage pool for reconstruction operations.
      Only valide on raid disk pools.
    required: false

criteria_drive_count:
    description:
    - The number of disks to use for building the storage pool. The pool will be expanded
      if this number exceeds the number of disks already in place

erase_secured_drives:
    choices:
    - 'true'
    - 'false'
    description:
    - Whether to erase secured disks before adding to storage pool
    required: false

criteria_drive_min_size:
    description:
    - The minimum individual drive size (in size_unit) to consider when choosing drives
      for the storage pool.

criteria_drive_require_fde:
    description:
    - Whether full disk encryption ability is required for drives to be added to the storage
      pool

criteria_min_usable_capacity:
    description:
    - The minimum size of the storage pool (in size_unit). The pool will be expanded if
      this value exceeds itscurrent size.

criteria_drive_interface_type:
    choices:
    - sas
    - sas4k
    - fibre
    - fibre520b
    - scsi
    - sata
    - pata
    description:
    - The interface type to use when selecting drives for the storage pool (no value means
      all interface types will be considered)

Outputs

msg:
  description: Success message
  returned: success
  sample: Json facts for the pool that was created.
  type: string