Forge Home

lioiscsi

targetcli with puppet

6,610 downloads

6,610 latest version

1.0 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 0.0.1 (latest)
released Nov 25th 2016
This version is compatible with:

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'fchioralia-lioiscsi', '0.0.1'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add fchioralia-lioiscsi
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install fchioralia-lioiscsi --version 0.0.1

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

fchioralia/lioiscsi — version 0.0.1 Nov 25th 2016

puppet-lio-iscsi

targetcli from puppet

Table of Contents

  1. Overview
  2. Usage - Configuration options and additional functionality
  3. Limitations
  4. Contribute

Overview

A module that help configure target iscsi lio service. Intended to deploy easy a iscsi server on RedHat Family OSs. You can:

  • add new iscsi backstores
  • configure iscsi target names with acls, luns and portals.

Puppet dependencies (Puppet modules): stdlib

Usage

First add a backstore (block, fileio, pscsi, ramdisk).

fileio example:

     lio-iscsi::targetcli::createbackstore{"iscsi-5g":
             name        => "iscsi-5g",
             type        => "fileio"
             size        => "5G",
             file_or_dev => "/home/5g.img"
             write_back  => "true",
             sparse      => "true",
     }

block example:

     lio-iscsi::targetcli::createbackstore{"iscsi-block":
             name        => "iscsi-block",
             type        => "block"
             file_or_dev => "/dev/sdb1",
             readonly    => "false",
     }

pscsi example:

     lio-iscsi::targetcli::createbackstore{"iscsi-pscsi":
             name        => "iscsi-pscsi",
             type        => "pscsi"
             file_or_dev => "/dev/disk/by-path/pci-0000\:00\:01.1-ata-2.1"
     }

ramdisk example:

     lio-iscsi::targetcli::createbackstore{"iscsi-ram":
             name        => "iscsi-ram",
             type        => "ramdisk"
             size        => "5G",
             nullio      => "false",
     }

Then create the target

     lio-iscsi::targetcli::createiscsitarget{"testiscsi":
            target_name => "iqn.2016-11.net.example:target1",
            tpg         => "tpg1",
            tpg_luns    => ["fileio/iscsi-5g"],
            tpg_acls    => ["iqn.2016-11.net.example:xen1","iqn.2016-11.net.example:xen2"],
            tpg_portals => ["0.0.0.0:3260"]
    }

Limitations

Tested only on RedHad 7.2

Contribute

I encourage you to contribute. Send me your pull requests on Github!