Forge Home

resolv_conf

Manage resolv.conf via Puppet

3,473,182 downloads

5,692 latest version

4.6 quality score

Version information

  • 5.0.0 (latest)
  • 4.2.1
  • 4.2.0
  • 4.1.0
  • 4.0.0
  • 3.3.0
  • 3.1.0
  • 3.0.5
  • 3.0.4 (deleted)
  • 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 Jun 22nd 2021
This version is compatible with:
  • Puppet Enterprise 2021.4.x, 2021.3.x, 2021.2.x, 2021.1.x, 2021.0.x, 2019.8.x, 2019.7.x, 2019.5.x, 2019.4.x, 2019.3.x, 2019.2.x, 2019.1.x
  • Puppet >=6.1.0 <8.0.0
  • RedHat, CentOS, OracleLinux, Scientific, Suse, Debian, Ubuntu, FreeBSD, OpenBSD, Gentoo, ArchLinux, AIX, Solaris

Start using this module

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

Add this module to your Puppetfile:

mod 'saz-resolv_conf', '5.0.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

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

Manually install this module globally with Puppet module tool:

puppet module install saz-resolv_conf --version 5.0.0

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

saz/resolv_conf — version 5.0.0 Jun 22nd 2021

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