Forge Home

dnsmasq

Manage dnsmasq with Puppet

2,774,847 downloads

487 latest version

4.7 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.

Version information

  • 2.0.0 (latest)
  • 1.5.0
  • 1.4.0
  • 1.3.1
  • 1.3.0
  • 1.2.0
  • 1.1.0
  • 1.0.1
  • 1.0.0
released May 22nd 2024
This version is compatible with:
  • Puppet Enterprise 2023.2.x, 2023.1.x, 2023.0.x, 2021.7.x, 2021.6.x, 2021.5.x, 2021.4.x, 2021.3.x, 2021.2.x, 2021.1.x, 2021.0.x
  • Puppet >=7.0.0 <8.0.0

Start using this module

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

Add this module to your Puppetfile:

mod 'saz-dnsmasq', '2.0.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add saz-dnsmasq
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install saz-dnsmasq --version 2.0.0

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

saz/dnsmasq — version 2.0.0 May 22nd 2024

puppet-dnsmasq CI Build Status

Manage dnsmasq via Puppet

Supported Puppet versions

  • Puppet >= 4
  • Last version supporting Puppet 3: v1.3.1

How to use

    dnsmasq::conf { 'local-dns':
      ensure => present,
      source => 'puppet:///files/dnsmasq/local-dns',
    }

or

    dnsmasq::conf { 'another-config':
      ensure  => present,
      content => 'dhcp-range=192.168.0.50,192.168.0.150,12h',
    }

Hiera usage

    class { '::dnsmasq':
      configs_hash    => {},
      hosts_hash      => {},
      dhcp_hosts_hash => {},
    }

purge unmanaged files in $config_dir:

    class { '::dnsmasq':
      purge_config_dir => true,
    }
    class { '::dnsmasq':
      configs_hash => {
        'another-config' => {
          content => 'dhcp-range=192.168.0.50,192.168.0.150,12h',
        },
      },
    }

class params and default values

    class { '::dnsmasq':
      configs_hash     => {},
      hosts_hash       => {},
      dhcp_hosts_hash  => {},
      package_ensure   => 'installed',
      service_control  => true,
      purge_config_dir => true,
    }