Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

Update to Terraform 0.13 to support automatic installation of third-party providers #109

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 20 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ A self-contained deployable integration between Terraform and vRealize Automatio
Requirements
------------

* [Terraform 0.9 or above](https://www.terraform.io/downloads.html)
* [Go Language 1.11.4 or above](https://golang.org/dl/)
* [Terraform 0.13 or above](https://www.terraform.io/downloads.html)
* [Go Language 1.11.4 or above](https://golang.org/dl/) (optional)
* [vRealize Automation 7.4 or below] The support has been stopped since provider v3.0.0. It is recommended to use the previous versions of the provider (v2.0.1 or below)
* [vRealize Automation 7.5 or above](https://www.vmware.com/products/vrealize-automation.html)

Expand Down Expand Up @@ -54,6 +54,14 @@ for more information on provider upgrades, and how to set version constraints on
### A sample main.tf file is as follows:

```hcl
terraform {
required_providers {
vra7 = {
source = "vmware/vra7"
}
}
}

provider "vra7" {
username = var.username
password = var.password
Expand Down Expand Up @@ -199,6 +207,14 @@ Import functionality is now supported for the vra7_deployment resource. If there
### main.tf

```hcl
terraform {
required_providers {
vra7 = {
source = "vmware/vra7"
}
}
}

provider "vra7" {
username = var.username
password = var.password
Expand All @@ -218,7 +234,7 @@ A data source for vra7_deployment can also be created using either deployment ID
Refer to the documentation [here](website/docs/d/vra7_deployment.html.markdown)


Building the provider
Building the provider (optional)
---------------------

Clone repository to: `$GOPATH/src/github.com/vmware/terraform-provider-vra7`
Expand All @@ -235,7 +251,7 @@ $ cd $GOPATH/src/github.com/vmware/terraform-provider-vra7
$ make build
```

Developing the provider
Developing the provider (optional)
---------------------------

If you wish to work on the provider, you'll first need [Go](http://www.golang.org) installed on your machine (version 1.11.4+ is *required*). You'll also need to correctly setup a [GOPATH](http://golang.org/doc/code.html#GOPATH), as well as adding `$GOPATH/bin` to your `$PATH`.
Expand Down
2 changes: 1 addition & 1 deletion example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Follow the steps mentioned in Main [README](../README.md)
## How to run the example
1. cd <example directory>
2. Copy the `terraform.tfvars.sample` to `terraform.tfvars`
3. Copy the created plugin binary to example/
3. Copy the created plugin binary to example/ (optional)
4. Edit the `terraform.tfvars` to add the secret information
5. To init command - `terraform init`
6. To plan command - `terraform plan`
Expand Down
8 changes: 8 additions & 0 deletions example/depends_on/main.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
terraform {
required_providers {
vra7 = {
source = "vmware/vra7"
}
}
}

provider "vra7" {
username = var.username
password = var.password
Expand Down
8 changes: 8 additions & 0 deletions example/remote-execute/main.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
terraform {
required_providers {
vra7 = {
source = "vmware/vra7"
}
}
}

provider "vra7" {
username = var.username
password = var.password
Expand Down
8 changes: 8 additions & 0 deletions example/simple/main.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
terraform {
required_providers {
vra7 = {
source = "vmware/vra7"
}
}
}

provider "vra7" {
username = var.username
password = var.password
Expand Down