Installs and configures dnsmasq in a very flexbile manner.
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
attributes
libraries
recipes
spec
.gitignore
.travis.yml
Gemfile
Guardfile
LICENSE
README.md
Rakefile
metadata.rb

README.md

chef-dnsmasq

Build Status

Description

Installs and configures dnsmasq in a very flexbile manner.

Usage

Use recipe[dnsmasq::default] for getting dnsmasq installed and configured via /etc/dnsmasq.conf without any additional services like other cookbooks do. You can use and set all configuration options because of a flexible generator this cookbook uses.

Requirements

Platform

It should work on all OSes that provide a dnsmasq package and assume the configuration file at /etc/dnsmasq.conf.

For supported Chef/Ruby version see Travis.

Recipes

default

Configures dnsmasq from data found below node['dnsmasq']['config'], where each key value pair is handeled like this: If the value is an array there will multiple lines with the same key and these different values. Each value (whether arrayed or not) can have different types:

  • true: Use for boolean values, they result in key for simple setting options like domain-needed, bogus-priv etc.
  • Integer: Direct mapping of integers (useful esp. for port numbers).
  • String: The string is pasted into the file without modification.

License

chef-dnsmasq is licensed under the Apache License, Version 2.0. See LICENSE for more information.