From b6e3efb3441951dd4d97cf6c92a445c80df54ee2 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Thu, 14 Nov 2024 18:03:57 +0100 Subject: [PATCH] Add support for Ubuntu 24.04 at GARR. --- .../modules/garr_common_variables/outputs.tf | 8 ++++++++ .../modules/garr_common_variables/variables.tf | 12 ++++++++++++ 2 files changed, 20 insertions(+) diff --git a/openstack-tf/modules/garr_common_variables/outputs.tf b/openstack-tf/modules/garr_common_variables/outputs.tf index ee32ada..ce4d1ec 100644 --- a/openstack-tf/modules/garr_common_variables/outputs.tf +++ b/openstack-tf/modules/garr_common_variables/outputs.tf @@ -7,6 +7,14 @@ output "ubuntu2204_data_file" { value = var.ubuntu2204_data_file } +output "ubuntu_2404" { + value = var.ubuntu_2404 +} + +output "ubuntu2404_data_file" { + value = var.ubuntu2404_data_file +} + output "ssh_sources" { value = var.ssh_sources } diff --git a/openstack-tf/modules/garr_common_variables/variables.tf b/openstack-tf/modules/garr_common_variables/variables.tf index 43ebdf7..8c050c5 100644 --- a/openstack-tf/modules/garr_common_variables/variables.tf +++ b/openstack-tf/modules/garr_common_variables/variables.tf @@ -11,6 +11,18 @@ variable "ubuntu2204_data_file" { default = "../../openstack_vm_data_scripts/ubuntu2204.sh" } +variable "ubuntu_2404" { + type = map(string) + default = { + name = "Ubuntu 24.04 - GARR" + uuid = "b2f00e68-3847-4f48-a8a6-b28012d57095" + user_data_file = "../../openstack_vm_data_scripts/ubuntu2404.sh" + } +} + +variable "ubuntu2404_data_file" { + default = "../../openstack_vm_data_scripts/ubuntu2404.sh" +} # Create in the path 'modules/ssh-key-ref' the file 'ssh-key-ref-outputs.tf' # with the following outputs: