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:
chef-delivery 2015-10-30 04:43:11 -07:00
commit 443fad2b2a

View file

@ -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