-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcontainer-linux.json
52 lines (50 loc) · 1.59 KB
/
container-linux.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
{
"variables": {
"release": "stable",
"iso_checksum": "",
"iso_checksum_type": "none",
"disk_size": "40000",
"memory": "2048M",
"boot_wait": "45s",
"ignition": "ignition.json"
},
"builders": [
{
"type": "qemu",
"iso_url": "https://{{user `release` }}.release.core-os.net/amd64-usr/current/coreos_production_iso_image.iso",
"iso_checksum": "{{ user `iso_checksum` }}",
"iso_checksum_type": "{{ user `iso_checksum_type` }}",
"output_directory": "builds",
"shutdown_command": "sudo shutdown now",
"disk_size": "{{ user `disk_size` }}",
"format": "qcow2",
"accelerator": "kvm",
"vm_name": "container-linux-{{user `release` }}.qcow2",
"boot_wait": "{{user `boot_wait` }}",
"ssh_username": "core",
"ssh_password": "packer",
"boot_command": [
"sudo passwd core<enter><wait>",
"packer<enter>",
"packer<enter>",
"sudo systemctl start sshd.service<enter>"
],
"qemuargs": [
[ "-m", "{{user `memory` }}" ]
]
}
],
"provisioners": [
{
"type": "file",
"source": "{{ user `ignition` }}",
"destination": "/tmp/ignition.json"
},
{
"type": "shell",
"inline": [
"sudo coreos-install -d /dev/vda -C {{ user `release` }} -i /tmp/ignition.json"
]
}
]
}