yeoldegrove.targetcli.targetcli_iscsi_acl_mapped_lun (6.0.0) — module

TargetCLI iSCSI ACL module for mapped luns

| "added in version" 2.0 of yeoldegrove.targetcli"

Authors: Ondrej Famera (@OndrejHome)

preview | supported by community

Install collection

Install with ansible-galaxy collection install yeoldegrove.targetcli:==6.0.0


Add to requirements.yml

  collections:
    - name: yeoldegrove.targetcli
      version: 6.0.0

Description

module for handling iSCSI ACL mapped_lun objects in targetcli ('/iscsi/.../tpg1/acls/.../').

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: define new iscsi ACL client mapped LUN
  targetcli_iscsi_acl_mapped_lun:
    wwn: 'iqn.1994-05.com.redhat:data'
    initiator_wwn: 'iqn.1994-05.com.redhat:client1'
    backstore_type: 'block'
    backstore_name: 'test2'
    mapped_lun_id: '2'
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: remove iSCSI ACL mapped LUN
  targetcli_iscsi_acl_mapped_lun:
    wwn: 'iqn.1994-05.com.redhat:data'
    initiator_wwn: 'iqn.1994-05.com.redhat:client1'
    backstore_type: 'block'
    backstore_name: 'test2'
    state: 'absent'

Inputs

    
wwn:
    default: null
    description:
    - WWN of iSCSI target (server)
    required: true
    type: str

state:
    choices:
    - present
    - absent
    default: present
    description:
    - Should the object be present or absent from TargetCLI configuration
    required: false
    type: str

initiator_wwn:
    default: null
    description:
    - WWN of iSCSI initiator (client)
    required: true
    type: str

mapped_lun_id:
    default: null
    description:
    - LUN ID of added backstore object (only needed when creating mapped LUN)
    required: false
    type: int

backstore_name:
    default: null
    description:
    - name of backstore object
    required: true
    type: str

backstore_type:
    default: null
    description:
    - type of backstore object
    required: true
    type: str