Skip to content

Commit d1e1dcf

Browse files
authored
fix: Implement standard solution in preparation for deployable architecture. This is an incubating module and hence no clean upgrade path supported from the previous version (#49)
1 parent 972a088 commit d1e1dcf

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+743
-254
lines changed

.catalog-onboard-pipeline.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
apiVersion: v1
3+
offerings:
4+
- name: deploy-arch-ibm-mq-cloud
5+
kind: solution
6+
catalog_id: 7df1e4ca-d54c-4fd0-82ce-3d13247308cd
7+
offering_id: 30a698d4-ab56-4668-bc01-03cd2135d7e4
8+
variations:
9+
- name: standard
10+
mark_ready: true
11+
install_type: fullstack
12+
scc:
13+
instance_id: 1c7d5f78-9262-44c3-b779-b28fe4d88c37
14+
region: us-south

.github/settings.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ repository:
2525
description: "Provisions and configures IBM Cloud MQ on Cloud."
2626

2727
# Use a comma-separated list of topics to set on the repo (ensure not to use any caps in the topic string).
28-
topics: terraform, ibm-cloud, terraform-module, mq, core-team, supported
28+
topics: terraform, ibm-cloud, terraform-module, mq, core-team, supported, deployable-architecture

.releaserc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
}],
1111
["@semantic-release/exec", {
1212
"successCmd": "echo \"SEMVER_VERSION=${nextRelease.version}\" >> $GITHUB_ENV"
13+
}],
14+
["@semantic-release/exec",{
15+
"publishCmd": "./ci/trigger-catalog-onboarding-pipeline.sh --version=v${nextRelease.version}"
1316
}]
1417
]
1518
}

README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ are incomplete, may not be in final form and may generate unpredicatable failure
4545
* [Examples](./examples)
4646
* [Advanced example](./examples/advanced)
4747
* [Basic example](./examples/basic)
48-
* [Demo example](./examples/demo)
4948
* [Contributing](#contributing)
5049
<!-- END OVERVIEW HOOK -->
5150

@@ -79,7 +78,7 @@ module "mq_on_cloud" {
7978
8079
name = "${var.prefix}-mq-instance"
8180
region = "us-east"
82-
existing_mq_capacity_guid = "11111111-1111-1111-1111-111111111111"
81+
existing_mq_capacity_crn = "crn:<...>" # MQ on Cloud capacity instance crn
8382
8483
queue_manager_display_name = "queue-manager"
8584
queue_manager_name = "qm"
@@ -171,7 +170,7 @@ No resources.
171170
| Name | Description | Type | Default | Required |
172171
|------|-------------|------|---------|:--------:|
173172
| <a name="input_applications"></a> [applications](#input\_applications) | A map of IBM MQ on Cloud applications to be created. | <pre>map(object({<br> name = string<br> }))</pre> | `{}` | no |
174-
| <a name="input_existing_mq_capacity_guid"></a> [existing\_mq\_capacity\_guid](#input\_existing\_mq\_capacity\_guid) | The GUID of an existing capacity service instance, if not specifed, a new capacity plan will be created | `string` | `null` | no |
173+
| <a name="input_existing_mq_capacity_crn"></a> [existing\_mq\_capacity\_crn](#input\_existing\_mq\_capacity\_crn) | The CRN of an existing capacity service instance, if not specifed, a new capacity plan will be created | `string` | `null` | no |
175174
| <a name="input_keystore_certificates"></a> [keystore\_certificates](#input\_keystore\_certificates) | A map of IBM MQ on Cloud keystore certificates to be created. | <pre>map(object({<br> certificate = string<br> label = string<br> }))</pre> | `{}` | no |
176175
| <a name="input_name"></a> [name](#input\_name) | The name to give the MQ on Cloud instance. | `string` | n/a | yes |
177176
| <a name="input_queue_manager_display_name"></a> [queue\_manager\_display\_name](#input\_queue\_manager\_display\_name) | A displayable name for the queue manager. | `string` | n/a | yes |
@@ -189,10 +188,12 @@ No resources.
189188

190189
| Name | Description |
191190
|------|-------------|
192-
| <a name="output_queue_manager_id"></a> [queue\_manager\_id](#output\_queue\_manager\_id) | Description of my output |
193-
| <a name="output_queue_manager_options"></a> [queue\_manager\_options](#output\_queue\_manager\_options) | Queue manager options for the MQ on Cloud deployment |
194-
| <a name="output_service_instance_capacity_guid"></a> [service\_instance\_capacity\_guid](#output\_service\_instance\_capacity\_guid) | Description of my output |
195-
| <a name="output_service_instance_deployment_guid"></a> [service\_instance\_deployment\_guid](#output\_service\_instance\_deployment\_guid) | Description of my output |
191+
| <a name="output_queue_manager_id"></a> [queue\_manager\_id](#output\_queue\_manager\_id) | The ID of the MQ on Cloud queue manager |
192+
| <a name="output_queue_manager_options"></a> [queue\_manager\_options](#output\_queue\_manager\_options) | Queue manager options for the MQ on Cloud deployment service instance |
193+
| <a name="output_service_instance_capacity_crn"></a> [service\_instance\_capacity\_crn](#output\_service\_instance\_capacity\_crn) | The CRN of the MQ on Cloud capacity service instance |
194+
| <a name="output_service_instance_capacity_guid"></a> [service\_instance\_capacity\_guid](#output\_service\_instance\_capacity\_guid) | The GUID of the MQ on Cloud capacity service instance |
195+
| <a name="output_service_instance_deployment_crn"></a> [service\_instance\_deployment\_crn](#output\_service\_instance\_deployment\_crn) | The CRN of the MQ on Cloud deployment service instance |
196+
| <a name="output_service_instance_deployment_guid"></a> [service\_instance\_deployment\_guid](#output\_service\_instance\_deployment\_guid) | The GUID of the MQ on Cloud deployment service instance |
196197
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
197198

198199
<!-- Leave this section as is so that your module has a link to local development environment set-up steps for contributors to follow -->

cra-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ CRA_TARGETS:
77
# SCC_INSTANCE_ID: "" # The SCC instance ID to use to download profile for CRA scan. If not provided, a default global value will be used.
88
# SCC_REGION: "" # The IBM Cloud region that the SCC instance is in. If not provided, a default global value will be used.
99
CRA_ENVIRONMENT_VARIABLES: # An optional map of environment variables for CRA, where the key is the variable name and value is the value. Useful for providing TF_VARs.
10-
TF_VAR_existing_mq_capacity_guid: "9d9a3c00-2097-4da4-a5e4-78e06514b342"
10+
TF_VAR_existing_mq_capacity_crn: "crn:v1:bluemix:public:mqcloud:us-east:a/abac0df06b644a9cabc6e44f55b3880e:9d9a3c00-2097-4da4-a5e4-78e06514b342::"

examples/advanced/main.tf

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ module "mq_on_cloud" {
2424
source = "../.."
2525
resource_group_id = module.resource_group.resource_group_id
2626

27-
name = "${var.prefix}-mq-instance"
28-
region = var.region
29-
tags = var.resource_tags
30-
existing_mq_capacity_guid = var.existing_mq_capacity_guid
27+
name = "${var.prefix}-mq-instance"
28+
region = var.region
29+
tags = var.resource_tags
30+
existing_mq_capacity_crn = var.existing_mq_capacity_crn
3131

3232
queue_manager_display_name = "${var.prefix}-qm-display"
3333
queue_manager_name = "${local.prefix}_qm"
@@ -51,32 +51,32 @@ module "mq_on_cloud" {
5151
}
5252

5353
module "application" {
54-
service_instance_guid = module.mq_on_cloud.service_instance_deployment_guid
55-
source = "../../modules/application"
56-
name = "app-ext"
54+
service_instance_crn = module.mq_on_cloud.service_instance_deployment_crn
55+
source = "../../modules/application"
56+
name = "app-ext"
5757
}
5858

5959
module "user" {
60-
service_instance_guid = module.mq_on_cloud.service_instance_deployment_guid
61-
source = "../../modules/user"
62-
name = "another-user"
63-
email = "another@example.com"
60+
service_instance_crn = module.mq_on_cloud.service_instance_deployment_crn
61+
source = "../../modules/user"
62+
name = "another-user"
63+
email = "another@example.com"
6464
}
6565

6666
module "keystore" {
67-
count = var.keystore_certificate == null ? 0 : 1
68-
service_instance_guid = module.mq_on_cloud.service_instance_deployment_guid
69-
queue_manager_id = module.mq_on_cloud.queue_manager_id
70-
source = "../../modules/keystore-certificate"
71-
certificate = var.keystore_certificate
72-
label = "ks_extension"
67+
count = var.keystore_certificate == null ? 0 : 1
68+
service_instance_crn = module.mq_on_cloud.service_instance_deployment_crn
69+
queue_manager_id = module.mq_on_cloud.queue_manager_id
70+
source = "../../modules/keystore-certificate"
71+
certificate = var.keystore_certificate
72+
label = "ks_extension"
7373
}
7474

7575
module "truststore" {
76-
count = var.truststore_certificate == null ? 0 : 1
77-
service_instance_guid = module.mq_on_cloud.service_instance_deployment_guid
78-
queue_manager_id = module.mq_on_cloud.queue_manager_id
79-
source = "../../modules/truststore-certificate"
80-
certificate = var.truststore_certificate
81-
label = "ts_extension"
76+
count = var.truststore_certificate == null ? 0 : 1
77+
service_instance_crn = module.mq_on_cloud.service_instance_deployment_crn
78+
queue_manager_id = module.mq_on_cloud.queue_manager_id
79+
source = "../../modules/truststore-certificate"
80+
certificate = var.truststore_certificate
81+
label = "ts_extension"
8282
}

examples/advanced/variables.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ variable "resource_tags" {
3232
default = []
3333
}
3434

35-
variable "existing_mq_capacity_guid" {
35+
variable "existing_mq_capacity_crn" {
3636
type = string
37-
description = "The GUID of an existing capacity service instance, if not specifed, a new capacity plan will be created"
37+
description = "The CRN of an existing capacity service instance, if not specifed, a new capacity plan will be created"
3838
}
3939

4040
variable "keystore_certificate" {

examples/basic/main.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ module "mq_on_cloud" {
2424
source = "../.."
2525
resource_group_id = module.resource_group.resource_group_id
2626

27-
name = "${var.prefix}-mq-instance"
28-
region = var.region
29-
tags = var.resource_tags
30-
existing_mq_capacity_guid = var.existing_mq_capacity_guid
27+
name = "${var.prefix}-mq-instance"
28+
region = var.region
29+
tags = var.resource_tags
30+
existing_mq_capacity_crn = var.existing_mq_capacity_crn
3131

3232
queue_manager_display_name = "${var.prefix}-qm-display"
3333
queue_manager_name = "${local.prefix}_qm"

examples/basic/variables.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ variable "resource_tags" {
3232
default = []
3333
}
3434

35-
variable "existing_mq_capacity_guid" {
35+
variable "existing_mq_capacity_crn" {
3636
type = string
37-
description = "The GUID of an existing capacity service instance, if not specifed, a new capacity plan will be created"
37+
description = "The CRN of an existing capacity service instance, if not specifed, a new capacity plan will be created"
3838
}
3939

4040
variable "keystore_certificate" {

examples/demo/README.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)