mirror of
https://github.com/inspec/inspec
synced 2024-09-21 06:51:56 +00:00
Merge pull request #1407 from gscho/rhel-doc-fix
Fixed error in OS docs, added CentOS to redhat family docs.
This commit is contained in:
commit
791f2db2e5
1 changed files with 4 additions and 4 deletions
|
@ -56,7 +56,7 @@ The `os` audit resource includes a collection of helpers that enable more granul
|
|||
* `debian?`
|
||||
* `hpux?`
|
||||
* `linux?` (including Alpine Linux, Amazon Linux, ArchLinux, CoreOS, Exherbo, Fedora, Gentoo, and Slackware)
|
||||
* `redhat?`
|
||||
* `redhat?` (including CentOS)
|
||||
* `solaris?` (including Nexenta Core, OmniOS, Open Indiana, Solaris Open, and SmartOS)
|
||||
* `suse?`
|
||||
* `unix?`
|
||||
|
@ -103,7 +103,7 @@ Use `os[:family]` to enable more granular testing of platforms, platform names,
|
|||
* `:debian`
|
||||
* `:hpux`
|
||||
* `:linux`. For platforms that are part of the Linux family: `:alpine`, `:amazon`, `:arch`, `:coreos`, `:exherbo`, `:fedora`, `:gentoo`, and `:slackware`.
|
||||
* `:redhat`
|
||||
* `:redhat`. For platforms that are part of the Redhat family: `:centos`.
|
||||
* `:solaris`. For platforms that are part of the Solaris family: `:nexentacore`, `:omnios`, `:openindiana`, `:opensolaris`, and `:smartos`.
|
||||
* `:suse`
|
||||
* `:unix`
|
||||
|
@ -115,7 +115,7 @@ For example, both of the following tests should have the same result:
|
|||
describe port(69) do
|
||||
its('processes') { should include 'in.tftpd' }
|
||||
end
|
||||
elsif os[:family] == 'rhel'
|
||||
elsif os[:family] == 'redhat'
|
||||
describe port(69) do
|
||||
its('processes') { should include 'xinetd' }
|
||||
end
|
||||
|
@ -125,7 +125,7 @@ For example, both of the following tests should have the same result:
|
|||
describe port(69) do
|
||||
its('processes') { should include 'in.tftpd' }
|
||||
end
|
||||
elsif os[:rhel]
|
||||
elsif os[:redhat]
|
||||
describe port(69) do
|
||||
its('processes') { should include 'xinetd' }
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue