Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 2.3.0 #28

Merged
merged 11 commits into from
Dec 6, 2024
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,21 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## 2.3.0 (December 06, 2024)

FEATURES:

* Add custom headers to _RabbitMQ_ Api - @Dbzman
([#27](https://github.com/rfd59/terraform-provider-rabbitmq/pull/27))

BUILD / DEV:

* Upgrade to Golang 1.23 - @rfavreau

* Update dependencies - @rfavreau
([#23](https://github.com/rfd59/terraform-provider-rabbitmq/pull/23), [#25](https://github.com/rfd59/terraform-provider-rabbitmq/pull/25), [#26](https://github.com/rfd59/terraform-provider-rabbitmq/pull/26))


## 2.2.0 (September 29, 2024)

FIX:
Expand Down
10 changes: 8 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@ TOOLS_BIN?=${PWD}/tools/bin

default: build

build:
download:
go mod download

build: download
go build

install:
go install

test: build
Expand All @@ -26,4 +32,4 @@ vet:
exit 1; \
fi

.PHONY: build test testacc vet
.PHONY: download build install test testacc vet
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ terraform {
required_providers {
rabbitmq = {
source = "rfd59/rabbitmq"
version = "2.1.0"
version = "2.3.0"
}
}
}

# 2. Configure the RabbitMQ Provider
provider "rabbi" {
provider "rabbitmq" {
# The RabbitMQ management plugin must be enabled on the server, to use this provider.
# You can enable the plugin by doing something similar to `$ sudo rabbitmq-plugins enable rabbitmq_management`
# https://www.rabbitmq.com/docs/management
Expand All @@ -54,7 +54,7 @@ resource "rabbitmq_vhost" "example" {
### Requirements

- [Terraform](https://www.terraform.io/downloads.html) 1.0.x
- [Go](https://golang.org/doc/install) 1.21
- [Go](https://golang.org/doc/install) 1.23
- [Docker Engine](https://docs.docker.com/engine/install) >= 27.2.x
- [Docker Compose plugin](https://docs.docker.com/compose/install/#scenario-two-install-the-compose-plugin) >= 2.29.x

Expand Down
5 changes: 5 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ provider "rabbitmq" {
endpoint = "http://127.0.0.1:15672"
username = "guest"
password = "guest"

headers = {
"X-Custom-Header" = "CustomValue"
}
}

# Create a virtual host
Expand Down Expand Up @@ -48,5 +52,6 @@ $ sudo rabbitmq-plugins enable rabbitmq_management
- `cacert_file` (String) The path to a custom CA / intermediate certificate. This can also be sourced from the `RABBITMQ_CACERT` Environment Variable.
- `clientcert_file` (String) The path to the X.509 client certificate. This can also be sourced from the `RABBITMQ_CLIENTCERT` Environment Variable.
- `clientkey_file` (String) The path to the private key. This can also be sourced from the `RABBITMQ_CLIENTKEY` Environment Variable.
- `headers` (Map of String) Custom headers to include in HTTP requests. This should be a map of header names to values.
- `insecure` (Boolean) Trust self-signed certificates. This can also be sourced from the `RABBITMQ_INSECURE` Environment Variable.
- `proxy` (String) The URL of a proxy through which to send HTTP requests to the RabbitMQ server. This can also be sourced from the `RABBITMQ_PROXY` Environment Variable. If not set, the default `HTTP_PROXY`/`HTTPS_PROXY` will be used instead.
45 changes: 24 additions & 21 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
module github.com/rfd59/terraform-provider-rabbitmq

require (
github.com/hashicorp/terraform-plugin-docs v0.19.2
github.com/hashicorp/terraform-plugin-sdk/v2 v2.34.0
github.com/hashicorp/terraform-plugin-docs v0.20.1
github.com/hashicorp/terraform-plugin-sdk/v2 v2.35.0
github.com/michaelklishin/rabbit-hole/v2 v2.16.0
golang.org/x/mod v0.17.0
golang.org/x/mod v0.22.0
)

replace github.com/michaelklishin/rabbit-hole/v2 => github.com/rfavreau/rabbit-hole/v2 v2.16.1
Expand All @@ -20,7 +20,7 @@ require (
github.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect
github.com/armon/go-radix v1.0.0 // indirect
github.com/bgentry/speakeasy v0.1.0 // indirect
github.com/bmatcuk/doublestar/v4 v4.6.1 // indirect
github.com/bmatcuk/doublestar/v4 v4.7.1 // indirect
github.com/cloudflare/circl v1.3.8 // indirect
github.com/fatih/color v1.17.0 // indirect
github.com/golang/protobuf v1.5.4 // indirect
Expand All @@ -33,15 +33,16 @@ require (
github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320 // indirect
github.com/hashicorp/go-hclog v1.6.3 // indirect
github.com/hashicorp/go-multierror v1.1.1 // indirect
github.com/hashicorp/go-plugin v1.6.1 // indirect
github.com/hashicorp/go-plugin v1.6.2 // indirect
github.com/hashicorp/go-retryablehttp v0.7.7 // indirect
github.com/hashicorp/go-uuid v1.0.3 // indirect
github.com/hashicorp/go-version v1.7.0 // indirect
github.com/hashicorp/hc-install v0.7.0 // indirect
github.com/hashicorp/hcl/v2 v2.20.1 // indirect
github.com/hashicorp/hc-install v0.9.0 // indirect
github.com/hashicorp/hcl/v2 v2.22.0 // indirect
github.com/hashicorp/logutils v1.0.0 // indirect
github.com/hashicorp/terraform-exec v0.21.0 // indirect
github.com/hashicorp/terraform-json v0.22.1 // indirect
github.com/hashicorp/terraform-plugin-go v0.23.0 // indirect
github.com/hashicorp/terraform-json v0.23.0 // indirect
github.com/hashicorp/terraform-plugin-go v0.25.0 // indirect
github.com/hashicorp/terraform-plugin-log v0.9.0 // indirect
github.com/hashicorp/terraform-registry-address v0.2.3 // indirect
github.com/hashicorp/terraform-svchost v0.1.1 // indirect
Expand All @@ -63,23 +64,25 @@ require (
github.com/vmihailenco/msgpack v4.0.4+incompatible // indirect
github.com/vmihailenco/msgpack/v5 v5.4.1 // indirect
github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect
github.com/yuin/goldmark v1.7.1 // indirect
github.com/yuin/goldmark v1.7.7 // indirect
github.com/yuin/goldmark-meta v1.1.0 // indirect
github.com/zclconf/go-cty v1.14.4 // indirect
github.com/zclconf/go-cty v1.15.0 // indirect
go.abhg.dev/goldmark/frontmatter v0.2.0 // indirect
golang.org/x/crypto v0.23.0 // indirect
golang.org/x/crypto v0.28.0 // indirect
golang.org/x/exp v0.0.0-20230626212559-97b1e661b5df // indirect
golang.org/x/net v0.25.0 // indirect
golang.org/x/sync v0.7.0 // indirect
golang.org/x/sys v0.20.0 // indirect
golang.org/x/text v0.15.0 // indirect
golang.org/x/tools v0.21.0 // indirect
golang.org/x/net v0.28.0 // indirect
golang.org/x/sync v0.9.0 // indirect
golang.org/x/sys v0.26.0 // indirect
golang.org/x/text v0.20.0 // indirect
golang.org/x/tools v0.22.0 // indirect
google.golang.org/appengine v1.6.8 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240521202816-d264139d666e // indirect
google.golang.org/grpc v1.64.0 // indirect
google.golang.org/protobuf v1.34.1 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240814211410-ddb44dafa142 // indirect
google.golang.org/grpc v1.67.1 // indirect
google.golang.org/protobuf v1.35.1 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)

go 1.21
go 1.23

toolchain go1.23.4
Loading
Loading