Skip to content

Commit

Permalink
onr pd db
Browse files Browse the repository at this point in the history
onr pd db
  • Loading branch information
wullub authored and matt-heery committed Apr 5, 2024
1 parent 3a8c421 commit c2cc754
Showing 1 changed file with 27 additions and 15 deletions.
42 changes: 27 additions & 15 deletions terraform/environments/oasys/locals_production.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ locals {
"/oracle/database/PROASYS" = local.secretsmanager_secrets_oasys_db
"/oracle/database/TROASYS" = local.secretsmanager_secrets_oasys_db

# "/oracle/database/PDOASREP" = local.secretsmanager_secrets_db
"/oracle/database/PDOASREP" = local.secretsmanager_secrets_db
"/oracle/database/PDBIPINF" = local.secretsmanager_secrets_bip_db
# "/oracle/database/PDMISTRN" = local.secretsmanager_secrets_db
# "/oracle/database/PDONRSYS" = local.secretsmanager_secrets_db
# "/oracle/database/PDONRAUD" = local.secretsmanager_secrets_db
# "/oracle/database/PDONRBDS" = local.secretsmanager_secrets_db
"/oracle/database/PDMISTRN" = local.secretsmanager_secrets_db
"/oracle/database/PDONRSYS" = local.secretsmanager_secrets_db
"/oracle/database/PDONRAUD" = local.secretsmanager_secrets_db
"/oracle/database/PDONRBDS" = local.secretsmanager_secrets_db

"/oracle/database/TRBIPINF" = local.secretsmanager_secrets_bip_db

Expand Down Expand Up @@ -213,11 +213,11 @@ locals {
"Ec2ProdDatabasePolicy",
])
})
user_data_cloud_init = merge(module.baseline_presets.ec2_instance.user_data_cloud_init.ssm_agent_ansible_no_tags, {
args = merge(module.baseline_presets.ec2_instance.user_data_cloud_init.ssm_agent_ansible_no_tags.args, {
branch = "oasys-no-tns"
})
})
# user_data_cloud_init = merge(module.baseline_presets.ec2_instance.user_data_cloud_init.ssm_agent_ansible_no_tags, {
# args = merge(module.baseline_presets.ec2_instance.user_data_cloud_init.ssm_agent_ansible_no_tags.args, {
# branch = "oasys-no-tns"
# })
# })
tags = merge(local.database_a.tags, {
bip-db-name = "PDBIPINF"
oracle-sids = "PDBIPINF PDOASYS"
Expand All @@ -230,17 +230,29 @@ locals {
"Ec2ProdDatabasePolicy",
])
})
user_data_cloud_init = merge(module.baseline_presets.ec2_instance.user_data_cloud_init.ssm_agent_ansible_no_tags, {
args = merge(module.baseline_presets.ec2_instance.user_data_cloud_init.ssm_agent_ansible_no_tags.args, {
branch = "oasys-no-tns"
})
})
# user_data_cloud_init = merge(module.baseline_presets.ec2_instance.user_data_cloud_init.ssm_agent_ansible_no_tags, {
# args = merge(module.baseline_presets.ec2_instance.user_data_cloud_init.ssm_agent_ansible_no_tags.args, {
# branch = "oasys-no-tns"
# })
# })
tags = merge(local.database_b.tags, {
bip-db-name = "PDBIPINF"
oracle-sids = "PDBIPINF PDOASYS"
})
})

"pd-onr-db-a" = merge(local.database_onr_a, {
config = merge(local.database_onr_a.config, {
instance_profile_policies = concat(local.database_onr_a.config.instance_profile_policies, [
"Ec2ProdDatabasePolicy",
])
})
tags = merge(local.database_onr_a.tags, {
instance-scheduling = "skip-scheduling"
oracle-sids = "PDMISTRN PDONRBDS PDONRSYS PDONRAUD PDOASREP"
})
})


"ptctrn-${local.application_name}-db-a" = merge(local.database_a, {
config = merge(local.database_a.config, {
Expand Down

0 comments on commit c2cc754

Please sign in to comment.