Skip to content

Commit

Permalink
Next Step to get ha vms
Browse files Browse the repository at this point in the history
  • Loading branch information
mcpovel committed Oct 10, 2024
1 parent bb278fb commit 68bb2ad
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/ionos-ha-vms/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ module "ha_main_vm" {

initial_user = var.initial_user
initial_uid = var.initial_uid
initial_public_key = file(var.initial_public_key)
initial_public_key = var.initial_public_key
}

resource "ionoscloud_nic" "private_nic_main_vm" {
Expand Down Expand Up @@ -86,7 +86,7 @@ module "ha_backup_vms" {

initial_user = var.initial_user
initial_uid = var.initial_uid
initial_public_key = file(var.initial_public_key)
initial_public_key = var.initial_public_key
}

resource "ionoscloud_nic" "private_nic_backup_vms" {
Expand Down
15 changes: 15 additions & 0 deletions modules/ionos-ha-vms/outputs.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
output "ha_internal_lan_id" {
value = ionoscloud_lan.lan_internal.id
}

output "ha_dns_name" {
value = opentelekomcloud_dns_recordset_v2.a_records.name
}

output "ha_common_address" {
value = ionoscloud_ipblock.floating_ip.ips[0]
}

output "ha_vms_server_id" {
value = concat([module.ha_main_vm.basic_vm_server_id],module.ha_backup_vms[*].basic_vm_server_id)
}

0 comments on commit 68bb2ad

Please sign in to comment.