|
1 | 1 | { |
2 | 2 | "variables": { |
3 | 3 | "artifact_description": "CentOS 7.7 with kernel 5.x", |
4 | | - "artifact_version": "7.7.1908", |
| 4 | + "artifact_version": "7.7.2003", |
5 | 5 | "image_name": "centos-7.7" |
6 | 6 | }, |
7 | 7 |
|
|
12 | 12 | "vm_name": "packer-centos-vm", |
13 | 13 |
|
14 | 14 | "boot_wait": "10s", |
15 | | - "disk_size": "10240", |
| 15 | + "disk_size": "25240", |
16 | 16 | "guest_os_type": "RedHat_64", |
17 | 17 | "http_directory": "http", |
18 | 18 |
|
19 | | - "iso_url": "http://mirror.yandex.ru/centos/7.7.1908/isos/x86_64/CentOS-7-x86_64-Minimal-1908.iso", |
20 | | - "iso_checksum": "9a2c47d97b9975452f7d582264e9fc16d108ed8252ac6816239a3b58cef5c53d", |
| 19 | + "iso_url": "http://mirror.yandex.ru/centos/7/isos/x86_64/CentOS-7-x86_64-Minimal-2003.iso", |
| 20 | + "iso_checksum": "659691c28a0e672558b003d223f83938f254b39875ee7559d1a4a14c79173193", |
21 | 21 | "iso_checksum_type": "sha256", |
22 | 22 |
|
| 23 | + "guest_additions_path": "VBoxGuestAdditions.iso", |
| 24 | + |
23 | 25 | "boot_command": [ |
24 | 26 | "<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/vagrant.ks<enter><wait>" |
25 | 27 | ], |
|
36 | 38 | "output_directory": "builds", |
37 | 39 |
|
38 | 40 | "vboxmanage": [ |
39 | | - [ "modifyvm", "{{.Name}}", "--memory", "1024" ], |
40 | | - [ "modifyvm", "{{.Name}}", "--cpus", "2" ] |
| 41 | + [ "modifyvm", "{{.Name}}", "--memory", "4096" ], |
| 42 | + [ "modifyvm", "{{.Name}}", "--cpus", "28" ] |
41 | 43 | ], |
42 | 44 |
|
43 | 45 | "export_opts": |
|
53 | 55 |
|
54 | 56 | "post-processors": [ |
55 | 57 | { |
56 | | - "output": "centos-{{user `artifact_version`}}-kernel-5-x86_64-Minimal.box", |
| 58 | + "output": "centos-{{user `artifact_version`}}-kernel-5-x86_64.box", |
57 | 59 | "compression_level": "7", |
58 | 60 | "type": "vagrant" |
59 | 61 | } |
|
62 | 64 | { |
63 | 65 | "type": "shell", |
64 | 66 | "execute_command": "{{.Vars}} sudo -S -E bash '{{.Path}}'", |
65 | | - "start_retry_timeout": "1m", |
| 67 | + "start_retry_timeout": "3m", |
66 | 68 | "expect_disconnect": true, |
67 | | - "pause_before": "20s", |
| 69 | + "pause_before": "5s", |
| 70 | + |
68 | 71 | "override": { |
69 | 72 | "{{user `image_name`}}" : { |
70 | 73 | "scripts" : |
71 | 74 | [ |
72 | 75 | "scripts/stage-1-kernel-update.sh", |
73 | | - "scripts/stage-2-clean.sh" |
| 76 | + "scripts/stage-2-additional-tools.sh", |
| 77 | + "scripts/stage-3-clean.sh" |
74 | 78 | ] |
75 | 79 | } |
76 | 80 | } |
|
0 commit comments