Skip to content

Commit bf9c74b

Browse files
committed
Update main.tf
1 parent 72ec5e3 commit bf9c74b

File tree

1 file changed

+23
-27
lines changed
  • examples/full_stack_deployment

1 file changed

+23
-27
lines changed

examples/full_stack_deployment/main.tf

Lines changed: 23 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ terraform {
2020
}
2121
}
2222

23-
// *** Requirement***: Various variables used throughout the example.
23+
# *** Requirement***: Various variables used throughout the example.
2424
locals {
2525
dct-key = "<1.XXXX>"
2626
dct-host = "<DCT HOSTNAME>"
@@ -39,10 +39,10 @@ provider "delphix" {
3939
}
4040

4141

42-
// *** Requirement ***: This is an example only and will not work without significant modification and additional files.
43-
// See the official documentation here for a full VM deployment: https://learn.microsoft.com/en-us/azure/virtual-machines/linux/quick-create-terraform
44-
// The VM creation terraform resource can be replaced with an equivalent resource GCP, AWS, VMWare, etc that's compatible with Delphix Continuous Data.
45-
// Consult your organization's DevOps expert for guidance on how to provision a VM that's approved for your company.
42+
# *** Requirement ***: This is an example only and will not work without significant modification and additional files.
43+
# See the official documentation here for a full VM deployment: https://learn.microsoft.com/en-us/azure/virtual-machines/linux/quick-create-terraform
44+
# The VM creation terraform resource can be replaced with an equivalent resource GCP, AWS, VMWare, etc that's compatible with Delphix Continuous Data.
45+
# Consult your organization's DevOps expert for guidance on how to provision a VM that's approved for your company.
4646
resource "azurerm_linux_virtual_machine" "azure_vm" {
4747
name = "Delphix Oracle Target"
4848
location = azurerm_resource_group.rg.location // Not provided
@@ -72,7 +72,8 @@ resource "azurerm_linux_virtual_machine" "azure_vm" {
7272
}
7373
}
7474

75-
// Add the Azure VM as a Delphix environment.
75+
# Add the Azure VM as a Delphix environment.
76+
# Docs: https://registry.terraform.io/providers/delphix-integrations/delphix/latest/docs/resources/environment
7677
resource "delphix_environment" "linux-oracle-target" {
7778
name = local.vm-hostname
7879
os_name = "UNIX"
@@ -84,36 +85,31 @@ resource "delphix_environment" "linux-oracle-target" {
8485
description = "This is a unix target for the Oracle VDB."
8586
}
8687

87-
// Link and Sync the dSource and take a new snapshot
88-
// *** Requirement *** This is an Oracle dSource. Updates are likely required.
88+
89+
# If we were ingesting a PostgreSQL (or AppData) database, we would need to configure a Source Config (Source)
90+
# resource "delphix_database_postgresql" "postgresql_source_config" {
91+
# name = local.source-db-name + "source config"
92+
# repository_value = "PostgreSQL Repo"
93+
# engine_value = "1"
94+
# environment_value = local.vm-hostname
95+
# }
96+
97+
# Link and Sync the dSource and take a new snapshot
98+
# *** Requirement *** This is an Oracle dSource. Updates are likely required.
99+
# Docs: https://registry.terraform.io/providers/delphix-integrations/delphix/latest/docs/resources/oracle_dsource
89100
resource "delphix_oracle_dsource" "full_oracle_dsource" {
90101
name = local.dsource-name
91102
source_value = local.source-db-name
92-
group_id = "4-GROUP-1"
93-
environment_user_id = "HOST_USER-1"
103+
group_id = "full_deployment_group"
104+
environment_user_id = local.vm-username
94105
log_sync_enabled = false
95-
rman_channels = 2
96-
files_per_set = 5
97-
check_logical = false
98-
encrypted_linking_enabled = false
99-
compressed_linking_enabled = true
100-
bandwidth_limit = 0
101-
number_of_connections = 1
102-
diagnose_no_logging_faults = true
103-
pre_provisioning_enabled = false
104106
link_now = true
105-
force_full_backup = false
106-
double_sync = false
107-
skip_space_check = false
108-
do_not_resume = false
109-
files_for_full_backup = []
110-
log_sync_mode = "UNDEFINED"
111-
log_sync_interval = 5
112107
make_current_account_owner = true
113108
}
114109

115110

116-
// Provision by Snapshot the 1 Oracle VDB on the newly created environment
111+
# Provision by Snapshot the 1 Oracle VDB on the newly created environment
112+
# Docs: https://registry.terraform.io/providers/delphix-integrations/delphix/latest/docs/resources/vdb
117113
resource "delphix_vdb" "vdb_provision_loop" {
118114
name = local.vdb-name
119115
source_data_id = local.dsource-name

0 commit comments

Comments
 (0)