-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariable.tf
101 lines (84 loc) · 2.35 KB
/
variable.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
47
48
49
50
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
95
96
97
98
99
100
101
variable "name" {
description = "Name to give to the vm, its port and the prefix of security groups"
type = string
default = ""
}
variable "image_source" {
description = "Source of the vm's image"
type = object({
image_id = string
volume_id = string
})
}
variable "flavor_id" {
description = "ID of the VM flavor for the node"
type = string
}
variable "network_id" {
description = "Id of the network the node will be attached to"
type = string
}
variable "keypair_name" {
description = "Name of the keypair that will be used to ssh to the node"
type = string
}
variable "bastion_security_group_id" {
description = "Id of pre-existing security group to add bastion rules to"
type = string
default = ""
}
variable "postgres_image" {
description = "Name of the docker image that will be used to provision postgres"
type = string
}
variable "postgres_params" {
description = "Extra parameters to pass to the postgres binary"
type = string
default = ""
}
variable "postgres_data" {
description = "Path where to store the configuration and data files"
type = string
default = "/data"
}
variable "postgres_user" {
description = "User that will access the database"
type = string
}
variable "postgres_database" {
description = "Name of the database that will be generated"
type = string
}
variable "postgres_password" {
description = "Password of the user who will access the database. If no value is provided, a random value will be generated"
type = string
default = ""
}
variable "ca" {
description = "The ca that will sign the db's certificate. Should have the following keys: key, key_algorithm, certificate"
type = any
}
variable "domains" {
description = "Domains of the database, which will be used for the certificate"
type = list(string)
}
variable "organization" {
description = "The etcd cluster's certificates' organization"
type = string
default = "Ferlab"
}
variable "certificate_validity_period" {
description = "The etcd cluster's certificate's validity period in hours"
type = number
default = 100*365*24
}
variable "certificate_early_renewal_period" {
description = "The etcd cluster's certificate's early renewal period in hours"
type = number
default = 365*24
}
variable "key_length" {
description = "The key length of the certificate's private key"
type = number
default = 4096
}