-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathtransfer.pp
40 lines (40 loc) · 981 Bytes
/
transfer.pp
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
# Used as exported ressource to ransfer crt/ca files.
#
# @summary Transfer crt/ca files.
#
# @param file_type
# File type to transfer, supports crt and ca.
#
# @param request_dn
# DN of the certificate request
#
# @param request_fqdn
# Fqdn of the requesting host
#
# @param request_base_filename
# Base filename from the request
#
# @param file_content
# Content of the file we want to transfert
#
# @example
# dehydrated::certificate::transfer { 'namevar':
# file_type => 'crt',
# request_dn => 'domain.foo.bar.example.com',
# request_fqdn => 'foo.bar.example.com',
# file_content => '',
# }
#
# @api private
#
define dehydrated::certificate::transfer (
Enum['crt', 'ca'] $file_type,
Dehydrated::DN $request_dn,
Stdlib::Fqdn $request_fqdn,
String $request_base_filename,
Variant[String, Binary] $file_content,
) {
fail(
'Do not instantiate this define, its only used to create exported ressources, collected from puppetdb'
)
}