Documentation ¶
Overview ¶
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
VBM string // Path to VBoxManage utility.
)
Functions ¶
func Provider ¶
func Provider() terraform.ResourceProvider
func WaitForVMAttribute ¶
func WaitForVMAttribute( d *schema.ResourceData, target []string, pending []string, attribute string, meta interface{}, delay, interval time.Duration) (interface{}, error)
func WaitForVMAttribute(d *schema.ResourceData, target string, pending []string, attribute string, meta interface{}, delay, interval time.Duration) (interface{}, error) { // Wait for the droplet so we can get the networking attributes // that show up after a while log.Printf( "[INFO] Waiting for VM (%s) to have %s of %s", d.Get("name"), attribute, target) stateConf := &resource.StateChangeConf{ Pending: pending, Target: []string{target}, Refresh: newVMStateRefreshFunc(d, attribute, meta), Timeout: 5 * time.Minute, Delay: delay, MinTimeout: interval, NotFoundChecks: 60, } return stateConf.WaitForState() }
func WaitUntilVMIsReady ¶
func WaitUntilVMIsReady(d *schema.ResourceData, vm *vbox.Machine, meta interface{}) error
Wait until VM is ready, and 'ready' means the first non NAT NIC get a ipv4_address assigned
Types ¶
Click to show internal directories.
Click to hide internal directories.