feat: use `semantic-release` cross-formula standard structure
* Semi-automated using https://github.com/myii/ssf-formula/pull/31
* Includes:
- Update TOFS
- Use `bin/kitchen`
- Use `dist: bionic` in Travis
- Add `yamllint` and apply rules
- Use `pillars_from_files` throughout
- Replace EOL images in Kitchen & Travis
- Add `develop` images in Kitchen & Travis
* Fix (or ignore) errors shown below:
```bash
salt-formula$ yamllint -s .
./pillar.example
1:1 warning missing document start "---" (document-start)
5:23 warning truthy value should be one of [false, true] (truthy)
8:25 warning truthy value should be one of [false, true] (truthy)
11:25 warning truthy value should be one of [false, true] (truthy)
19:21 warning truthy value should be one of [false, true] (truthy)
40:89 error line too long (108 > 88 characters) (line-length)
41:89 error line too long (112 > 88 characters) (line-length)
43:89 error line too long (112 > 88 characters) (line-length)
45:89 error line too long (110 > 88 characters) (line-length)
47:89 error line too long (89 > 88 characters) (line-length)
74:27 warning truthy value should be one of [false, true] (truthy)
82:9 error wrong indentation: expected 10 but found 8 (indentation)
101:14 warning truthy value should be one of [false, true] (truthy)
102:20 warning truthy value should be one of [false, true] (truthy)
103:89 error line too long (119 > 88 characters) (line-length)
121:7 warning comment not indented like content (comments-indentation)
122:24 error syntax error: found character '%' that cannot start any token
310:89 error line too long (102 > 88 characters) (line-length)
330:89 error line too long (113 > 88 characters) (line-length)
433:1 error too many blank lines (1 > 0) (empty-lines)
./salt/osmap.yaml
4:2 error syntax error: found character '%' that cannot start any token
6:89 error line too long (93 > 88 characters) (line-length)
22:89 error line too long (137 > 88 characters) (line-length)
23:89 error line too long (134 > 88 characters) (line-length)
33:89 error line too long (149 > 88 characters) (line-length)
34:89 error line too long (146 > 88 characters) (line-length)
./salt/osfamilymap.yaml
4:2 error syntax error: found character '%' that cannot start any token
6:89 error line too long (94 > 88 characters) (line-length)
24:89 error line too long (149 > 88 characters) (line-length)
25:89 error line too long (146 > 88 characters) (line-length)
39:89 error line too long (105 > 88 characters) (line-length)
40:89 error line too long (127 > 88 characters) (line-length)
56:89 error line too long (101 > 88 characters) (line-length)
./salt/ospyvermap.yaml
4:1 warning missing document start "---" (document-start)
./salt/defaults.yaml
3:1 warning missing document start "---" (document-start)
7:21 warning truthy value should be one of [false, true] (truthy)
8:12 warning truthy value should be one of [false, true] (truthy)
9:23 warning truthy value should be one of [false, true] (truthy)
10:19 warning truthy value should be one of [false, true] (truthy)
14:25 warning truthy value should be one of [false, true] (truthy)
15:25 warning truthy value should be one of [false, true] (truthy)
16:27 warning truthy value should be one of [false, true] (truthy)
17:27 warning truthy value should be one of [false, true] (truthy)
39:28 warning truthy value should be one of [false, true] (truthy)
41:28 warning truthy value should be one of [false, true] (truthy)
45:24 warning truthy value should be one of [false, true] (truthy)
49:30 warning truthy value should be one of [false, true] (truthy)
54:28 warning truthy value should be one of [false, true] (truthy)
63:25 warning truthy value should be one of [false, true] (truthy)
68:15 warning truthy value should be one of [false, true] (truthy)
```
5 年之前 feat: use `semantic-release` cross-formula standard structure
* Semi-automated using https://github.com/myii/ssf-formula/pull/31
* Includes:
- Update TOFS
- Use `bin/kitchen`
- Use `dist: bionic` in Travis
- Add `yamllint` and apply rules
- Use `pillars_from_files` throughout
- Replace EOL images in Kitchen & Travis
- Add `develop` images in Kitchen & Travis
* Fix (or ignore) errors shown below:
```bash
salt-formula$ yamllint -s .
./pillar.example
1:1 warning missing document start "---" (document-start)
5:23 warning truthy value should be one of [false, true] (truthy)
8:25 warning truthy value should be one of [false, true] (truthy)
11:25 warning truthy value should be one of [false, true] (truthy)
19:21 warning truthy value should be one of [false, true] (truthy)
40:89 error line too long (108 > 88 characters) (line-length)
41:89 error line too long (112 > 88 characters) (line-length)
43:89 error line too long (112 > 88 characters) (line-length)
45:89 error line too long (110 > 88 characters) (line-length)
47:89 error line too long (89 > 88 characters) (line-length)
74:27 warning truthy value should be one of [false, true] (truthy)
82:9 error wrong indentation: expected 10 but found 8 (indentation)
101:14 warning truthy value should be one of [false, true] (truthy)
102:20 warning truthy value should be one of [false, true] (truthy)
103:89 error line too long (119 > 88 characters) (line-length)
121:7 warning comment not indented like content (comments-indentation)
122:24 error syntax error: found character '%' that cannot start any token
310:89 error line too long (102 > 88 characters) (line-length)
330:89 error line too long (113 > 88 characters) (line-length)
433:1 error too many blank lines (1 > 0) (empty-lines)
./salt/osmap.yaml
4:2 error syntax error: found character '%' that cannot start any token
6:89 error line too long (93 > 88 characters) (line-length)
22:89 error line too long (137 > 88 characters) (line-length)
23:89 error line too long (134 > 88 characters) (line-length)
33:89 error line too long (149 > 88 characters) (line-length)
34:89 error line too long (146 > 88 characters) (line-length)
./salt/osfamilymap.yaml
4:2 error syntax error: found character '%' that cannot start any token
6:89 error line too long (94 > 88 characters) (line-length)
24:89 error line too long (149 > 88 characters) (line-length)
25:89 error line too long (146 > 88 characters) (line-length)
39:89 error line too long (105 > 88 characters) (line-length)
40:89 error line too long (127 > 88 characters) (line-length)
56:89 error line too long (101 > 88 characters) (line-length)
./salt/ospyvermap.yaml
4:1 warning missing document start "---" (document-start)
./salt/defaults.yaml
3:1 warning missing document start "---" (document-start)
7:21 warning truthy value should be one of [false, true] (truthy)
8:12 warning truthy value should be one of [false, true] (truthy)
9:23 warning truthy value should be one of [false, true] (truthy)
10:19 warning truthy value should be one of [false, true] (truthy)
14:25 warning truthy value should be one of [false, true] (truthy)
15:25 warning truthy value should be one of [false, true] (truthy)
16:27 warning truthy value should be one of [false, true] (truthy)
17:27 warning truthy value should be one of [false, true] (truthy)
39:28 warning truthy value should be one of [false, true] (truthy)
41:28 warning truthy value should be one of [false, true] (truthy)
45:24 warning truthy value should be one of [false, true] (truthy)
49:30 warning truthy value should be one of [false, true] (truthy)
54:28 warning truthy value should be one of [false, true] (truthy)
63:25 warning truthy value should be one of [false, true] (truthy)
68:15 warning truthy value should be one of [false, true] (truthy)
```
5 年之前 feat: use `semantic-release` cross-formula standard structure
* Semi-automated using https://github.com/myii/ssf-formula/pull/31
* Includes:
- Update TOFS
- Use `bin/kitchen`
- Use `dist: bionic` in Travis
- Add `yamllint` and apply rules
- Use `pillars_from_files` throughout
- Replace EOL images in Kitchen & Travis
- Add `develop` images in Kitchen & Travis
* Fix (or ignore) errors shown below:
```bash
salt-formula$ yamllint -s .
./pillar.example
1:1 warning missing document start "---" (document-start)
5:23 warning truthy value should be one of [false, true] (truthy)
8:25 warning truthy value should be one of [false, true] (truthy)
11:25 warning truthy value should be one of [false, true] (truthy)
19:21 warning truthy value should be one of [false, true] (truthy)
40:89 error line too long (108 > 88 characters) (line-length)
41:89 error line too long (112 > 88 characters) (line-length)
43:89 error line too long (112 > 88 characters) (line-length)
45:89 error line too long (110 > 88 characters) (line-length)
47:89 error line too long (89 > 88 characters) (line-length)
74:27 warning truthy value should be one of [false, true] (truthy)
82:9 error wrong indentation: expected 10 but found 8 (indentation)
101:14 warning truthy value should be one of [false, true] (truthy)
102:20 warning truthy value should be one of [false, true] (truthy)
103:89 error line too long (119 > 88 characters) (line-length)
121:7 warning comment not indented like content (comments-indentation)
122:24 error syntax error: found character '%' that cannot start any token
310:89 error line too long (102 > 88 characters) (line-length)
330:89 error line too long (113 > 88 characters) (line-length)
433:1 error too many blank lines (1 > 0) (empty-lines)
./salt/osmap.yaml
4:2 error syntax error: found character '%' that cannot start any token
6:89 error line too long (93 > 88 characters) (line-length)
22:89 error line too long (137 > 88 characters) (line-length)
23:89 error line too long (134 > 88 characters) (line-length)
33:89 error line too long (149 > 88 characters) (line-length)
34:89 error line too long (146 > 88 characters) (line-length)
./salt/osfamilymap.yaml
4:2 error syntax error: found character '%' that cannot start any token
6:89 error line too long (94 > 88 characters) (line-length)
24:89 error line too long (149 > 88 characters) (line-length)
25:89 error line too long (146 > 88 characters) (line-length)
39:89 error line too long (105 > 88 characters) (line-length)
40:89 error line too long (127 > 88 characters) (line-length)
56:89 error line too long (101 > 88 characters) (line-length)
./salt/ospyvermap.yaml
4:1 warning missing document start "---" (document-start)
./salt/defaults.yaml
3:1 warning missing document start "---" (document-start)
7:21 warning truthy value should be one of [false, true] (truthy)
8:12 warning truthy value should be one of [false, true] (truthy)
9:23 warning truthy value should be one of [false, true] (truthy)
10:19 warning truthy value should be one of [false, true] (truthy)
14:25 warning truthy value should be one of [false, true] (truthy)
15:25 warning truthy value should be one of [false, true] (truthy)
16:27 warning truthy value should be one of [false, true] (truthy)
17:27 warning truthy value should be one of [false, true] (truthy)
39:28 warning truthy value should be one of [false, true] (truthy)
41:28 warning truthy value should be one of [false, true] (truthy)
45:24 warning truthy value should be one of [false, true] (truthy)
49:30 warning truthy value should be one of [false, true] (truthy)
54:28 warning truthy value should be one of [false, true] (truthy)
63:25 warning truthy value should be one of [false, true] (truthy)
68:15 warning truthy value should be one of [false, true] (truthy)
```
5 年之前 |
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261 |
- # -*- coding: utf-8 -*-
- # vim: ft=yaml
- ---
- # For help on this file's format, see https://kitchen.ci/
- driver:
- name: docker
- use_sudo: false
- privileged: true
- run_command: /lib/systemd/systemd
-
- # Make sure the platforms listed below match up with
- # the `env.matrix` instances defined in `.travis.yml`
- platforms:
- ## SALT `3001`
- - name: debian-10-3001-py3
- driver:
- image: saltimages/salt-3001-py3:debian-10
- - name: debian-9-3001-py3
- driver:
- image: saltimages/salt-3001-py3:debian-9
- - name: ubuntu-2004-3001-py3
- driver:
- image: saltimages/salt-3001-py3:ubuntu-20.04
- - name: ubuntu-1804-3001-py3
- driver:
- image: saltimages/salt-3001-py3:ubuntu-18.04
- - name: centos-8-3001-py3
- driver:
- image: saltimages/salt-3001-py3:centos-8
- - name: centos-7-3001-py3
- driver:
- image: saltimages/salt-3001-py3:centos-7
- - name: fedora-32-3001-py3
- driver:
- image: saltimages/salt-3001-py3:fedora-32
- - name: fedora-31-3001-py3
- driver:
- image: saltimages/salt-3001-py3:fedora-31
- - name: opensuse-leap-152-3001-py3
- driver:
- image: saltimages/salt-3001-py3:opensuse-leap-15.2
- run_command: /usr/lib/systemd/systemd
- # Workaround to avoid intermittent failures on `opensuse-leap-15.2`:
- # => SCP did not finish successfully (255): (Net::SCP::Error)
- transport:
- max_ssh_sessions: 1
- - name: amazonlinux-2-3001-py3
- driver:
- image: saltimages/salt-3001-py3:amazonlinux-2
- - name: oraclelinux-8-3001-py3
- driver:
- image: saltimages/salt-3001-py3:oraclelinux-8
- - name: oraclelinux-7-3001-py3
- driver:
- image: saltimages/salt-3001-py3:oraclelinux-7
- - name: gentoo-stage3-latest-3001-py3
- driver:
- image: saltimages/salt-3001-py3:gentoo-stage3-latest
- run_command: /sbin/init
- - name: gentoo-stage3-systemd-3001-py3
- driver:
- image: saltimages/salt-3001-py3:gentoo-stage3-systemd
-
- ## SALT `3000.3`
- - name: debian-10-3000-3-py3
- driver:
- image: saltimages/salt-3000.3-py3:debian-10
- - name: debian-9-3000-3-py3
- driver:
- image: saltimages/salt-3000.3-py3:debian-9
- - name: ubuntu-1804-3000-3-py3
- driver:
- image: saltimages/salt-3000.3-py3:ubuntu-18.04
- - name: centos-8-3000-3-py3
- driver:
- image: saltimages/salt-3000.3-py3:centos-8
- - name: centos-7-3000-3-py3
- driver:
- image: saltimages/salt-3000.3-py3:centos-7
- - name: opensuse-leap-152-3000-3-py3
- driver:
- image: saltimages/salt-3000.3-py3:opensuse-leap-15.2
- run_command: /usr/lib/systemd/systemd
- # Workaround to avoid intermittent failures on `opensuse-leap-15.2`:
- # => SCP did not finish successfully (255): (Net::SCP::Error)
- transport:
- max_ssh_sessions: 1
- - name: amazonlinux-2-3000-3-py3
- driver:
- image: saltimages/salt-3000.3-py3:amazonlinux-2
- - name: oraclelinux-8-3000-3-py3
- driver:
- image: saltimages/salt-3000.3-py3:oraclelinux-8
- - name: oraclelinux-7-3000-3-py3
- driver:
- image: saltimages/salt-3000.3-py3:oraclelinux-7
- - name: ubuntu-1804-3000-3-py2
- driver:
- image: saltimages/salt-3000.3-py2:ubuntu-18.04
- - name: ubuntu-1604-3000-3-py2
- driver:
- image: saltimages/salt-3000.3-py2:ubuntu-16.04
- - name: gentoo-stage3-latest-3000-3-py3
- driver:
- image: saltimages/salt-3000.3-py3:gentoo-stage3-latest
- run_command: /sbin/init
- - name: gentoo-stage3-systemd-3000-3-py3
- driver:
- image: saltimages/salt-3000.3-py3:gentoo-stage3-systemd
-
- ## SALT `2019.2`
- - name: debian-10-2019-2-py3
- driver:
- image: saltimages/salt-2019.2-py3:debian-10
- - name: debian-9-2019-2-py3
- driver:
- image: saltimages/salt-2019.2-py3:debian-9
- - name: ubuntu-1804-2019-2-py3
- driver:
- image: saltimages/salt-2019.2-py3:ubuntu-18.04
- - name: ubuntu-1604-2019-2-py3
- driver:
- image: saltimages/salt-2019.2-py3:ubuntu-16.04
- - name: centos-8-2019-2-py3
- driver:
- image: saltimages/salt-2019.2-py3:centos-8
- - name: centos-7-2019-2-py3
- driver:
- image: saltimages/salt-2019.2-py3:centos-7
- - name: fedora-31-2019-2-py3
- driver:
- image: saltimages/salt-2019.2-py3:fedora-31
- - name: opensuse-leap-152-2019-2-py3
- driver:
- image: saltimages/salt-2019.2-py3:opensuse-leap-15.2
- run_command: /usr/lib/systemd/systemd
- # Workaround to avoid intermittent failures on `opensuse-leap-15.2`:
- # => SCP did not finish successfully (255): (Net::SCP::Error)
- transport:
- max_ssh_sessions: 1
- - name: amazonlinux-2-2019-2-py3
- driver:
- image: saltimages/salt-2019.2-py3:amazonlinux-2
- - name: centos-6-2019-2-py2
- driver:
- image: saltimages/salt-2019.2-py2:centos-6
- run_command: /sbin/init
- - name: amazonlinux-1-2019-2-py2
- driver:
- image: saltimages/salt-2019.2-py2:amazonlinux-1
- run_command: /sbin/init
-
- provisioner:
- name: salt_solo
- log_level: debug
- salt_install: none
- require_chef: false
- formula: salt
- salt_copy_filter:
- - .kitchen
- - .git
-
- verifier:
- # https://www.inspec.io/
- name: inspec
- sudo: true
- # cli, documentation, html, progress, json, json-min, json-rspec, junit
- reporter:
- - cli
-
- suites:
- - name: v3001-py3
- includes:
- - debian-10-3001-py3
- - debian-9-3001-py3
- - ubuntu-2004-3001-py3
- - ubuntu-1804-3001-py3
- - centos-8-3001-py3
- - centos-7-3001-py3
- - fedora-32-3001-py3
- - fedora-31-3001-py3
- - opensuse-leap-152-3001-py3
- - amazonlinux-2-3001-py3
- - oraclelinux-8-3001-py3
- - oraclelinux-7-3001-py3
- - gentoo-stage3-latest-3001-py3
- - gentoo-stage3-systemd-3001-py3
- provisioner:
- state_top:
- base:
- '*':
- - salt.pkgrepo
- - salt.master
- - salt.minion
- pillars:
- top.sls:
- base:
- '*':
- - salt
- - v3001-py3
- pillars_from_files:
- salt.sls: test/salt/pillar/salt.sls
- v3001-py3.sls: test/salt/pillar/v3001-py3.sls
- verifier:
- inspec_tests:
- - path: test/integration/v3001-py3
- - name: v3000-py3
- includes:
- - debian-10-3000-3-py3
- - debian-9-3000-3-py3
- - ubuntu-1804-3000-3-py3
- - centos-8-3000-3-py3
- - centos-7-3000-3-py3
- - opensuse-leap-152-3000-3-py3
- - amazonlinux-2-3000-3-py3
- - oraclelinux-8-3000-3-py3
- - oraclelinux-7-3000-3-py3
- - gentoo-stage3-latest-3000-3-py3
- - gentoo-stage3-systemd-3000-3-py3
- provisioner:
- state_top:
- base:
- '*':
- - salt.pkgrepo
- - salt.master
- - salt.minion
- pillars:
- top.sls:
- base:
- '*':
- - salt
- - v3000-py3
- pillars_from_files:
- salt.sls: test/salt/pillar/salt.sls
- v3000-py3.sls: test/salt/pillar/v3000-py3.sls
- verifier:
- inspec_tests:
- - path: test/integration/v3000-py3
- - name: v3000-py2
- includes:
- - ubuntu-1804-3000-3-py2
- - ubuntu-1604-3000-3-py2
- provisioner:
- state_top:
- base:
- '*':
- - salt.pkgrepo
- - salt.master
- - salt.minion
- pillars:
- top.sls:
- base:
- '*':
- - salt
- - v3000-py2
- pillars_from_files:
- salt.sls: test/salt/pillar/salt.sls
- v3000-py2.sls: test/salt/pillar/v3000-py2.sls
- verifier:
- inspec_tests:
- - path: test/integration/v3000-py2
|