dellemc.powerscale.node (3.0.0) — module

Get node info of PowerScale Storage System

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

Authors: Ganesh Prabhu(@prabhg5) <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

Get information of a node belonging to the PowerScale cluster.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Get node info of the PowerScale cluster node
  dellemc.powerscale.node:
    onefs_host: "{{onefs_host}}"
    verify_ssl: "{{verify_ssl}}"
    api_user: "{{api_user}}"
    api_password: "{{api_password}}"
    node_id: "{{cluster_node_id}}"
    state: "present"

Inputs

    
state:
    choices:
    - absent
    - present
    description:
    - Defines whether the node should exist or not.
    required: true
    type: str

node_id:
    description:
    - The Logical node Number of a PowerScale cluster node.
    required: true
    type: int

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

api_user:
    description:
    - username of the PowerScale cluster.
    required: true
    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
cluster_node_details:
  contains:
    id:
      description: Node id (device number) of a node.
      type: int
    lnn:
      description: Logical Node Number (LNN) of a node.
      type: int
    partitions:
      contains:
        count:
          description: Count of how many partitions are included.
          type: int
      description: Node partition information.
      type: complex
  description: The cluster node details.
  returned: When cluster node exists
  sample:
    id: 1
    lnn: 1
    partitions:
      count: 1
      partitions:
      - block_size: 1024
        capacity: 1957516
        component_devices: ada0p2
        mount_point: /
        percent_used: 50%
        statfs:
          f_namemax: 255
          f_owner: 0
          f_type: 53
          f_version: 538182936
        used: 909066
  type: dict