Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F8394557
README.md
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
README.md
View Options
#
puppet
-
resolv_conf
[](http://travis-ci.org/saz/puppet-resolv_conf)
Manage
resolv
.
conf
via
Puppet
##
Show
some
love
If
you
find
this
module
useful
,
send
some
bitcoins
to
1
Na3YFUmdxKxJLiuRXQYJU2kiNqA3KY2j9
###
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
```
puppet
class
{
'
resolv_conf
'
:
nameservers
=>
[
'
192.168
.
1.1
'
,
'
192.168
.
2.2
'
,
'
192.168
.
3.3
'
],
domainname
=>
'
different
.
example
.
com
'
,
}
```
###
Different
searchpath
```
puppet
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
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Jun 4 2025, 7:26 PM (9 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3303027
Attached To
rSPRESO Manage /etc/resolv.conf with puppet
Event Timeline
Log In to Comment