|
1 | 1 | { |
2 | 2 | "_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 | | - ], |
11 | | - "expect_disconnect": true |
12 | | - }, |
13 | | - { |
14 | | - "type": "shell", |
15 | | - "execute_command": "echo 'cloud' | sudo -u root -S bash {{.Path}}", |
16 | | - "scripts": [ |
17 | | - "scripts/configure_grub.sh", |
18 | | - "scripts/configure_locale.sh", |
19 | | - "scripts/configure_networking.sh", |
20 | | - "scripts/configure_acpid.sh", |
21 | | - "scripts/install_systemvm_packages.sh", |
22 | | - "scripts/configure_conntrack.sh", |
23 | | - "scripts/authorized_keys.sh", |
24 | | - "scripts/configure_persistent_config.sh", |
25 | | - "scripts/configure_login.sh", |
26 | | - "../cloud_scripts_shar_archive.sh", |
27 | | - "scripts/configure_systemvm_services.sh", |
28 | | - "scripts/cleanup.sh", |
29 | | - "scripts/finalize.sh" |
30 | | - ] |
31 | | - } |
32 | | - ], |
33 | 3 | "builders": [ |
34 | 4 | { |
35 | | - "type": "qemu", |
36 | 5 | "accelerator": "kvm", |
37 | | - "headless": true, |
38 | | - "qemuargs": [ |
39 | | - [ "-m", "500M" ], |
40 | | - [ "-smp", "1" ] |
41 | | - ], |
42 | | - "format": "qcow2", |
43 | | - "disk_size": 3000, |
44 | | - "disk_interface": "virtio", |
45 | | - "net_device": "virtio-net", |
46 | | - "iso_url": "https://cdimage.debian.org/debian-cd/10.9.0/amd64/iso-cd/debian-10.9.0-amd64-netinst.iso", |
47 | | - "iso_checksum": "47d35187b4903e803209959434fb8b65ead3ad2a8f007eef1c3d3284f356ab9955aa7e15e24cb7af6a3859aa66837f5fa2e7441f936496ea447904f7dddfdc20", |
48 | | - "iso_checksum_type": "sha512", |
49 | | - "output_directory": "../dist", |
50 | | - "http_directory": "http", |
51 | | - "vm_name": "systemvmtemplate", |
52 | | - "ssh_username": "cloud", |
53 | | - "ssh_password": "cloud", |
54 | | - "ssh_wait_timeout": "30m", |
55 | | - "boot_wait": "5s", |
56 | 6 | "boot_command": [ |
57 | 7 | "<esc><wait>", |
58 | 8 | "install <wait>", |
|
71 | 21 | "console-keymaps-at/keymap=us <wait>", |
72 | 22 | "<enter><wait>" |
73 | 23 | ], |
74 | | - |
75 | | - "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" |
76 | 73 | } |
77 | 74 | ] |
78 | 75 | } |
| 76 | + |
0 commit comments