Skip to content

Commit

Permalink
deactivate group policy for now
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-rock committed Oct 31, 2015
1 parent 2f91cdb commit 50798a3
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 111 deletions.
52 changes: 0 additions & 52 deletions docs/resources.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ The following InSpec audit resources are available:
* ``file``
* ``gem``
* ``group``
* ``group_policy``
* ``host``
* ``inetd_conf``
* ``interface``
Expand Down Expand Up @@ -1627,57 +1626,6 @@ The following examples show how to use this InSpec audit resource.



group_policy
=====================================================
Use the ``group_policy`` |inspec resource| to test group policy on the |windows| platform. This resource uses the ``Get-Item`` cmdlet to return all of the policy keys and related values.

**Stability: Experimental**

Syntax
-----------------------------------------------------
A ``group_policy`` |inspec resource| block declares the path to the policy:

.. code-block:: ruby

describe group_policy('Path\to\Policy') do
its('setting') { should eq 'value' }
end

where

* ``'Path\to\Policy'`` must specify a group policy, such as ``'Local Policies\Audit Policy'`` or ``'Local Policies\Security Options'``
* ``'setting'`` is the group policy setting to be tested. For example: ``Automatically log off users when the logon time expires``
* ``'value'`` is compared to the value on the group policy

Matchers
-----------------------------------------------------
This InSpec audit resource has the following matchers.

setting
+++++++++++++++++++++++++++++++++++++++++++++++++++++
The ``setting`` matcher tests specific, named settings in the group policy:

.. code-block:: ruby

its('setting') { should eq 'value' }

where ``'setting'`` is replaced with the full string for the setting. For example: ``Automatically log off users when the logon time expires``.

Use a ``setting`` matcher for each setting to be tested.

Examples
-----------------------------------------------------
The following examples show how to use this InSpec audit resource.

**Test if users are logged off after the logon time expires**

.. code-block:: ruby

describe group_policy('Local Policies\Security Options') do
its('Automatically log off users when the logon time expires') { should eq 'Enabled' }
end


host
=====================================================
Use the ``host`` |inspec resource| to test the name used to refer to a specific host and its availability, including the Internet protocols and ports over which that host name should be available.
Expand Down
1 change: 0 additions & 1 deletion lib/inspec/resource.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ def self.resource(version)
require 'resources/file'
require 'resources/gem'
require 'resources/group'
require 'resources/group_policy'
require 'resources/host'
require 'resources/inetd_conf'
require 'resources/interface'
Expand Down
58 changes: 0 additions & 58 deletions lib/resources/group_policy.rb

This file was deleted.

1 comment on commit 50798a3

@chef-delivery
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Delivery Status:

Verify
Unit
Lint
Syntax

Please sign in to comment.