Version information
released May 22nd 2024
This version is compatible with:
- Puppet Enterprise 2023.2.x, 2023.1.x, 2023.0.x, 2021.7.x, 2021.6.x, 2021.5.x, 2021.4.x, 2021.3.x, 2021.2.x, 2021.1.x, 2021.0.x
- Puppet >=7.0.0 <8.0.0
Start using this module
Add this module to your Puppetfile:
mod 'saz-dnsmasq', '2.0.0'
Learn more about managing modules with a PuppetfileDocumentation
saz/dnsmasq — version 2.0.0 May 22nd 2024
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,
}
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
[2.0.0]
Removed
- BREAKING CHANGE: drop Puppet 6 support
[1.5.0]
Added
- added CHANGELOG.md
- add validate_cmd for config file resources #22
Changed
- Use data typing #25
- Fix deprecation warnings #26
Removed
- feat: drop stdlib usage #34
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.