Skip to content

Commit

Permalink
add label to host name
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Oehrli committed Jan 22, 2021
1 parent 5c9ac9c commit 03a85b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compute.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ resource "oci_core_instance" "bastion" {
subnet_id = var.bastion_subnet[count.index]
assign_public_ip = true
display_name = var.label_prefix == "none" ? "bastion-vnic" : "${var.label_prefix}-bastion-vnic"
hostname_label = format("${local.resource_shortname}-${var.bastion_name}%02d", count.index)
hostname_label = var.label_prefix == "none" ? format("${local.resource_shortname}-${var.bastion_name}%02d", count.index) : format("${var.label_prefix}-${local.resource_shortname}-${var.bastion_name}%02d", count.index)
}

# prevent the bastion from destroying and recreating itself if the image ocid changes
Expand Down

0 comments on commit 03a85b0

Please sign in to comment.