dellemc.powerscale.storagepooltier (3.0.0) — module

Manages storage pool tier on PowerScale

| "added in version" 1.6.0 of dellemc.powerscale"

Authors: Ananthu S Kuttattu (@kuttattz) <ansible.team@dell.com>

Install collection

Install with ansible-galaxy collection install dellemc.powerscale:==3.0.0


Add to requirements.yml

  collections:
    - name: dellemc.powerscale
      version: 3.0.0

Description

Managing storage pool tier on PowerScale Storage System. This includes creating a new storage pool tier, deleting a storage pool tier and retrieving the details of a storage pool tier.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Get storage pool tier details
  dellemc.powerscale.storagepooltier:
    onefs_host: "{{onefs_host}}"
    verify_ssl: "{{verify_ssl}}"
    api_user: "{{api_user}}"
    api_password: "{{api_password}}"
    tier_name: "test_tier"
    state: 'present'
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Create a storage pool tier
  dellemc.powerscale.storagepooltier:
    onefs_host: "{{onefs_host}}"
    verify_ssl: "{{verify_ssl}}"
    api_user: "{{api_user}}"
    api_password: "{{api_password}}"
    tier_name: "test_tier"
    nodepools:
      - "test_nodepool"
    state: 'present'
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Delete a storage pool tier
  dellemc.powerscale.storagepooltier:
    onefs_host: "{{onefs_host}}"
    verify_ssl: "{{verify_ssl}}"
    api_user: "{{api_user}}"
    api_password: "{{api_password}}"
    tier_name: "test_tier"
    state: 'absent'

Inputs

    
state:
    choices:
    - absent
    - present
    description:
    - The state option is used to mention the existence of storage pool tier.
    required: true
    type: str

port_no:
    default: '8080'
    description:
    - Port number of the PowerScale cluster.It defaults to 8080 if not specified.
    required: false
    type: str

tier_id:
    description:
    - Unique Id of the storage pool tier.
    - It is mutually exclusive with I(tier_name).
    type: int

api_user:
    description:
    - username of the PowerScale cluster.
    required: true
    type: str

nodepools:
    description:
    - List of names of the nodepool's.
    elements: str
    type: list

tier_name:
    description:
    - Unique name of the storage pool tier.
    - It is mutually exclusive with I(tier_id).
    - Mandatory for storage pool tier creation.
    type: str

onefs_host:
    description:
    - IP address or FQDN of the PowerScale cluster.
    required: true
    type: str

verify_ssl:
    choices:
    - true
    - false
    description:
    - boolean variable to specify whether to validate SSL certificate or not.
    - C(true) - indicates that the SSL certificate should be verified.
    - C(false) - indicates that the SSL certificate should not be verified.
    required: true
    type: bool

api_password:
    description:
    - the password of the PowerScale cluster.
    required: true
    type: str

Outputs

changed:
  description: Whether or not the resource has changed.
  returned: always
  sample: 'false'
  type: bool
storage_pool_tier_details:
  contains:
    children:
      description: Nodepool's of the storage pool tier.
      type: list
    id:
      description: Unique ID of the storage pool tier.
      type: int
    lnns:
      description: The nodes that are part of this tier.
      type: list
    name:
      description: Unique name of the storage pool tier.
      type: str
  description: Storage pool tier details.
  returned: When a tier exists
  sample:
    storage_pool_tier_details:
      children:
      - test_nodepool
      id: 1
      lnns:
      - 1
      - 2
      - 3
      name: test_tier
  type: complex