Skip to content

Commit f5f2bb2

Browse files
Releasing version 4.57.0
Releasing version 4.57.0
2 parents ddb6538 + 23e4d65 commit f5f2bb2

File tree

11,604 files changed

+123048
-100439
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

11,604 files changed

+123048
-100439
lines changed

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
## 4.57.0 (Unreleased)
2+
3+
### Added
4+
- Support Node Replacement
5+
- Client mTLS Support
6+
- Support for Cloud VM cluster resource
7+
- Support for Identity IAM DB password
8+
- Support for OPSI AWR Hub
9+
- Support for Data Catalog 2.2
10+
- Support for dimensions in monitoring target
11+
- Support for auto-stop on autonomous database
12+
13+
### Bug Fix
14+
- Support for Service Manager Proxy API
15+
116
## 4.56.0 (December 08, 2021)
217

318
### Added
Lines changed: 158 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,158 @@
1+
// Copyright (c) 2017, 2021, Oracle and/or its affiliates. All rights reserved.
2+
// Licensed under the Mozilla Public License v2.0
3+
4+
variable "tenancy_ocid" {}
5+
variable "user_ocid" {}
6+
variable "fingerprint" {}
7+
variable "private_key_path" {}
8+
variable "region" {}
9+
variable "compartment_ocid" {}
10+
11+
variable "gateway_display_name" {
12+
default = "displayName"
13+
}
14+
15+
variable "gateway_endpoint_type" {
16+
default = "PUBLIC"
17+
}
18+
19+
variable "gateway_freeform_tags" {
20+
default = { "Department" = "Finance" }
21+
}
22+
23+
variable "ca_bundle_ocid" {}
24+
25+
variable "gateway_ca_bundles_type" {
26+
default = "CA_BUNDLE"
27+
}
28+
29+
variable "gateway_state" {
30+
default = "ACTIVE"
31+
}
32+
33+
variable "deployment_state" {
34+
default = "ACTIVE"
35+
}
36+
37+
variable "deployment_path_prefix" {
38+
default = "/v1"
39+
}
40+
41+
variable "deployment_specification_routes_backend_type" {
42+
default = "HTTP_BACKEND"
43+
}
44+
45+
variable "deployment_specification_routes_backend_url" {
46+
default = "https://api.weather.gov"
47+
}
48+
49+
variable "deployment_specification_routes_methods" {
50+
default = ["GET"]
51+
}
52+
53+
variable "deployment_specification_routes_path" {
54+
default = "/hello"
55+
}
56+
57+
variable "deployment_specification_request_policies_mutual_tls_allowed_sans" {
58+
default = ["*.abc.com"]
59+
}
60+
61+
variable "deployment_specification_request_policies_mutual_tls_is_verified_certificate_required" {
62+
default = true
63+
}
64+
65+
provider "oci" {
66+
tenancy_ocid = var.tenancy_ocid
67+
user_ocid = var.user_ocid
68+
fingerprint = var.fingerprint
69+
private_key_path = var.private_key_path
70+
region = var.region
71+
}
72+
73+
resource "oci_core_subnet" "regional_subnet" {
74+
cidr_block = "10.0.1.0/24"
75+
display_name = "regionalSubnet"
76+
dns_label = "regionalsubnet"
77+
compartment_id = var.compartment_ocid
78+
vcn_id = oci_core_vcn.vcn1.id
79+
security_list_ids = [oci_core_vcn.vcn1.default_security_list_id]
80+
route_table_id = oci_core_vcn.vcn1.default_route_table_id
81+
dhcp_options_id = oci_core_vcn.vcn1.default_dhcp_options_id
82+
}
83+
84+
data "oci_identity_availability_domain" "ad" {
85+
compartment_id = var.tenancy_ocid
86+
ad_number = 1
87+
}
88+
89+
resource "oci_core_vcn" "vcn1" {
90+
cidr_block = "10.0.0.0/16"
91+
compartment_id = var.compartment_ocid
92+
display_name = "exampleVCN"
93+
dns_label = "tfexamplevcn"
94+
}
95+
96+
resource "oci_apigateway_gateway" "test_gateway" {
97+
#Required
98+
compartment_id = var.compartment_ocid
99+
endpoint_type = var.gateway_endpoint_type
100+
subnet_id = oci_core_subnet.regional_subnet.id
101+
102+
#Optional
103+
display_name = var.gateway_display_name
104+
freeform_tags = var.gateway_freeform_tags
105+
ca_bundles {
106+
#Required
107+
type = var.gateway_ca_bundles_type
108+
109+
#Optional
110+
ca_bundle_id = var.ca_bundle_ocid
111+
}
112+
}
113+
114+
resource "oci_apigateway_deployment" "test_deployment" {
115+
#Required
116+
compartment_id = var.compartment_ocid
117+
gateway_id = oci_apigateway_gateway.test_gateway.id
118+
path_prefix = var.deployment_path_prefix
119+
120+
specification {
121+
routes {
122+
#Required
123+
backend {
124+
#Required
125+
type = var.deployment_specification_routes_backend_type
126+
url = var.deployment_specification_routes_backend_url
127+
}
128+
path = var.deployment_specification_routes_path
129+
methods = var.deployment_specification_routes_methods
130+
}
131+
request_policies {
132+
#Optional
133+
mutual_tls {
134+
#Optional
135+
allowed_sans = var.deployment_specification_request_policies_mutual_tls_allowed_sans
136+
is_verified_certificate_required = var.deployment_specification_request_policies_mutual_tls_is_verified_certificate_required
137+
}
138+
}
139+
}
140+
}
141+
142+
data "oci_apigateway_gateways" "test_gateways" {
143+
#Required
144+
compartment_id = var.compartment_ocid
145+
146+
#Optional
147+
display_name = oci_apigateway_gateway.test_gateway.display_name
148+
state = var.gateway_state
149+
}
150+
151+
data "oci_apigateway_deployments" "test_deployments" {
152+
#Required
153+
compartment_id = var.compartment_ocid
154+
155+
#Optional
156+
gateway_id = oci_apigateway_gateway.test_gateway.id
157+
state = var.deployment_state
158+
}

examples/database/db_systems/db_exacs/resources.tf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@ resource "oci_database_cloud_vm_cluster" "test_cloud_vm_cluster" {
2626
subnet_id = oci_core_subnet.subnet.id
2727

2828
#Optional
29-
scan_listener_port_tcp = var.cloud_vm_cluster_scan_listener_port_tcp
30-
scan_listener_port_tcp_ssl = var.cloud_vm_cluster_scan_listener_port_tcp_ssl
29+
ocpu_count = var.cloud_vm_cluster_ocpu_count
30+
scan_listener_port_tcp = var.cloud_vm_cluster_scan_listener_port_tcp
31+
scan_listener_port_tcp_ssl = var.cloud_vm_cluster_scan_listener_port_tcp_ssl
3132
}
3233

3334
resource "oci_database_db_home" "test_db_home_vm_cluster" {

examples/database/db_systems/db_exacs/variables.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ variable "cloud_vm_cluster_cpu_core_count" {
2727
default = "8"
2828
}
2929

30+
variable "cloud_vm_cluster_ocpu_count" {
31+
default = "8.0"
32+
}
33+
3034
variable "cloud_vm_cluster_gi_version" {
3135
default = "19.0.0.0"
3236
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// Copyright (c) 2017, 2021, Oracle and/or its affiliates. All rights reserved.
2+
// Licensed under the Mozilla Public License v2.0
3+
4+
5+
variable "public_key" {
6+
default = "-----BEGIN PUBLIC KEY-----MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAuYNxKqyNSTPApIVh1xiR3914Q8Ex+goi8kbMUjMa/b47A12SGdh18SAsZTTkld09MGhIswyv2Eln5MQKyupf646zk0E0kxH4llpfSAtUEaa5bxRXhko5BejvimMy4hCMn+kYkzAre7CoAw97rZ96L+TgkqdtwYXl0JzE4xYwfM7OqkH9/3TIeiX4q8kVDi0CsHMGbBo4gMIIunLoEn27ej/Vm6Nbkgl8AnJaWZq8gG8y6ojDLrJhnTK4IVYZ3XYx2uxz/E5VcjMaTdWVjKVCS4F2yK9hFbL1G2KDDh8k3G7dFDFwGI6qxwidbZW7JtcXQWu0Qx0tBNdB28VlsDWZEQIDAQAB-----END PUBLIC KEY-----"
7+
}
8+
9+
variable "scope" {
10+
default = "urn:oracle:db::id::*"
11+
}
12+
13+
resource "oci_identity_data_plane_generate_scoped_access_token" "test_scoped_access_token" {
14+
#Required
15+
public_key = var.public_key
16+
scope = var.scope
17+
}

examples/ocvp/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,7 @@ resource "oci_ocvp_esxi_host" "test_esxi_host" {
391391
#defined_tags = {"${oci_identity_tag_namespace.tag-namespace1.name}.${oci_identity_tag.tag1.name}" = "${var.esxihost_defined_tags_value}"}
392392
#display_name = var.esxihost_display_name
393393
#freeform_tags = var.esxihost_freeform_tags
394+
#failed_esxi_host_id = var.failed_esxi_host_ocid
394395
}
395396

396397
data "oci_ocvp_sddcs" "test_sddcs" {

examples/opsi/awr_hub/awr_hub.tf

Lines changed: 149 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,149 @@
1+
// Copyright (c) 2017, 2021, Oracle and/or its affiliates. All rights reserved.
2+
// Licensed under the Mozilla Public License v2.0
3+
4+
5+
variable "tenancy_ocid" {}
6+
variable "user_ocid" {}
7+
variable "fingerprint" {}
8+
variable "private_key_path" {}
9+
variable "region" {}
10+
variable "compartment_ocid" {}
11+
12+
13+
provider "oci" {
14+
tenancy_ocid = var.tenancy_ocid
15+
user_ocid = var.user_ocid
16+
fingerprint = var.fingerprint
17+
private_key_path = var.private_key_path
18+
region = var.region
19+
}
20+
21+
data "oci_objectstorage_namespace" "test_namespace" {
22+
compartment_id = var.compartment_ocid
23+
}
24+
25+
variable "bucket_name" {
26+
default = "awrhub_bucket"
27+
}
28+
29+
resource "oci_objectstorage_bucket" "test_bucket" {
30+
name = var.bucket_name
31+
compartment_id = var.compartment_ocid
32+
namespace = data.oci_objectstorage_namespace.test_namespace.namespace
33+
}
34+
35+
resource "oci_identity_tag_namespace" "tag-namespace1" {
36+
compartment_id = var.tenancy_ocid
37+
description = "example tag namespace"
38+
name = "examples-tag-namespace-all"
39+
is_retired = false
40+
}
41+
42+
resource "oci_identity_tag" "tag1" {
43+
description = "example tag"
44+
name = "example-tag"
45+
tag_namespace_id = oci_identity_tag_namespace.tag-namespace1.id
46+
is_cost_tracking = false
47+
is_retired = false
48+
}
49+
50+
variable "awrhub_defined_tags_value" {
51+
default = "awrhub_tag_value"
52+
}
53+
54+
variable "awrhub_display_name" {
55+
default = "TestAwrhubDisplayName"
56+
}
57+
58+
variable "awrhub_freeform_tags" {
59+
default = { "bar-key" = "value" }
60+
}
61+
62+
variable "awrhub_state" {
63+
default = ["ACTIVE"]
64+
}
65+
66+
variable "warehouse_defined_tags_value" {
67+
default = "warehouse_tag_value"
68+
}
69+
70+
variable "warehouse_freeform_tags" {
71+
default = { "bar-key" = "value" }
72+
}
73+
74+
variable "warehouse_display_name" {
75+
default = "TestWarehouseDisplayName"
76+
}
77+
78+
variable "warehouse_cpu_allocated" {
79+
default = 1.0
80+
}
81+
82+
variable "storage_allocated_in_gbs" {
83+
default = 1.0
84+
}
85+
86+
// To Create a Warehouse
87+
resource "oci_opsi_operations_insights_warehouse" "test_operations_insights_warehouse" {
88+
#Required
89+
compartment_id = var.compartment_ocid
90+
cpu_allocated = var.warehouse_cpu_allocated
91+
display_name = var.warehouse_display_name
92+
93+
#Optional
94+
defined_tags = "${map("${oci_identity_tag_namespace.tag-namespace1.name}.${oci_identity_tag.tag1.name}", "${var.warehouse_defined_tags_value}")}"
95+
freeform_tags = var.warehouse_freeform_tags
96+
storage_allocated_in_gbs = var.storage_allocated_in_gbs
97+
}
98+
99+
// To Create a awrhub
100+
resource "oci_opsi_awr_hub" "test_awr_hub" {
101+
#Required
102+
compartment_id = var.compartment_ocid
103+
display_name = var.awrhub_display_name
104+
object_storage_bucket_name = oci_objectstorage_bucket.test_bucket.name
105+
operations_insights_warehouse_id = oci_opsi_operations_insights_warehouse.test_operations_insights_warehouse.id
106+
107+
#Optional
108+
defined_tags = "${map("${oci_identity_tag_namespace.tag-namespace1.name}.${oci_identity_tag.tag1.name}", "${var.awrhub_defined_tags_value}")}"
109+
freeform_tags = var.awrhub_freeform_tags
110+
}
111+
112+
output "awr_hub_id" {
113+
value = oci_opsi_awr_hub.test_awr_hub.id
114+
}
115+
116+
// List awrhub present under a compartment having state ACTIVE
117+
data "oci_opsi_awr_hubs" "test_awr_hubs" {
118+
operations_insights_warehouse_id = oci_opsi_operations_insights_warehouse.test_operations_insights_warehouse.id
119+
compartment_id = var.compartment_ocid
120+
state = var.awrhub_state
121+
}
122+
123+
// Get awrhub for a particular id
124+
data "oci_opsi_awr_hub" "test_awr_hub" {
125+
awr_hub_id = oci_opsi_awr_hub.test_awr_hub.id
126+
}
127+
128+
// Get source summary for a particular AWR Hub id
129+
data "oci_opsi_awr_hub_awr_sources_summary" "test_awr_hub_awr_sources_summary" {
130+
awr_hub_id = oci_opsi_awr_hub.test_awr_hub.id
131+
}
132+
133+
output "source_summary_output" {
134+
value = length(data.oci_opsi_awr_hub_awr_sources_summary.test_awr_hub_awr_sources_summary)
135+
}
136+
137+
variable "awr_source_database_identifier" {
138+
default = "12345"
139+
}
140+
141+
// Get snapshots summary for a particular AWR Hub id
142+
data "oci_opsi_awr_hub_awr_snapshots" "test_awr_hub_awr_snapshots" {
143+
awr_hub_id = oci_opsi_awr_hub.test_awr_hub.id
144+
awr_source_database_identifier = var.awr_source_database_identifier
145+
}
146+
147+
output "snapshots_summary_output" {
148+
value = length(data.oci_opsi_awr_hub_awr_snapshots.test_awr_hub_awr_snapshots)
149+
}

0 commit comments

Comments
 (0)