-
Notifications
You must be signed in to change notification settings - Fork 11
/
locksmith.tf
46 lines (40 loc) · 1.05 KB
/
locksmith.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
36
37
38
39
40
41
42
43
44
45
46
variable "locksmith_reboot-strategy" {
default = "best-effort"
}
output "locksmith_reboot-strategy" {
value = "${var.locksmith_reboot-strategy}"
}
variable "locksmith_endpoint" {
default = ""
}
output "locksmith_endpoint" {
value = "${var.locksmith_endpoint}"
}
variable "locksmith_etcd-keyfile" {
default = ""
}
output "locksmith_etcd-keyfile" {
value = "${var.locksmith_etcd-keyfile}"
}
variable "locksmith_etcd-certfile" {
default = ""
}
output "locksmith_etcd-certfile" {
value = "${var.locksmith_etcd-certfile}"
}
variable "locksmith_group" {
default = ""
}
output "locksmith_group" {
value = "${var.locksmith_group}"
}
data "template_file" "locksmith" {
template = "${file("${path.module}/templates/locksmith.yml")}"
vars {
reboot-strategy = "${var.locksmith_reboot-strategy}"
endpoint = "${var.locksmith_endpoint}"
etcd-keyfile = "${coalesce(var.locksmith_etcd-keyfile, var.etcd2_key-file)}"
etcd-certfile = "${coalesce(var.locksmith_etcd-certfile, var.etcd2_cert-file)}"
group = "${var.locksmith_group}"
}
}