-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.json
70 lines (70 loc) · 2.16 KB
/
template.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
{
"builders": [
{
"boot_wait": "1m15s",
"headless": "{{ user `headless` }}",
"http_directory": "http",
"output_directory": "../builds/packer-{{user `template`}}-vmware",
"shutdown_command": "echo 'vagrant' | sudo -S /sbin/halt -h -p",
"ssh_password": "vagrant",
"ssh_port": 22,
"ssh_username": "vagrant",
"ssh_wait_timeout": "10000s",
"source_path": "packer_cache/amzn2.vmwarevm/amzn2.vagrant.vmx",
"tools_upload_flavor": "linux",
"type": "vmware-vmx",
"vm_name": "{{ user `template` }}",
"vmx_data": {
"displayname": "Amazon Linux 2",
"annotation": "Built on {{isotime \"2006-01-02\"}}. Source code can be found at https://github.com/skyzyx/vagrant-amazon-linux.",
"virtualhw.version": "14",
"floppy0.present": "FALSE",
"usb.present": "FALSE",
"isolation.tools.copy.disable": "TRUE",
"isolation.tools.dnd.disable": "TRUE",
"isolation.tools.paste.disable": "TRUE",
"ide0:0.deviceType": "cdrom-image",
"ide0:0.fileName": "seed.iso",
"ide0:0.present": "TRUE",
"cpuid.coresPerSocket": "1",
"memsize": "{{ user `memory` }}",
"numvcpus": "{{ user `cpus` }}"
}
}
],
"post-processors": [
{
"output": "builds/{{user `box_basename`}}-{{.Provider}}.box",
"type": "vagrant"
}
],
"provisioners": [
{
"environment_vars": [
"HOME_DIR=/home/vagrant",
"http_proxy={{user `http_proxy`}}",
"https_proxy={{user `https_proxy`}}",
"no_proxy={{user `no_proxy`}}"
],
"execute_command": "echo 'vagrant' | {{.Vars}} sudo -S -E sh -eux '{{.Path}}'",
"scripts": [
"scripts/build-seed.sh",
"scripts/base.sh"
],
"type": "shell"
}
],
"variables": {
"box_basename": "amzn2-x64",
"build_timestamp": "{{isotime \"20060102150405\"}}",
"cpus": "2",
"headless": "",
"http_proxy": "{{env `http_proxy`}}",
"https_proxy": "{{env `https_proxy`}}",
"memory": "2048",
"name": "amzn2",
"no_proxy": "{{env `no_proxy`}}",
"template": "amzn2-x86_64",
"version": "TIMESTAMP"
}
}