Example #1
0
def vagrant_setup(host, destroy_vm, force_provision='false'):
    """
    Setup the specified vagrant box

    host: the Vagrant box to setup, e.g. "magma"
    """
    if destroy_vm:
        vagrant.teardown_vagrant(host)
    vagrant.setup_env_vagrant(host, force_provision=force_provision)
    return env.hosts[0]
Example #2
0
def vagrant_setup(host, destroy_vm):
    """
    Setup the specified vagrant box

    host: the Vagrant box to setup, e.g. "magma"
    """
    if destroy_vm:
        vagrant.teardown_vagrant(host)
    vagrant.setup_env_vagrant(host)
    return env.hosts[0]