Sha256: debdcc1ee09302148d652b362ff0b2c7ef0408b03cfde9fceb27a56ba1c289bf
Contents?: true
Size: 1.04 KB
Versions: 20
Compression:
Stored size: 1.04 KB
Contents
--- title: About the sys_info Resource platform: os --- # sys_info Use the `sys_info` InSpec audit resource to test for operating system properties for the named host, and then returns that info as standard output. <br> ## Availability ### Installation This resource is distributed along with InSpec itself. You can use it automatically. ### Version This resource first became available in v1.0.0 of InSpec. ## Syntax An `sys_info` resource block declares the hostname to be tested: describe sys_info do its('hostname') { should eq 'value' } end <br> ## Examples The following examples show how to use this InSpec audit resource. ### Get system information for example.com describe sys_info do its('hostname') { should eq 'example.com' } end <br> ## Matchers For a full list of available matchers, please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). ### hostname The `hostname` matcher tests the host for which standard output is returned: its('hostname') { should eq 'value' }
Version data entries
20 entries across 20 versions & 2 rubygems