dnsmasq

Manage dnsmasq with Puppet
Mikhail Vasilenko

Mikhail Vasilenko

mvasilenko

3,328 downloads

3,328 latest version

4.5 quality score

Version information

  • 1.4.1 (latest)
released Jul 3rd 2019
This version is compatible with:
  • Puppet Enterprise 2018.1.x, 2017.3.x, 2017.2.x, 2017.1.x, 2016.5.x, 2016.4.x
  • Puppet >=4.4.0 <6.0.0

Start using this module

Documentation

mvasilenko/dnsmasq — version 1.4.1 Jul 3rd 2019

puppet-dnsmasq 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,
    }