Commit f0147a53 authored by Jason Tevnan's avatar Jason Tevnan

Merge branch 'jt/add-production-db' into 'master'

each disk needs its own lun number... :doh:

See merge request !112
parents 98a2987c 33f8bc5c
......@@ -198,7 +198,7 @@ resource "azurerm_virtual_machine" "postgres" {
managed_disk_id = "${azurerm_managed_disk.postgres-datadisk-1.*.id[count.index]}"
disk_size_gb = "${azurerm_managed_disk.postgres-datadisk-1.*.disk_size_gb[count.index]}"
create_option = "Attach"
lun = 0
lun = 1
caching = "ReadWrite"
}
......@@ -207,7 +207,7 @@ resource "azurerm_virtual_machine" "postgres" {
managed_disk_id = "${azurerm_managed_disk.postgres-datadisk-2.*.id[count.index]}"
disk_size_gb = "${azurerm_managed_disk.postgres-datadisk-2.*.disk_size_gb[count.index]}"
create_option = "Attach"
lun = 0
lun = 2
caching = "ReadWrite"
}
......@@ -216,7 +216,7 @@ resource "azurerm_virtual_machine" "postgres" {
managed_disk_id = "${azurerm_managed_disk.postgres-datadisk-3.*.id[count.index]}"
disk_size_gb = "${azurerm_managed_disk.postgres-datadisk-3.*.disk_size_gb[count.index]}"
create_option = "Attach"
lun = 0
lun = 3
caching = "ReadWrite"
}
......@@ -225,7 +225,7 @@ resource "azurerm_virtual_machine" "postgres" {
managed_disk_id = "${azurerm_managed_disk.postgres-datadisk-4.*.id[count.index]}"
disk_size_gb = "${azurerm_managed_disk.postgres-datadisk-4.*.disk_size_gb[count.index]}"
create_option = "Attach"
lun = 0
lun = 4
caching = "ReadWrite"
}
......@@ -234,7 +234,7 @@ resource "azurerm_virtual_machine" "postgres" {
managed_disk_id = "${azurerm_managed_disk.postgres-datadisk-5.*.id[count.index]}"
disk_size_gb = "${azurerm_managed_disk.postgres-datadisk-5.*.disk_size_gb[count.index]}"
create_option = "Attach"
lun = 0
lun = 5
caching = "ReadWrite"
}
......@@ -243,7 +243,7 @@ resource "azurerm_virtual_machine" "postgres" {
managed_disk_id = "${azurerm_managed_disk.postgres-datadisk-6.*.id[count.index]}"
disk_size_gb = "${azurerm_managed_disk.postgres-datadisk-6.*.disk_size_gb[count.index]}"
create_option = "Attach"
lun = 0
lun = 6
caching = "ReadWrite"
}
......@@ -252,7 +252,7 @@ resource "azurerm_virtual_machine" "postgres" {
managed_disk_id = "${azurerm_managed_disk.postgres-datadisk-7.*.id[count.index]}"
disk_size_gb = "${azurerm_managed_disk.postgres-datadisk-7.*.disk_size_gb[count.index]}"
create_option = "Attach"
lun = 0
lun = 7
caching = "ReadWrite"
}
......@@ -261,7 +261,7 @@ resource "azurerm_virtual_machine" "postgres" {
managed_disk_id = "${azurerm_managed_disk.postgres-datadisk-8.*.id[count.index]}"
disk_size_gb = "${azurerm_managed_disk.postgres-datadisk-8.*.disk_size_gb[count.index]}"
create_option = "Attach"
lun = 0
lun = 8
caching = "ReadWrite"
}
......@@ -270,7 +270,7 @@ resource "azurerm_virtual_machine" "postgres" {
managed_disk_id = "${azurerm_managed_disk.postgres-datadisk-9.*.id[count.index]}"
disk_size_gb = "${azurerm_managed_disk.postgres-datadisk-9.*.disk_size_gb[count.index]}"
create_option = "Attach"
lun = 0
lun = 9
caching = "ReadWrite"
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment