add basic HCL2 docs for vmware
This commit is contained in:
parent
831c16836a
commit
c3f2cc64f7
|
@ -37,18 +37,40 @@ Here is a basic example. This example is not functional. It will start the OS
|
||||||
installer but then fail because we don't provide the preseed file for Ubuntu to
|
installer but then fail because we don't provide the preseed file for Ubuntu to
|
||||||
self-install. Still, the example serves to show the basic configuration:
|
self-install. Still, the example serves to show the basic configuration:
|
||||||
|
|
||||||
|
<Tabs>
|
||||||
|
<Tab heading="JSON">
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"type": "vmware-iso",
|
"type": "vmware-iso",
|
||||||
"iso_url": "http://old-releases.ubuntu.com/releases/precise/ubuntu-12.04.2-server-amd64.iso",
|
"iso_url": "http://old-releases.ubuntu.com/releases/precise/ubuntu-12.04.2-server-amd64.iso",
|
||||||
"iso_checksum": "af5f788aee1b32c4b2634734309cc9e9",
|
"iso_checksum": "md5:af5f788aee1b32c4b2634734309cc9e9",
|
||||||
"iso_checksum_type": "md5",
|
|
||||||
"ssh_username": "packer",
|
"ssh_username": "packer",
|
||||||
"ssh_password": "packer",
|
"ssh_password": "packer",
|
||||||
"shutdown_command": "shutdown -P now"
|
"shutdown_command": "shutdown -P now"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
</Tab>
|
||||||
|
<Tab heading="HCL2">
|
||||||
|
|
||||||
|
```hcl
|
||||||
|
source "vmware-iso" "basic-example" {
|
||||||
|
iso_url = "http://old-releases.ubuntu.com/releases/precise/ubuntu-12.04.2-server-amd64.iso"
|
||||||
|
iso_checksum = "md5:af5f788aee1b32c4b2634734309cc9e9"
|
||||||
|
ssh_username = "packer"
|
||||||
|
ssh_password = "packer"
|
||||||
|
shutdown_command = "shutdown -P now"
|
||||||
|
}
|
||||||
|
|
||||||
|
build {
|
||||||
|
sources = ["sources.vmware-iso.basic-example"]
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
</Tab>
|
||||||
|
</Tabs>
|
||||||
|
|
||||||
## VMware-ISO Builder Configuration Reference
|
## VMware-ISO Builder Configuration Reference
|
||||||
|
|
||||||
There are many configuration options available for the builder. In addition to
|
There are many configuration options available for the builder. In addition to
|
||||||
|
|
|
@ -34,6 +34,9 @@ VMware virtual machine.
|
||||||
Here is an example. This example is fully functional as long as the source path
|
Here is an example. This example is fully functional as long as the source path
|
||||||
points to a real VMX file with the proper settings:
|
points to a real VMX file with the proper settings:
|
||||||
|
|
||||||
|
<Tabs>
|
||||||
|
<Tab heading="JSON">
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"type": "vmware-vmx",
|
"type": "vmware-vmx",
|
||||||
|
@ -44,6 +47,25 @@ points to a real VMX file with the proper settings:
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
</Tab>
|
||||||
|
<Tab heading="HCL2">
|
||||||
|
|
||||||
|
```hcl
|
||||||
|
source "vmware-vmx" "basic-example" {
|
||||||
|
source_path = "/path/to/a/vm.vmx"
|
||||||
|
ssh_username = "root"
|
||||||
|
ssh_password = "root"
|
||||||
|
shutdown_command = "shutdown -P now"
|
||||||
|
}
|
||||||
|
|
||||||
|
build {
|
||||||
|
sources = ["sources.vmware-vmx.basic-example"]
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
</Tab>
|
||||||
|
</Tabs>
|
||||||
|
|
||||||
## Configuration Reference
|
## Configuration Reference
|
||||||
|
|
||||||
There are many configuration options available for the VMware builder. They are
|
There are many configuration options available for the VMware builder. They are
|
||||||
|
|
Loading…
Reference in New Issue