63 lines
1.5 KiB
JSON
63 lines
1.5 KiB
JSON
|
{
|
||
|
"builders": [
|
||
|
{
|
||
|
"type": "vsphere-iso",
|
||
|
|
||
|
"vcenter_server": "vcenter.vsphere65.test",
|
||
|
"username": "root",
|
||
|
"password": "jetbrains",
|
||
|
"insecure_connection": true,
|
||
|
|
||
|
"vm_name": "alpine-{{timestamp}}",
|
||
|
"host": "esxi-1.vsphere65.test",
|
||
|
|
||
|
"CPUs": 1,
|
||
|
"RAM": 512,
|
||
|
"RAM_reserve_all": true,
|
||
|
"disk_controller_type": "pvscsi",
|
||
|
"disk_size": 1024,
|
||
|
"disk_thin_provisioned": true,
|
||
|
"network_card": "vmxnet3",
|
||
|
|
||
|
"guest_os_type": "other3xLinux64Guest",
|
||
|
|
||
|
"iso_paths": [
|
||
|
"[datastore1] ISO/alpine-standard-3.8.2-x86_64.iso"
|
||
|
],
|
||
|
"floppy_files": [
|
||
|
"{{template_dir}}/answerfile",
|
||
|
"{{template_dir}}/setup.sh"
|
||
|
],
|
||
|
|
||
|
"boot_wait": "15s",
|
||
|
"boot_command": [
|
||
|
"root<enter><wait>",
|
||
|
"mount -t vfat /dev/fd0 /media/floppy<enter><wait>",
|
||
|
"setup-alpine -f /media/floppy/answerfile<enter>",
|
||
|
"<wait5>",
|
||
|
"jetbrains<enter>",
|
||
|
"jetbrains<enter>",
|
||
|
"<wait5>",
|
||
|
"y<enter>",
|
||
|
"<wait10><wait10><wait10><wait10>",
|
||
|
"reboot<enter>",
|
||
|
"<wait10><wait10>",
|
||
|
"root<enter>",
|
||
|
"jetbrains<enter><wait>",
|
||
|
"mount -t vfat /dev/fd0 /media/floppy<enter><wait>",
|
||
|
"/media/floppy/SETUP.SH<enter>"
|
||
|
],
|
||
|
|
||
|
"ssh_username": "root",
|
||
|
"ssh_password": "jetbrains"
|
||
|
}
|
||
|
],
|
||
|
|
||
|
"provisioners": [
|
||
|
{
|
||
|
"type": "shell",
|
||
|
"inline": ["ls /"]
|
||
|
}
|
||
|
]
|
||
|
}
|