-
Notifications
You must be signed in to change notification settings - Fork 7
/
coreos.json
60 lines (60 loc) · 1.67 KB
/
coreos.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
{
"description": "CoreOS image for OpenNebula",
"variables": {
"accelerator": "kvm",
"boot_wait": "60s",
"coreos_channel": "alpha",
"coreos_version": "<not-set>",
"headless": "false",
"install_target": "/dev/vda",
"iso_checksum": "<not-set>",
"iso_checksum_type": "md5",
"memory": "1024"
},
"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`}}",
"ssh_username": "core",
"accelerator": "{{user `accelerator`}}",
"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": "{{user `boot_wait`}}",
"disk_size": 10240,
"format": "qcow2",
"headless": "{{user `headless`}}",
"http_directory": "files",
"output_directory": "builds/coreos-{{user `coreos_channel`}}-{{user `coreos_version`}}-qemu",
"qemuargs": [
["-m", "{{user `memory`}}"]
],
"shutdown_command": "sudo -S shutdown -P now",
"communicator": "ssh",
"ssh_private_key_file": "files/vagrant_id_rsa",
"ssh_timeout": "60m",
"ssh_username": "core"
}
],
"provisioners": [
{
"type": "file",
"source": "oem/",
"destination": "/home/core"
},
{
"type": "shell",
"environment_vars": [],
"scripts": [
"scripts/oem.sh",
"scripts/cleanup.sh"
]
}
]
}