Changeset View
Changeset View
Standalone View
Standalone View
azure/terraform/admin.tf
Show First 20 Lines • Show All 147 Lines • ▼ Show 20 Lines | resource "azurerm_virtual_machine" "backup-server" { | ||||
# Copy the initial configuration script | # Copy the initial configuration script | ||||
provisioner "file" { | provisioner "file" { | ||||
content = templatefile("templates/firstboot.sh.tpl", { | content = templatefile("templates/firstboot.sh.tpl", { | ||||
hostname = each.key | hostname = each.key | ||||
fqdn = format("%s.euwest.azure.internal.softwareheritage.org", each.key), | fqdn = format("%s.euwest.azure.internal.softwareheritage.org", each.key), | ||||
ip_address = azurerm_network_interface.backup-interface[each.key].private_ip_address, | ip_address = azurerm_network_interface.backup-interface[each.key].private_ip_address, | ||||
facter_subnet = "azure_euwest" | facter_subnet = "azure_euwest" | ||||
facter_deployment = "admin" | facter_deployment = "admin" | ||||
disk_setup = {} | disk_setup = { | ||||
swaps = [{ | |||||
filepath = "/mnt/swapfile" | |||||
size = "14336" # GB | |||||
}] | |||||
} | |||||
ardumont: furthermore, wrong file, it was meant for indexer-workers.tf file. | |||||
}) | }) | ||||
destination = var.firstboot_script | destination = var.firstboot_script | ||||
connection { | connection { | ||||
type = "ssh" | type = "ssh" | ||||
user = "root" | user = "root" | ||||
host = azurerm_network_interface.backup-interface[each.key].private_ip_address | host = azurerm_network_interface.backup-interface[each.key].private_ip_address | ||||
} | } | ||||
Show All 25 Lines |
furthermore, wrong file, it was meant for indexer-workers.tf file.