Skip to content

Commit

Permalink
add host_image_id ALIAS for CENTOS
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Oehrli committed Oct 29, 2020
1 parent aa3e698 commit 51da7ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ locals {
availability_domain = data.oci_identity_availability_domains.ad_list.availability_domains[var.ad_index - 1].name
resource_name = var.resource_name == "" ? data.oci_identity_compartment.compartment.name : var.resource_name
resource_shortname = lower(replace(local.resource_name, "-", ""))
host_image_id = var.host_image_id == "OEL" || var.host_image_id == "WIN" ? data.oci_core_images.oracle_images.images.0.id : var.host_image_id
host_image_id = var.host_image_id == "CENTOS" || var.host_image_id == "OEL" || var.host_image_id == "WIN" ? data.oci_core_images.oracle_images.images.0.id : var.host_image_id
#default_private_dns = cidrhost(cidrsubnet(var.vcn_cidr, var.private_newbits, var.private_netnum), var.tvd_dns_hostnum)
#vcn_cidr = data.oci_core_vcn.vcn.cidr_block
}
Expand Down

0 comments on commit 51da7ae

Please sign in to comment.