Installs and configures dnsmasq in a very flexbile manner.
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.
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.
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 inkey
for simple setting options likedomain-needed
,bogus-priv
etc.Integer
: Direct mapping of integers (useful esp. for port numbers).String
: The string is pasted into the file without modification.
chef-dnsmasq is licensed under the Apache License, Version 2.0. See LICENSE for more information.