Skip to content

Commit

Permalink
Add extra check for DNS and multi MT
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaudfroidmont committed Oct 2, 2024
1 parent 070209b commit 283a366
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ locals {
// subnet_id = var.use_existing_vcn ? var.private_subnet_id : element(concat(oci_core_subnet.private-subnet.*.id, [""]), 0)
subnet_id = var.private_deployment ? var.use_existing_vcn ? var.private_subnet_id : element(concat(oci_core_subnet.private-subnet.*.id, [""]), 1) : var.use_existing_vcn ? var.private_subnet_id : element(concat(oci_core_subnet.private-subnet.*.id, [""]), 0)

nfs_source_IP = var.create_fss ? oci_dns_rrset.fss-dns-round-robin.domain : var.nfs_source_IP
nfs_source_IP = var.create_fss ? oci_dns_rrset.fss-dns-round-robin[0].domain : var.nfs_source_IP
nfs_list_of_mount_target_IPs = var.create_fss ? "[\"${join("\",\"",oci_file_storage_mount_target.FSSMountTarget.*.ip_address)}\"]" : var.nfs_source_IP

// subnet id derived either from created subnet or existing if specified
Expand Down
1 change: 1 addition & 0 deletions network.tf
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ resource "oci_dns_rrset" "rrset-cluster-network-SLURM" {
}

resource "oci_dns_rrset" "fss-dns-round-robin" {
count = var.create_fss && var.dns_entries ? 1 : 0
zone_name_or_id = data.oci_dns_zones.dns_zones.zones[0].id
domain = "fss-${var.hostname_convention}.${local.zone_name}"
rtype = "A"
Expand Down
4 changes: 2 additions & 2 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -469,8 +469,8 @@ variable "create_fss" {
type = bool
}
variable "mount_target_count" {
default = "1"
type = string
default = 1
type = number
}
variable "fss_compartment" {
default = ""
Expand Down

0 comments on commit 283a366

Please sign in to comment.