-
Notifications
You must be signed in to change notification settings - Fork 15
/
coreos.json
140 lines (128 loc) · 4.29 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
{
"builders": [
{
"type": "qemu",
"boot_command": [
"sudo -i<enter>",
"systemctl stop sshd.socket<enter>",
"wget http://{{ .HTTPIP }}:{{ .HTTPPort }}/install.yml<enter>",
"coreos-install -d /dev/sda -C {{user `channel`}} -c install.yml<enter>",
"reboot<enter>"
],
"accelerator": "kvm",
"iso_checksum": "{{user `checksum`}}",
"iso_checksum_type": "{{user `checksum_type`}}",
"iso_url": "http://{{user `channel`}}.release.core-os.net/amd64-usr/{{user `version`}}/coreos_production_iso_image.iso",
"http_directory": "files",
"ssh_port": 22,
"ssh_username": "core",
"ssh_key_path": "files/vagrant",
"ssh_wait_timeout": "10m",
"disk_size": 4096,
"format": "qcow2",
"headless": true,
"boot_wait": "10s",
"shutdown_command": "sudo -S shutdown -P now",
"output_directory": "builds/packer-coreos-{{user `channel`}}-{{user `version`}}-parallels"
},
{
"type": "parallels-iso",
"vm_name": "coreos-{{user `channel`}}",
"iso_checksum": "{{user `checksum`}}",
"iso_checksum_type": "{{user `checksum_type`}}",
"iso_url": "http://{{user `channel`}}.release.core-os.net/amd64-usr/{{user `version`}}/coreos_production_iso_image.iso",
"http_directory": "files",
"ssh_port": 22,
"ssh_username": "core",
"ssh_key_path": "files/vagrant",
"ssh_wait_timeout": "10m",
"guest_os_type": "linux-2.6",
"hard_drive_interface": "sata",
"disk_size": 40960,
"prlctl": [
[ "set", "{{.Name}}", "--memsize", "1024" ],
[ "set", "{{.Name}}", "--cpus", "1" ]
],
"parallels_tools_mode": "disable",
"boot_command": [
"sudo -i<enter>",
"systemctl stop sshd.socket<enter>",
"wget http://{{ .HTTPIP }}:{{ .HTTPPort }}/install.yml<enter>",
"coreos-install -d /dev/sda -C {{user `channel`}} -c install.yml<enter>",
"reboot<enter>"
],
"boot_wait": "10s",
"shutdown_command": "sudo -S shutdown -P now",
"output_directory": "builds/packer-coreos-{{user `channel`}}-{{user `version`}}-parallels",
"prlctl_version_file": ".prlctl_version"
},
{
"type": "virtualbox-iso",
"vm_name": "coreos-{{user `channel`}}",
"iso_checksum": "{{user `checksum`}}",
"iso_checksum_type": "{{user `checksum_type`}}",
"iso_url": "http://{{user `channel`}}.release.core-os.net/amd64-usr/{{user `version`}}/coreos_production_iso_image.iso",
"http_directory": "files",
"ssh_port": 22,
"ssh_username": "core",
"ssh_key_path": "files/vagrant",
"ssh_wait_timeout": "10m",
"guest_os_type": "Linux26_64",
"hard_drive_interface": "sata",
"disk_size": 40960,
"vboxmanage": [
[ "modifyvm", "{{.Name}}", "--memory", "1024" ],
[ "modifyvm", "{{.Name}}", "--cpus", "1" ]
],
"guest_additions_mode": "disable",
"boot_command": [
"sudo -i<enter>",
"systemctl stop sshd.socket<enter>",
"wget http://{{ .HTTPIP }}:{{ .HTTPPort }}/install.yml<enter>",
"coreos-install -d /dev/sda -C {{user `channel`}} -c install.yml<enter>",
"reboot<enter>"
],
"boot_wait": "30s",
"shutdown_command": "sudo -S shutdown -P now",
"output_directory": "builds/packer-coreos-{{user `channel`}}-{{user `version`}}-virtualbox",
"virtualbox_version_file": ".virtualbox_version"
}
],
"provisioners": [
{
"type": "file",
"source": "files/coreos-setup-environment",
"destination": "coreos-setup-environment"
},
{
"type": "file",
"source": "files/cloud-config.yml",
"destination": "cloud-config.yml"
},
{
"type": "shell",
"environment_vars" : [],
"scripts": [
"scripts/oem.sh",
"scripts/cleanup.sh"
]
}
],
"post-processors": [
{
"type": "vagrant",
"output": "./builds/{{.Provider}}/coreos-{{user `channel`}}.box",
"vagrantfile_template": "files/box/Vagrantfile",
"include": [
"files/box/change_host_name.rb",
"files/box/configure_networks.rb"
]
}
],
"variables": {
"channel": "alpha",
"version": "current",
"checksum_type": "md5",
"checksum": "771552e66649f94cd7f61edda6b2fa50"
}
}