Skip to content

Manage /etc/resolve.conf on aix, solaris and rhel with puppet

License

Notifications You must be signed in to change notification settings

mlk-89/resolv_conf

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

resolve_conf

Table of Contents

  1. Description
  2. Usage - Configuration options and additional functionality
  3. Reference - An under-the-hood peek at what the module is doing and how
  4. Limitations - OS compatibility, etc.
  5. Development - Guide for contributing to the module

Description

Manage /etc/resolv.conf on AIX, Solaris, RHEL, Debian and FreeBSD with Puppet.

Setup

What resolve_conf affects

  • Manages the /etc/resolv.conf file
  • Restarts the dns/client on Solaris if the file is changed

Usage

Basic

include resolv_conf

Use Google DNS

Customised

class { "resolv_conf":
  search      => "megacorp.com",
  nameservers => ["10.0.0.1", "10.0.4.4"],
}

Set a search domain and use specific nameservers.

Reference

Classes

  • resolv_conf - Manage the /etc/resolv.conf file

Limitations

  • Assumes that cron itself is already installed
  • Does not attempt to manage the cron services
  • Not supported by Puppet, Inc.

Development

PRs accepted :)

Testing

This module supports testing using PDQTest.

Test can be executed with:

bundle install
bundle exec pdqtest all

See .travis.yml for a working CI example

About

Manage /etc/resolve.conf on aix, solaris and rhel with puppet

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 57.1%
  • Puppet 33.9%
  • Shell 9.0%