From a5ab0e4768faf0b9c318f6eb7584074edb30c9e5 Mon Sep 17 00:00:00 2001 From: Arif Ali Date: Tue, 25 Jun 2024 12:47:10 +0100 Subject: [PATCH] Add windows image for testing, and update domain_id --- openstack/arif-home.tfvars | 2 +- openstack/init/01-images.tf | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/openstack/arif-home.tfvars b/openstack/arif-home.tfvars index d1bac09..b6c3573 100644 --- a/openstack/arif-home.tfvars +++ b/openstack/arif-home.tfvars @@ -1,2 +1,2 @@ cloud = "arif-home" -domain_id = "3ab4c220c60c475aa3cab2e7407c03f8" +domain_id = "38adc04a9dca48cf99a91e17739020a0" diff --git a/openstack/init/01-images.tf b/openstack/init/01-images.tf index f9f8e04..904f636 100644 --- a/openstack/init/01-images.tf +++ b/openstack/init/01-images.tf @@ -21,3 +21,15 @@ resource "openstack_images_image_v2" "focal-raw" { disk_format = "raw" visibility = "public" } + +resource "openstack_images_image_v2" "win2k12-r2-raw" { + name = "win2k12-r12-raw" + local_file_path = "/home/arif/images/windows_server_2012_r2_standard_eval_kvm_20170321.img" + container_format = "bare" + disk_format = "raw" + visibility = "public" + properties = { + "hypervisor_type" = "QEMU" + "os_type" = "windows" + } +}