Skip to content

Releases: disc/terraform-provider-pritunl

v0.7.0

07 Jan 12:47
d76a9a2

Choose a tag to compare

Add geo_sort option for server resource (#103)

* Add geo_sort option for server resource

Adds support for the geo_sort server setting which enables geographic-based
host selection for replicated servers. When enabled, clients will connect
to the closest host based on GeoIP lookup.

Closes #102

* Update test Docker image and fix default route handling

- Update test Docker image to 1.32.4469.94 (supports geo_sort)
- Delete new default DNS route (8.8.8.8/32) added in newer Pritunl versions
- Add geo_sort tests (geo_sort=true skipped - requires enterprise license)

* Fix geo_sort not being set on server creation and enable test

The geo_sort field was missing from CreateServer() in client.go,
causing the value to never be sent to the API. Added the missing
field handling and removed the test skip now that it passes.

* Improve CI reliability with proper API polling

- Remove fixed sleeps in favor of polling
- Use wait-for-it with 60s timeout for MongoDB and web server
- Poll /state endpoint until API is ready after setting credentials

* Add workflow_dispatch for manual test runs

* Fix MongoDB readiness check to run inside container

* Remove workflow_dispatch from CI workflow

* Remove CLAUDE.md

* Refactor CI wait loops into reusable scripts

* Restore error handling for route deletion

* Fix error message for route deletion

v0.6.2

09 Nov 15:23
712da0b

Choose a tag to compare

Prevent unnecessary route recreation when reordering (#99)

* fix: prevent unnecessary route recreation when reordering
* fix: fixes route matching in READ operation to prevent false diffs

v0.6.1

29 Sep 05:02
cabfb7b

Choose a tag to compare

Bump github.com/hashicorp/terraform-plugin-sdk/v2 from 2.38.0 to 2.38…

v0.6.0

23 Sep 16:31
e71dca4

Choose a tag to compare

Bump github.com/hashicorp/terraform-plugin-sdk/v2 from 2.37.0 to 2.38…

v0.5.0

25 Mar 12:52
c53697a

Choose a tag to compare

Bump golang.org/x/net from 0.34.0 to 0.36.0 in the go_modules group (…

v0.4.0

08 Feb 18:45
febb2a1

Choose a tag to compare

Bump github.com/hashicorp/terraform-plugin-sdk/v2 from 2.7.0 to 2.36.…

v0.3.1

30 Aug 07:55
88d5538

Choose a tag to compare

Support creating and updating users with a PIN (#65)

* Replace User.Pin field with a Pin struct that allows setting a PIN value when creating or updating users

* Update User acceptance test to check the pin attribute

* Add new User test case

* Add separate example for a user with pin

* Ignore User.Pin.IsSet when setting an updated user PIN

* Pointer receiver in MarshalJSON function

v0.3.0

29 Aug 18:31
88d5538

Choose a tag to compare

Support creating and updating users with a PIN (#65)

* Replace User.Pin field with a Pin struct that allows setting a PIN value when creating or updating users

* Update User acceptance test to check the pin attribute

* Add new User test case

* Add separate example for a user with pin

* Ignore User.Pin.IsSet when setting an updated user PIN

* Pointer receiver in MarshalJSON function

v0.2.1

29 Aug 16:46
88d5538

Choose a tag to compare

Support creating and updating users with a PIN (#65)

* Replace User.Pin field with a Pin struct that allows setting a PIN value when creating or updating users

* Update User acceptance test to check the pin attribute

* Add new User test case

* Add separate example for a user with pin

* Ignore User.Pin.IsSet when setting an updated user PIN

* Pointer receiver in MarshalJSON function

v0.2.0

22 Jul 15:12
d2871ff

Choose a tag to compare

Updated documentation for new and exist resources (#64)