Skip to content

Commit 826a3df

Browse files
committed
v0.0.1
1 parent 2c03e4d commit 826a3df

15 files changed

+880
-98
lines changed

.gitignore

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
1-
temp/*
2-
*.tfstate*
3-
infra
4-
*.DS_Store
1+
.idea
2+
backups
3+
*.iml
54
terraform-provider-delphix
6-
terraform
7-
*.log
8-
*.bak
9-
.terraform
10-
delphix.json
11-
debug*
12-
*.tf
13-
.vscode
5+
build_instructions.txt
6+
code_snippets.sh

README.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,15 @@ This prototype is narrowly focused to support the following use cases:
99
## Use Case 1 - Adding/Removing a Unix Host Environment running Oracle
1010
The prototype supports Create, Read (name only), and Delete
1111

12-
## Use Case 2 - Provisioning/Destroying an Oracle Single Instance VDB
12+
## Use Case 2 - Ingesting/Destroying an Oracle Single Instance dSource
13+
The prototype supports Create, Read and Delete actions on that dSource.
14+
15+
## Use Case 3 - Provisioning/Destroying an Oracle Single Instance VDB
1316
The prototype supports Create, Read, Update and Delete actions on that VDB.
1417

18+
## Use Case 4 - Provisioning/Destroying Delphix Dataset Groups
19+
The prototype supports Create, Read, Update and Delete actions on that Group.
20+
1521
## Using the plugin
1622
The following assumes you have a working knowledge of terraform and go
1723

@@ -42,15 +48,15 @@ To get started, you will need to install Golang.
4248

4349
2. If you do not have one already, create a directory to work with go.
4450
3. Navigate into that directory in your terminal.
45-
4. Create a directory called srv
51+
4. Create a directory called goprojects
4652
5. Export the current working directory as GOPATH
4753
6. Gather the required packages
4854
7. Build
4955
```bash
50-
mkdir src
56+
mkdir goprojects
5157
export GOPATH=`pwd`
52-
git clone https://github.com/delphix/terraform-provider-delphix src/terraform-provider-delphix
53-
cd src/terraform-provider-delphix
58+
git clone https://github.com/delphix/terraform-provider-delphix goprojects/terraform-provider-delphix
59+
cd goprojects/terraform-provider-delphix
5460
go get
5561
go build
5662
```
19.5 MB
Binary file not shown.

bin/terraform-provider-delphix.mac

19.3 MB
Binary file not shown.

config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package main
33
import (
44
"log"
55

6-
delphix "github.com/delphix/delphix-go-sdk"
6+
delphix "github.com/ajaytho/delphix-go-sdk"
77
)
88

99
//Config holds our parameters for connecting to the Delphix Engine

go.mod

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
module terraform-provider-delphix
2+
3+
go 1.16
4+
5+
replace github.com/ajaytho/delphix-go-sdk => ../delphix-go-sdk
6+
7+
require (
8+
github.com/ajaytho/delphix-go-sdk v0.0.0-20210825160814-bcc77c8ab45a // indirect
9+
github.com/hashicorp/terraform-plugin-sdk v1.17.2 // indirect
10+
github.com/hashicorp/terraform-plugin-sdk/v2 v2.7.0 // indirect
11+
)

go.sum

Lines changed: 656 additions & 0 deletions
Large diffs are not rendered by default.

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package main
22

33
import (
4-
"github.com/hashicorp/terraform/plugin"
4+
"github.com/hashicorp/terraform-plugin-sdk/v2/plugin"
55
)
66

77
func main() {

provider.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@ package main
33
import (
44
"log"
55

6-
"github.com/hashicorp/terraform/helper/schema"
7-
"github.com/hashicorp/terraform/terraform"
6+
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
87
)
98

109
// Provider returns a terraform.ResourceProvider.
11-
func Provider() terraform.ResourceProvider {
10+
func Provider() *schema.Provider {
1211
return &schema.Provider{ // Source https://github.com/hashicorp/terraform/blob/master/helper/schema
1312
Schema: providerSchema(),
1413
ResourcesMap: map[string]*schema.Resource{
15-
"delphix_vdb": resourceDelphixOracleSIVDB(),
16-
"delphix_environment": resourceDelphixEnvironment(),
14+
"delphix_group": resourceDelphixGroup(),
15+
"delphix_vdb": resourceDelphixOracleSIVDB(),
16+
"delphix_environment": resourceDelphixEnvironment(),
1717
"delphix_data_source_oracle": resourceDelphixOracleDSource(),
1818
},
1919
ConfigureFunc: providerConfigure,

provider_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"strconv"
66
"testing"
77

8-
"github.com/hashicorp/terraform/helper/schema"
8+
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
99
"github.com/hashicorp/terraform/terraform"
1010
)
1111

0 commit comments

Comments
 (0)