-
Notifications
You must be signed in to change notification settings - Fork 2
/
variables.pkr.hcl
147 lines (123 loc) · 3.36 KB
/
variables.pkr.hcl
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
# Azure ARM Variables
variable "subscription_id" {
description = "The Azure subscription ID to use for building the image"
type = string
}
variable "location" {
description = "Azure region where the resources will be deployed"
type = string
default = "uksouth"
}
variable "image_resource_group_name" {
description = "Name of the resource group in which the Packer image will be created"
type = string
}
variable "image_publisher" {
description = "Publisher of the base image"
type = string
default = "Canonical"
}
variable "image_offer" {
description = "Offer of the base image"
type = string
default = "0001-com-ubuntu-server-jammy"
}
variable "image_sku" {
description = "SKU of the base image"
type = string
default = "22_04-lts-arm64"
}
variable "os_type" {
description = "Type of operating system"
type = string
default = "Linux"
}
variable "gallery_name" {
description = "Name of the shared image gallery"
type = string
default = "arm64"
}
variable "image_name" {
description = "Name of the image in the shared image gallery"
type = string
default = "dsbd-ubuntu-22.04-lts"
}
variable "image_version" {
description = "Version of the image in the shared image gallery"
type = string
}
variable "storage_account_type" {
description = "Type of storage account for the managed image"
type = string
default = "Standard_LRS"
}
variable "vm_size" {
description = "Size of the VM used for building the image"
type = string
default = "Standard_D2pds_v5"
}
# AWS EBI Variables
variable "aws_region" {
description = "AWS region where the resources will be deployed"
type = string
default = "eu-west-2"
}
variable "aws_access_key" {
description = "AWS access key"
type = string
}
variable "aws_secret_key" {
description = "AWS secret key"
type = string
}
variable "aws_ami_name" {
description = "Name of the AMI to be created"
type = string
default = "dsbd-ubuntu-22.04-lts"
}
variable "aws_instance_type" {
description = "Type of the EC2 instance used for building the AMI"
type = string
default = "m7g.xlarge"
}
variable "aws_source_ami_name" {
description = "Source AMI to use for building the AMI"
type = string
default = "ubuntu/images/hvm-ssd/ubuntu-jammy-22.04-arm64-server-*"
}
variable "aws_source_ami_owner" {
description = "Owner of the source AMI"
type = string
default = "099720109477" // Canonical
}
variable "aws_ssh_username" {
description = "The username for SSH access"
type = string
default = "ubuntu"
}
# Common Variables
variable "os_disk_size_gb" {
description = "Size of the OS disk in GB"
type = number
default = 128
}
variable "ssh_public_key" {
description = "The SSH key to login to the qemu guests"
type = string
}
variable "ssh_username" {
description = "The username for SSH access"
type = string
default = "packer"
}
variable "ssh_password" {
description = "A plaintext password to use to authenticate with SSH"
type = string
default = "packer"
}
variable "ssh_timeout" {
description = "The time to wait for SSH to become available"
type = string
default = "20m"
}
# Add additional variables as needed