Puppet Class: powerdns::params

Overview

Internal: Set default parameters

Example:

include powerdns::params


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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# File 'manifests/params.pp', line 7

class powerdns::params {

  $package = $::operatingsystem ? {
    /(?i:centos|redhat|amazon)/ => 'pdns',
    default              => 'pdns-server'
  }

  $package_provider = $::operatingsystem ? {
    /(?i:centos|redhat|amazon)/  => 'rpm',
    default               => 'dpkg'
  }

  $package_psql = $::operatingsystem ? {
    /(?i:centos|redhat|amazon)/ => 'pdns-backend-postgresql',
    default              => 'pdns-backend-pgsql'
  }

  $package_mysql = $::operatingsystem ? {
    /(?i:centos|redhat|amazon)/ => 'pdns-backend-mysql',
    default              => 'pdns-backend-mysql'
  }

  $package_ldap = $::operatingsystem ? {
    /(?i:centos|redhat|amazon)/ => 'pdns-backend-ldap',
    default              => 'pdns-backend-ldap'
  }

  $package_recursor = $::operatingsystem ? {
    /(?i:centos|redhat|amazon)/ => 'pdns-recursor',
    default              => 'pdns-recursor'
  }

  $postgresql_cfg_path = $::operatingsystem ? {
    /(?i:centos|redhat|amazon)/ => '/etc/pdns/pdns.conf',
    default              => '/etc/powerdns/pdns.d/pdns.local.gpgsql.conf'
  }

  $mysql_cfg_path = $::operatingsystem ? {
    /(?i:centos|redhat|amazon)/ => '/etc/pdns/pdns.conf',
    default              => '/etc/powerdns/pdns.d/pdns.local.gmysql.conf'
  }

  $ldap_cfg_path = $::operatingsystem ? {
    /(?i:centos|redhat|amazon)/ => '/etc/pdns/pdns.conf',
    default              => '/etc/powerdns/pdns.d/pdns.local.ldap.conf'
  }

  $recursor_cfg_path = $::operatingsystem ? {
    /(?i:centos|redhat|amazon)/ => '/etc/pdns/recursor.conf',
    default              => '/etc/powerdns/recursor.conf'
  }

  $cfg_include_name = $::operatingsystem ? {
    /(?i:centos|redhat|amazon)/ => 'include-dir',
    default              => 'include'
  }

  $cfg_include_path = $::operatingsystem ? {
    /(?i:centos|redhat|amazon)/ => '/etc/pdns/conf.d',
    default              => '/etc/powerdns/pdns.d'
  }

}