forked from Telmate/terraform-provider-proxmox
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Include complete argument reference for resource_vm_qemu
- Loading branch information
1 parent
fdc2b93
commit 7b0f069
Showing
3 changed files
with
124 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,26 @@ | ||
# Provisioner usage | ||
|
||
There are two provisioning `actions` possible: `sshbackward` and `reconnect`. | ||
|
||
## Sshbackward | ||
|
||
Remove the temporary net1 adapter. | ||
Inside the VM this usually triggers the routes back to the provisioning machine on net0. | ||
``` | ||
provisioner "proxmox" { | ||
```tf | ||
provisioner "proxmox" { | ||
action = "sshbackward" | ||
} | ||
} | ||
``` | ||
|
||
## Reconnect | ||
|
||
Replace the temporary net1 adapter with a new persistent net1. | ||
``` | ||
provisioner "proxmox" { | ||
```tf | ||
provisioner "proxmox" { | ||
action = "reconnect" | ||
net1 = "virtio,bridge=vmbr0,tag=99" | ||
} | ||
} | ||
``` | ||
|
||
If net1 needs a config other than DHCP you should prior to this use provisioner "remote-exec" to modify the network config. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters