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

windows_dhcp (1) Versions 0.2.0

Installs/Configures windows_dhcp

Policyfile
Berkshelf
Knife
cookbook 'windows_dhcp', '~> 0.2.0', :supermarket
cookbook 'windows_dhcp', '~> 0.2.0'
knife supermarket install windows_dhcp
knife supermarket download windows_dhcp
README
Dependencies
Changelog
Quality 17%

windows_dhcp Cookbook

Join the chat at https://gitter.im/TAMUArch/cookbook.windows_dhcp
This cookbook installs the DHCP on Windows Server including all necessary roles and features.

Requirements

Platform

  • Windows Server 2008 R2 Family
  • Windows Server 2012 Family

Cookbooks

Usage

windows_dhcp::default

e.g.
Just include windows_dhcp in your node's run_list:

{
  "name":"my_node",
  "run_list": [
    "recipe[windows_dhcp]"
  ]
}

Resource/Provider

lease

Actions

  • :create: Creates a lease entry
  • :delete: Deletes a lease entry

Attribute Parameters

  • name: name attribute. Name of the lease entry.
  • comptername: Name of the DHCP server.
  • description: Description field entry.
  • ipaddress: IPv4 or IPv6 address or the lease entry. Required Regex: IPv4 or IPv6
  • leaseexpirytime: Time to expire the lease. Regex for YYYY-MM-DD HH:MM:SS
  • macaddress: MAC Address for the lease entry. Note: Any use of '-' or ':' will be removed.
  • scopeid: IPv4 or IPv6 scope ex. 192.168.1.1 Required Regex: IPv4 or IPv6
  • version: Version of IP address. Default 4 Available Options (4, 6)

Examples

    # Create lease entry of workstation at 192.168.1.10
    windows_dhcp_lease 'workstation' do
      action :create
      ipaddress '192.168.1.10'
      scopeid '192.168.1.1'
    end

reservation

Actions

  • :create: Creates a reservation entry
  • :delete: Deletes a reservation entry
  • :update: Updates a reservation entry

Attribute Parameters

  • name: name attribute. Name of the reservation entry.
  • comptername: Name of the DHCP server.
  • description: Description field entry.
  • ipaddress: IPv4 or IPv6 address or the reservation entry. Required Regex: IPv4 or IPv6
  • macaddress: MAC Address for the reservation entry. Note: Any use of '-' or ':' will be removed. Required
  • scopeid: IPv4 or IPv6 scope ex. 192.168.1.1 Required Regex: IPv4 or IPv6
  • version: Version of IP address. Default 4 Available Options (4, 6)

Examples

    # create reservation entry of 'workstation' at 192.168.1.10 with mac address of '00-00-00-00-00-00'
    windows_dhcp_reservation 'workstation' do
      action :create
      ipaddress '192.168.1.10'
      scopeid '192.168.1.1'
      macaddress '00-00-00-00-00-00'
    end

    # delete reservation entry of 'workstation' at 192.168.1.10
    windows_dhcp_reservation 'workstation' do
      action :delete
      scopeid '192.168.1.1'
    end

    # update reservation entry of 'workstation' at 192.168.1.10 with mac address of '00-00-00-00-00-10'
    windows_dhcp_reservation 'workstation' do
      action :update
      ipaddress '192.168.1.10'
      macaddress '00-00-00-00-00-10'
      scopeid '192.168.1.1'
    end

scope

Actions

  • :create: Creates a reservation entry
  • :delete: Deletes a reservation entry
  • :update: Updates a reservation entry

Attribute Parameters

  • name: name attribute. Name of the scope entry.
  • computername: Name of the DHCP server.
  • description: Description field entry.
  • endrange: Ending IP of the scope. Regex: IPv4 or IPv6
  • scopeid: IPv4 or IPv6 scope ex. 192.168.1.1 Required Regex: IPv4 or IPv6
  • startrange: Staring IP of the scope. Regex: IPv4 or IPv6
  • subnetmask: Subnet mask address of the scope. Regex: IPv4 or IPv6
  • version: Version of IP address. Default 4 Available Options (4, 6)

Examples

# Create scope 'Internal' of '192.168.1.1' with starting ip of '192.168.1.10' and ending IP of '192.168.1.250'
windows_dhcp_scope 'Internal' do
  action :create
  startrange '192.168.1.10'
  endrange '192.168.1.250'
  subnetmask '255.255.255.0'
  scopeid '192.168.1.1'
end
Contributing
------------
TODO: (optional) If this is a public cookbook, detail the process for contributing. If this is a private cookbook, remove this section.

e.g.
1. Fork the repository on Github
2. Create a named feature branch (like `add_component_x`)
3. Write your change
4. Write tests for your change (if applicable)
5. Run the tests, ensuring they all pass
6. Submit a Pull Request using Github

License and Authors
-------------------
Authors:: Derek Groh (<dgroh@arch.tamu.edu>)

Dependent cookbooks

windows >= 0.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

windows_dhcp CHANGELOG

This file is used to list changes made in each version of the windows_dhcp cookbook.

0.2.0

  • reservations update provider

0.1.0

  • Initial release of windows_dhcp

Check the Markdown Syntax Guide for help with Markdown.

The Github Flavored Markdown page describes the differences between markdown on github and standard markdown.

Collaborator Number Metric
            

0.2.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.2.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.2.0 failed this metric

FC064: Ensure issues_url is set in metadata: windows_dhcp/metadata.rb:1
FC065: Ensure source_url is set in metadata: windows_dhcp/metadata.rb:1
FC066: Ensure chef_version is set in metadata: windows_dhcp/metadata.rb:1
FC085: Resource using new_resource.updated_by_last_action to converge resource: windows_dhcp/providers/lease.rb:30
FC085: Resource using new_resource.updated_by_last_action to converge resource: windows_dhcp/providers/lease.rb:65
FC085: Resource using new_resource.updated_by_last_action to converge resource: windows_dhcp/providers/lease.rb:73
FC085: Resource using new_resource.updated_by_last_action to converge resource: windows_dhcp/providers/lease.rb:101
FC085: Resource using new_resource.updated_by_last_action to converge resource: windows_dhcp/providers/reservation.rb:30
FC085: Resource using new_resource.updated_by_last_action to converge resource: windows_dhcp/providers/reservation.rb:64
FC085: Resource using new_resource.updated_by_last_action to converge resource: windows_dhcp/providers/reservation.rb:72
FC085: Resource using new_resource.updated_by_last_action to converge resource: windows_dhcp/providers/reservation.rb:101
FC085: Resource using new_resource.updated_by_last_action to converge resource: windows_dhcp/providers/scope.rb:30
FC085: Resource using new_resource.updated_by_last_action to converge resource: windows_dhcp/providers/scope.rb:63
FC085: Resource using new_resource.updated_by_last_action to converge resource: windows_dhcp/providers/scope.rb:70
FC085: Resource using new_resource.updated_by_last_action to converge resource: windows_dhcp/providers/scope.rb:98
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

No Binaries Metric
            

0.2.0 passed this metric

Testing File Metric
            

0.2.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.2.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 include a tag that matches this cookbook version number