Version information
released May 2nd 2015
This version is compatible with:
Start using this module
Add this module to your Puppetfile:
mod 'caius-resolvconf', '0.1.2'
Learn more about managing modules with a PuppetfileDocumentation
caius/resolvconf — version 0.1.2 May 2nd 2015
caius/resolvconf
Table of Contents
- Overview
- Setup - The basics of getting started with resolvconf
- Usage - Configuration options and additional functionality
- Limitations - OS compatibility, etc.
Overview
Apply configuration to resolv.conf
using resolvconf(8)
. Useful on FreeBSD where resolv.conf
is entirely managed by resolvconf(8)
.
Setup
What resolvconf affects
Tested on:
- FreeBSD 10.1
Things changed at apply time:
resolvconf.conf
resolvconf -u
called when changes are applied to make sureresolv.conf
is updated
Beginning with resolvconf
Put the following in a node definition:
class { resolvconf:
name_servers => "8.8.8.8 8.8.4.4",
search_domains => "test.example.com",
}
This will result in your resolv.conf
looking like:
# Generated by resolvconf
search test.example.com
nameserver 8.8.8.8
nameserver 8.8.4.4
Usage
All the basic variables available to resolvconf.conf
are definable using the module. Some of them are space separated, just assign them as a single string in puppet as you could in resolvconf.conf
and resolvconf(8)
will take care of them.
man 8 resolvconf on your system for more information.
Limitations
Currently tested on FreeBSD 10.1.
Dependencies
- puppetlabs-stdlib (>= 1.0.0)