Skip to content

Commit

Permalink
docs(lint): fix lint errors & skip service on centos/travis
Browse files Browse the repository at this point in the history
  • Loading branch information
noelmcloughlin committed Oct 4, 2019
1 parent f72fe9e commit 1a6161f
Show file tree
Hide file tree
Showing 9 changed files with 696 additions and 106 deletions.
40 changes: 20 additions & 20 deletions iscsi/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@
---
iscsi:
filemode: '0640'
user: iscsimake #archlinux only
user: iscsimake # archlinux only
rootgroup: root
subcomponent:
config: '/etc/iscsi-subcomponent-formula.conf'
# Just here for testing
added_in_defaults: defaults_value
winner: defaults
loadkernelmodule: False
loadkernelmodule: false

config:
acl:
allow:
ietd: /etc/ietd/initiators.allow
deny:
deny:
ietd: /etc/ietd/initiators.deny
name:
modprobe: /etc/modprobe.d/iscsi-modules.conf
Expand All @@ -27,21 +27,21 @@ iscsi:
ietd: /etc/ietd.conf
lio: /etc/target/saveconfig.json
isns: /etc/isns/isnsd.conf
isnsadm: False
isnsdd: False
isnsadm: false
isnsdd: false
open-iscsi: /etc/iscsi/iscsid.conf
servicename:
iscsi: iscsid
fcoe: #Fibre-Channel over Ethernet (FCoE) Target
fcoe: # Fibre-Channel over Ethernet (FCoE) Target
- fcoe
- lldpad
- fcoe-target
tgtd: tgt #TGT Project (userspace) RedHat/Debian/Arch/Gentoo
ctld: ctld #CAM Target Layer/iSCSI target daemon, FreeBSD.
ietd: iscsitarget #iSCSI Enterprise Target (IET) project
isns: isnsd #Open-iSNS implements iSNS protocol (RFC4171)
lio: target #LIO is defacto standard on enterprise linux
open-iscsi: open-iscsi #Open-iSCSI
tgtd: tgt # TGT Project (userspace) RedHat/Debian/Arch/Gentoo
ctld: ctld # CAM Target Layer/iSCSI target daemon, FreeBSD.
ietd: iscsitarget # iSCSI Enterprise Target (IET) project
isns: isnsd # Open-iSNS implements iSNS protocol (RFC4171)
lio: target # LIO is defacto standard on enterprise linux
open-iscsi: open-iscsi # Open-iSCSI
servicetext:
iscsi: 'iscsictl_enable="YES"'
ctld: 'iscsid_enable="YES"'
Expand Down Expand Up @@ -91,9 +91,9 @@ iscsi:
modquery: modinfo

isns:
enabled: True
enabled: true
provider: isns
pkghold: False
pkghold: false
pkgs:
wanted:
- open-isns
Expand All @@ -102,10 +102,10 @@ iscsi:
wanted: []

initiator:
enabled: True
loadmodule: False
enabled: true
loadmodule: false
provider: open-iscsi
pkghold: False
pkghold: false
pkgs:
wanted:
- open-iscsi
Expand All @@ -115,10 +115,10 @@ iscsi:

target:
port: 3260
loadmodule: False
enabled: True
enabled: true
loadmodule: false
provider: lio
pkghold: False
pkghold: false
pkgs:
wanted: []
unwanted: []
Expand Down
10 changes: 5 additions & 5 deletions iscsi/osfamilymap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Debian:
servicename:
isns: isnsd
initiator:
enabled: False #see https://github.com/saltstack-formulas/iscsi-formula/issues/10
enabled: false # see https://github.com/saltstack-formulas/iscsi-formula/issues/10
pkgs:
wanted:
- open-iscsi
Expand Down Expand Up @@ -56,7 +56,7 @@ RedHat:

Suse:
config:
servicename:
servicename:
open-iscsi: iscsid
lio: targetcli
isns:
Expand Down Expand Up @@ -107,15 +107,15 @@ Arch:
- iscsid
kmodule:
lio:
name:
name:
text:
initiator:
make:
gitrepo: https://aur.archlinux.org
cmd: makepkg -si --noconfirm -f
wanted: []
target:
loadmodule: True
loadmodule: true
pkgs:
wanted:
- linux-lts # For kernel scsi modules
Expand All @@ -138,7 +138,7 @@ FreeBSD:
wanted:
- net/open-isns
target:
loadmodule: True
loadmodule: true
provider: ctld
pkgs:
wanted:
Expand Down
6 changes: 3 additions & 3 deletions iscsi/osfingermap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ CentOS-7:
- libiscsi
- libiscsi-utils
target:
loadmodule: True
loadmodule: true
pkgs:
wanted:
- yum-plugin-versionlock
Expand All @@ -53,12 +53,12 @@ CentOS-8:
- libiscsi
- libiscsi-utils
target:
loadmodule: True
loadmodule: true
pkgs:
wanted:
- yum-plugin-versionlock
- targetcli
- libvirt-daemon-driver-storage-iscsi
- libvirt-daemon-driver-storage-iscsi-direct
- thin-provisioning-tools
# thin-provisioning-tools
- udisks2-iscsi
2 changes: 1 addition & 1 deletion iscsi/osmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Fedora:
provider: tgtd
pkgs:
wanted:
- device-mapper-persistent-data
- device-mapper-persistent-data #aka thin-provisioning-tools
- netbsd-iscsi
- yum-plugin-versionlock
- targetcli
Expand Down
38 changes: 20 additions & 18 deletions kitchen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,7 @@ verifier:
suites:
- name: default
excludes:
- default-centos-6-2017-7-py2
- default-centos-7-2019-2-py3
- default-centos-7-2019-2-py3
provisioner:
dependencies:
- name: lvm
Expand All @@ -172,19 +171,18 @@ suites:
'*':
- iscsi
pillars_from_files:
iscsi.sls: test/integration/default/pillar.example.loopdevs-4-7
iscsi.sls: test/salt/pillar/pillar.example
verifier:
inspec_tests:
- path: test/integration/default

- name: centos7
excludes:
- default-debian-10-develop-py3
- default-ubuntu-1804-2019-2-py3
- default-opensuse-leap-15-2018-3-py2
- default-amazonlinux-2-2018-3-py2
- default-centos-6-2017-7-py2
- default-fedora-30-develop-py3
- default-debian-10-develop-py3
- default-ubuntu-1804-2019-2-py3
- default-opensuse-leap-15-2018-3-py2
- default-amazonlinux-2-2018-3-py2
- default-fedora-30-develop-py3
provisioner:
dependencies:
- name: lvm
Expand All @@ -194,6 +192,8 @@ suites:
base:
'*':
- lvm.install
- lvm.pv.remove
- lvm.files.remove
- lvm.files.create
- lvm.pv.create
- iscsi.initiator.clean
Expand All @@ -207,19 +207,18 @@ suites:
'*':
- iscsi
pillars_from_files:
iscsi.sls: test/integration/default/pillar.example.loopdevs-4-7
iscsi.sls: test/salt/pillar/pillar.example
verifier:
inspec_tests:
- path: test/integration/default

- name: centos6
- name: centos # skip service start state on travis
excludes:
- default-debian-10-develop-py3
- default-ubuntu-1804-2019-2-py3
- default-opensuse-leap-15-2018-3-py2
- default-amazonlinux-2-2018-3-py2
- default-centos-7-2019-2-py3
- default-fedora-30-develop-py3
- default-debian-10-develop-py3
- default-ubuntu-1804-2019-2-py3
- default-opensuse-leap-15-2018-3-py2
- default-amazonlinux-2-2018-3-py2
- default-fedora-30-develop-py3
provisioner:
dependencies:
- name: lvm
Expand All @@ -229,10 +228,13 @@ suites:
base:
'*':
- lvm.install
- lvm.pv.remove
- lvm.files.remove
- lvm.files.create
- lvm.pv.create
- iscsi.initiator.clean
- iscsi.target.clean
- iscsi.isns
- iscsi.target
- iscsi.initiator
pillars:
Expand All @@ -241,7 +243,7 @@ suites:
'*':
- iscsi
pillars_from_files:
iscsi.sls: test/integration/default/pillar.example.loopdevs-4-7
iscsi.sls: test/salt/pillar/pillar.travis
verifier:
inspec_tests:
- path: test/integration/default
10 changes: 5 additions & 5 deletions pillar.example
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,17 @@
{% if grains.os_family in ('Arch',) %}
users:
iscsimake:
sudouser: True
sudouser: true
shell: /bin/bash
empty_password: True
empty_password: true
home: /home/iscsimake
createhome: True
createhome: true
optional_groups:
- wheel
- root
sudo_rules:
- 'ALL=(ALL) ALL'
{% endif %}

lvm:
files:
remove:
Expand Down Expand Up @@ -58,6 +57,8 @@ lvm:
/dev/loop3: {}

iscsi:
#target:
# enabled: true
config:
data:
open-iscsi:
Expand Down Expand Up @@ -636,4 +637,3 @@ iscsi:
iser: 0
tag: 2
wwn: iqn.1996-04.lx.suse:01:a66aed20e2f3

46 changes: 0 additions & 46 deletions test/salt/pillar/centos6.sls

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,18 @@
{% if grains.os_family in ('Arch',) %}
users:
iscsimake:
sudouser: True
sudouser: true
shell: /bin/bash
empty_password: True
empty_password: true
home: /home/iscsimake
createhome: True
createhome: true
optional_groups:
- wheel
- root
sudo_rules:
- 'ALL=(ALL) ALL'
{% endif %}

lvm:
pkgs:
- lvm2
# cryptsetup
files:
remove:
- /tmp/loopdevs/testfile0.img
Expand Down Expand Up @@ -639,4 +635,3 @@ iscsi:
iser: 0
tag: 2
wwn: iqn.1996-04.lx.suse:01:a66aed20e2f3

Loading

0 comments on commit 1a6161f

Please sign in to comment.