Skip to content

Commit

Permalink
DBP-817-adjust naming convention & return basic-vm dns and basic-vm ip
Browse files Browse the repository at this point in the history
  • Loading branch information
sahassou committed Jun 9, 2024
1 parent 25e0da9 commit 9042982
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/ionos-basic-vm-mariadb/locals.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
locals {
prefix = format("%s/%s", ionoscloud_nic.basic_vm_nic.ips[0], "24")
prefix = format("%s/%s", ionoscloud_nic.privacyidea_vm_nic.ips[0], "24")
database_ip = cidrhost(local.prefix, 1)
database_ip_cidr = format("%s/%s", local.database_ip, "24")
}
12 changes: 11 additions & 1 deletion modules/ionos-basic-vm-mariadb/output.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
output "basic_vm_lan_ip" {
description = "The IP address assigned to the basic VM NIC"
value = ionoscloud_nic.basic_vm_nic.ips[0]
value = ionoscloud_nic.privacyidea_vm_nic.ips[0]
}

output "database_ip_cidr" {
Expand All @@ -11,4 +11,14 @@ output "database_ip_cidr" {
output "database_ip" {
description = "IP address of the MariaDB cluster"
value = local.database_ip
}

output "basic_vm_server_dns" {
description = "DNS record associated with the basic VM server"
value = module.basic-vm.basic_vm_server_dns
}

output "basic_vm_server_public_ip" {
description= "the public IP address assigned to the basic VM server"
value = module.basic-vm.basic_vm_server_public_ip
}

0 comments on commit 9042982

Please sign in to comment.