Manage dnsmasq with puppet
Puppet Ruby Pascal
Latest commit 99e9344 Jan 7, 2017 @saz new release v1.3.0
Permalink
Failed to load latest commit information.
.bundle
files
manifests
spec
tests
.fixtures.yml
.gitignore
.rubocop.yml
.travis.yml
ChangeLog
Gemfile
LICENSE
README.md
REVISION
Rakefile
metadata.json

README.md

puppet-dnsmasq Build Status

Manage dnsmasq via Puppet

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 => {},
    }
    class { '::dnsmasq':
        configs_hash => {
            'another-config' => {
                content      => 'dhcp-range=192.168.0.50,192.168.0.150,12h',
            },
        },
    }