Skip to content

Commit aebf37b

Browse files
authored
Update automation-naming-module.md
script updates
1 parent ad1c738 commit aebf37b

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

articles/virtual-machines/workloads/sap/automation-naming-module.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ module "sap_namegenerator" {
8181
db_server_count = var.database_server_count
8282
app_server_count = try(local.application.application_server_count, 0)
8383
web_server_count = try(local.application.webdispatcher_count, 0)
84-
scs_server_count = local.application.scs_high_availability ? 2 * local.application.scs_server_count : local.application.scs_server_count app_zones = local.app_zones
84+
scs_server_count = local.application.scs_high_availability ? 2 * local.application.scs_server_count : local.application.scs_server_count
85+
app_zones = local.app_zones
8586
scs_zones = local.scs_zones
8687
web_zones = local.web_zones
8788
db_zones = local.db_zones
@@ -98,13 +99,15 @@ Next, you need to point your other Terraform module files to your custom naming
9899
- `deploy\terraform\run\sap_library\module.tf`
99100
- `deploy\terraform\run\sap_deployer\module.tf`
100101

101-
For each file, change the source for the module `sap_namegenerator` to point to your new naming module's location. For example `module "sap_namegenerator" { source = "../../terraform-units/modules/sap_namegenerator"` becomes `module "sap_namegenerator" { source = "../../../../Contoso_naming"`.
102+
For each file, change the source for the module `sap_namegenerator` to point to your new naming module's location. For example:
103+
104+
`module "sap_namegenerator" { source = "../../terraform-units/modules/sap_namegenerator"` becomes `module "sap_namegenerator" { source = "../../../../Contoso_naming"`.
102105

103106
## Change resource group naming logic
104107

105108
To change your resource group's naming logic, navigate to your custom naming module folder (for example, `Workspaces\Contoso_naming`). Then, edit the file `resourcegroup.tf`. Modify the following code with your own naming logic.
106109

107-
```json
110+
```terraform
108111
locals {
109112
110113
// Resource group naming
@@ -135,7 +138,7 @@ To change your resource suffixes, navigate to your custom naming module folder (
135138
> Only change the map **values**. Don't change the map **key**, which the Terraform code uses.
136139
> For example, if you want to rename the administrator network interface component, change `"admin-nic" = "-admin-nic"` to `"admin-nic" = "yourNICname"`.
137140
138-
```json
141+
```terraform
139142
variable resource_suffixes {
140143
type = map(string)
141144
description = "Extension of resource name"

0 commit comments

Comments
 (0)