yeoldegrove.targetcli.targetcli_backstore (6.0.0) — module

TargetCLI backstore module

| "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 backstore objects in targetcli ('/backstores').

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: define new block backstore from disk/LV /dev/c7vg/LV1
  targetcli_backstore:
    backstore_type: 'block'
    backstore_name: 'test1'
    options: '/dev/c7vg/LV1'
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: define new block backstore from disk/LV /dev/c7vg/LV2 with attributes
  targetcli_backstore:
    backstore_type: 'block'
    backstore_name: 'test2'
    options: '/dev/c7vg/LV2'
    attributes: 'emulate_tpu=1'
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: remove block backstore from disk/LV /dev/c7vg/LV2
  targetcli_backstore:
    backstore_type: 'block'
    backstore_name: 'test2'
    state: 'absent'

Inputs

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

options:
    default: null
    description:
    - options for create operation when creating backstore object
    required: false
    type: str

attributes:
    default: null
    description:
    - Attributes for the defined LUN
    required: false
    type: str

backstore_name:
    default: null
    description:
    - Name of backtore object in TargetCLI
    required: true
    type: str

backstore_type:
    default: null
    description:
    - Type of storage in TargetCLI (block, fileio, pscsi, ramdisk)
    required: true
    type: str