Skip to content

Commit 0fd9890

Browse files
committed
fix: add san extension
1 parent 0a62c3c commit 0fd9890

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ module "servers" {
5353
secgroup_id = openstack_networking_secgroup_v2.server.id
5454
bootstrap_ip = local.internal_ip
5555
bastion_host = local.external_ip
56-
san = [local.internal_ip, local.external_ip]
56+
san = distinct(concat([local.external_ip, local.internal_ip], var.additional_san))
5757

5858
manifests_folder = var.manifests_folder
5959
manifests = merge(

variables.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,11 @@ variable "lb_internal_ip" {
9696
default = null
9797
}
9898

99+
variable "additional_san" {
100+
type = list(string)
101+
default = []
102+
}
103+
99104
variable "bootstrap" {
100105
type = bool
101106
default = false

0 commit comments

Comments
 (0)