Forge Home

resolv_conf

Manage /etc/resolv.conf on Linux Servers

14,997 downloads

9,780 latest version

3.1 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 1.0.4 (latest)
  • 1.0.3
  • 1.0.2
  • 1.0.1
  • 1.0.0
  • 0.1.0
  • 0.0.6
  • 0.0.5
  • 0.0.4 (deleted)
  • 0.0.3 (deleted)
  • 0.0.2 (deleted)
  • 0.0.1 (deleted)
released May 19th 2015
This version is compatible with:
  • Puppet Enterprise 3.x
  • Puppet 3.x
  • , , , ,

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'jonnyx-resolv_conf', '1.0.4'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add jonnyx-resolv_conf
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install jonnyx-resolv_conf --version 1.0.4

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

jonnyx/resolv_conf — version 1.0.4 May 19th 2015

#resolv_conf Build Status

####Table of Contents

  1. Overview
  2. Module Description - What the module does and why it is useful
  3. Setup - The basics of getting started with resolv_conf
  4. Usage - Configuration options and additional functionality
  5. Reference - An under-the-hood peek at what the module is doing and how
  6. Limitations - OS compatibility, etc.
  7. Development - Guide for contributing to the module

##Overview

The resolv_conf module configures /etc/resolv.conf on Linux based systems.

##Module Description

resolv_conf module will manage the configuration of the /etc/resolv.conf on Linux based systems

##Setup

###What resolv_conf affects

  • If the contents of /etc/resolv.conf are being managed by Network Manager, it will get overwritten

###Setup Requirements

This module assumes that the network configuration is not being managed by Network Manager.

Requires Puppetlabs stdlib module

##Usage

Class: resolv_conf

class { 'resolv_conf':
  nameserver => '192.168.1.20',
  domain     => 'example.com',
}

Hiera

resolv_conf::nameserver: 192.168.1.20

##Reference

###Classes

####Public Classes

  • resolv_conf: Main class

##Parameters:

    $nameserver
    IP address in dot notation of your name servers

    $domain
    Local domain

    $search
    Please refer to the resolv.conf(5) manual page

    $sortlist (optional)
    Optional parameter that defaults to your netmask

    $options (optional)
    Please refer to the resolv.conf(5) manual page

##Limitations

Tested on Debian and RedHat based Linux distributions.

##Development

This module follows the manual page provided on Linux systems. If adding any options, please consult the man page first.

##Release Notes/Contributors/Etc

Contributions from:

Thomas Linkin tom@puppetlabs.com