Forge Home

resolv_conf

Manage resolv.conf via Puppet

3,576,383 downloads

2,366 latest version

4.7 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

  • 7.0.0 (latest)
  • 6.0.0
  • 5.1.0
  • 5.0.0
  • 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 24th 2024
This version is compatible with:
  • Puppet Enterprise 2023.8.x, 2023.7.x, 2023.6.x, 2023.5.x, 2023.4.x, 2023.3.x, 2023.2.x, 2023.1.x, 2023.0.x, 2021.7.x, 2021.6.x, 2021.5.x, 2021.4.x, 2021.3.x, 2021.2.x, 2021.1.x, 2021.0.x
  • Puppet >=7.0.0 <9.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', '7.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 7.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 7.0.0 Jun 24th 2024

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