Skip to content

Commit

Permalink
Fix Terraform required version (#78)
Browse files Browse the repository at this point in the history
* update Terraform required version

* Update required version
  • Loading branch information
venkat-iblox authored Mar 1, 2024
1 parent 2fc7ec8 commit cc94336
Show file tree
Hide file tree
Showing 9 changed files with 30 additions and 21 deletions.
13 changes: 10 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ HOSTNAME=registry.terraform.io
NAMESPACE=infobloxopen
NAME=bloxone
BINARY=terraform-provider-${NAME}
VERSION=0.1.0
VERSION=1.0.0
OS_ARCH=linux_amd64
MODULES_DIR=./modules
TERRAFORM_DOCS_IMAGE=quay.io/terraform-docs/terraform-docs:0.17.0

default: install

Expand All @@ -22,8 +24,13 @@ test:
testacc:
TF_ACC=1 go test $(TEST) -v $(TESTARGS) -timeout 120m -coverprofile testacc-cover.out

gen:
gen: modules-docs
go generate
terraform-docs ./modules/bloxone_infra_host_aws

modules-docs: $(MODULES_DIR)/*
@for d in $^ ; do \
echo "Generating documentation for module $$d" ; \
docker run --rm --volume "./$$d:/$$d" $(TERRAFORM_DOCS_IMAGE) markdown "/$$d" ; \
done

.PHONY: default test testacc gen
3 changes: 2 additions & 1 deletion docs/guides/migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ terraform {
required_providers {
bloxone = {
source = "infobloxopen/bloxone"
version = "0.1.0"
version = ">= 1.0.0"
}
}
required_version = ">= 1.5.0"
}
```

Expand Down
5 changes: 2 additions & 3 deletions docs/guides/quickstart-dhcp.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,10 @@ terraform {
required_providers {
bloxone = {
source = "infobloxopen/bloxone"
version = ">= 0.1.0"
version = ">= 1.0.0"
}
}
required_version = ">= 1.0.0"
required_version = ">= 1.5.0"
}
provider "bloxone" {
Expand Down
5 changes: 2 additions & 3 deletions docs/guides/quickstart-dns.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,10 @@ terraform {
required_providers {
bloxone = {
source = "infobloxopen/bloxone"
version = ">= 0.1.0"
version = ">= 1.0.0"
}
}
required_version = ">= 1.0.0"
required_version = ">= 1.5.0"
}
provider "bloxone" {
Expand Down
8 changes: 5 additions & 3 deletions modules/bloxone_infra_host_aws/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,16 @@ module "bloxone_infra_host_aws" {

| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.0 |
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.5.0 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.0.0 |
| <a name="requirement_bloxone"></a> [bloxone](#requirement\_bloxone) | >= 1.0.0 |

## Providers

| Name | Version |
|------|---------|
| <a name="provider_aws"></a> [aws](#provider\_aws) | n/a |
| <a name="provider_bloxone"></a> [bloxone](#provider\_bloxone) | n/a |
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 5.0.0 |
| <a name="provider_bloxone"></a> [bloxone](#provider\_bloxone) | >= 1.0.0 |
| <a name="provider_random"></a> [random](#provider\_random) | n/a |

## Resources
Expand Down
4 changes: 3 additions & 1 deletion modules/bloxone_infra_host_aws/versions.tf
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
terraform {
required_version = ">= 1.0"
required_version = ">= 1.5.0"
required_providers {
bloxone = {
source = "infobloxopen/bloxone"
version = ">= 1.0.0"
}
aws = {
source = "hashicorp/aws"
version = ">= 5.0.0"
}
}
}
3 changes: 2 additions & 1 deletion templates/guides/migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ terraform {
required_providers {
bloxone = {
source = "infobloxopen/bloxone"
version = "0.1.0"
version = ">= 1.0.0"
}
}
required_version = ">= 1.5.0"
}
```

Expand Down
5 changes: 2 additions & 3 deletions templates/guides/quickstart-dhcp.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,10 @@ terraform {
required_providers {
bloxone = {
source = "infobloxopen/bloxone"
version = ">= 0.1.0"
version = ">= 1.0.0"
}
}
required_version = ">= 1.0.0"
required_version = ">= 1.5.0"
}
provider "bloxone" {
Expand Down
5 changes: 2 additions & 3 deletions templates/guides/quickstart-dns.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,10 @@ terraform {
required_providers {
bloxone = {
source = "infobloxopen/bloxone"
version = ">= 0.1.0"
version = ">= 1.0.0"
}
}
required_version = ">= 1.0.0"
required_version = ">= 1.5.0"
}
provider "bloxone" {
Expand Down

0 comments on commit cc94336

Please sign in to comment.