forked from GNS3/gns3-vm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgns3_release.json
88 lines (88 loc) · 2.39 KB
/
gns3_release.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
{
"variables" : {
"ssh_pass" : "gns3",
"ssh_name" : "gns3",
"gns3_version": "{{env `GNS3_VERSION`}}",
"gns3_update_flavor": "{{env `GNS3_UPDATE_FLAVOR`}}",
"gns3_src": "{{env `GNS3_SRC`}}"
},
"provisioners" : [
{
"inline": "sudo rm -rf /tmp/*",
"type": "shell"
},
{
"inline": "echo -n \"{{user `gns3_update_flavor`}}\" > /home/gns3/.config/GNS3/gns3_release",
"type": "shell"
},
{
"type" : "shell",
"script" : "scripts/provision_gns3.sh",
"environment_vars": [
"GNS3_VERSION={{user `gns3_version`}}"
]
}
],
"builders" : [
{
"type": "vmware-vmx",
"vm_name" : "GNS3 VM",
"headless": true,
"source_path": "{{user `gns3_src`}}",
"ssh_username": "{{user `ssh_name`}}",
"ssh_password": "{{user `ssh_pass`}}",
"shutdown_timeout": "60m",
"shutdown_command" : "echo {{user `ssh_name`}} | sudo -S shutdown -P now",
"vmx_data" :
{
"ethernet0.connectionType": "nat",
"ethernet1.virtualDev": "e1000"
},
"vmx_data_post":
{
"ethernet0.connectionType": "hostonly"
},
"skip_compaction": false
},
{
"type": "virtualbox-ovf",
"vm_name" : "GNS3 VM",
"headless": true,
"source_path": "{{user `gns3_src`}}",
"ssh_username": "{{user `ssh_name`}}",
"ssh_password": "{{user `ssh_pass`}}",
"shutdown_command" : "echo {{user `ssh_name`}} | sudo -S shutdown -P now",
"shutdown_timeout": "60m",
"format": "ova",
"guest_additions_mode" : "disable",
"vboxmanage" : [
[
"modifyvm",
"{{.Name}}",
"--nic1",
"nat"
]
],
"vboxmanage_post" : [
[
"modifyvm",
"{{.Name}}",
"--nic1",
"hostonly"
],
[
"modifyvm",
"{{.Name}}",
"--nictype1",
"82540EM"
],
[
"modifyvm",
"{{.Name}}",
"--hostonlyadapter1",
"vboxnet0"
]
]
}
]
}