resolv_conf

Manage resolv.conf via Puppet

Steffen Zieger

saz

3,369,338 downloads

3,872 latest version

5.0 quality score

Version information

  • 4.2.1 (latest)
  • 4.2.0
  • 4.1.0
  • 4.0.0
  • 3.3.0
  • 3.1.0
  • 3.0.5
  • 3.0.4
  • 3.0.3
  • 3.0.2
  • 3.0.1
  • 3.0.0
  • 2.1.0
  • 2.0.0
  • 1.0.4
  • 1.0.3
  • 1.0.2
  • 1.0.1
  • 1.0.0
released Sep 3rd 2020
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.3 <7.0.0
  • RedHat, CentOS, OracleLinux, Scientific, Suse, Debian, Ubuntu, FreeBSD, OpenBSD, Gentoo, ArchLinux, AIX, Solaris

Start using this module

Documentation

saz/resolv_conf — version 4.2.1 Sep 3rd 2020

puppet-resolv_conf Build Status

Manage resolv.conf via Puppet

Show some love

If you find this module useful, send some bitcoins to 1Na3YFUmdxKxJLiuRXQYJU2kiNqA3KY2j9

Supported Puppet versions

  • Puppet >= 4.9.3
  • Last version supporting Puppet 3: v3.3.0

Usage

    class { 'resolv_conf':
      nameservers => ['192.168.1.1', '192.168.2.2', '192.168.3.3'],
    }

Different domain than current machine

    class { 'resolv_conf':
        nameservers => ['192.168.1.1', '192.168.2.2', '192.168.3.3'],
        domainname  => 'different.example.com',
    }

Different searchpath

    class { 'resolv_conf':
        nameservers => ['192.168.1.1', '192.168.2.2', '192.168.3.3'],
        searchpath  => ['sub1.example.com', 'sub2.example.com'],
    }

Class parameters

  • nameservers: Array. Required. List of nameservers
  • domainname: String. Default: $::domain
  • searchpath: String or Array. List of search domains. Default: []
  • options: Array. Default: empty