Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

Select Status

RSS

dsc_contrib (6) Versions 0.6.0

Helpers and previews of DSC functionality

Policyfile
Berkshelf
Knife
cookbook 'dsc_contrib', '~> 0.6.0', :supermarket
cookbook 'dsc_contrib', '~> 0.6.0'
knife supermarket install dsc_contrib
knife supermarket download dsc_contrib
README
Dependencies
Quality 33%

dsc_contrib

This cookbook exists to augment the integration of Chef and Windows PowerShell Desired State Configuration (DSC).

Back-compat for reboot_action

Chef 12.6 introduces a new property to the dsc_resource resource. When the API that is used by dsc_resource to enforce a desired state (the set method), the API returns a boolean noting if the DSC resource requested a reboot to continue.

This request is separate from any other mechanism that is used by components of the Windows operating system to indicate a reboot is needed (but may be in conjunction with one or more of them).

When this API returns that a reboot is requested, the reboot_action property is used to dynamically create a reboot resource. Valid arguments for reboot_action (at this time) are :reboot_now and :request_reboot. These are the same actions as the reboot resource takes.

This allows you to control reboot requests from DSC in a Chef-friendly fashion.

This cookbook adds reboot_action to Chef 12.4.x and 12.5.x.

Helpers

cim_instance and cim_instance_array

This cookbook adds cim_instance and cim_instance_array helpers to the dsc_resource resource. This helps support embedded CIM instances for DSC resources that require them.

Both cim_instance and cim_instance_array have the first parameter as the cim instance type and the remaining parameter make up a hash table of the properties to be converted into a CIM instance.

The difference between the helper methods is some resources expect a single CIM instance and some expect an array. PowerShell will not cast it a single instance into an array, so we have to specify that.

ps_module_spec

The ps_module_spec helper allows you to identify which side by side resource to use when multiple exist on a system.

No version specified:

dsc_resource 'blah' do
  module_version ps_module_spec("SomeModule")
  ...

Version specified:

dsc_resource 'blah' do
  module_version ps_module_spec("SomeModule", "1.2.4.5")
  ...

Resources

local_configuration_manager

This resource will configure some of the basic LCM settings for use with Chef. There is currenlty only one action - :enable

  • action_after_reboot - defaults to 'StopConfiguration'
  • `certificate_id' - default to $null
  • configuration_mode - defaults to 'ApplyOnly'
  • reboot_node_if_needed - defaults to $false
  • debug_mode - defaults to 'NONE'

Dependent cookbooks

compat_resource >= 12.5

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Collaborator Number Metric
            

0.6.0 failed this metric

Failure: Cookbook has 1 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Contributing File Metric
            

0.6.0 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file

Foodcritic Metric
            

0.6.0 failed this metric

FC117: Do not use kind_of in custom resource properties: dsc_contrib/resources/local_configuration_manager.rb:23
FC117: Do not use kind_of in custom resource properties: dsc_contrib/resources/local_configuration_manager.rb:24
FC117: Do not use kind_of in custom resource properties: dsc_contrib/resources/local_configuration_manager.rb:25
FC117: Do not use kind_of in custom resource properties: dsc_contrib/resources/local_configuration_manager.rb:26
FC117: Do not use kind_of in custom resource properties: dsc_contrib/resources/local_configuration_manager.rb:27
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

No Binaries Metric
            

0.6.0 passed this metric

Testing File Metric
            

0.6.0 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file

Version Tag Metric
            

0.6.0 passed this metric