Defined Type: freetds::conf

Defined in:
manifests/conf.pp

Overview

Parameters:

  • version (Any) (defaults to: undef)
  • host (Any) (defaults to: undef)
  • port (Any) (defaults to: undef)
  • initial_block_size (Any) (defaults to: undef)
  • try_server_login (Any) (defaults to: undef)
  • try_domain_login (Any) (defaults to: undef)
  • nt_domain (Any) (defaults to: undef)
  • cross_domain_login (Any) (defaults to: undef)
  • dump_file (Any) (defaults to: undef)
  • dump_file_append (Any) (defaults to: undef)
  • debug_level (Any) (defaults to: undef)
  • timeout (Any) (defaults to: undef)
  • connection_timeout (Any) (defaults to: undef)
  • emulate_little_endian (Any) (defaults to: undef)
  • client_charset (Any) (defaults to: undef)
  • text_size (Any) (defaults to: undef)


1
2
3
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
# File 'manifests/conf.pp', line 1

define freetds::conf (
  $version = undef,
  $host = undef,
  $port = undef,
  $initial_block_size = undef,
  $try_server_login = undef,
  $try_domain_login = undef,
  $nt_domain = undef,
  $cross_domain_login  = undef,
  $dump_file = undef,
  $dump_file_append = undef,
  $debug_level = undef,
  $timeout = undef,
  $connection_timeout = undef,
  $emulate_little_endian = undef,
  $client_charset = undef,
  $text_size = undef,
) {
  include ::freetds::params

  if ! defined(Class['freetds']) {
    fail('Before you can use this resource, you must load the freetds base class!')
  }
  
  if ! $version {
    fail("You must specify which version to use for this definition!")
  } else {
    $valid_versions = "(4.2|5.0|7.0|7.1|7.2|8.0|auto)"
    validate_re($version, $valid_versions)
  }
  
  if ! $host {
    fail("You need to specify a host for this definition!")
  }
  
  if ! $port {
    fail("You need to specify a port for this definition!")
  }
  
  concat::fragment{"freetds_block_${name}":
    target => "${::freetds::params::config}",
    content => template("${module_name}/freetds-host.conf.erb"),
    order   => 25,
  }
  
}