mirror of
https://github.com/inspec/inspec
synced 2025-02-17 06:28:40 +00:00
Merge pull request #169 from chef/jc/docs
Merged change 78ec3511-d420-4844-a86c-db6fa9b9fecb From review branch jc/docs into master Signed-off-by: chartmann <chartmann@chef.io>
This commit is contained in:
commit
443fad2b2a
1 changed files with 2 additions and 6 deletions
|
@ -2202,13 +2202,13 @@ The following examples show how to use this InSpec audit resource.
|
|||
|
||||
**Test * and ftp limits**
|
||||
|
||||
.. code-block:: ruby
|
||||
|
||||
describe limits_conf('path') do
|
||||
its('*') { should include ['soft', 'core', '0'], ['hard', 'rss', '10000'] }
|
||||
its('ftp') { should eq ['hard', 'nproc', '0'] }
|
||||
end
|
||||
|
||||
|
||||
|
||||
login_defs
|
||||
=====================================================
|
||||
Use the ``login_defs`` |inspec resource| to test configuration settings in the ``/etc/login.defs`` file. The ``logins.defs`` file defines site-specific configuration for the shadow password suite on |linux| and |unix| platforms, such as password expiration ranges, minimum/maximum values for automatic selection of user and group identifiers, or the method with which passwords are encrypted.
|
||||
|
@ -3024,15 +3024,11 @@ This |inspec resource| supports the following options for parsing configuration
|
|||
|
||||
.. code-block:: ruby
|
||||
|
||||
<<<<<<< HEAD
|
||||
describe parse_config_file('/myfile', { assignment_re: /^\s*([^:]*?)\s*:\s*(.*?)\s*$/, multiple_values: true }) do
|
||||
=======
|
||||
options = {
|
||||
assignment_re: /^\s*([^:]*?)\s*:\s*(.*?)\s*$/,
|
||||
multiple_values: true
|
||||
}
|
||||
describe parse_config_file(options) do
|
||||
>>>>>>> sync words
|
||||
its('setting') { should eq 1 }
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue