Puppet Class: name_service_switch::params
- Inherited by:
-
name_service_switch
- Defined in:
- manifests/params.pp
Overview
Name_service_switch::Params
Params pattern
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'manifests/params.pp', line 4
class name_service_switch::params {
$nss_owner = "root"
case $facts['os']['family'] {
"AIX": {
$nss_path = "/etc/netsvc.conf"
$nss_group = "system"
$nss_mode = "0664"
$ldelim = " "
$delim = "="
$rdelim = " "
$entries = {"hosts" => "local4, bind4",}
}
"Solaris": {
$nss_path = "/etc/nsswitch.conf"
$nss_group = "sys"
$nss_mode = "0644"
$ldelim = ""
$delim = ":"
$rdelim = "\t"
$entries = {
"hosts" => "files dns",
"ipnodes" => "files dns",
}
}
"Suse",
"Debian",
"RedHat": {
$nss_path = "/etc/nsswitch.conf"
$nss_group = "root"
$nss_mode = "0644"
$ldelim = ""
$delim = ":"
$rdelim = "\t"
$entries = {"hosts" => "files dns"}
}
default: {
fail("class ${name} does not support ${facts['os']['family']}")
}
}
}
|