File tree Expand file tree Collapse file tree 4 files changed +196
-2
lines changed Expand file tree Collapse file tree 4 files changed +196
-2
lines changed Original file line number Diff line number Diff line change 1+ /* *
2+ * Summary: This template showcases the properties available when creating an app data dsource.
3+ */
4+
5+ terraform {
6+ required_providers {
7+ delphix = {
8+ version = " VERSION"
9+ source = " delphix-integrations/delphix"
10+ }
11+ }
12+ }
13+
14+ provider "delphix" {
15+ tls_insecure_skip = true
16+ key = " 1.XXXX"
17+ host = " HOSTNAME"
18+ }
19+
20+ # dsource with replication
21+
22+ resource "delphix_appdata_dsource" "test_app_data_dsource" {
23+ source_value = " 1-APPDATA_STAGED_SOURCE_CONFIG-6"
24+ group_id = " 1-GROUP-1"
25+ log_sync_enabled = false
26+ make_current_account_owner = true
27+ link_type = " AppDataStaged"
28+ name = " appdata_dsource"
29+ staging_mount_base = " "
30+ environment_user = " HOST_USER-2"
31+ staging_environment = " 1-UNIX_HOST_ENVIRONMENT-2"
32+ parameters = jsonencode ({
33+ dSourceType : " Replication" ,
34+ mountPath : " /delphix/zfs3" ,
35+ stagingPort : 3310 ,
36+ serverId : 106 ,
37+ sourceip : " 10.110.203.176" ,
38+ sourceUse : " XXXX" ,
39+ sourcePass : " XXXX" ,
40+ logSync: true ,
41+ replicationUser: " XXXX" ,
42+ replicationPass: " XXXX" ,
43+ databaseList: " ALL" ,
44+ backupPath: " " ,
45+ stagingBasedir: " /usr" ,
46+ stagingPass: " XXXX"
47+ })
48+ sync_parameters = jsonencode ({
49+ resync = true
50+ })
51+ }
File renamed without changes.
Original file line number Diff line number Diff line change 1+ /* *
2+ * Summary: This template showcases the properties available when provisioning a PostgreSQL database from a DCT bookmark.
3+ */
4+
5+ terraform {
6+ required_providers {
7+ delphix = {
8+ version = " VERSION"
9+ source = " delphix-integrations/delphix"
10+ }
11+ }
12+ }
13+
14+ provider "delphix" {
15+ tls_insecure_skip = true
16+ key = " 1.XXXX"
17+ host = " HOSTNAME"
18+ }
19+
20+ resource "delphix_vdb" "example" {
21+ snapshot_id = " snapshot-id"
22+ name = " vdb_to_be_created"
23+ source_data_id = " dsource-name"
24+ engine_id = " 1"
25+ vdb_restart = true
26+ environment_id = " env-name"
27+ environment_user_id = " environment_user_name"
28+ target_group_id = " group-123"
29+ snapshot_policy_id = " test_snapshot_policy"
30+ database_name = " dbname_to_be_created"
31+ mount_point = " /var/mnt"
32+ auto_select_repository = true
33+ retention_policy_id = " test_retention_policy"
34+ custom_env_files = [" /export/home/env_file_1" ]
35+ custom_env_vars = {
36+ MY_ENV_VAR1 = " $HOME"
37+ MY_ENV_VAR2 = " $CRS_HOME/after"
38+ }
39+ repository_id = " "
40+ appdata_source_params = jsonencode ({
41+ baseDir: " /usr" ,
42+ config_settings_prov: [],
43+ mPath: " /delphix/zfs5" ,
44+ port: 3890 ,
45+ serverId: 190 ,
46+ vdbPass: XXXX,
47+ vdbUser: XXXX
48+ })
49+ config_params = jsonencode ({
50+ processes = 150
51+ })
52+ appdata_config_params = jsonencode ({
53+ param = " value"
54+ })
55+ additional_mount_points = [{
56+ shared_path = " /" ,
57+ mount_path = " /work" ,
58+ environment_id = " environment-123"
59+ }]
60+
61+ post_snapshot {
62+ name = " string"
63+ command = " string"
64+ shell = " bash"
65+ element_id = " string"
66+ has_credentials = true
67+ }
68+ pre_snapshot {
69+ name = " string"
70+ command = " string"
71+ shell = " bash"
72+ element_id = " string"
73+ has_credentials = true
74+ }
75+ pre_stop {
76+ name = " string"
77+ command = " string"
78+ shell = " bash"
79+ element_id = " string"
80+ has_credentials = true
81+ }
82+ configure_clone {
83+ name = " string"
84+ command = " string"
85+ shell = " bash"
86+ element_id = " string"
87+ has_credentials = true
88+ }
89+ post_refresh {
90+ name = " string"
91+ command = " string"
92+ shell = " bash"
93+ element_id = " string"
94+ has_credentials = true
95+ }
96+ post_stop {
97+ name = " string"
98+ command = " string"
99+ shell = " bash"
100+ element_id = " string"
101+ has_credentials = true
102+ }
103+ post_rollback {
104+ name = " string"
105+ command = " string"
106+ shell = " bash"
107+ element_id = " string"
108+ has_credentials = true
109+ }
110+ post_start {
111+ name = " string"
112+ command = " string"
113+ shell = " bash"
114+ element_id = " string"
115+ has_credentials = true
116+ }
117+ pre_rollback {
118+ name = " string"
119+ command = " string"
120+ shell = " bash"
121+ element_id = " string"
122+ has_credentials = true
123+ }
124+ pre_start {
125+ name = " string"
126+ command = " string"
127+ shell = " bash"
128+ element_id = " string"
129+ has_credentials = true
130+ }
131+ pre_refresh {
132+ name = " string"
133+ command = " string"
134+ shell = " bash"
135+ element_id = " string"
136+ has_credentials = true
137+ }
138+ make_current_account_owner = true
139+ tags {
140+ key = " key-1"
141+ value = " value-1"
142+ }
143+ }
Original file line number Diff line number Diff line change @@ -42,10 +42,10 @@ resource "delphix_vdb" "example" {
4242 postgresPort = 5434
4343 configSettingsStg = [{ propertyName: " timezone" , value: " GMT" , commentProperty: false }]
4444 })
45- config_params jsonencode ({
45+ config_params = jsonencode ({
4646 processes = 150
4747 })
48- appdata_config_params jsonencode ({
48+ appdata_config_params = jsonencode ({
4949 param = " value"
5050 })
5151 additional_mount_points = [{
You can’t perform that action at this time.
0 commit comments