Coder Social home page Coder Social logo

scriptingpro / csecurityoptions_cookbook Goto Github PK

View Code? Open in Web Editor NEW

This project forked from chrisawalker/csecurityoptions_cookbook

1.0 2.0 0.0 27 KB

This cookbook was built to implement Windows Local Security Policy. There are two methods to achieving that: PowerShell Scripts and DSC Module.

License: MIT License

Ruby 75.48% PowerShell 24.52%

csecurityoptions_cookbook's Introduction

cSecurityOptions_cookbook (windows_security_policy)

This cookbook was built to implement Windows Local Security Policy (normally only available via MMC). There are two methods to achieving that: PowerShell Scripts and DSC Module.

The attributes are separated based on the method they are implemented. It is ugly when using the PowerShell script method. It is advisable to use the DSC method; however, dependencies are required (as listed below).

Currently supports:

  • Windows 2012 R2
  • Chef 12 (12.4.1+) clients

Contribution

This cookbook is an EXAMPLE cookbook that implements the LSA within Windows. This is being published to help people understand how to implement this complex componet of windows.

This cookbook will be periodically (not regularly) updated. Please email me if there are questions about this cookbook. We can discuss "going forward" approaches.

Dependencies

This is not a fully functional cookbook. I'll give some hints here to get it working, but it will require a little work on your part to get it there.

# create a configuration command to generate a meta.mof to set
# Local Configuration Manager settings
Configuration LCMSettings {
    Node localhost {
    LocalConfigurationManager {
        RefreshMode = 'Disabled'
    }
    }
}
# Run the configuration command and generate the meta.mof to configure
# a local configuration manager
LCMSettings
# Apply the local configuration manager settings found in the LCMSettings
# folder (by default configurations are generated to a folder in the current
# working directory named for the configuration command name
Set-DscLocalConfigurationManager -path ./LCMSettings

After these dependencies are satisfied, then this cookbook should converge for each of these recipes.

Requirements

Please see metadata.rb for specific details.

This cookbook (using Vagrant) requires that the vagrant-winrm plugin be installed:

vagrant plugin install vagrant-winrm --plugin-source http://rubygems.org

For vagrant VMs to work behind a proxy you will also need the vagrant-proxyconf plugin:
Note: If you have already created a box prior to installing the plugin, you will need destroy and then re-create it to get things to work.

vagrant plugin install vagrant-proxyconf --plugin-source http://rubygems.org

[optional] For vagrant VMs to join the domain, you will also need vagrant-domain-join plugin:
Note: If you have already created a box prior to installing the plugin, you will need destroy and then re-create it to get things to work.

vagrant plugin install vagrant-windows-domain --plugin-source http://rubygems.org

[optional] For Domain Join to work properly, follow this procedure:

  1. Set this environment variable (this is required due to a bug in the destroy operation: hashicorp/vagrant#6026):
export VAGRANT_DETECTED_OS=cygwin
  1. Get appropriate credentials to join the OU location
  2. Modify parameters within 'Vagrantfile-ad_join.rb' for the User and Password

NOTES: If using chefdk 1.10.0, then you may have gem conflicts. Please read this: chef-boneyard/chef-dk#542 There are a bunch of other errors, which hasn't been solved. It is recommended that ChefDK version is 0.7.0.

License and Authors

Authors: ChrisA.Walker ([email protected]) Please see LICENSE file for details

csecurityoptions_cookbook's People

Contributors

chrisawalker avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.