-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbasic-wp.json
More file actions
38 lines (38 loc) · 985 Bytes
/
basic-wp.json
File metadata and controls
38 lines (38 loc) · 985 Bytes
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
{
"variables": {
"HOME": "{{env `HOME`}}"
},
"builders": [
{
"type": "virtualbox-ovf",
"source_path": "box/basic-wp.ovf",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"ssh_private_key_file": "{{ user `HOME` }}/.vagrant.d/insecure_private_key",
"ssh_wait_timeout": "10m",
"ssh_port": 22,
"headless": true,
"guest_additions_mode": "disable",
"shutdown_command": "echo 'packer' | sudo -S shutdown -P now",
"vm_name": "packer-basic-wp-box"
}
],
"provisioners": [
{
"type": "shell",
"execute_command": "echo 'vagrant' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
"script": "scripts/setup.sh"
},
{
"type": "shell",
"execute_command": "echo 'vagrant' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
"script": "scripts/cleanup.sh"
}
],
"post-processors": [
{
"type": "vagrant",
"output": "box/{{.Provider}}-basic-wp.box"
}
]
}