forked from smallstep/certificates
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtls_server.pp
More file actions
24 lines (22 loc) · 707 Bytes
/
Copy pathtls_server.pp
File metadata and controls
24 lines (22 loc) · 707 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# step package configuration
class tls_server(
$version = false,
) {
if !$version {
fail("class ${name}: version cannot be empty")
}
file {
'/usr/local/lib/step/.step/secrets/provisioner_pupppet_pass': # Get this from Hiera.
ensure => file,
mode => '0644',
owner => 'step';
}
$step = "/opt/smallstep/bin/step"
$step_path = "/usr/local/lib/step/.step"
$secrets = "${step_path}/usr/local/lib/step/.step"
service { $name:
ensure => running,
start => "/usr/local/bin/tls_server --token $(${step} token foo.com --ca-url=ca.smallstep.com --root=${secrets}/root_ca.crt --password-file=${secrets}/intermediate_pass)",
provider => 'systemd',
}
}