Skip to content
This repository has been archived by the owner on May 9, 2024. It is now read-only.

Commit

Permalink
Updated tags.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
lfeldman committed Jun 22, 2021
1 parent 14786ae commit a3332bf
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ provider "oci" {
private_key_path = var.private_key_path
region = data.oci_identity_region_subscriptions.home_region_subscriptions.region_subscriptions[0].region_name
disable_auto_retries = "true"
}
}
38 changes: 19 additions & 19 deletions tags.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,29 @@ resource "random_id" "tag" {
}

resource "oci_identity_tag_namespace" "ArchitectureCenterTagNamespace" {
provider = oci.homeregion
compartment_id = var.compartment_ocid
description = "ArchitectureCenterTagNamespace"
name = "ArchitectureCenter\\ha-cockroachdb-cluster-${random_id.tag.hex}"
provider = oci.homeregion
compartment_id = var.compartment_ocid
description = "ArchitectureCenterTagNamespace"
name = "ArchitectureCenter\\ha-cockroachdb-cluster-${random_id.tag.hex}"

provisioner "local-exec" {
command = "sleep 10"
}
provisioner "local-exec" {
command = "sleep 10"
}

}

resource "oci_identity_tag" "ArchitectureCenterTag" {
provider = oci.homeregion
description = "ArchitectureCenterTag"
name = "release"
tag_namespace_id = oci_identity_tag_namespace.ArchitectureCenterTagNamespace.id
provider = oci.homeregion
description = "ArchitectureCenterTag"
name = "release"
tag_namespace_id = oci_identity_tag_namespace.ArchitectureCenterTagNamespace.id

validator {
validator_type = "ENUM"
values = ["release", "1.0"]
}
validator {
validator_type = "ENUM"
values = ["release", "1.0"]
}

provisioner "local-exec" {
command = "sleep 20"
}
}
provisioner "local-exec" {
command = "sleep 120"
}
}
8 changes: 4 additions & 4 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ variable "instance_name" {
}

variable "instance_shape" {
default = "VM.Standard.E3.Flex"
default = "VM.Standard.E3.Flex"
}

variable "instance_flex_shape_ocpus" {
default = 1
default = 1
}

variable "instance_flex_shape_memory" {
default = 10
default = 10
}

variable "ssh_public_key" {
Expand Down Expand Up @@ -83,6 +83,6 @@ locals {

# Checks if is using Flexible Compute Shapes
locals {
is_flexible_lb_shape = var.lb_shape == "flexible" ? true : false
is_flexible_lb_shape = var.lb_shape == "flexible" ? true : false
is_flexible_node_shape = contains(local.compute_flexible_shapes, var.instance_shape)
}

0 comments on commit a3332bf

Please sign in to comment.