Skip to content

Commit f426207

Browse files
Merge pull request #76 from delphix-integrations/source_changes
HUBS-2073 Source changes
2 parents 4e9d909 + 7e28b10 commit f426207

25 files changed

+1133
-745
lines changed

.goreleaser.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Visit https://goreleaser.com for documentation on how to customize this
22
# behavior.
33
env:
4-
- PROVIDER_VERSION=3.1.0
4+
- PROVIDER_VERSION=3.2.0
55
before:
66
hooks:
77
# this is just an example and not a requirement for provider building/publishing

GNUmakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ HOSTNAME=delphix.com
33
NAMESPACE=dct
44
NAME=delphix
55
BINARY=terraform-provider-${NAME}
6-
VERSION=3.1.0
6+
VERSION=3.2.0
77
OS_ARCH=darwin_amd64
88

99
default: install

docs/index.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,17 @@ resource "delphix_vdb" "vdb_name" {
6363
* __key__ : The API Key which is used to authenticate with DCT. (Example `apk 2.abc123...`).
6464
* __tls_insecure_skip__: (Optional) A boolean value which determines whether to skip the SSL/TLS check. The default value is `false`. Skipping any SSL/TLS check is not recommended for production environments.
6565
* __host_scheme__: (Optional) Determines the configured host URL's scheme. The default value is `https`.
66-
66+
6767
Consult the documentation's Resources section for details on individual resources, such as VDB, dSource, and Environment.
68+
69+
## Support Matrix
70+
71+
Feature/Product | Provider Version | DCT version
72+
--- |------------------| --- |
73+
delphix_vdb | v 1.0.0 | v 2.0.0
74+
delphix_vdb_group | v 1.0.0 | v 2.0.0
75+
delphix_environment | v 1.0.0 | v 2.0.0
76+
delphix_appdata_dsource | v 2.1.0 | v 10.0.0
77+
delphix_oracle_dsource | v 3.1.0 | v 10.0.0
78+
delphix_database_postgresql | v 3.2.0 | v 14.0.0
79+

docs/resources/appdata_dsource.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,4 +179,8 @@ resource "delphix_appdata_dsource" "dsource_name" {
179179

180180
* `parameters` - (Optional) The JSON payload is based on the type of dSource being created. Different data sources require different parameters.
181181

182-
* `sync_parameters` - (Optional) The JSON payload conforming to the snapshot parameters definition in a LUA toolkit or platform plugin.
182+
* `sync_parameters` - (Optional) The JSON payload conforming to the snapshot parameters definition in a LUA toolkit or platform plugin.
183+
184+
* `skip_wait_for_snapshot_creation` - (Optional) By default this resource will wait for a snapshot to be created post-dSource creation. This ensure a snapshot is available during the VDB provisioning. This behavior can be skipped by setting this parameter to `true`.
185+
186+
* `wait_time` - (Optional) By default this resource waits 3 minutes for a snapshot to be created. Increase the integer value as needed for larger dSource snapshots. This parameter can be ignored if 'skip_wait_for_snapshot_creation' is set to `true`.
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
# Resource: <resource name> delphix_database_postgresql
2+
3+
In the Delphix Platform, a Database (or Source Config) identifies the environment's location from which a specific source dataset can be ingested from. dSources are then created from these Databases.
4+
5+
## System Requirements
6+
7+
* Data Control Tower v14.0.1+ is required for database management. Lower versions are not supported.
8+
* The Database PostgreSQL resource only supports the Delphix PostgreSQL database type (POSTGRES). This resource does not support Oracle, SQL Server, or SAP ASE.
9+
10+
## Example Usage
11+
12+
```hcl
13+
# Create a postgres database/source.
14+
15+
resource "delphix_database_postgresql" "source" {
16+
name = "test"
17+
repository_value = "REPO-1"
18+
engine_value = "2"
19+
environment_value = "ENV-1"
20+
}
21+
22+
```
23+
24+
## Argument Reference
25+
26+
* `name` - (Required) The name of the new source.
27+
28+
* `repository_value` - (Required) The Id or Name of the Repository onto which the source will be created..
29+
30+
* `environment_value` - (Optional) The Id or Name of the environment to create the source on.
31+
32+
* `engine_value` - (Optional) The Id or Name of the engine to create the source on.
33+
34+
* `id` - The Source object entity ID.
35+
36+
* `database_type` - The type of this source database.
37+
38+
* `namespace_id` - The namespace id of this source database.
39+
40+
* `namespace_name` - The namespace name of this source database.
41+
42+
* `is_replica` - Is this a replicated object.
43+
44+
* `database_version` - The version of this source database.
45+
46+
* `data_uuid` - A universal ID that uniquely identifies this source database.
47+
48+
* `ip_address` - The IP address of the source's host.
49+
50+
* `fqdn` - The FQDN of the source's host.
51+
52+
* `size` - The total size of this source database, in bytes.
53+
54+
* `jdbc_connection_string` - The JDBC connection URL for this source database.
55+
56+
* `plugin_version` - The version of the plugin associated with this source database.
57+
58+
* `toolkit_id` - The ID of the toolkit associated with this source database(AppData only).
59+
60+
* `is_dsource` - Is this associated with dSource.
61+
62+
* `repository` - The repository id for this source.
63+
64+
* `appdata_source_type` - The type of this appdata source database (Appdata Only).
65+
66+
* `tags` - The tags to be created for database. This is a map of 2 parameters:
67+
* `key` - Key of the tag
68+
* `value` - Value of the tag

docs/resources/environment.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,3 +210,4 @@ resource "delphix_environment" "fc-tgt-cluster" {
210210
* `engine_id` - A reference to the Engine that this Environment connection is associated with.
211211
* `enabled` - True if this environment is enabled.
212212
* `hosts` - The hosts that are part of this environment.
213+
* `repositories` - The repositories that are part of this environment.

docs/resources/oracle_dsource.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,3 +195,6 @@ resource "delphix_oracle_dsource" "test_oracle_dsource" {
195195
* `azure_vault_secret_key` - Azure vault key in the key-value store.
196196
* `cyberark_vault_query_string` - Query to find a credential in the CyberArk vault.
197197

198+
* `skip_wait_for_snapshot_creation` - (Optional) By default this resource will wait for a snapshot to be created post-dSource creation. This ensure a snapshot is available during the VDB provisioning. This behavior can be skipped by setting this parameter to `true`.
199+
200+
* `wait_time` - (Optional) By default this resource waits 3 minutes for a snapshot to be created. Increase the integer value as needed for larger dSource snapshots. This parameter can be ignored if 'skip_wait_for_snapshot_creation' is set to `true`.
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
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.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/**
2+
* Summary: This template showcases the properties available when creating an source.
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+
key = "1.XXXX"
16+
host = "HOSTNAME"
17+
}
18+
19+
resource "delphix_database_postgresql" "source" {
20+
name = "test"
21+
repository_value = "REPO-1"
22+
engine_value = "2"
23+
environment_value = "ENV-1"
24+
}
25+

0 commit comments

Comments
 (0)