-
Notifications
You must be signed in to change notification settings - Fork 7
/
coreos-qemu-localbuild.json
70 lines (70 loc) · 1.99 KB
/
coreos-qemu-localbuild.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
58
59
60
61
62
63
64
65
66
67
68
69
70
{
"variables": {
"coreos_channel": "alpha",
"coreos_version": "766.0.0",
"iso_checksum": "e8da63e79906ce70bfdbe575349d42b9",
"iso_checksum_type": "md5",
"install_headless": "false",
"install_target": "/dev/vda",
"disk_size": "40960",
"memory": "1024M"
},
"builders":
[
{
"type": "qemu",
"iso_url": "http://{{user `coreos_channel`}}.release.core-os.net/amd64-usr/{{user `coreos_version`}}/coreos_production_iso_image.iso",
"iso_checksum": "{{user `iso_checksum`}}",
"iso_checksum_type": "{{user `iso_checksum_type`}}",
"headless": "{{user `install_headless`}}",
"http_directory": "files",
"disk_size": "{{user `disk_size`}}",
"format": "qcow2",
"accelerator": "kvm",
"qemuargs": [
[ "-m", "{{user `memory`}}" ]
],
"boot_command":
[
"sudo -i<enter>",
"systemctl stop sshd.socket<enter>",
"wget http://{{ .HTTPIP }}:{{ .HTTPPort }}/install.yml<enter>",
"coreos-install -d {{user `install_target`}} -C {{user `coreos_channel`}} -c install.yml<enter>",
"reboot<enter>"
],
"boot_wait": "30s",
"ssh_port": 22,
"ssh_wait_timeout": "40m",
"ssh_username": "core",
"ssh_key_path": "files/vagrant",
"shutdown_command": "sudo -S shutdown -P now",
"output_directory": "builds/coreos-{{user `coreos_channel`}}-{{user `coreos_version`}}-qemu"
}
],
"provisioners": [
{
"type": "file",
"source": "oem/",
"destination": "/home/core"
},
{
"type": "shell",
"environment_vars" : [],
"scripts": [
"scripts/oem.sh",
"scripts/cleanup.sh"
]
}
],
"post-processors": [
{
"type": "vagrant",
"output": "output/coreos-{{user `coreos_channel`}}-{{user `coreos_version`}}-{{.Provider}}.box",
"vagrantfile_template": "Vagrantfile",
"include": [
"scripts/change_host_name.rb",
"scripts/configure_networks.rb"
]
}
]
}