Jeff Neel
b71ff7523a
ci: use latest test images
2025-02-27 21:32:30 -06:00
Jeff Neel
a1bdd12608
ci: add mapdata for new os
2025-02-26 09:00:19 -06:00
Dafydd Jones
1df9861084
style(inspec): fix whitespace
2023-10-11 18:59:37 +01:00
Sebastian Engel
3d1581e726
style(default.sls): fix minor typo
2023-09-11 20:32:01 +02:00
Imran Iqbal
fc04282106
chore(gemfile.lock): update to latest gem versions (2022-W28) [skip ci]
...
* Automated using https://github.com/myii/ssf-formula/pull/454
2022-07-17 19:49:14 +01:00
Imran Iqbal
de7e21c762
chore(gemfile.lock): update to latest gem versions (2022-W20) [skip ci]
...
* Automated using https://github.com/myii/ssf-formula/pull/444
2022-05-17 13:23:03 +01:00
Imran Iqbal
d46507ba82
test(system.rb): add support for mac_os_x
[skip ci]
...
* Automated using https://github.com/myii/ssf-formula/pull/442
2022-05-17 08:52:39 +01:00
Imran Iqbal
9349c83874
test(_mapdata): add verification file for ubuntu-22
[skip ci]
2022-05-10 10:03:47 +01:00
Imran Iqbal
4a38a292d6
test(_mapdata): add verification file for fedora-36
[skip ci]
2022-04-11 18:45:59 +01:00
Imran Iqbal
6f02d2c28a
test(_mapdata): add verification file for fedora-35
[skip ci]
2022-03-30 09:22:13 +01:00
Eric Veiras Galisson
68d5ba0507
style: fix typo
2022-02-23 10:52:35 +01:00
Imran Iqbal
65cf22c436
test(system): add build_platform_codename
[skip ci]
...
* Automated using https://github.com/myii/ssf-formula/pull/415
2022-02-14 08:09:40 +00:00
Imran Iqbal
bf1e46e69b
chore(gemfile.lock): update to latest gem versions (2021-W51) [skip ci]
...
* Automated using https://github.com/myii/ssf-formula/pull/394
2021-12-22 11:59:36 +00:00
Imran Iqbal
5f80cf2b7d
ci(kitchen): use pillars_from_directories
under provisioner
...
* Automated using https://github.com/myii/ssf-formula/pull/383
2021-11-16 21:55:32 +00:00
Daniel Dehennin
7708e12923
test(pillar): use static test/salt/pillar/top.sls
...
The kitchen-salt provisionner have the `pillars_from_directories`
option to recusively copy directories under target pillar root.
This has 3 advantages:
- simplify `kitchen.yml`
- manage pillar assignment with standard salt targetting mechanism,
this avoid the dedicated `gentoo` suite (it could have been done
from `kitchen.yml` itself by the way)
- ease the test outside kitchen by running `salt-call` directly with
`--pillar-root` like:
```
salt-call --local --id test-minion.example.net \
--file-root=template-formula/ \
--pillar-root=template-formula/test/salt/pillar/ \
state.show_sls TEMPLATE
```
* pillar.example: remove settings for testing purpose.
* test/salt/pillar/top.sls: limit `gentoo` pillars based on `os_family`
grain.
* test/salt/pillar/defaults.sls: base pillar dedicated to tests.
* kitchen.yml (suites): remove the now useless `gentoo` suite.
Define `pillars_from_directories` to copy them under `pillar_root`.
Remove useless `pillars_from_files`.
* .gitlab-ci.yml: fix gentoo suite name
* .gitignore: do not ignore test pillar `top.sls`
2021-11-16 21:25:26 +00:00
Imran Iqbal
9ef82f4f78
chore(gemfile.lock): update to latest gem versions (2021-W29) [skip ci]
...
* Automated using https://github.com/myii/ssf-formula/pull/349
2021-07-21 18:35:02 +01:00
Imran Iqbal
98edfd3ac4
test(_mapdata): add verification file for debian-11
[skip ci]
2021-07-18 15:21:18 +01:00
Imran Iqbal
be3ee0be51
ci(3003.1): update inc. AlmaLinux, Rocky & rst-lint
[skip ci]
...
* Automated using https://github.com/myii/ssf-formula/pull/335
2021-07-02 00:09:05 +01:00
Imran Iqbal
ec7ede0407
test(alma+rocky): add platforms (based on CentOS 8) [skip ci]
2021-07-01 08:35:57 +01:00
Imran Iqbal
79587c422c
test(_mapdata): add verification file for fedora-34
[skip ci]
2021-04-23 08:09:09 +01:00
Imran Iqbal
bbe1c78409
test: standardise use of share
suite & _mapdata
state [skip ci]
...
* Automated using https://github.com/myii/ssf-formula/pull/302
2021-03-23 21:34:24 +00:00
Daniel Dehennin
1f3600d66f
fix(convert-formula): _mapdata
control name must use the formula one
...
* test/integration/default/controls/_mapdata.rb: use `TEMPLATE` to let
`conver-formula.sh` automatically rename the control.
2021-03-09 18:39:26 +01:00
Imran Iqbal
1802e37e60
Merge pull request #225 from baby-gnu/feature/update-to-v5-map.jinja
...
feat(map): update to v5 map.jinja
2021-03-09 16:19:38 +00:00
Daniel Dehennin
5830a8ce97
chore(rubocop): allow use of YAML.load
for _mapdata.rb
[skip ci]
...
* Automated using https://github.com/myii/ssf-formula/pull/296
2021-02-23 21:52:33 +00:00
Daniel Dehennin
41d222e30c
fix(inspec): validate map.jinja
configuration
...
Update `_mapdata` reference files to include the `map.jinja`
configuration sources.
2021-02-15 16:28:47 +01:00
Imran Iqbal
00823a2d27
ci(kitchen+gitlab-ci): use latest pre-salted images [skip ci]
...
* Automated using https://github.com/myii/ssf-formula/pull/293
2021-02-14 10:43:09 +00:00
Imran Iqbal
3347b85c92
test(_mapdata): add verification files for Fedora 33 & Tumbleweed
2021-02-14 10:41:23 +00:00
Imran Iqbal
6d17eb0130
chore: standardise structure (.gitignore
& _mapdata.rb
) [skip ci]
...
* Automated using https://github.com/myii/ssf-formula/pull/292
2021-02-11 11:54:49 +00:00
Daniel Dehennin
aa8a58b715
style(inspec): match current practices for file and control names
...
I don't find a reference best practices in the documentation but as
stated during a SaltStack Formula Workgroup meeting:
- the `_spec` in the control file name is inherited from RSpec and few
examples use it
- the `control` name should be an identifier, I matched the `tpldot`
name
- the `title` is a human readable description of the `control`
- remove `impact` which is not appropriate for an integration test
2021-02-10 23:02:25 +01:00
Imran Iqbal
dab2f34c58
test(share): standardise with latest changes [skip ci]
...
* Automated using https://github.com/myii/ssf-formula/pull/288
2021-02-01 07:24:21 +00:00
Imran Iqbal
50162adad7
test(_mapdata): update for _mapdata/init.sls
change
2021-01-14 21:20:30 +00:00
Imran Iqbal
f8e8fcb29e
refactor(map): use top-level values:
key in map.jinja
dumps
...
* Semi-automated using https://github.com/myii/ssf-formula/pull/284
2020-12-23 18:44:04 +00:00
Imran Iqbal
6bbafedd1f
test(_mapdata): fix existing verification files
2020-12-22 00:46:41 +00:00
Imran Iqbal
4c8cf32db1
test(map): standardise map.jinja
verification
...
* Automated using https://github.com/myii/ssf-formula/pull/281
2020-12-22 00:43:16 +00:00
Imran Iqbal
4be96d3618
Merge pull request #207 from dafyddj/fix/convert-dash-underscore
...
fix(convert-formulas.sh): add -_ to allowed chars in formula name
2020-10-31 19:08:55 +00:00
Dafydd Jones
7c33601fd4
fix(convert-formula.sh): delete all existing tags
...
* closes #210
2020-10-31 18:35:34 +00:00
Daniel Dehennin
1ff9ab15f2
test(inspec): system.rb
must call parent class initialisation
2020-10-28 11:37:24 +01:00
Dafydd Jones
a999fee214
fix(convert-formula.sh): add -_ to allowed chars in formula name
2020-10-14 22:42:18 +01:00
Imran Iqbal
4c2f4ede02
feat: add Gentoo support
...
Make use of the new pre-salted images:
* https://gitlab.com/saltstack-formulas/infrastructure/salt-image-builder/-/merge_requests/55
2020-10-12 07:33:44 +01:00
Imran Iqbal
c4b66d8f0b
test(oracle): add InSpec configuration for oraclelinux
2020-09-21 12:30:16 +01:00
Imran Iqbal
194aa97dff
test(share): remove unnecessary hostname mangling
...
* https://github.com/saltstack-formulas/openssh-formula/pull/195
2020-09-21 12:17:12 +01:00
Imran Iqbal
d68ed45109
test(platform_finger): extract from shared library
2020-09-04 21:21:41 +01:00
Daniel Dehennin
3dc28bfb34
test(inspec): verify map.jinja
dump
...
We store `map.jinja` dump files under the profile `files`
directory to access them with `inspec.profile.file('filename')` to
validate the content of the generated mapdata file.
The `default` inspec profile needs to depend on `share` to access the
`system` library.
2020-09-03 16:24:07 +02:00
Daniel Dehennin
64c2b6cdae
test(inspec): share library to access some minion informations
...
The `system.hostname` return the result of either `hostname -s` or
`hostnamectl --static` depending of the availability of either command.
The `system.platform` return a hash with tweaked `inspec.platform`
values:
- `system.platform[:family]` provide a family name for Arch
- `system.platform[:name]` modify `amazon` to `amazonlinux`
- `system.platform[:release]` tweak Arch and Amazon Linux:
- `Arch` is always `base-latest`
- `Amazon Linux` release `2018` is resolved as `1`
- `system.platform[:finger]` is the concatenation of the name and the
major release number (except for Ubuntu, which gives `ubuntu-20.04`
for example)
2020-09-03 16:19:15 +02:00
Imran Iqbal
97309c6f4d
ci(kitchen+travis): fix centos6
suite and rename to upstart
...
* Semi-automated using https://github.com/myii/ssf-formula/pull/247
* Problems identified while reviewing:
- https://github.com/saltstack-formulas/template-formula/pull/203
2020-09-01 18:52:51 +01:00
Imran Iqbal
a2651058be
refactor(service): use systemd-journald
instead of systemd-udevd
...
* The latter is not available on the stripped down pre-salted images
(for Debian and Ubuntu)
2020-03-23 12:25:33 +00:00
Dafydd Jones
2e8ded6565
refactor: improve reusability using an unique keyword TEMPLATE
...
BREAKING CHANGE: changed all state names and ids
2019-12-04 23:47:41 +00:00
Imran Iqbal
9566b6fb63
fix(rubocop): fix remaining errors manually
2019-10-08 20:12:34 +01:00
Imran Iqbal
484ce2459d
fix(rubocop): add fixes using rubocop --safe-auto-correct
2019-10-08 20:12:34 +01:00
Imran Iqbal
042e8e2331
ci(platform): add arch-base-latest
...
* Automated using https://github.com/myii/ssf-formula/pull/40
2019-09-22 22:40:15 +01:00