-
Notifications
You must be signed in to change notification settings - Fork 4
/
build-vars
51 lines (36 loc) · 1.79 KB
/
build-vars
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
# Change this line to reflect the VMID you would like to use for the template.
# Select an ID such as 9999 that will be unique to the node.
build_vm_id='ENTER-VMID-FOR-TEMPLATE'
# What directory do you have all of the files in? Use a trailing /
install_dir='/WHAT-DIRECTORY-ARE-WE-IN/'
# Who are you?
creator='YOURNAMEHERE'
# Create this file and add your SSH keys 1 per line
keyfile=${install_dir}keyfile
# Enter the URL for the cloud-init image you would like to you. Below are Ubuntu Focal
# and Ubuntu Kinetic. For Focal I like to refresh weekly and Kinetic daily. Uncomment
# the distro you would like to use.
cloud_img_url='https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64.img'
#cloud_img_url='https://cloud-images.ubuntu.com/kinetic/current/kinetic-server-cloudimg-amd64.img'
# Leave this variable alone
image_name=${cloud_img_url##*/}
# Enter the additional packages you would like in your template.
package_list='cloud-init,qemu-guest-agent,curl,wget'
# What storage location on your PVE node do you want to use for the template? (zfs-mirror, local-lvm, local, etc.)
storage_location='zfs-mirror'
# VM options
# Your preferred DNS
nameserver='ENTER-NS-IP-HERE'
# Your domain (ie, domain.com, domain.local, domain)
searchdomain='ENTER-SEARCH-DOMAIN-HERE'
# Username for accessing the image
cloud_init_user='CLOUD-INIT-USERNAME-HERE'
# Default setting is the most common
scsihw='virtio-scsi-pci'
# What to name your template. This is free form with no spaces and will be used for automation/deployments.
template_name='YOUR-TEMPLATE-NAME'
# Memory and CPU cores. These are overridden with image deployments or through the PVE interface.
vm_mem='2048'
vm_cores='2'
# Where to store the build-info file in the template for easy identification.
build_info_file_location='/etc/DIRNAME-HERE'