This updates the guest capabilities to run in as few communicator commands as possible. Additionally, it fixes a number of issues around hostname and idempotency. This patch was tested against: - puphpet/debian75-x64 - debian/jessie64 - debian/wheezy64 with custom networking, custom hostname, and rsync shared folders.
12 lines
230 B
Ruby
12 lines
230 B
Ruby
require "vagrant"
|
|
|
|
module VagrantPlugins
|
|
module GuestDebian
|
|
class Guest < Vagrant.plugin("2", :guest)
|
|
def detect?(machine)
|
|
machine.communicate.test("cat /etc/issue | grep 'Debian'")
|
|
end
|
|
end
|
|
end
|
|
end
|