Skip to content

Commit 1c29163

Browse files
authored
appliance: compatibility fix for Packer v1.7.4, update debian template to 10.10.0 (#5304)
1 parent 0a2a524 commit 1c29163

File tree

1 file changed

+50
-45
lines changed

1 file changed

+50
-45
lines changed
Lines changed: 50 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,8 @@
11
{
22
"_license": "Apache License 2.0",
3-
"description": "CloudStack SystemVM template",
4-
"provisioners": [
5-
{
6-
"type": "shell",
7-
"execute_command": "echo 'cloud' | sudo -u root -S bash {{.Path}}",
8-
"scripts": [
9-
"scripts/apt_upgrade.sh",
10-
"scripts/configure_grub.sh",
11-
"scripts/configure_locale.sh",
12-
"scripts/configure_networking.sh",
13-
"scripts/configure_acpid.sh",
14-
"scripts/install_systemvm_packages.sh",
15-
"scripts/configure_conntrack.sh",
16-
"scripts/authorized_keys.sh",
17-
"scripts/configure_persistent_config.sh",
18-
"scripts/configure_login.sh",
19-
"../cloud_scripts_shar_archive.sh",
20-
"scripts/configure_systemvm_services.sh",
21-
"scripts/cleanup.sh",
22-
"scripts/finalize.sh"
23-
]
24-
}
25-
],
263
"builders": [
274
{
28-
"type": "qemu",
295
"accelerator": "kvm",
30-
"headless": true,
31-
"qemuargs": [
32-
[ "-m", "500M" ],
33-
[ "-smp", "1" ]
34-
],
35-
"format": "qcow2",
36-
"disk_size": 2500,
37-
"disk_interface": "virtio",
38-
"net_device": "virtio-net",
39-
"iso_url": "https://cdimage.debian.org/debian-cd/10.8.0/amd64/iso-cd/debian-10.8.0-amd64-netinst.iso",
40-
"iso_checksum": "934336d266535c91fcd12cd122c81f8261721efa117fdcb9a31615caa96c5c5ce3454ed5f28f1b25a7b1b5f44631fdfa78a93adb6445e2e2caaf6455ab344cf8",
41-
"iso_checksum_type": "sha512",
42-
"output_directory": "../dist",
43-
"http_directory": "http",
44-
"vm_name": "systemvmtemplate",
45-
"ssh_username": "cloud",
46-
"ssh_password": "cloud",
47-
"ssh_wait_timeout": "30m",
48-
"boot_wait": "5s",
496
"boot_command": [
507
"<esc><wait>",
518
"install <wait>",
@@ -64,8 +21,56 @@
6421
"console-keymaps-at/keymap=us <wait>",
6522
"<enter><wait>"
6623
],
67-
68-
"shutdown_command": "sudo halt -p"
24+
"boot_wait": "5s",
25+
"disk_interface": "virtio",
26+
"disk_size": "2500M",
27+
"format": "qcow2",
28+
"headless": true,
29+
"http_directory": "http",
30+
"iso_checksum": "sha512:87b4c9dd135718304a1b3e68423fe1b03ed52eb67f60563ad14a846aeaaecf53c064dae0f128b2633041992bbc8124b68b6767b529d80487754959b38558e637",
31+
"iso_url": "https://cdimage.debian.org/debian-cd/10.10.0/amd64/iso-cd/debian-10.10.0-amd64-netinst.iso",
32+
"net_device": "virtio-net",
33+
"output_directory": "../dist",
34+
"qemuargs": [
35+
[
36+
"-m",
37+
"500M"
38+
],
39+
[
40+
"-smp",
41+
"1"
42+
]
43+
],
44+
"shutdown_command": "sudo halt -p",
45+
"ssh_password": "cloud",
46+
"ssh_timeout": "30m",
47+
"ssh_username": "cloud",
48+
"type": "qemu",
49+
"vm_name": "systemvmtemplate"
50+
}
51+
],
52+
"description": "CloudStack SystemVM template",
53+
"provisioners": [
54+
{
55+
"execute_command": "echo 'cloud' | sudo -u root -S bash {{.Path}}",
56+
"scripts": [
57+
"scripts/apt_upgrade.sh",
58+
"scripts/configure_grub.sh",
59+
"scripts/configure_locale.sh",
60+
"scripts/configure_networking.sh",
61+
"scripts/configure_acpid.sh",
62+
"scripts/install_systemvm_packages.sh",
63+
"scripts/configure_conntrack.sh",
64+
"scripts/authorized_keys.sh",
65+
"scripts/configure_persistent_config.sh",
66+
"scripts/configure_login.sh",
67+
"../cloud_scripts_shar_archive.sh",
68+
"scripts/configure_systemvm_services.sh",
69+
"scripts/cleanup.sh",
70+
"scripts/finalize.sh"
71+
],
72+
"type": "shell"
6973
}
7074
]
7175
}
76+

0 commit comments

Comments
 (0)