Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
mihailradkov committed Nov 19, 2023
1 parent a118249 commit 8ca2edb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 3 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ module "bastion" {
tags = local.tags
}

# TODO: Could be toggleable
module "nat" {
source = "./modules/nat"

Expand All @@ -205,7 +206,8 @@ module "vm" {
location = var.location
resource_group_name = azurerm_resource_group.graphdb.name
resource_group_id = azurerm_resource_group.graphdb.id
zones = var.zones
# TODO: REVERT
zones = [1, 3]

graphdb_subnet_id = azurerm_subnet.graphdb-vmss.id
graphdb_subnet_cidr = one(azurerm_subnet.graphdb-vmss.address_prefixes)
Expand Down
6 changes: 1 addition & 5 deletions modules/vm/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ resource "azurerm_linux_virtual_machine_scale_set" "graphdb" {
zones = var.zones
zone_balance = true
upgrade_mode = "Manual"
overprovision = false

computer_name_prefix = "${var.resource_name_prefix}-"
admin_username = "graphdb"
Expand All @@ -83,11 +84,6 @@ resource "azurerm_linux_virtual_machine_scale_set" "graphdb" {
primary = true
subnet_id = var.graphdb_subnet_id
application_gateway_backend_address_pool_ids = var.application_gateway_backend_address_pool_ids

# TODO: Temporary for testing. Remove after configuring the LB
public_ip_address {
name = "first"
}
}
}

Expand Down

0 comments on commit 8ca2edb

Please sign in to comment.