Forge Home

lioiscsi

targetcli with puppet

6,709 downloads

6,709 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.

Support the Puppet Community by contributing to this module

You are welcome to contribute to this module by suggesting new features, currency updates, or fixes. Every contribution is valuable to help ensure that the module remains compatible with the latest Puppet versions and continues to meet community needs. Complete the following steps:

  1. Review the module’s contribution guidelines and any licenses. Ensure that your planned contribution aligns with the author’s standards and any legal requirements.
  2. Fork the repository on GitHub, make changes on a branch of your fork, and submit a pull request. The pull request must clearly document your proposed change.

For questions about updating the module, contact the module’s author.

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!