Puppet Class: inspircd::modules::gnutls

Defined in:
manifests/modules/gnutls.pp

Overview

Parameters:

  • certfile (Any)
  • keyfile (Any)
  • dhfile (Any) (defaults to: undef)
  • cafile (Any) (defaults to: undef)
  • hash (Any) (defaults to: 'sha1')
  • crlfile (Any) (defaults to: undef)
  • dhbits (Any) (defaults to: '1024')
  • priority (Any) (defaults to: 'NORMAL:-MD5')
  • generate (Any) (defaults to: true)


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
# File 'manifests/modules/gnutls.pp', line 1

class inspircd::modules::gnutls (
  $certfile,
  $keyfile,
  $dhfile = undef,
  $cafile = undef,
  $hash = 'sha1',
  $crlfile = undef,
  $dhbits = '1024',
  $priority = 'NORMAL:-MD5',
  $generate = true,
){

  $config = {
    certfile => $certfile,
    keyfile  => $keyfile,
    dhfile   => $dhfile,
    cafile   => $cafile,
    crlfile  => $crlfile,
    hash     => $hash,
    dhbits   => $dhbits,
    priority => $priority,
  }

  ::inspircd::internal::configblock { "inspircd ${name} ":
    config_name => 'gnutls',
    config      => $config,
    section     => 'modules'
  }

  ensure_resource('inspircd::config::module', 'ssl_gnutls')

  if($generate) {
    ensure_resource('class', 'inspircd::internal::certs',{
        certfile => $certfile,
        keyfile  => $keyfile,
        before   => Service['inspircd']
      })
  }

}