diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 5977d4c..25a5c40 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -14,7 +14,7 @@ Based on [this example from the terraform docs](https://developer.hashicorp.com/
provider_installation {
dev_overrides {
# Example GOBIN path, will need to be replaced with your own GOBIN path. Default is $GOPATH/bin
- "git.unkin.net/unkin/binarylane" = "/path/to/terraform-provider-binarylane/bin"
+ "IUCLabs/binarylane" = "/path/to/terraform-provider-binarylane/bin"
}
direct {}
diff --git a/Makefile b/Makefile
index 3d98897..9ca2879 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,10 @@
-.PHONY: build install test lint fmt clean tidy package pre-commit patch minor major check-go
+.PHONY: build install test lint fmt clean tidy package pre-commit patch minor major check-go docs
BINARY := terraform-provider-binarylane
VERSION ?= $(shell git describe --tags --always --dirty 2>/dev/null || echo "0.0.0-dev")
OS_ARCH := linux_amd64
INSTALL_VERSION := $(shell echo $(VERSION) | sed 's/^v//')
-INSTALL_DIR := ~/.terraform.d/plugins/git.unkin.net/unkin/binarylane/$(INSTALL_VERSION)/$(OS_ARCH)
+INSTALL_DIR := ~/.terraform.d/plugins/registry.terraform.io/iuclabs/binarylane/$(INSTALL_VERSION)/$(OS_ARCH)
ZIP := $(BINARY)_$(INSTALL_VERSION)_$(OS_ARCH).zip
GO_VERSION_REQUIRED := 1.25
@@ -36,6 +36,9 @@ package: build
python3 -c "import zipfile,sys; z=zipfile.ZipFile(sys.argv[1],'w',zipfile.ZIP_DEFLATED); z.write(sys.argv[2]); z.close()" $(ZIP) $(BINARY)_v$(INSTALL_VERSION)
rm $(BINARY)_v$(INSTALL_VERSION)
+docs:
+ go run github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs generate --provider-name binarylane --rendered-provider-name terraform-provider-binarylane
+
pre-commit:
uvx pre-commit run --all-files
diff --git a/README.md b/README.md
index 19398f1..45c1472 100644
--- a/README.md
+++ b/README.md
@@ -1,8 +1,31 @@
-# terraform-provider-binarylane
+# Terraform Provider for BinaryLane
-See the [documentation on the Terraform Registry](https://registry.terraform.io/providers/oscarhermoso/binarylane/latest), or see [examples in the `examples` directory](./examples/README.md).
+A Terraform provider for managing [BinaryLane](https://www.binarylane.com.au/) cloud resources: servers, firewall rules, reverse DNS, SSH keys, VPCs and load balancers.
+
+This is a fork of [oscarhermoso/terraform-provider-binarylane](https://github.com/oscarhermoso/terraform-provider-binarylane). It tracks upstream and adds:
+
+- `binarylane_server_reverse_name` resource for managing IPv4 PTR records
+- omitting `destination_ports` on `binarylane_server_firewall_rules` (e.g. for ICMP rules) resolves to null after apply instead of leaving it unknown
+- server action waits are bounded by a timeout instead of polling forever
+
+## Quick start
+
+Prebuilt provider archives are on the [releases page](https://github.com/IUCLabs/terraform-provider-binarylane/releases).
```terraform
+terraform {
+ required_providers {
+ binarylane = {
+ source = "IUCLabs/binarylane"
+ }
+ }
+}
+
+provider "binarylane" {
+ # Or set BINARYLANE_API_TOKEN
+ api_token = var.binarylane_api_token
+}
+
resource "binarylane_server" "example" {
region = "per"
image = "ubuntu-24.04"
@@ -11,140 +34,28 @@ resource "binarylane_server" "example" {
}
```
-## Progress
+More complete configurations live in [`examples/`](./examples/README.md).
-Planned features:
+## Requirements
-- [x] Servers
- - [x] Firewall Rules
- - [x] Cloud Init
- - [x] Updating server properties
- - [x] "Advanced Features"
- - [x] IPV6
- - [ ] Customised Backups
- - [ ] Software
- - [ ] Alerts
-- [x] SSH Keys
-- [x] Virtual Private Cloud
-- [x] Load Balancers
-- [ ] Images
-- [ ] DNS
-- [x] Docs
- - [x] Generated docs
- - [ ] Review & fill out remaining descriptions
- - [ ] Include examples in docs
-- [x] Examples
- - [x] Basic
- - [x] Cloud Init
- - [x] K3s
- - [ ] NixOS
- - [ ] Virtual Private Cloud
+- [Terraform](https://developer.hashicorp.com/terraform/downloads) >= 1.0 (plugin protocol 6)
+- [Go](https://go.dev/doc/install) >= 1.25 to build the provider
+- A BinaryLane API token
-## Server parameters
+## Documentation
-### Regions
+Provider and resource documentation is in [`docs/`](./docs/index.md), in the Terraform Registry layout. Regenerate it with `make docs` after changing a schema.
-
-curl for regions
+## Developing
```sh
-curl -X GET "https://api.binarylane.com.au/v2/regions" \
- -H "Authorization: Bearer $BINARYLANE_API_TOKEN" > tmp/regions.json
-
-jq '[ .regions[] | .slug ] | sort' tmp/regions.json
-```
-
-
-```json
-[
- "adl",
- "bne",
- "mel",
- "per",
- "sin",
- "syd"
-]
+make build # build the provider binary
+make test # unit tests
+make docs # regenerate docs/
```
-### Images
+Acceptance tests run against the live BinaryLane API and need `TF_ACC=1` and `BINARYLANE_API_TOKEN`. See [CONTRIBUTING.md](./CONTRIBUTING.md) for local development overrides.
-
-curl for images
+## License
-```sh
-curl -X GET "https://api.binarylane.com.au/v2/images?type=distribution&&page=1&per_page=200" \
- -H "Authorization: Bearer $BINARYLANE_API_TOKEN" > tmp/images.json
-
-jq '[ .images[] | .slug ] | sort' tmp/images.json
-```
-
-
-```json
-[
- "alma-10",
- "alma-8",
- "alma-9",
- "byo-os",
- "byo-os-uefi",
- "byo-os-virtio-disabled",
- "cpanel-plus-whm",
- "debian-11",
- "debian-12",
- "debian-13",
- "rocky-10",
- "rocky-9",
- "ubuntu-20.04.6",
- "ubuntu-22.04",
- "ubuntu-22.04-desktop",
- "ubuntu-24.04",
- "ubuntu-24.04-neon-desktop",
- "ubuntu-26.04",
- "windows-2016",
- "windows-2016-sql-2016-web",
- "windows-2019",
- "windows-2019-sql-2017-std",
- "windows-2019-sql-2017-web",
- "windows-2022",
- "windows-2022-sql-2019-std",
- "windows-2022-sql-2019-web",
- "windows-2025"
-]
-```
-
-### Sizes
-
-
-curl for sizes
-
-```sh
-curl -X GET "https://api.binarylane.com.au/v2/sizes" \
- -H "Authorization: Bearer $BINARYLANE_API_TOKEN" > tmp/sizes.json
-
-jq '[ .sizes[] | .slug ] | sort' tmp/sizes.json
-```
-
-
-```json
-[
- "cpu-2thr",
- "cpu-4thr",
- "cpu-6thr",
- "cpu-8thr",
- "ded-7900x-800gb",
- "ded-e2136-400gb",
- "ded-e2136-800gb",
- "ded-e2288g-800gb",
- "hdd-1000gb",
- "hdd-2000gb",
- "hdd-4000gb",
- "hdd-500gb",
- "hdd-6000gb",
- "hdd-8000gb",
- "std-1vcpu",
- "std-2vcpu",
- "std-4vcpu",
- "std-6vcpu",
- "std-8vcpu",
- "std-min"
-]
-```
+[MIT](./LICENSE), as inherited from upstream.
diff --git a/docs/index.md b/docs/index.md
index 08a7054..d023d62 100644
--- a/docs/index.md
+++ b/docs/index.md
@@ -15,7 +15,7 @@ description: |-
terraform {
required_providers {
binarylane = {
- source = "git.unkin.net/unkin/binarylane"
+ source = "IUCLabs/binarylane"
}
}
}
diff --git a/examples/basic/main.tf b/examples/basic/main.tf
index 78ec28a..07075d1 100644
--- a/examples/basic/main.tf
+++ b/examples/basic/main.tf
@@ -1,7 +1,7 @@
terraform {
required_providers {
binarylane = {
- source = "git.unkin.net/unkin/binarylane"
+ source = "IUCLabs/binarylane"
}
}
}
diff --git a/examples/cloud-init/README.md b/examples/cloud-init/README.md
index dff8c60..adbca09 100644
--- a/examples/cloud-init/README.md
+++ b/examples/cloud-init/README.md
@@ -8,7 +8,7 @@ If you want to deploy multiple parts of a cloud-init configuration, you can use
terraform {
required_providers {
binarylane = {
- source = "git.unkin.net/unkin/binarylane"
+ source = "IUCLabs/binarylane"
}
}
}
diff --git a/examples/cloud-init/main.tf b/examples/cloud-init/main.tf
index 67be2c8..5e0120e 100644
--- a/examples/cloud-init/main.tf
+++ b/examples/cloud-init/main.tf
@@ -1,7 +1,7 @@
terraform {
required_providers {
binarylane = {
- source = "git.unkin.net/unkin/binarylane"
+ source = "IUCLabs/binarylane"
}
}
}
diff --git a/examples/k3s/providers.tf b/examples/k3s/providers.tf
index f75bb61..f96a85d 100644
--- a/examples/k3s/providers.tf
+++ b/examples/k3s/providers.tf
@@ -1,7 +1,7 @@
terraform {
required_providers {
binarylane = {
- source = "git.unkin.net/unkin/binarylane"
+ source = "IUCLabs/binarylane"
}
}
}
diff --git a/examples/nix/main.tf b/examples/nix/main.tf
index f116c3b..1582a1d 100644
--- a/examples/nix/main.tf
+++ b/examples/nix/main.tf
@@ -1,7 +1,7 @@
terraform {
required_providers {
binarylane = {
- source = "git.unkin.net/unkin/binarylane"
+ source = "IUCLabs/binarylane"
}
}
}
diff --git a/examples/offerings/main.tf b/examples/offerings/main.tf
index 434a511..136d825 100644
--- a/examples/offerings/main.tf
+++ b/examples/offerings/main.tf
@@ -1,7 +1,7 @@
terraform {
required_providers {
binarylane = {
- source = "git.unkin.net/unkin/binarylane"
+ source = "IUCLabs/binarylane"
}
}
}
diff --git a/examples/provider/provider.tf b/examples/provider/provider.tf
index 3e256ae..5762875 100644
--- a/examples/provider/provider.tf
+++ b/examples/provider/provider.tf
@@ -1,7 +1,7 @@
terraform {
required_providers {
binarylane = {
- source = "git.unkin.net/unkin/binarylane"
+ source = "IUCLabs/binarylane"
}
}
}
diff --git a/examples/ssh/main.tf b/examples/ssh/main.tf
index 7ecd363..f807e11 100644
--- a/examples/ssh/main.tf
+++ b/examples/ssh/main.tf
@@ -1,7 +1,7 @@
terraform {
required_providers {
binarylane = {
- source = "git.unkin.net/unkin/binarylane"
+ source = "IUCLabs/binarylane"
}
}
}
diff --git a/examples/vpc/main.tf b/examples/vpc/main.tf
index 9aac7ba..e19e146 100644
--- a/examples/vpc/main.tf
+++ b/examples/vpc/main.tf
@@ -1,7 +1,7 @@
terraform {
required_providers {
binarylane = {
- source = "git.unkin.net/unkin/binarylane"
+ source = "IUCLabs/binarylane"
}
}
}
diff --git a/main.go b/main.go
index 8b3cd17..b5da0e4 100644
--- a/main.go
+++ b/main.go
@@ -26,7 +26,7 @@ func main() {
flag.Parse()
opts := providerserver.ServeOpts{
- Address: "git.unkin.net/unkin/binarylane",
+ Address: "registry.terraform.io/iuclabs/binarylane",
Debug: debug,
}