iscsi-formula
1. General notes
See the full SaltStack Formulas installation and usage instructions.
If you are interested in writing or contributing to formulas, please pay attention to the Writing Formula Section.
If you want to use this formula, please pay attention to the FORMULA
file and/or git tag
, which contains the currently released version.
This formula is versioned according to Semantic
Versioning.
See Formula Versioning Section for more details.
3. Contributing to this repo
Commit message formatting is significant!!
Please see How to contribute for more details.
4. Available Meta states
4.1. iscsi
Meta-state (This is a state that includes other states).
Deploy iSNS, iSCSI initiator, and iSCSI target packages, manage configuration files and then starts the associated iscsi services.
4.2. iscsi.target
Install and configure the iSCSI Target service. Supported vendor implementations include-
-
/etc/ctl.conf
forctld(8)
on FreeBSD -
/etc/target/saveconfig.json\
for`LIO`` on GNU/Linux -
/etc/targets.conf
fortgt(8)
on GNU/Linux -
/etc/ietd.conf
for ietd(8)` on GNU/Linux
The defaults targets are-
-
ctld on FreeBSD
-
LIO on CentOS, OpenSUSE, Arch
-
tgt on Debian
-
Unsupported on Amazon (no packages available)
The default choice is modifable via the iscsi.target.provider pillar value. New providers can be introduced via pull request.
4.3. iscsi.target.clean
Meta-state (This is a state that includes other states).
this state will undo everything performed in the iscsi.target
meta-state in reverse order, i.e. stops the service, removes the
configuration files and then uninstalls the package.
4.4. iscsi.initiator
Install and configure the iSCSI initiator service-
-
/etc/iscsi.conf
for FreeBSD -
/etc/iscsi/iscsid.conf
or~/.iscsid.conf
forOpen iSCSI
on GNU/Linux
5. Available sub-states
6. Testing
Linux testing is done with kitchen-salt
.
6.1. Requirements
-
Ruby
-
Docker
$ gem install bundler
$ bundle install
$ bin/kitchen test [platform]
Where [platform]
is the platform name defined in kitchen.yml
, e.g.
debian-9-2019-2-py3
.
6.2. bin/kitchen converge
Creates the docker instance and runs the iscsi
main state, ready for
testing.