ieisystem.inmanage.edit_pdisk (1.1.1) — module

Set physical disk

| "added in version" 1.0.0 of ieisystem.inmanage"

Authors: WangBaoshan (@ieisystem)

Install collection

Install with ansible-galaxy collection install ieisystem.inmanage:==1.1.1


Add to requirements.yml

  collections:
    - name: ieisystem.inmanage
      version: 1.1.1

Description

Set physical disk on ieisystem Server.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Edit pdisk test
  hosts: inmanage
  connection: local
  gather_facts: no
  vars:
    inmanage:
      host: "{{ ansible_ssh_host }}"
      username: "{{ username }}"
      password: "{{ password }}"

  tasks:

  - name: "Show pdisk information"
    ieisystem.inmanage.edit_pdisk:
      info: "show"
      provider: "{{ inmanage }}"

  - name: "Edit pdisk"
    ieisystem.inmanage.edit_pdisk:
      ctrl_id: 0
      device_id: 1
      option: "LOC"
      provider: "{{ inmanage }}"

  - name: "M5 Edit pdisk"
    ieisystem.inmanage.edit_pdisk:
      ctrl_id: 0
      device_id: 1
      option: "HS"
      action: "dedicate"
      revertible: "yes"
      encl: "yes"
      logical_drivers: 1
      provider: "{{ inmanage }}"

Inputs

    
encl:
    choices:
    - 'yes'
    - 'no'
    description:
    - IsEnclAffinity while set physical drive hotspare.
    - Required when I(Info=None) and I(option=HS) and I(action=dedicate).
    - Only the M5 model supports this parameter.
    type: str

host:
    description:
    - Specifies the DNS host name or address for connecting to the remote device over
      the specified transport.  The value of host is used as the destination address for
      the transport.
    type: str

info:
    choices:
    - show
    description:
    - Show controller and pdisk info.
    type: str

action:
    choices:
    - remove
    - global
    - dedicate
    description:
    - Action while set physical drive hotspare.
    - Required when I(Info=None) and I(option=HS).
    - Only the M5 model supports this parameter.
    type: str

option:
    choices:
    - UG
    - UB
    - 'OFF'
    - FAIL
    - RBD
    - 'ON'
    - JB
    - ES
    - EM
    - EN
    - ET
    - LOC
    - STL
    - HS
    description:
    - Set operation options for a physical disk.
    - UG is Unconfigured Good, UB is Unconfigured Bad.
    - OFF is offline, FAIL is Failed, RBD is Rebuild.
    - ON is Online, JB is JBOD, ES is Drive Erase stop.
    - EM is Drive Erase Simple, EN is Drive Erase Normal.
    - ET is Drive Erase Through, LOC is Locate, STL is Stop Locate.
    - HS is Hot spare.
    - Required when I(Info=None).
    - Only the M5 model supports C(HS) Settings.
    type: str

ctrl_id:
    description:
    - Raid controller ID.
    - Required when I(Info=None).
    type: int

duration:
    description:
    - Duration range is 1-255, physical drive under PMC raid controller.
    - Required when I(option=LOC).
    - Only the M6 model supports this parameter.
    type: int

password:
    description:
    - Specifies the password to use to authenticate the connection to the remote device.
      If the value is not specified in the task, the value of environment variable C(ANSIBLE_NET_PASSWORD)
      will be used instead.
    type: str

provider:
    description:
    - A dict object containing connection details.
    suboptions:
      host:
        description:
        - Specifies the DNS host name or address for connecting to the remote device over
          the specified transport.  The value of host is used as the destination address
          for the transport.
        type: str
      password:
        description:
        - Specifies the password to use to authenticate the connection to the remote device.
          If the value is not specified in the task, the value of environment variable
          C(ANSIBLE_NET_PASSWORD) will be used instead.
        type: str
      username:
        description:
        - Configures the username to use to authenticate the connection to the remote
          device. If the value is not specified in the task, the value of environment
          variable C(ANSIBLE_NET_USERNAME) will be used instead.
        type: str
    type: dict

username:
    description:
    - Configures the username to use to authenticate the connection to the remote device.
      If the value is not specified in the task, the value of environment variable C(ANSIBLE_NET_USERNAME)
      will be used instead.
    type: str

device_id:
    description:
    - Physical drive id.
    - Required when I(Info=None).
    type: int

revertible:
    choices:
    - 'yes'
    - 'no'
    description:
    - IsRevertible while set physical drive hotspare.
    - Required when I(Info=None) and I(option=HS) and I(action=dedicate).
    - Only the M5 model supports this parameter.
    type: str

logical_drivers:
    description:
    - Logical Drivers while set physical drive hotspare, input multiple Logical Drivers
      index like 0, 1, 2.....
    - Required when I(Info=None) and I(option=HS) and I(action=dedicate).
    - Only the M5 model supports this parameter.
    elements: int
    type: list

Outputs

changed:
  description: Check to see if a change was made on the device.
  returned: always
  type: bool
message:
  description: Messages returned after module execution.
  returned: always
  type: str
state:
  description: Status after module execution.
  returned: always
  type: str