@@ -47,7 +47,7 @@ data "oci_ocvp_supported_host_shapes" "test_supported_host_shapes" {
4747 // Required
4848 compartment_id = " ${ var . compartment_ocid } "
4949 // Optional
50- name = " BM.DenseIO2 .52"
50+ name = " BM.Standard2 .52"
5151 sddc_type = " PRODUCTION"
5252}
5353
@@ -358,6 +358,38 @@ resource "oci_core_vlan" "test_replication_vlan" {
358358 route_table_id = oci_core_vcn. test_vcn_ocvp . default_route_table_id
359359}
360360
361+ resource "oci_core_volume" "test_block_volume" {
362+ availability_domain = data. oci_identity_availability_domains . ADs . availability_domains [0 ][" name" ]
363+ compartment_id = var. compartment_ocid
364+ display_name = " TestBlockVolume"
365+ size_in_gbs = " 4096"
366+ }
367+
368+ resource "oci_core_compute_capacity_reservation" "test_compute_capacity_reservation" {
369+ # Required
370+ availability_domain = data. oci_identity_availability_domains . ADs . availability_domains [0 ][" name" ]
371+ compartment_id = var. compartment_ocid
372+
373+ instance_reservation_configs {
374+ # Required
375+ instance_shape = " BM.Standard2.52"
376+ reserved_count = 2
377+ fault_domain = " FAULT-DOMAIN-1"
378+ }
379+ instance_reservation_configs {
380+ # Required
381+ instance_shape = " BM.Standard2.52"
382+ reserved_count = 1
383+ fault_domain = " FAULT-DOMAIN-2"
384+ }
385+ instance_reservation_configs {
386+ # Required
387+ instance_shape = " BM.Standard2.52"
388+ reserved_count = 1
389+ fault_domain = " FAULT-DOMAIN-3"
390+ }
391+ }
392+
361393resource "oci_ocvp_sddc" "test_sddc" {
362394 // Required
363395 compartment_id = var. compartment_ocid
@@ -380,9 +412,14 @@ resource "oci_ocvp_sddc" "test_sddc" {
380412 replication_vlan_id = oci_core_vlan. test_replication_vlan . id
381413 initial_sku = " HOUR"
382414 initial_host_ocpu_count = " 52.0"
383- initial_host_shape_name = " BM.DenseIO2.52"
415+ initial_host_shape_name = " BM.Standard2.52"
416+ capacity_reservation_id = oci_core_compute_capacity_reservation. test_compute_capacity_reservation . id
417+ datastores {
418+ # Required
419+ block_volume_ids = [" ${ oci_core_volume . test_block_volume . id } " ]
420+ datastore_type = " MANAGEMENT"
421+ }
384422 is_shielded_instance_enabled = false
385- is_non_production = false
386423 hcx_action = " upgrade"
387424 refresh_hcx_license_status = true
388425 # reserving_hcx_on_premise_license_keys = var.reserving_hcx_on_premise_license_keys
@@ -400,7 +437,7 @@ resource "oci_ocvp_esxi_host" "test_esxi_host" {
400437 compute_availability_domain = data. oci_identity_availability_domains . ADs . availability_domains [0 ][" name" ]
401438 current_sku = " HOUR"
402439 host_ocpu_count = " 52.0"
403- host_shape_name = " BM.DenseIO2 .52"
440+ host_shape_name = " BM.Standard2 .52"
404441 next_sku = " HOUR"
405442 # non_upgraded_esxi_host_id = data.oci_ocvp_esxi_hosts.non_upgraded_esxi_hosts.esxi_host_collection[0].id
406443 # defined_tags = {"${oci_identity_tag_namespace.tag-namespace1.name}.${oci_identity_tag.tag1.name}" = "${var.esxihost_defined_tags_value}"}
0 commit comments