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];
}
}
|