timescaledb: the affinity policy is now a variable.
This commit is contained in:
parent
13289bc6f8
commit
b300ee7bf0
|
@ -49,7 +49,7 @@ resource "openstack_networking_secgroup_rule_v2" "timescaledb_access_from_dedica
|
|||
|
||||
resource "openstack_compute_servergroup_v2" "timescaledb_cluster" {
|
||||
name = "timescaledb_cluster"
|
||||
policies = ["soft-anti-affinity"]
|
||||
policies = [var.timescaledb_affinity_policy]
|
||||
}
|
||||
|
||||
# Instances with an additional block device
|
||||
|
|
|
@ -7,6 +7,10 @@ variable "timescaledb_server_data" {
|
|||
}
|
||||
}
|
||||
|
||||
variable "timescaledb_affinity_policy" {
|
||||
default = "soft-anti-affinity"
|
||||
}
|
||||
|
||||
variable "timescaledb_node_flavor" {
|
||||
default = ""
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue