Skip to content

Commit b6a4f3c

Browse files
authored
Merge pull request #2 from schubergphilis/edge-firewall-rule-v2
feat: Add resource_vcd_nsxt_firewall_rule resource
2 parents 768433d + ee0787d commit b6a4f3c

File tree

12 files changed

+676
-11
lines changed

12 files changed

+676
-11
lines changed

.github/workflows/check-docs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,8 @@ jobs:
2929
- name: Get latest released version
3030
run: echo "PROVIDER_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
3131

32+
- name: Install Terraform
33+
uses: hashicorp/setup-terraform@v3
34+
3235
- name: hclcheck
3336
run: make hclcheck

.goreleaser.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ builds:
1212
flags:
1313
- -trimpath
1414
ldflags:
15-
- '-s -w -X github.com/vmware/terraform-provider-vcd/v3/vcd.BuildVersion={{.Env.BUILDVERSION}}'
15+
- '-s -w -X github.com/schubergphilis/terraform-provider-vcd/v3/vcd.BuildVersion={{.Env.BUILDVERSION}}'
1616
goos:
1717
- freebsd
1818
- windows

GNUmakefile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,11 @@ default: build
99

1010
# builds the plugin injecting output of `git describe` to BuildVersion variable
1111
build: fmtcheck
12-
go install -ldflags="-X 'github.com/vmware/terraform-provider-vcd/v3/vcd.BuildVersion=$(GIT_DESCRIBE)'"
12+
go install -ldflags="-X 'github.com/schubergphilis/terraform-provider-vcd/v3/vcd.BuildVersion=$(GIT_DESCRIBE)'"
1313

1414
# builds the plugin with race detector enabled and injecting output of `git describe` to BuildVersion variable
1515
buildrace: fmtcheck
16-
go install --race -ldflags="-X 'github.com/vmware/terraform-provider-vcd/v3/vcd.BuildVersion=$(GIT_DESCRIBE)'"
17-
16+
go install --race -ldflags="-X 'github.com/schubergphilis/terraform-provider-vcd/v3/vcd.BuildVersion=$(GIT_DESCRIBE)'"
1817
# creates a .zip archive of the code
1918
dist:
2019
git archive --format=zip -o source.zip HEAD
@@ -79,7 +78,6 @@ testunit: fmtcheck
7978

8079
# Runs the basic execution test
8180
test: testunit tagverify
82-
@sh -c "'$(CURDIR)/scripts/runtest.sh' short"
8381

8482
# Runs the full acceptance test as Org user
8583
testacc-orguser: testunit

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
Terraform VMware Cloud Director Provider
22
==================
33

4+
## IMPORTANT: Fork notice
5+
6+
This is a fork of the VCD provider intended for usage at Schuberg Philis. The official provider seems to be no longer
7+
maintained. The aim of this fork is to add some missing functionalities to address the specific needs of Schuberg Philis. Use this fork at your own discretion and risk.
8+
49
The official Terraform provider for [VMware Cloud Director](https://www.vmware.com/products/cloud-director.html)
510

611
- Documentation of the latest binary release available at https://registry.terraform.io/providers/vmware/vcd/latest/docs
@@ -155,4 +160,4 @@ In this block, the `vmware` part of the source corresponds to the directory
155160

156161
Note that `versions.tf` is generated when you run the `terraform 0.13upgrade` command. If you have run such command,
157162
you need to edit the file and make sure the **`source`** path corresponds to the one installed, or remove the file
158-
altogether if you have already the right block in your script.
163+
altogether if you have already the right block in your script.

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v3.14.2
1+
v3.15.0

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/vmware/terraform-provider-vcd/v3
1+
module github.com/schubergphilis/terraform-provider-vcd/v3
22

33
go 1.22.3
44

main.go

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

33
import (
44
"github.com/hashicorp/terraform-plugin-sdk/v2/plugin"
5-
"github.com/vmware/terraform-provider-vcd/v3/vcd"
5+
"github.com/schubergphilis/terraform-provider-vcd/v3/vcd"
66
)
77

88
func main() {

scripts/install-plugin.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ arch=${goos}_${goarch}
6868
# if terraform executable is 0.13+, we use the new path
6969
if [[ $terraform_major -gt 0 || $terraform_major -eq 0 && $terraform_minor > 12 ]]
7070
then
71-
target_dir=$HOME/.terraform.d/plugins/registry.terraform.io/vmware/vcd/$bare_version/$arch
71+
target_dir=$HOME/.terraform.d/plugins/registry.terraform.io/schubergphilis/vcd/$bare_version/$arch
7272
fi
7373

7474
plugin_name=terraform-provider-vcd

vcd/provider.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,7 @@ var globalResourceMap = map[string]*schema.Resource{
301301
"vcd_nsxt_alb_virtual_service_http_req_rules": resourceVcdAlbVirtualServiceReqRules(), // 3.14
302302
"vcd_nsxt_alb_virtual_service_http_resp_rules": resourceVcdAlbVirtualServiceRespRules(), // 3.14
303303
"vcd_nsxt_alb_virtual_service_http_sec_rules": resourceVcdAlbVirtualServiceSecRules(), // 3.14
304+
"vcd_nsxt_firewall_rule": resourceVcdNsxtFirewallRule(), // 3.15
304305
}
305306

306307
// Provider returns a terraform.ResourceProvider.

0 commit comments

Comments
 (0)