Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F8394575
params.pp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
969 B
Subscribers
None
params.pp
View Options
# == Class: resolv_conf::params
#
# This base class contains default parameters
#
# === Variables
#
# === Inherits
#
class
resolv_conf
::
params
{
case
$::osfamily
{
'Debian'
,
'RedHat'
,
'Suse'
:
{
$config_file
=
'/etc/resolv.conf'
$group
=
'root'
}
'FreeBSD'
:
{
$config_file
=
'/etc/resolv.conf'
$group
=
'wheel'
}
'OpenBSD'
:
{
$config_file
=
'/etc/resolv.conf'
$group
=
'wheel'
}
'Archlinux'
:
{
$config_file
=
'/etc/resolv.conf'
$group
=
'root'
}
'Solaris'
:
{
# This will only be used on Solaris < 11
$config_file
=
'/etc/resolv.conf'
$group
=
'root'
}
default
:
{
case
$::operatingsystem
{
gentoo
:
{
$config_file
=
'/etc/resolv.conf'
$group
=
'root'
}
default
:
{
fail
(
"Unsupported platform: ${::osfamily}/${::operatingsystem}"
)
}
}
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Wed, Jun 4, 7:26 PM (1 w, 2 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3399158
Attached To
rSPRESO Manage /etc/resolv.conf with puppet
Event Timeline
Log In to Comment