timescaledb: the affinity policy is now a variable.

This commit is contained in:
Andrea Dell'Amico 2023-12-13 16:55:40 +01:00
parent 13289bc6f8
commit b300ee7bf0
Signed by: andrea.dellamico
GPG Key ID: 147ABE6CEB9E20FF
2 changed files with 5 additions and 1 deletions

View File

@ -49,7 +49,7 @@ resource "openstack_networking_secgroup_rule_v2" "timescaledb_access_from_dedica
resource "openstack_compute_servergroup_v2" "timescaledb_cluster" { resource "openstack_compute_servergroup_v2" "timescaledb_cluster" {
name = "timescaledb_cluster" name = "timescaledb_cluster"
policies = ["soft-anti-affinity"] policies = [var.timescaledb_affinity_policy]
} }
# Instances with an additional block device # Instances with an additional block device

View File

@ -7,6 +7,10 @@ variable "timescaledb_server_data" {
} }
} }
variable "timescaledb_affinity_policy" {
default = "soft-anti-affinity"
}
variable "timescaledb_node_flavor" { variable "timescaledb_node_flavor" {
default = "" default = ""
} }