mirror of
https://github.com/letic/terraform-provider-proxmox.git
synced 2024-10-05 02:01:04 +00:00
ssh_forward_ip optional with cloud-init
This commit is contained in:
parent
83722fe9b9
commit
27fba3be5c
@ -43,7 +43,7 @@ func resourceVmQemu() *schema.Resource {
|
|||||||
},
|
},
|
||||||
"ssh_forward_ip": {
|
"ssh_forward_ip": {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Required: true,
|
Optional: true,
|
||||||
},
|
},
|
||||||
"iso": {
|
"iso": {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
@ -348,6 +348,7 @@ func resourceVmQemuCreate(d *schema.ResourceData, meta interface{}) error {
|
|||||||
|
|
||||||
case "cloud-init":
|
case "cloud-init":
|
||||||
// wait for OS too boot awhile...
|
// wait for OS too boot awhile...
|
||||||
|
log.Print("[DEBUG] sleeping for OS bootup...")
|
||||||
time.Sleep(time.Duration(d.Get("ci_wait").(int)) * time.Second)
|
time.Sleep(time.Duration(d.Get("ci_wait").(int)) * time.Second)
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user