-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathubuntu.tf
More file actions
49 lines (46 loc) · 1.5 KB
/
ubuntu.tf
File metadata and controls
49 lines (46 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
resource "openstack_images_image_v2" "ubuntu-jammy" {
name = "Ubuntu 22.04 Jammy LTS"
image_source_url = "http://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img"
container_format = "bare"
disk_format = "qcow2"
visibility = "public"
protected = false
min_disk_gb = 10
min_ram_mb = 1024
image_cache_path = var.images_cache
properties = {
hw_scsi_model = "virtio-scsi"
hw_disk_bus = "scsi"
hw_qemu_guest_agent = "yes"
os_require_quiesce = "yes"
os_admin_user = "ubuntu"
os_type = "linux"
os_distro = "ubuntu"
os_version = "22.04"
hw_rescue_bus = "scsi"
hw_rescue_device = "disk"
}
}
resource "openstack_images_image_v2" "ubuntu-noble" {
name = "Ubuntu 24.04 Noble LTS"
image_source_url = "http://cloud-images.ubuntu.com/noble/current/noble-server-cloudimg-amd64.img"
container_format = "bare"
disk_format = "qcow2"
visibility = "public"
protected = false
min_disk_gb = 10
min_ram_mb = 1024
image_cache_path = var.images_cache
properties = {
hw_scsi_model = "virtio-scsi"
hw_disk_bus = "scsi"
hw_qemu_guest_agent = "yes"
os_require_quiesce = "yes"
os_admin_user = "ubuntu"
os_type = "linux"
os_distro = "ubuntu"
os_version = "24.04"
hw_rescue_bus = "scsi"
hw_rescue_device = "disk"
}
}