Puppet Class: nsd::remote

Defined in:
manifests/remote.pp

Overview

Class: nsd::remote

Configure remote control of the nsd daemon process

Parameters:

  • enable (Boolean) (defaults to: true)
  • interface (Array[String]) (defaults to: ['::1', '127.0.0.1'])
  • port (Integer) (defaults to: 8952)
  • server_key_file (Optional[Stdlib::Absolutepath]) (defaults to: undef)
  • server_cert_file (Optional[Stdlib::Absolutepath]) (defaults to: undef)
  • control_key_file (Optional[Stdlib::Absolutepath]) (defaults to: undef)
  • control_cert_file (Optional[Stdlib::Absolutepath]) (defaults to: undef)


5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'manifests/remote.pp', line 5

class nsd::remote (
  Boolean $enable                                  = true,
  Array[String] $interface                         = ['::1', '127.0.0.1'],
  Integer $port                                    = 8952,
  Optional[Stdlib::Absolutepath] $server_key_file   = undef,
  Optional[Stdlib::Absolutepath] $server_cert_file  = undef,
  Optional[Stdlib::Absolutepath] $control_key_file  = undef,
  Optional[Stdlib::Absolutepath] $control_cert_file = undef,
) {
  include nsd

  $config_file = $nsd::config_file

  concat::fragment { 'nsd-remote':
    order   => '10',
    target  => $config_file,
    content => template('nsd/remote.erb'),
  }
}