forked from nasa-gibs/onearth-boxes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
oe-vmware.json
37 lines (37 loc) · 1.05 KB
/
oe-vmware.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
{
"variables": {
"host_port": "8080",
"oe_version": "1.3.2"
},
"builders": [
{
"type": "vmware-iso",
"guest_os_type": "Centos-64",
"iso_url": "http://mirrors.usc.edu/pub/linux/distributions/centos/6.8/isos/x86_64/CentOS-6.8-x86_64-minimal.iso",
"iso_checksum": "0ca12fe5f28c2ceed4f4084b41ff8a0b",
"iso_checksum_type": "md5",
"ssh_username": "onearth",
"ssh_password": "onearth",
"shutdown_command": "echo 'packer' | sudo -S shutdown -P now",
"boot_command": "<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ks.cfg<enter><wait>",
"http_directory": "http",
"disk_size": 10000,
"headless": false,
"vm_name": "onearth-demo_{{user `oe_version`}}",
"ssh_wait_timeout": "10000s",
"shutdown_timeout": "10000s"
}],
"provisioners": [
{
"type": "file",
"source": "./resources",
"destination": "/home/onearth"
},
{
"type": "shell",
"environment_vars": ["HOST_PORT={{user `host_port`}}"],
"execute_command": "echo '{{user `onearth`}}' | {{ .Vars }} sudo -E -S sh '{{ .Path }}'",
"script": "bootstrap.sh"
}
]
}