Version information
released Jan 8th 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
Add this module to your Puppetfile:
mod 'mvasilenko-dnsmasq', '1.4.1'
Learn more about managing modules with a PuppetfileDocumentation
mvasilenko/dnsmasq — version 1.4.1 Jan 8th 2019
puppet-dnsmasq
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,
}
2013-08-07 Udo Waechter udo@maketank.net
* manifests/dhcp_host.pp: New file. Define a known host including FQDN and Mac address
* manifests/reload.pp: New file.
* manifests/conf.pp: Merged with upstream
* manifests/config.pp: Merged with upstream
* manifests/init.pp: Merged with upstream
* manifests/install.pp: Merged with upstream
* manifests/params.pp: Merged with upstream
* manifests/service.pp: Merged with upstream
* Modulefile: updated, version bump
Dependencies
- puppetlabs/stdlib (>=2.0.0 < 5.0.0)
Copyright 2011 Steffen Zieger Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.