Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions oracle/compute.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,15 @@ resource "oci_core_instance" "ClusterManagement" {
display_name = local.mgmt_hostname
shape = var.ManagementShape

# Optional parameters for Flex type management nodes
shape_config {
baseline_ocpu_utilization = var.ManagementOcpuBaselineUtilization
memory_in_gbs = var.ManagementMemory
nvmes = var.ManagementNvmes
ocpus = var.ManagementOcpus
vcpus = var.ManagementVcpus
}

# Make sure that the management node depands on the filesystem so that when
# destroying, the filesystem is still running in order to perform cleanup of
# any compute nodes.
Expand Down
7 changes: 6 additions & 1 deletion oracle/terraform.tfvars.example
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ ssh-rsa UmFuZG9tIGtleSBjb250ZW50cy4gUHV0IHlvdXIgb3duIGtleSBpbiBoZXJlIG9idmlvdXNs
ssh-rsa QW5vdGhlciByYW5kb20ga2V5IGNvbnRlbnRzLiBQdXQgeW91ciBvd24ga2V5IGluIGhlcmUgb2J2aW91c2x5Lg== user@anothercomputer
EOF

ManagementShape = "VM.Standard2.1"
ManagementShape = "VM.Standard3.Flex"
ManagementOcpus = "4"
ManagementVcpus = "8"
ManagementMemory = "32"
# ManagementOcpuBaselineUtilization = "BASELINE_1_1"
# ManagementNvmes = 1
ManagementAD = "1"
FilesystemAD = "1"
25 changes: 25 additions & 0 deletions oracle/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,31 @@ variable "ManagementShape" {
default = "VM.Standard2.1"
}

variable "ManagementOcpus" {
description = "The number of OCPUs for the management node"
default = null
}

variable "ManagementVcpus" {
description = "The number of VCPUs for the management node"
default = null
}

variable "ManagementMemory" {
description = "The amount of memory for the management node"
default = null
}

variable "ManagementOcpuBaselineUtilization" {
description = "The baseline OCPU utilization for the management node"
default = null
}

variable "ManagementNvmes" {
description = "The number of NVMe drives for the management node"
default = null
}

variable "ExportPathFS" {
default = "/shared"
}
Expand Down