ssh_forward_ip optional with cloud-init

This commit is contained in:
Grant Gongaware 2018-07-16 09:10:23 -07:00
parent 83722fe9b9
commit 27fba3be5c

View File

@ -43,7 +43,7 @@ func resourceVmQemu() *schema.Resource {
},
"ssh_forward_ip": {
Type: schema.TypeString,
Required: true,
Optional: true,
},
"iso": {
Type: schema.TypeString,
@ -348,6 +348,7 @@ func resourceVmQemuCreate(d *schema.ResourceData, meta interface{}) error {
case "cloud-init":
// wait for OS too boot awhile...
log.Print("[DEBUG] sleeping for OS bootup...")
time.Sleep(time.Duration(d.Get("ci_wait").(int)) * time.Second)
default: