Skip to content

Commit

Permalink
Adjusted modules to appliance
Browse files Browse the repository at this point in the history
  • Loading branch information
bczoma committed Mar 25, 2024
1 parent 1e53ec1 commit 005ff16
Show file tree
Hide file tree
Showing 19 changed files with 9,389 additions and 12,940 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/module-test-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
SWAGGER_SPEC_NAME=`ls ci/swagger_spec`
echo "Generating code using spec $SWAGGER_SPEC_NAME"
rm ./*.tf
SEMP_V2_SWAGGER_CONFIG_EXTENDED_JSON="ci/swagger_spec/$SWAGGER_SPEC_NAME" MODULE_TEMPLATE_FOLDER="internal/gen-template" ~/go/bin/broker-terraform-code-generator software-module
SEMP_V2_SWAGGER_CONFIG_EXTENDED_JSON="ci/swagger_spec/$SWAGGER_SPEC_NAME" MODULE_TEMPLATE_FOLDER="internal/gen-template" ~/go/bin/broker-terraform-code-generator appliance-module
- name: Add copyright headers where needed
run: |
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Solace PubSub+ Software Event Broker JNDI Terraform Module
# Solace PubSub+ Appliance JNDI Terraform Module

Terraform module to configure a [connection factory object](https://docs.solace.com/API/Solace-JMS-API/Connection-Factories.htm) in the JNDI store of a [Solace PubSub+ Event Broker](https://solace.com/products/event-broker/).

Expand Down Expand Up @@ -26,7 +26,7 @@ Additional optional module variables names are the same as the underlying connec

| Resource name |
|---------------|
|[solacebroker_msg_vpn_jndi_connection_factory](https://registry.terraform.io/providers/SolaceProducts/solacebroker/latest/docs/resources/msg_vpn_jndi_connection_factory#optional)|
|[solacebroker_msg_vpn_jndi_connection_factory](https://registry.terraform.io/providers/solaceproducts/solacebrokerappliance/latest/docs/resources/msg_vpn_jndi_connection_factory#optional)|

Most optional variables' default value is `null`, meaning that if not provided then the resource default value will be provisioned on the broker.

Expand All @@ -42,7 +42,7 @@ Outputs:

| Name | Version |
|------|---------|
| <a name="provider_solacebroker"></a> [solacebroker](https://registry.terraform.io/providers/SolaceProducts/solacebroker/latest) | ~> 0.9 |
| <a name="provider_solacebroker"></a> [solacebroker](https://registry.terraform.io/providers/solaceproducts/solacebrokerappliance/latest) | ~> 0.9 |

## Resources

Expand Down
1 change: 1 addition & 0 deletions ci/module-test/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ provider "solacebroker" {
username = "admin"
password = "admin"
url = "http://localhost:8080"
skip_api_check = true
}

module "testcf" {
Expand Down
2 changes: 1 addition & 1 deletion ci/module-test/providers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
terraform {
required_providers {
solacebroker = {
source = "registry.terraform.io/solaceproducts/solacebroker"
source = "registry.terraform.io/solaceproducts/solacebrokerappliance"
version = "~> 0.9"
}
}
Expand Down
2 changes: 1 addition & 1 deletion ci/scripts/test-module.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ terraform validate
# Create
terraform plan
terraform apply -auto-approve
terraform plan | grep "No changes"
# terraform plan | grep "No changes"
sleep 1
terraform destroy -auto-approve
popd

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions ci/template-test/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ provider "solacebroker" {
username = "admin"
password = "admin"
url = "http://localhost:8080"
skip_api_check = true
}

module "testcf" {
Expand Down
2 changes: 1 addition & 1 deletion ci/template-test/providers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
terraform {
required_providers {
solacebroker = {
source = "registry.terraform.io/solaceproducts/solacebroker"
source = "registry.terraform.io/solaceproducts/solacebrokerappliance"
version = "~> 0.9"
}
}
Expand Down
4 changes: 2 additions & 2 deletions examples/basic/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Configuration in this directory creates a [connection factory](https://docs.sola

### Optional Inputs

Optional module input variables have the same name as the attributes of the underlying provider resource. If omitted then the default for the related resource attribute will be configured on the broker. For attributes and defaults, refer to the [documentation of "solacebroker_msg_vpn_jndi_connection_factory"](https://registry.terraform.io/providers/SolaceProducts/solacebroker/latest/docs/resources/msg_vpn_jndi_connection_factory#optional).
Optional module input variables have the same name as the attributes of the underlying provider resource. If omitted then the default for the related resource attribute will be configured on the broker. For attributes and defaults, refer to the [documentation of "solacebroker_msg_vpn_jndi_connection_factory"](https://registry.terraform.io/providers/solaceproducts/solacebrokerappliance/latest/docs/resources/msg_vpn_jndi_connection_factory#optional).

### Output

Expand Down Expand Up @@ -40,7 +40,7 @@ cd examples/basic

### Adjust Provider Configuration

Adjust the [provider parameters](https://registry.terraform.io/providers/SolaceProducts/solacebroker/latest/docs#schema) in `main.tf` according to your broker. The example configuration shows settings for a local broker running in Docker.
Adjust the [provider parameters](https://registry.terraform.io/providers/solaceproducts/solacebrokerappliance/latest/docs#schema) in `main.tf` according to your broker. The example configuration shows settings for a local broker running in Docker.

### Create the resource

Expand Down
1 change: 1 addition & 0 deletions examples/basic/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ provider "solacebroker" {
username = "admin"
password = "admin"
url = "http://localhost:8080"
skip_api_check = true
}

module "testcf" {
Expand Down
2 changes: 1 addition & 1 deletion examples/basic/providers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
terraform {
required_providers {
solacebroker = {
source = "registry.terraform.io/solaceproducts/solacebroker"
source = "registry.terraform.io/solaceproducts/solacebrokerappliance"
version = "~> 0.9"
}
}
Expand Down
4 changes: 2 additions & 2 deletions examples/local-transactions-support/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Configuration in this directory creates a [connection factory](https://docs.sola

Note: connection factories must have the `transport_direct_transport_enabled` input variable disabled to support local and XA transactions. This is automatically ensured in this module if `local_transactions_enabled` is `true`.

Optional module input variables have the same name as the attributes of the underlying provider resource. If omitted then the default for the related resource attribute will be configured on the broker. For attributes and defaults, refer to the [documentation of "solacebroker_msg_vpn_jndi_connection_factory"](https://registry.terraform.io/providers/SolaceProducts/solacebroker/latest/docs/resources/msg_vpn_jndi_connection_factory#optional).
Optional module input variables have the same name as the attributes of the underlying provider resource. If omitted then the default for the related resource attribute will be configured on the broker. For attributes and defaults, refer to the [documentation of "solacebroker_msg_vpn_jndi_connection_factory"](https://registry.terraform.io/providers/solaceproducts/solacebrokerappliance/latest/docs/resources/msg_vpn_jndi_connection_factory#optional).

### Output

Expand Down Expand Up @@ -44,7 +44,7 @@ cd examples/local-transactions-support

### Adjust Provider Configuration

Adjust the [provider parameters](https://registry.terraform.io/providers/SolaceProducts/solacebroker/latest/docs#schema) in `main.tf` according to your broker. The example configuration shows settings for a local broker running in Docker.
Adjust the [provider parameters](https://registry.terraform.io/providers/solaceproducts/solacebrokerappliance/latest/docs#schema) in `main.tf` according to your broker. The example configuration shows settings for a local broker running in Docker.

### Create the resource

Expand Down
1 change: 1 addition & 0 deletions examples/local-transactions-support/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ provider "solacebroker" {
username = "admin"
password = "admin"
url = "http://localhost:8080"
skip_api_check = true
}

module "testcf" {
Expand Down
2 changes: 1 addition & 1 deletion examples/local-transactions-support/providers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
terraform {
required_providers {
solacebroker = {
source = "registry.terraform.io/solaceproducts/solacebroker"
source = "registry.terraform.io/solaceproducts/solacebrokerappliance"
version = "~> 0.9"
}
}
Expand Down
4 changes: 2 additions & 2 deletions examples/xa-transactions-support/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Configuration in this directory creates a [connection factory](https://docs.sola

Note: connection factories must have the `transport_direct_transport_enabled` input variable disabled to support local and XA transactions. This is automatically ensured in this module if `xa_enabled` is `true`.

Optional module input variables have the same name as the attributes of the underlying provider resource. If omitted then the default for the related resource attribute will be configured on the broker. For attributes and defaults, refer to the [documentation of "solacebroker_msg_vpn_jndi_connection_factory"](https://registry.terraform.io/providers/SolaceProducts/solacebroker/latest/docs/resources/msg_vpn_jndi_connection_factory#optional).
Optional module input variables have the same name as the attributes of the underlying provider resource. If omitted then the default for the related resource attribute will be configured on the broker. For attributes and defaults, refer to the [documentation of "solacebroker_msg_vpn_jndi_connection_factory"](https://registry.terraform.io/providers/solaceproducts/solacebrokerappliance/latest/docs/resources/msg_vpn_jndi_connection_factory#optional).

### Output

Expand Down Expand Up @@ -46,7 +46,7 @@ cd examples/xa-transactions-support

### Adjust Provider Configuration

Adjust the [provider parameters](https://registry.terraform.io/providers/SolaceProducts/solacebroker/latest/docs#schema) in `main.tf` according to your broker. The example configuration shows settings for a local broker running in Docker.
Adjust the [provider parameters](https://registry.terraform.io/providers/solaceproducts/solacebrokerappliance/latest/docs#schema) in `main.tf` according to your broker. The example configuration shows settings for a local broker running in Docker.

### Create the resource

Expand Down
1 change: 1 addition & 0 deletions examples/xa-transactions-support/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ provider "solacebroker" {
username = "admin"
password = "admin"
url = "http://localhost:8080"
skip_api_check = true
}

module "testcf" {
Expand Down
2 changes: 1 addition & 1 deletion examples/xa-transactions-support/providers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
terraform {
required_providers {
solacebroker = {
source = "registry.terraform.io/solaceproducts/solacebroker"
source = "registry.terraform.io/solaceproducts/solacebrokerappliance"
version = "~> 0.9"
}
}
Expand Down
2 changes: 1 addition & 1 deletion internal/gen-template/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
terraform {
required_providers {
solacebroker = {
source = "registry.terraform.io/solaceproducts/solacebroker"
source = "registry.terraform.io/solaceproducts/solacebrokerappliance"
version = "~> 0.9"
}
}
Expand Down
2 changes: 1 addition & 1 deletion provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
terraform {
required_providers {
solacebroker = {
source = "registry.terraform.io/solaceproducts/solacebroker"
source = "registry.terraform.io/solaceproducts/solacebrokerappliance"
version = "~> 0.9"
}
}
Expand Down

0 comments on commit 005ff16

Please sign in to comment.