diff mbox series

[RFC,05/31] terraform/OCI: Add a "Compute" Kconfig submenu

Message ID 20250401010000.764234-6-cel@kernel.org (mailing list archive)
State New
Headers show
Series Simplify OCI configuration menu | expand

Commit Message

Chuck Lever April 1, 2025, 12:59 a.m. UTC
From: Chuck Lever <chuck.lever@oracle.com>

The image and shape are typically selected in the same panel
on the OCI cloud console.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
---
 terraform/oci/Kconfig                  | 29 +++-----------------------
 terraform/oci/kconfigs/Kconfig.compute | 25 ++++++++++++++++++++++
 2 files changed, 28 insertions(+), 26 deletions(-)
 create mode 100644 terraform/oci/kconfigs/Kconfig.compute
diff mbox series

Patch

diff --git a/terraform/oci/Kconfig b/terraform/oci/Kconfig
index 31bd2ca617f6..897501a5aebb 100644
--- a/terraform/oci/Kconfig
+++ b/terraform/oci/Kconfig
@@ -3,36 +3,13 @@  if TERRAFORM_OCI
 menu "Resource location"
 source "terraform/oci/kconfigs/Kconfig.location"
 endmenu
+menu "Compute"
+source "terraform/oci/kconfigs/Kconfig.compute"
+endmenu
 menu "Identity & Access"
 source "terraform/oci/kconfigs/Kconfig.identity"
 endmenu
 
-config TERRAFORM_OCI_SHAPE
-	string "OCI shape name"
-	help
-	  The name of the shape
-	  Read this:
-	  https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/terraformproviderconfiguration.htm
-
-config TERRAFORM_OCI_INSTANCE_FLEX_OCPUS
-	int "Number of flexiable instance OCPUs"
-	default 2
-	help
-	  The number of OCPUs to use per flexible instance.
-
-config TERRAFORM_OCI_INSTANCE_FLEX_MEMORY_IN_GBS
-	int "How much RAM to use per flexible instance in GB"
-	default 4
-	help
-	  How much GiB of RAM to use per flexible instance.
-
-config TERRAFORM_OCI_OS_IMAGE_OCID
-	string "OCI OS image OCID"
-	help
-	  The OCI ID of the OS image to use.
-	  Read this:
-	  https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/terraformproviderconfiguration.htm
-
 config TERRAFORM_OCI_ASSIGN_PUBLIC_IP
 	bool "Assign public IP address to the cloud instance"
 	default y
diff --git a/terraform/oci/kconfigs/Kconfig.compute b/terraform/oci/kconfigs/Kconfig.compute
new file mode 100644
index 000000000000..b794ef2d5190
--- /dev/null
+++ b/terraform/oci/kconfigs/Kconfig.compute
@@ -0,0 +1,25 @@ 
+config TERRAFORM_OCI_SHAPE
+	string "OCI shape name"
+	help
+	  The name of the shape
+	  Read this:
+	  https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/terraformproviderconfiguration.htm
+
+config TERRAFORM_OCI_INSTANCE_FLEX_OCPUS
+	int "Number of flexiable instance OCPUs"
+	default 2
+	help
+	  The number of OCPUs to use per flexible instance.
+
+config TERRAFORM_OCI_INSTANCE_FLEX_MEMORY_IN_GBS
+	int "How much RAM to use per flexible instance in GB"
+	default 4
+	help
+	  How much GiB of RAM to use per flexible instance.
+
+config TERRAFORM_OCI_OS_IMAGE_OCID
+	string "OCI OS image OCID"
+	help
+	  The OCI ID of the OS image to use.
+	  Read this:
+	  https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/terraformproviderconfiguration.htm