51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
# File 'manifests/configs.pp', line 51
class openssl::configs (
Optional[String[1]] $owner = undef,
Optional[String[1]] $group = undef,
Optional[String[1]] $mode = undef,
Optional[String[1]] $country = undef,
Optional[String[1]] $state = undef,
Optional[String[1]] $locality = undef,
Optional[String[1]] $organization = undef,
Optional[String[1]] $unit = undef,
Optional[String[1]] $email = undef,
Optional[Integer] $default_bits = undef,
Optional[String[1]] $default_md = undef,
Optional[String[1]] $default_keyfile = undef,
Optional[Array] $basicconstraints = undef,
Optional[Array] $extendedkeyusages = undef,
Optional[Array] $keyusages = undef,
Optional[Array] $subjectaltnames = undef,
Hash $conffiles = {},
) {
# dependencies: ensure config file is generated before potential usage
File<| tag=='openssl-configs' |> -> Ssl_pkey<| |>
File<| tag=='openssl-configs' |> -> X509_cert<| |>
File<| tag=='openssl-configs' |> -> X509_request<| |>
$conffiles.each | String $filename, Hash $vals | {
openssl::config { $filename:
* => {
country => $country,
state => $state,
locality => $locality,
organization => $organization,
unit => $unit,
email => $email,
default_bits => $default_bits,
default_md => $default_md,
default_keyfile => $default_keyfile,
basicconstraints => $basicconstraints,
extendedkeyusages => $extendedkeyusages,
keyusages => $keyusages,
subjectaltnames => $subjectaltnames,
} + $vals,
}
}
}
|