This repository has been archived by the owner on Jul 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathubuntu2004_proxmox.json
57 lines (57 loc) · 1.9 KB
/
ubuntu2004_proxmox.json
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
{
"builders": [
{
"type": "proxmox",
"proxmox_url": "{{user `proxmox_url`}}",
"insecure_skip_tls_verify": true,
"username": "{{user `username`}}",
"password": "{{user `password`}}",
"node": "{{user `node`}}",
"vm_name": "packerTemplateBuilder",
"network_adapters": [
{
"model": "virtio",
"bridge": "vmbr0",
"vlan_tag": "{{user `vlan`}}"
}
],
"disks": [
{
"type": "scsi",
"disk_size": "8G",
"storage_pool": "{{user `storage_pool`}}",
"storage_pool_type": "directory",
"format": "qcow2"
}
],
"cpu_type": "host",
"cores": 4,
"memory": 1024,
"iso_file": "{{user `storage_pool`}}:iso/ubuntu-20.04-live-server-amd64.iso",
"boot_command": [
"<enter><enter><f6><esc><wait> ",
"autoinstall ds=nocloud-net;seedfrom=http://{{ .HTTPIP }}:{{ .HTTPPort }}/",
"<enter><wait>"
],
"boot_wait": "10s",
"ssh_username": "installer",
"ssh_password": "rootpw",
"http_directory": "provisioning",
"http_port_min": 8000,
"http_port_max": 9000,
"ssh_timeout": "30m",
"ssh_port": 22,
"unmount_iso": true,
"template_name": "ubuntu2004-packer",
"template_description": "Ubuntu 20.04 generated by Packer "
}
],
"provisioners": [
{
"type": "shell",
"inline": [
"echo 'rootpw' | sudo -S apt update && sudo -S apt dist-upgrade -y && sudo -S apt autoremove -y"
]
}
]
}