Defined Type: openssl::dhparam

Defined in:
manifests/dhparam.pp

Summary

Creates Diffie Helman parameters.

Overview

Parameters:

  • path (Stdlib::Absolutepath) (defaults to: $name)

    path to write DH parameters to

  • ensure (Enum['present', 'absent']) (defaults to: present)

    ensure whether DH paramers file is present or absent

  • size (Integer[1]) (defaults to: 2048)

    number of bits for the parameter set

  • owner (Variant[String, Integer]) (defaults to: 'root')

    file owner. User must exist

  • group (Variant[String, Integer]) (defaults to: 'root')

    file group. Group must exist

  • mode (String) (defaults to: '0644')

    file mode.

  • fastmode (Boolean) (defaults to: false)

    Use “fastmode” for dhparam generation



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/dhparam.pp', line 17

define openssl::dhparam (
  Stdlib::Absolutepath      $path = $name,
  Enum['present', 'absent'] $ensure = present,
  Integer[1]                $size = 2048,
  Variant[String, Integer]  $owner = 'root',
  Variant[String, Integer]  $group = 'root',
  String                    $mode = '0644',
  Boolean                   $fastmode = false,
) {
  dhparam { $path:
    ensure   => $ensure,
    size     => $size,
    fastmode => $fastmode,
  }

  # Set file access
  file { $path:
    ensure  => $ensure,
    owner   => $owner,
    group   => $group,
    mode    => $mode,
    require => Dhparam[$path];
  }
}