vagrant-hitch 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/example/config/nodes.yml +1 -0
- data/lib/vagrant-hitch.rb +7 -0
- data/spec/hitch_spec.rb +5 -0
- data/vagrant-hitch.gemspec +1 -1
- metadata +1 -1
data/example/config/nodes.yml
CHANGED
data/lib/vagrant-hitch.rb
CHANGED
@@ -36,6 +36,12 @@ module VagrantHitch
|
|
36
36
|
config.vm.host_name = hostname
|
37
37
|
end
|
38
38
|
|
39
|
+
def self.setup_bootmode(profiile, node_config, config)
|
40
|
+
if node_config.has_key?('boot_mode')
|
41
|
+
config.vm.boot_mode = node_config['boot_mode'].to_sym
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
39
45
|
def self.setup_cpu(profile, node_config, config)
|
40
46
|
# Configure CPU
|
41
47
|
config.vm.customize ["modifyvm", :id, "--cpus", node_config['cpu_count'].to_s] if node_config.has_key?('cpu_count')
|
@@ -168,6 +174,7 @@ module VagrantHitch
|
|
168
174
|
# Setup the environment
|
169
175
|
self.setup_dns(profile, node_config, config)
|
170
176
|
self.setup_vbox(profile, node_config, config)
|
177
|
+
self.setup_bootmode(profile, node_config, config)
|
171
178
|
|
172
179
|
# set up the server
|
173
180
|
self.setup_hostname(profile, node_config, config)
|
data/spec/hitch_spec.rb
CHANGED
@@ -79,6 +79,11 @@ describe VagrantHitch do
|
|
79
79
|
|
80
80
|
it 'should configure a guest' do
|
81
81
|
test1.config.vm.guest.should eql(:solaris)
|
82
|
+
test2.config.vm.guest.should eql(:linux)
|
83
|
+
end
|
84
|
+
|
85
|
+
it 'should honor boot mode' do
|
86
|
+
test1.config.vm.boot_mode.should eql(:gui)
|
82
87
|
end
|
83
88
|
|
84
89
|
it 'should have network ports forward' do
|
data/vagrant-hitch.gemspec
CHANGED