openssh-formula/test/integration/share
Daniel Dehennin 8cb31c6967 test(inspec): no more need to mangle mapdata for hostname
We force the hostname in `kitchen` so the `_mapdata` files can be
static.
2020-09-08 21:23:21 +02:00
..
libraries test(inspec): no more need to mangle mapdata for hostname 2020-09-08 21:23:21 +02:00
inspec.yml test(inspec): verify map.jinja dump 2020-07-30 22:00:18 +02:00
README.md test(inspec): no more need to mangle mapdata for hostname 2020-09-08 21:23:21 +02:00

InSpec Profile: share

This shows the implementation of the share InSpec profile.

Its goal is to share the libraries between all profiles.

Libraries

system

The system library provides easy access to system dependents informations:

  • system.platform: take inspec.platform and mangle things a bit to be useful
    • system.platform[:family] provides 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)