-
Notifications
You must be signed in to change notification settings - Fork 16
/
local_files.tf
36 lines (30 loc) · 1.01 KB
/
local_files.tf
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
resource "local_file" "nomad_ca_file" {
content = tls_self_signed_cert.nomad-ca.cert_pem
filename = "nomad-ca.pem"
file_permission = "0600"
}
resource "local_file" "nomad_cli_cert" {
content = tls_locally_signed_cert.nomad-cli.cert_pem
filename = "nomad-cli-cert.pem"
file_permission = "0600"
}
resource "local_file" "nomad_cli_key" {
content = tls_private_key.nomad-cli.private_key_pem
filename = "nomad-cli-key.pem"
file_permission = "0600"
}
resource "local_file" "consul_ca_file" {
content = tls_self_signed_cert.consul-ca.cert_pem
filename = "consul-ca.pem"
file_permission = "0600"
}
resource "local_file" "consul_cli_cert" {
content = tls_locally_signed_cert.consul-cli.cert_pem
filename = "consul-cli-cert.pem"
file_permission = "0600"
}
resource "local_file" "consul_cli_key" {
content = tls_private_key.consul-cli.private_key_pem
filename = "consul-cli-key.pem"
file_permission = "0600"
}