Skip to content

Commit

Permalink
DSOS-2091: update weblogic deployments in T3 and preprod (#3109)
Browse files Browse the repository at this point in the history
* t3 weblogic-b test

* DSOS-2091: add preprod config
  • Loading branch information
drobinson-moj authored Aug 16, 2023
1 parent 2a0c7a6 commit 0620f30
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
6 changes: 6 additions & 0 deletions terraform/environments/nomis/locals_preproduction.tf
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,18 @@ locals {

# green deployment
preprod-nomis-web-b = merge(local.weblogic_ec2_b, {
instance = merge(local.weblogic_ec2_b.instance, {
instance_type = "t2.xlarge"
})
tags = merge(local.weblogic_ec2_b.tags, {
nomis-environment = "preprod"
oracle-db-hostname-a = "ppnomis-a.preproduction.nomis.service.justice.gov.uk"
oracle-db-hostname-b = "ppnomis-b.preproduction.nomis.service.justice.gov.uk"
oracle-db-name = "PPCNOM"
})
autoscaling_group = merge(local.weblogic_ec2_b.autoscaling_group, {
desired_capacity = 2
})
})
}

Expand Down
5 changes: 4 additions & 1 deletion terraform/environments/nomis/locals_test.tf
Original file line number Diff line number Diff line change
Expand Up @@ -164,14 +164,17 @@ locals {

# green deployment
t3-nomis-web-b = merge(local.weblogic_ec2_b, {
instance = merge(local.weblogic_ec2_b.instance, {
instance_type = "t2.xlarge"
})
tags = merge(local.weblogic_ec2_b.tags, {
nomis-environment = "t3"
oracle-db-hostname-a = "t3nomis-a.test.nomis.service.justice.gov.uk"
oracle-db-hostname-b = "t3nomis-b.test.nomis.service.justice.gov.uk"
oracle-db-name = "T3CNOM"
})
autoscaling_group = merge(local.weblogic_ec2_b.autoscaling_group, {
desired_capacity = 0
desired_capacity = 1
})
})

Expand Down
2 changes: 1 addition & 1 deletion terraform/environments/nomis/locals_weblogic.tf
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ locals {
})
user_data_cloud_init = merge(local.weblogic_ec2_default.user_data_cloud_init, {
args = merge(local.weblogic_ec2_default.user_data_cloud_init.args, {
branch = "main"
branch = "f855376d147bf6d0f2e035150585cd7de50f6d67" # 2023-08-15 weblogic deployments
})
})
# autoscaling_group = merge(local.weblogic_ec2_default.autoscaling_group, {})
Expand Down

0 comments on commit 0620f30

Please sign in to comment.