Skip to content

zanloy/puppet-resolv_conf

 
 

Repository files navigation

puppet-resolv_conf Build Status

Manage resolv.conf via Puppet

Show some love

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

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

About

Manage /etc/resolv.conf with puppet

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 72.4%
  • Puppet 27.4%
  • Pascal 0.2%