Saltstack Official OpenSSH Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011121314151617181920
  1. # InSpec Profile: `share`
  2. This shows the implementation of the `share` InSpec [profile](https://github.com/inspec/inspec/blob/master/docs/profiles.md).
  3. It's goal is to share the libraries between all profiles.
  4. ## Libraries
  5. ### `system`
  6. The `system` library provides easy access to system dependents informations:
  7. - `system.hostname`: return the result of `hostname -s` or `hostnamectl --static` based on the availability of each commans
  8. - `system.platform`: take `inspec.platform` and mangle things a bit to be useful
  9. - `system.platform[:family]` provides a family name for Arch
  10. - `system.platform[:name]` modify `amazon` to `amazonlinux`
  11. - `system.platform[:release]` tweak for Arch and Amazon Linux:
  12. - `Arch` is always `base-later`
  13. - `Amazon Linux` release `2018` became `1`
  14. - `system.platform[:finger]` is just the concatenation of the name and the first release number (except for Ubuntu which gives `20.04` for example)