Skip to content
Snippets Groups Projects
Commit 9ad45230 authored by Christian Rebischke's avatar Christian Rebischke Committed by GitHub
Browse files

Merge pull request #12 from rafaelsoaresbr/vmware-support

Vmware support
parents 04910c2b 2baf7797
No related branches found
No related tags found
No related merge requests found
......@@ -12,6 +12,7 @@ You'll need the following dependencies:
* vagrant (for vagrant images)
* qemu (for libvirt provider support)
* virtualbox (for virtualbox support)
* VMware Workstation Pro (for vmware support)
## How to start the build process
......@@ -30,6 +31,7 @@ On any other System:
* virtualbox-iso
* qemu/libvirt
* vmware-iso
## post-processors
......
#!/bin/bash
set -e
set -x
sudo pacman -S --noconfirm open-vm-tools
sudo systemctl enable vmtoolsd
......@@ -73,6 +73,26 @@
"curl -O 'http://{{.HTTPIP}}:{{.HTTPPort}}/install{,-chroot}.sh'<enter><wait>",
"bash install.sh < install-chroot.sh && systemctl reboot<enter>"
]
}, {
"type": "vmware-iso",
"boot_wait": "10s",
"http_directory": "http",
"disk_size": "{{user `disk_size`}}",
"iso_checksum": "{{user `iso_checksum`}}",
"iso_checksum_type": "{{user `iso_checksum_type`}}",
"iso_url": "{{user `iso_url`}}",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"ssh_port": 22,
"ssh_wait_timeout": "10000s",
"shutdown_command": "sudo systemctl poweroff",
"headless": "{{user `headless`}}",
"vmx_data": {"memsize": "{{user `memory`}}"},
"boot_command": [
"<enter><wait10><wait10><wait10><wait10>",
"curl -O 'http://{{.HTTPIP}}:{{.HTTPPort}}/install{,-chroot}.sh'<enter><wait>",
"bash install.sh < install-chroot.sh && systemctl reboot<enter>"
]
}
],
......@@ -96,6 +116,16 @@
],
"execute_command": "echo 'vagrant'|sudo -S sh '{{.Path}}'",
"only": ["qemu"]
},
{
"type": "shell",
"scripts": [
"provision/postinstall.sh",
"provision/vmware.sh",
"provision/cleanup.sh"
],
"execute_command": "echo 'vagrant'|sudo -S sh '{{.Path}}'",
"only": ["vmware-iso"]
}
],
"post-processors": [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment