forked from gwenshap/ops_training_vm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpacker.json
30 lines (29 loc) · 876 Bytes
/
packer.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
{
"builders": [{
"type": "virtualbox-ovf",
"source_path": "/Users/gwen/.vagrant.d/boxes/puppetlabs-VAGRANTSLASH-centos-6.6-64-puppet/1.0.2/virtualbox/box.ovf",
"ssh_username": "root",
"ssh_password": "puppet",
"ssh_wait_timeout": "30s",
"vboxmanage": [
["modifyvm", "{{.Name}}", "--natpf1", "guest_graphite,tcp,127.0.0.1,4567,,8000"],
["modifyvm", "{{.Name}}", "--natpf1", "guest_ssh,tcp,127.0.0.1,2222,,22"],
["modifyvm", "{{.Name}}", "--memory", "2048"]
],
"shutdown_command": "echo 'packer' | sudo -S shutdown -P now"
}],
"provisioners": [
{
"type": "file",
"source": "configfiles",
"destination": "/tmp"
},
{
"type" : "shell",
"script": "packerstrap.sh"
},
{
"type": "shell",
"script": "bootstrap.sh"
} ]
}