resolvconf
Version information
This version is compatible with:
- Puppet Enterprise 2019.8.x, 2019.7.x, 2019.5.x, 2019.4.x, 2019.3.x, 2019.2.x, 2019.1.x, 2019.0.x, 2018.1.x, 2017.3.x, 2017.2.x, 2017.1.x, 2016.4.x
- Puppet >= 4.9.0 < 7.0.0
- , , , , ,
Start using this module
Add this module to your Puppetfile:
mod 'suchpuppet-resolvconf', '1.0.0'
Learn more about managing modules with a PuppetfileDocumentation
resolvconf
Table of Contents
- Description
- Setup - The basics of getting started with resolvconf
- Usage - Configuration options and additional functionality
- Reference - An under-the-hood peek at what the module is doing and how
- Limitations - OS compatibility, etc.
- Development - Guide for contributing to the module
Description
Module for managing resolv.conf on RedHat and Debian based systems
Setup
Beginning with resolvconf
include resolvconf
is enough to get you up and running with the module if you would like a default setup using Google’s resolvers and the $::domain
fact as the search domain.
Usage
All parameters are available in the main resolvconf class. See the common usages below for examples.
Configure a default resolv.conf with Google nameservers as the $::domain
fact as the search path
include ::resolvconf
Pass in parameters for which nameservers to use
class { ‘::resolvconf’:
nameservers => [‘8.8.8.8’, ‘8.8.4.4’],
}
Pass in nameservers plus domains for the search path
class { ‘::resolvconf’:
nameservers => [‘8.8.8.8’, ‘8.8.4.4’],
domains => [‘domain.tld’, ‘sub.domain.tld’],
}
Reference
Classes
Public classes
- resolvconf: Main class, includes all other classes
Private classes
- resolvconf::config: Handles the configuration of resolv.conf
- resolvconf::service: Handles the resolvconf service for debian based systems
- resolvconf::install: Handles package installation for debian based systems
Parameters
nameservers
Optional.
Data type: Array
Allows you to specify an array of nameservers to use in resolv.conf. Default value: [‘8.8.8.8’, ‘8.8.4.4’]
domains
Optional.
Data type: Array
Allows you to specify an array of domains to include in the search path in resolv.conf. Default value: [$::domain]
use_local
Optional.
Data type: Boolean
Allows you to use a local nameserver such as named/bind. Will set a nameserver entry of 127.0.0.1 as the first entry in resolv.conf. Default value: false
Limitations
This module has only been tested on the following distros:
- Ubuntu
- Trusty
- Xenial
- Debian
- Jessie
- Stretch
- CentOS 7
This module uses a custom Hiera 5 backend and requires at least Puppet 4.9 due to this.
Development
If you would like to contribute to the module, fork it and create a pull request when you're satisfied with your changes.
Changelog
All notable changes to this project will be documented in this file.
Release 1.0.0
Features
- Add support for Puppet 6
- Add support for Ubuntu 18.04 & Ubuntu 20.04
Removed Features
- Remove support for Ubuntu 14.04
Release 0.1.0
Features
- Initial featureset and management of resolv.conf
Bugfixes
Known Issues
MIT License Copyright (c) 2018 suchpuppet Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.