Puppet Class: resolv_conf::params

Inherited by:
resolv_conf
Defined in:
manifests/params.pp

Overview

Resolve_conf::Param

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
# File 'manifests/params.pp', line 4

class resolv_conf::params {
  $resolv_conf_path   = "/etc/resolv.conf"
  $nameservers        = ["8.8.8.8"]
  $resolv_conf_owner  = "root"
  $resolv_conf_mode   = "0644"
  $search             = ""
  $resolv_conf_group  = "0"

  case $facts['os']['family'] {
    "AIX": {
      $search_keyword     = "domain"
      $options            = ["rotate", "timeout:2", "attempts:2"]
    }
    "Solaris": {
      $search_keyword     = "search"
      $options            = []
    }
    "RedHat": {
      $search_keyword     = "search"
      $options            = []
    }
    "FreeBSD": {
      $search_keyword     = "search"
      $options            = []
    }
    "Suse": {
      $search_keyword     = "search"
      $options            = []
    }
    default: {
      fail("class ${name} does not support ${facts['os']['family']}")
    }
  }
}