Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9123366
resolv_conf.pp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
628 B
Subscribers
None
resolv_conf.pp
View Options
# Configure resolv.conf
class
profile
::
resolv_conf
{
$nameservers
=
lookup
(
'dns::nameservers'
)
$search_domains
=
lookup
(
'dns::search_domains'
)
class
{
'::resolv_conf'
:
nameservers
=>
$nameservers,
searchpath
=>
$search_domains,
}
file
{[
'/etc/dhcp'
,
'/etc/dhcp/dhclient-enter-hooks.d'
]:
ensure
=>
directory
,
owner
=>
'root'
,
group
=>
'root'
,
mode
=>
'0644'
,
}
file
{
'/etc/dhcp/dhclient-enter-hooks.d/noresolvconf'
:
ensure
=>
present
,
owner
=>
'root'
,
group
=>
'root'
,
mode
=>
'0644'
,
source
=>
'puppet:///modules/profile/resolv_conf/dhcp-noresolvconf'
,
}
}
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Sat, Jun 21, 5:22 PM (1 w, 5 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3287565
Attached To
rSPSITE puppet-swh-site
Event Timeline
Log In to Comment