Forge Home

dhcpd

Simple provisioner for the ISC dhcpd daemon.

10,374 downloads

9,620 latest version

3.6 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Support the Puppet Community by contributing to this module

You are welcome to contribute to this module by suggesting new features, currency updates, or fixes. Every contribution is valuable to help ensure that the module remains compatible with the latest Puppet versions and continues to meet community needs. Complete the following steps:

  1. Review the module’s contribution guidelines and any licenses. Ensure that your planned contribution aligns with the author’s standards and any legal requirements.
  2. Fork the repository on GitHub, make changes on a branch of your fork, and submit a pull request. The pull request must clearly document your proposed change.

For questions about updating the module, contact the module’s author.

Version information

  • 0.1.4 (latest)
  • 0.1.3
  • 0.1.2
  • 0.1.1
  • 0.1.0
released Nov 18th 2014

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'jbeard-dhcpd', '0.1.4'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add jbeard-dhcpd
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install jbeard-dhcpd --version 0.1.4

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

jbeard/dhcpd — version 0.1.4 Nov 18th 2014

dhcpd

Table of Contents

  1. Overview
  2. Module Description - What the module does and why it is useful
  3. Setup - The basics of getting started with dhcpd
  4. Usage - Configuration options and additional functionality
  5. Reference - An under-the-hood peek at what the module is doing and how
  6. Limitations - OS compatibility, etc.
  7. Development - Guide for contributing to the module

Overview

This module manages the ISC DHCP daemon.

Module Description

This module installs and runs the ISC DHCP daemon. This module configures the daemon by building up the dhcpd.conf file with via defined resources.

Setup

What dhcpd affects

The dhcpd module will install the appropriate packages for RedHat and Debian distributions. Furthermore, it constructs the configuration files required for the daemon according to corresponding resources. It also controls the execution of the appropriate daemon services.

Setup Requirements

This module requires the puppetlabs/stdlib and puppetlabs/concat modules.

Beginning with dhcpd

Simply including this module will install and execute the dhcpd service on your host, however it will not be functional without a subnet definition.

Usage

A sample configuration illustrates the basic usage of this module.

class { 'dhcpd':
    ensure              => installed,
    service             => running,
    enable              => true,
    domain              => 'dhcp.example.com',
    search              => [ 'dhcp.example.com', 'example.com', ],
    ddns_updates        => true,
    ddns_update_style   => 'interim',
    ddns_client_updates => 'ignore',
}

dhcpd::key { 'example.org':
    algorithm => 'hmac-md5',
    secret    => 'notrevealed==',
}

dhcpd::zone { 'dhcp.example.com':
    domain     => 'dhcp.example.com.',
    nameserver => 'ns.example.com',
    key        => 'example.org',
}

dhcpd::subnet { 'eth0':
    network       => '192.168.1.0',
    netmask       => '255.255.255.0',
    authoritative => true,
    range         => '192.168.1.100 192.168.1.250',
    broadcast     => '192.168.1.255',
    routers       => '192.168.1.1',
    nameservers   => [ 'ns.example.com', '8.8.8.8', '8.8.4.4', ],
    lease_default => 3600,
}

Reference

TODO List all the classes and organization

Limitations

This module has been tested on:

  • RedHat Enterprise Linux 6
  • CentOS 6
  • Debian Wheezy

Development

Please feel free to submit issues and pull requests to the project's Github page. Changes are periodically reviewed, merged, and published back to the Puppet Forge.