Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F8394570
init.pp
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
610 B
Subscribers
None
init.pp
View Options
class
resolv_conf
(
$nameservers
=
undef
,
$domainname
=
undef
,
$searchpath
=
[],
$options
=
undef
)
inherits
resolv_conf
::
params
{
if
!
$domainname
and
!
$searchpath
{
$domainname_real
=
$::domain
}
elsif
$domainname
and
!
$searchpath
{
$domainname_real
=
$domainname
}
if
!
$nameservers
{
fail
(
"nameservers must be supplied"
)
}
file
{
'resolv.conf'
:
ensure
=>
file
,
path
=>
$resolv_conf::params::config_file,
owner
=>
'root'
,
group
=>
$resolv_conf::params::group,
mode
=>
'0644'
,
content
=>
template
(
'resolv_conf/resolv.conf.erb'
),
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jun 4, 7:26 PM (1 w, 19 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3399157
Attached To
rSPRESO Manage /etc/resolv.conf with puppet
Event Timeline
Log In to Comment