-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathTrueNas.json
109 lines (108 loc) · 3.21 KB
/
TrueNas.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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
{
"variables": {
"ovftool_deploy_vcenter": "VCSA FQDN",
"ovftool_deploy_esxi":"FQDN ESXI",
"ovftool_deploy_vcenter_username": "administrator@vsphere.local",
"ovftool_deploy_vcenter_password": "YourP@$$w0rdv€rySecret!",
"builder_host_datastore": "YourDataStore",
"builder_host_portgroup": "Your PortGroup"
},
"builders": [
{
"type": "vsphere-iso",
"CPUs": "{{ user `numvcpus` }}",
"RAM": "{{ user `ramsize` }}",
"RAM_reserve_all": true,
"boot_command": [
"<wait5>1<enter><wait2>",
"<wait2><spacebar><wait2>",
"<wait2><enter><wait2>",
"<wait2><enter><wait2>",
"freenas<tab>freenas<tab><enter>",
"<enter>",
"<enter>",
"<wait2m><enter>3<enter>",
"<wait3m>9<enter>",
"<enter>",
"cli<wait2><enter>service ssh update rootlogin=true<enter>",
"service start service=ssh<enter><wait3>"
],
"guest_os_type": "freebsd12_64Guest",
"host": "{{ user `ovftool_deploy_esxi` }}",
"boot_wait": "20s",
"insecure_connection": true,
"iso_url": "{{ user `iso_url` }}",
"iso_checksum": "{{ user `iso_checksum` }}",
"datastore":"{{ user `builder_host_datastore` }}",
"network_adapters": [
{
"network":"{{ user `builder_host_portgroup` }}",
"network_card": "vmxnet3"
}
],
"password": "{{ user `ovftool_deploy_vcenter_password` }}",
"ssh_password": "{{ user `guest_password` }}",
"ssh_username": "{{ user `guest_username` }}",
"storage": [
{
"disk_size": 20480,
"disk_thin_provisioned": true
},
{
"disk_size": 61440,
"disk_thin_provisioned": true
},
{
"disk_size": 61440,
"disk_thin_provisioned": true
},
{
"disk_size": 61440,
"disk_thin_provisioned": true
},
{
"disk_size": 61440,
"disk_thin_provisioned": true
},
{
"disk_size": 61440,
"disk_thin_provisioned": true
},
{
"disk_size": 61440,
"disk_thin_provisioned": true
},
{
"disk_size": 61440,
"disk_thin_provisioned": true
}, {
"disk_size": 61440,
"disk_thin_provisioned": true
}
],
"username": "{{ user `ovftool_deploy_vcenter_username` }}",
"vcenter_server": "{{ user `ovftool_deploy_vcenter` }}",
"vm_name": "{{ user `vm_name` }}",
"notes": "TrueNas Appliance version: {{ user `version` }} @JM2K69 | login : {{ user `guest_username` }} MDP : {{ user `guest_password` }} ",
"export":{
"force":true,
"manifest":"none",
"output_directory":"./output_directory"
}
}
],
"post-processors": [
{
"type": "shell-local",
"inline": [
"pwsh -F Postprocess.ps1 {{ user `version` }}"
]
},
{
"type": "shell-local",
"inline": [
"pwsh -F unregister_vm.ps1 {{ user `ovftool_deploy_vcenter` }} {{ user `ovftool_deploy_vcenter_username` }} {{ user `ovftool_deploy_vcenter_password` }} {{ user `vm_name` }}"
]
}
]
}