Skip to content

Commit

Permalink
test(share): standardise structure
Browse files Browse the repository at this point in the history
* Standardised using myii/ssf-formula#251
  • Loading branch information
myii committed Sep 9, 2020
1 parent 8cb31c6 commit 15241d3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions test/integration/share/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ It's goal is to share the libraries between all profiles.

### `system`

The `system` library provides easy access to system dependents informations:
The `system` library provides easy access to system dependent information:

- `system.platform`: take `inspec.platform` and mangle things a bit to be useful
- `system.platform[:family]` provides a family name for Arch
- `system.platform`: based on `inspec.platform`, modify to values that are more consistent from a SaltStack perspective
- `system.platform[:family]` provide a family name for Arch
- `system.platform[:name]` modify `amazon` to `amazonlinux`
- `system.platform[:release]` tweak for Arch and Amazon Linux:
- `Arch` is always `base-later`
- `Amazon Linux` release `2018` became `1`
- `system.platform[:finger]` is just the concatenation of the name and the first release number (except for Ubuntu which gives `20.04` for example)
- `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)
2 changes: 1 addition & 1 deletion test/integration/share/inspec.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
# vim: ft=yaml
---
name: shared
name: share
title: InSpec shared resources
maintainer: SaltStack Formulas
license: Apache-2.0
Expand Down

0 comments on commit 15241d3

Please sign in to comment.