-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make vagrant silently run pxe nodes, without checks
- Loading branch information
Evgeniy L
committed
Oct 12, 2015
1 parent
5da5f18
commit 39170b3
Showing
2 changed files
with
72 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# Noop Vagrant plugins are used in case if Vagrant does not | ||
# have an access to VMs (e.g. there is no information about ip), | ||
# so it just runs VMs and does not try to perform additional | ||
# actions using SSH. | ||
|
||
class NoopCommunicator < Vagrant.plugin("2", :communicator) | ||
|
||
def ready? | ||
true | ||
end | ||
|
||
def wait_for_ready(timeout) | ||
true | ||
end | ||
|
||
end | ||
|
||
|
||
class NoopGuest < Vagrant.plugin("2", :guest) | ||
|
||
def self.change_host_name(*args) | ||
true | ||
end | ||
|
||
def self.configure_networks(*args) | ||
true | ||
end | ||
|
||
def self.mount_virtualbox_shared_folder(*args) | ||
true | ||
end | ||
|
||
end | ||
|
||
|
||
class NoopCommunicatorPlugin < Vagrant.plugin("2") | ||
|
||
name 'Noop communicator/guest' | ||
description 'Noop communicator/guest' | ||
|
||
communicator('noop') do | ||
NoopCommunicator | ||
end | ||
|
||
guest 'noop_guest' do | ||
NoopGuest | ||
end | ||
|
||
guest_capability 'noop_guest', 'change_host_name' do | ||
NoopGuest | ||
end | ||
|
||
guest_capability 'noop_guest', 'configure_networks' do | ||
NoopGuest | ||
end | ||
|
||
guest_capability 'noop_guest', 'mount_virtualbox_shared_folder' do | ||
NoopGuest | ||
end | ||
|
||
end |