dellemc.unity.dellemc_unity_storagepool (1.2.1) — module

Manage storage pool on Unity

| "added in version" 1.1.0 of dellemc.unity"

Authors: Ambuj Dubey (@AmbujDube) <ansible.team@dell.com>

preview | supported by community

Install collection

Install with ansible-galaxy collection install dellemc.unity:==1.2.1


Add to requirements.yml

  collections:
    - name: dellemc.unity
      version: 1.2.1

Description

Managing storage pool on Unity storage system contains the following operations.

Get details of storage pool.

Modify storage pool.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Get Storage pool details using pool_name
  dellemc.unity.dellemc_unity_storagepool:
    unispherehost: "{{unispherehost}}"
    username: "{{username}}"
    password: "{{password}}"
    verifycert: "{{verifycert}}"
    pool_name: "{{pool_name}}"
    state: "present"
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Get Storage pool details using pool_id
  dellemc.unity.dellemc_unity_storagepool:
    unispherehost: "{{unispherehost}}"
    username: "{{username}}"
    password: "{{password}}"
    verifycert: "{{verifycert}}"
    pool_id: "{{pool_id}}"
    state: "present"
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Modify Storage pool attributes using pool_name
  dellemc.unity.dellemc_unity_storagepool:
    unispherehost: "{{unispherehost}}"
    username: "{{username}}"
    password: "{{password}}"
    verifycert: "{{verifycert}}"
    pool_name: "{{pool_name}}"
    new_pool_name: "{{new_pool_name}}"
    pool_description: "{{pool_description}}"
    fast_cache: "{{fast_cache_enabled}}"
    fast_vp: "{{fast_vp_enabled}}"
    state: "present"
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Modify Storage pool attributes using pool_id
  dellemc.unity.dellemc_unity_storagepool:
    unispherehost: "{{unispherehost}}"
    username: "{{username}}"
    password: "{{password}}"
    verifycert: "{{verifycert}}"
    pool_id: "{{pool_id}}"
    new_pool_name: "{{new_pool_name}}"
    pool_description: "{{pool_description}}"
    fast_cache: "{{fast_cache_enabled}}"
    fast_vp: "{{fast_vp_enabled}}"
    state: "present"

Inputs

    
port:
    default: 443
    description:
    - Port number through which communication happens with Unity management server.
    required: false
    type: int

state:
    choices:
    - absent
    - present
    description:
    - Define whether the storage pool should exist or not.
    - present - indicates that the storage pool should exist on the system.
    - absent - indicates that the storage pool should not exist on the system.
    required: true
    type: str

fast_vp:
    choices:
    - enabled
    - disabled
    description:
    - Indicates whether to enable scheduled data relocations for the pool.
    - enabled - Enabled scheduled data relocations for the pool.
    - disabled - Disabled scheduled data relocations for the pool.
    type: str

pool_id:
    description:
    - Unique identifier of the pool instance.
    type: str

password:
    description:
    - The password of the Unity management server.
    required: true
    type: str

username:
    description:
    - The username of the Unity management server.
    required: true
    type: str

pool_name:
    description:
    - Name of the storage pool, unique in the storage system.
    type: str

fast_cache:
    choices:
    - enabled
    - disabled
    description:
    - Indicates whether the fast cache is enabled for the storage pool.
    - enabled - FAST Cache is enabled for the pool.
    - disabled - FAST Cache is disabled for the pool.
    type: str

verifycert:
    choices:
    - true
    - false
    default: true
    description:
    - Boolean variable to specify whether or not to validate SSL certificate.
    - True - Indicates that the SSL certificate should be verified.
    - False - Indicates that the SSL certificate should not be verified.
    required: false
    type: bool

new_pool_name:
    description:
    - New name of the storage pool, unique in the storage system.
    type: str

unispherehost:
    description:
    - IP or FQDN of the Unity management server.
    required: true
    type: str

pool_description:
    description:
    - The description of the storage pool.
    type: str

Outputs

changed:
  description: Whether or not the storage pool has changed.
  returned: always
  type: bool
storage_pool_details:
  contains:
    id:
      description: Pool id, unique identifier of the pool.
      type: str
    is_fast_cache_enabled:
      description: Indicates whether the fast cache is enabled for the storage pool.
        true - FAST Cache is enabled for the pool. false - FAST Cache is disabled
        for the pool.
      type: bool
    is_fast_vp_enabled:
      description: Indicates whether to enable scheduled data relocations for the
        storage pool. true - Enabled scheduled data relocations for the pool. false
        - Disabled scheduled data relocations for the pool.
      type: bool
    name:
      description: Pool name, unique in the storage system.
      type: str
    size_free_with_unit:
      description: Indicates size_free with its appropriate unit in human readable
        form.
      type: str
    size_subscribed_with_unit:
      description: Indicates size_subscribed with its appropriate unit in human readable
        form.
      type: str
    size_total_with_unit:
      description: Indicates size_total with its appropriate unit in human readable
        form.
      type: str
    size_used_with_unit:
      description: Indicates size_used with its appropriate unit in human readable
        form.
      type: str
    snap_size_subscribed_with_unit:
      description: Indicates snap_size_subscribed with its appropriate unit in human
        readable form.
      type: str
    snap_size_used_with_unit:
      description: Indicates snap_size_used with its appropriate unit in human readable
        form.
      type: str
  description: The storage pool details.
  returned: When storage pool exists.
  type: complex