This repository contains a Terraform module for deploying Oracle Database Cloud Exadata Infrastructure using Azure Verified Modules (AVM). The module provisions scalable Oracle Cloud Exadata Infrastructure in an enterprise-ready configuration on Microsoft Azure.
- Idempotency Issue with Exadata Infrastructure documented here
- Update/Changes. Oracle Exadata Infrastructure resource at this moment does not support updates, so every attempt to change any of its properties will trigger the destroy and recreation of the resource. Documented here and here
- Deploys Oracle Database Cloud Exadata Infrastructure on Azure
- Supports telemetry and monitoring
- Configurable maintenance windows
- Terraform >= 1.9.2
- Azure CLI
- An Azure subscription
The following requirements are needed by this module:
terraform {
required_version = ">= 1.9.2"
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "~> 3.74"
}
random = {
source = "hashicorp/random"
version = "~> 3.5"
}
}
}
provider "azurerm" {
features {}
skip_provider_registration = true
}
locals {
enable_telemetry = true
location = "eastus"
tags = {
scenario = "Default"
project = "Oracle Database @ Azure"
createdby = "ODAA Infra - AVM Module"
}
zone = "3"
}
resource "random_string" "suffix" {
length = 5
special = false
upper = false
}
resource "azurerm_resource_group" "this" {
location = local.location
name = "example-resource-group"
tags = local.tags
}
module "default" {
source = "../../"
location = local.location
name = "odaa-infra-${random_string.suffix.result}"
display_name = "odaa-infra-${random_string.suffix.result}"
resource_group_id = azurerm_resource_group.this.id
zone = local.zone
compute_count = 2
storage_count = 3
shape = "Exadata.X9M"
maintenance_window_leadtime_in_weeks = 0
maintenance_window_preference = "NoPreference"
maintenance_window_patching_mode = "Rolling"
tags = local.tags
enable_telemetry = local.enable_telemetry
}| Name | Type | Default Value | Description |
|---|---|---|---|
compute_count |
number |
The number of compute nodes in the infrastructure. | |
display_name |
string |
The display name of the infrastructure. | |
location |
string |
Azure region where the resource should be deployed. | |
name |
string |
The name of the Oracle Exadata Infrastructure resource. | |
resource_group_id |
string |
The resource group ID where the resources will be deployed. | |
storage_count |
number |
The number of storage servers in the infrastructure. | |
zone |
string |
The Availability Zone for the resource. | |
enable_telemetry |
bool |
true |
Controls whether telemetry is enabled. |
maintenance_window_leadtime_in_weeks |
number |
0 |
The maintenance window lead time in weeks. |
maintenance_window_patching_mode |
string |
"Rolling" |
The maintenance window patching mode. |
maintenance_window_preference |
string |
"NoPreference" |
The maintenance window preference. |
shape |
string |
"Exadata.X9M" |
The shape of the infrastructure. |
tags |
map(string) |
null |
(Optional) Tags of the resource. |
| Name | Type | Description |
|---|---|---|
resource |
any |
This is the full output for the resource. |
resource_id |
string |
This is the ID of the resource. |
This project is licensed under the MIT License - see the LICENSE file for details.
Please read CODE_OF_CONDUCT.md for details on our code of conduct, and the process for submitting pull requests.
The following requirements are needed by this module:
The following resources are used by this module:
- azapi_resource.odaa_infra (resource)
- modtm_telemetry.telemetry (resource)
- random_uuid.telemetry (resource)
- azurerm_client_config.telemetry (data source)
- modtm_module_source.telemetry (data source)
The following input variables are required:
Description: The number of compute nodes in the infrastructure.
Type: number
Description: The display name of the infrastructure.
Type: string
Description: Azure region where the resource should be deployed.
Type: string
Description: The name of the the Oracle Exatada Infrastructure resource.
Type: string
Description: The resource group ID where the resources will be deployed.
Type: string
Description: The number of storage servers in the infrastructure.
Type: number
Description: The Availability Zone for the resource.
Type: string
The following input variables are optional (have default values):
Description: This variable controls whether or not telemetry is enabled for the module.
For more information see https://aka.ms/avm/telemetryinfo.
If it is set to false, then no telemetry will be collected.
Type: bool
Default: true
Description: The maintenance window load time in weeks.
Type: number
Default: 0
Description: The maintenance window patching mode.
Type: string
Default: "Rolling"
Description: The maintenance window preference.
Type: string
Default: "NoPreference"
Description: A map of role assignments to create on this resource. The map key is deliberately arbitrary to avoid issues where map keys maybe unknown at plan time.
role_definition_id_or_name- The ID or name of the role definition to assign to the principal.principal_id- The ID of the principal to assign the role to.description- The description of the role assignment.skip_service_principal_aad_check- If set to true, skips the Azure Active Directory check for the service principal in the tenant. Defaults to false.condition- The condition which will be used to scope the role assignment.condition_version- The version of the condition syntax. Valid values are '2.0'.delegated_managed_identity_resource_id- (Optional) The delegated Azure Resource Id which contains a Managed Identity. Changing this forces a new resource to be created. This field is only used in cross-tenant scenario.principal_type- (Optional) The type of theprincipal_id. Possible values areUser,GroupandServicePrincipal. It is necessary to explicitly set this attribute when creating role assignments if the principal creating the assignment is constrained by ABAC rules that filters on the PrincipalType attribute.
Note: only set
skip_service_principal_aad_checkto true if you are assigning a role to a service principal.
Type:
map(object({
role_definition_id_or_name = string
principal_id = string
description = optional(string, null)
skip_service_principal_aad_check = optional(bool, false)
condition = optional(string, null)
condition_version = optional(string, null)
delegated_managed_identity_resource_id = optional(string, null)
principal_type = optional(string, null)
}))Default: {}
Description: The shape of the infrastructure.
Type: string
Default: "Exadata.X9M"
Description: (Optional) Tags of the resource.
Type: map(string)
Default: null
The following outputs are exported:
Description: This is the full output for the resource.
Description: This is the ID of the resource.
No modules.
The software may collect information about you and your use of the software and send it to Microsoft. Microsoft may use this information to provide services and improve our products and services. You may turn off the telemetry as described in the repository. There are also some features in the software that may enable you and Microsoft to collect data from users of your applications. If you use these features, you must comply with applicable law, including providing appropriate notices to users of your applications together with a copy of Microsoft’s privacy statement. Our privacy statement is located at https://go.microsoft.com/fwlink/?LinkID=824704. You can learn more about data collection and use in the help documentation and our privacy statement. Your use of the software operates as your consent to these practices.