From patchwork Tue Apr 1 00:59:34 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chuck Lever X-Patchwork-Id: 14034253 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 942A024B29 for ; Tue, 1 Apr 2025 01:00:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743469210; cv=none; b=iYifLp5dr+5bVnPV/QCW6l7/LxclAulmF81erZSZtIh+B4JcWaPG8aI+DwHQPkTLswtKDYo8VFuI+Ei/LhhCJ0Ek2nAbTMiK0DUGYKbWjqJZqiReU1akpv/J8aZx+xi8UoBRQadSZgidQo53m+xIz1MW/IuTtyMzXmE/C0HCNco= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743469210; c=relaxed/simple; bh=zBjSmBMX4dZbJFY4rTji9z345bH/SphXo98mFbE72fI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=mkJUaQvrwMeUKPOTtW4B3lZoDPhIycpT3z4iAD1m70TecYWFDYqfi2s30jH0vAKMmbLFUVl4wYmVTlWXI4Fs1RuJ9RP4DfgujT4BrA3i5+1jl0igK3EoLWN24F7rlleT6vYucSEb4CqSd6EecRn/bWgn8oF4Gnbw/xbmVDDpZHw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=eblCr0mD; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="eblCr0mD" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1EC00C4CEE3; Tue, 1 Apr 2025 01:00:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1743469210; bh=zBjSmBMX4dZbJFY4rTji9z345bH/SphXo98mFbE72fI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eblCr0mDoEgp1PjF72/Uwb52mwRY8WLbMlpHC6jY24woAiaoA/vP9Eo7xSI0b0zlo q+Bd+NKTqD14iph8ln6Xb4iBBtEZlAesy792Zb6rTtwI6lAV4fzwh59wjMDxXVynue uSjwm0NI75gP7NV3JqOooiEK/5YL3F5ManlGu1D3S9ShHRhhURF+CQJH8deYlOpa3n D7BsSGLj2mWOtDauCWF6aHcazBsCon3zGN8r9vKhLuIQmGpBnflTPCuxTECr+5WqdJ ePAC+201yxIebsUEi/1aY+xUFTH8GRrcLnD74p0BpWlca4a44CiTnQN26M/sMkkGb0 2O0edSrBXVv2A== From: cel@kernel.org To: Cc: Chandan Babu R , Chuck Lever Subject: [RFC PATCH 05/31] terraform/OCI: Add a "Compute" Kconfig submenu Date: Mon, 31 Mar 2025 20:59:34 -0400 Message-ID: <20250401010000.764234-6-cel@kernel.org> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250401010000.764234-1-cel@kernel.org> References: <20250401010000.764234-1-cel@kernel.org> Precedence: bulk X-Mailing-List: kdevops@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Chuck Lever The image and shape are typically selected in the same panel on the OCI cloud console. Signed-off-by: Chuck Lever --- 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 --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