Puppet Class: gai

Defined in:
manifests/init.pp

Summary

Manage /etc/gai.conf

Overview

init.pp — Class gai

Examples:

Declaring the class


class { 'gai': }

Parameters:

  • label (Hash[String,String]) (defaults to: {})

    A hash with netmask/precedence pairs for the label table.

  • precedence (Hash[String,String]) (defaults to: {})

    A hash with netmask/precedence pairs for the precedence table.

  • scopev4 (Hash[String,String]) (defaults to: {})

    A hash with mask/value pairs for the scope table.

  • reload (Optional[Enum['yes','no']]) (defaults to: undef)

    Indicate if the config should be reloaded for every loopkup. Valid options: ‘yes’, ‘no’ or undefined. Default: undef



23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# File 'manifests/init.pp', line 23

class gai (
  Hash[String,String]        $label      = {},
  Hash[String,String]        $precedence = {},
  Hash[String,String]        $scopev4    = {},
  Optional[Enum['yes','no']] $reload     = undef,
) {
  # Declaring the class without any parameters will create the file
  # /etc/gai.conf containing comments only. In this case the operating
  # system specific default rules apply. See RFC 3484 for details.

  file { '/etc/gai.conf':
    ensure  => file,
    owner   => 'root',
    group   => 'root',
    mode    => '0644',
    content => template('gai/gai.conf.erb'),
  }
}