Browse Source

refactor(salt-lint): fix violations

```
[213] SaltStack recommends using cmd.run together with onchanges, rather than cmd.wait
apt/dist_upgrade.sls:2
  cmd.wait:
[213] SaltStack recommends using cmd.run together with onchanges, rather than cmd.wait
apt/update.sls:2
  cmd.wait:
[213] SaltStack recommends using cmd.run together with onchanges, rather than cmd.wait
apt/upgrade.sls:2
  cmd.wait:
[214] SLS file with a period in the name (besides the suffix period) can not be referenced
test/salt/pillar/preferences.pillar.sls:1
[214] SLS file with a period in the name (besides the suffix period) can not be referenced
test/salt/pillar/repositories.pillar.sls:1
[214] SLS file with a period in the name (besides the suffix period) can not be referenced
test/salt/pillar/unattended.pillar.sls:1
```
tags/v0.10.4
Imran Iqbal 2 years ago
parent
commit
7cc688cf15
No account linked to committer's email address
7 changed files with 9 additions and 9 deletions
  1. +2
    -2
      apt/dist_upgrade.sls
  2. +2
    -2
      apt/update.sls
  3. +2
    -2
      apt/upgrade.sls
  4. +3
    -3
      kitchen.yml
  5. +0
    -0
      test/salt/pillar/preferences.sls
  6. +0
    -0
      test/salt/pillar/repositories.sls
  7. +0
    -0
      test/salt/pillar/unattended.sls

+ 2
- 2
apt/dist_upgrade.sls View File

@@ -1,5 +1,5 @@
apt-get -y dist-upgrade:
cmd.wait:
- watch:
cmd.run:
- onchanges:
- file: /etc/apt/sources.list
- file: /etc/apt/sources.list.d

+ 2
- 2
apt/update.sls View File

@@ -1,5 +1,5 @@
apt-get -y update:
cmd.wait:
- watch:
cmd.run:
- onchanges:
- file: /etc/apt/sources.list
- file: /etc/apt/sources.list.d

+ 2
- 2
apt/upgrade.sls View File

@@ -1,5 +1,5 @@
apt-get -y upgrade:
cmd.wait:
- watch:
cmd.run:
- onchanges:
- file: /etc/apt/sources.list
- file: /etc/apt/sources.list.d

+ 3
- 3
kitchen.yml View File

@@ -144,7 +144,7 @@ suites:
'*':
- apt
pillars_from_files:
apt.sls: test/salt/pillar/repositories.pillar.sls
apt.sls: test/salt/pillar/repositories.sls
verifier:
inspec_tests:
- path: test/integration/repositories
@@ -161,7 +161,7 @@ suites:
'*':
- apt
pillars_from_files:
apt.sls: test/salt/pillar/preferences.pillar.sls
apt.sls: test/salt/pillar/preferences.sls
verifier:
inspec_tests:
- path: test/integration/preferences
@@ -178,7 +178,7 @@ suites:
'*':
- apt
pillars_from_files:
apt.sls: test/salt/pillar/unattended.pillar.sls
apt.sls: test/salt/pillar/unattended.sls
verifier:
inspec_tests:
- path: test/integration/unattended

test/salt/pillar/preferences.pillar.sls → test/salt/pillar/preferences.sls View File


test/salt/pillar/repositories.pillar.sls → test/salt/pillar/repositories.sls View File


test/salt/pillar/unattended.pillar.sls → test/salt/pillar/unattended.sls View File


Loading…
Cancel
Save